PageSourceSearch

https://mermaid.ai/_web/immutable/chunks/BO0NaqTq.js

js mermaid.ai collected 2026-09-24 10:21:29 UTC 727,111 bytes, 320 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_web/immutable/chunks/yb0T6kEh.js","_web/immutable/chunks/CU0sbilN.js","_web/immutable/chunks/CbWtXQ90.js","_web/immutable/chunks/D7HrI6pR.js","_web/immutable/chunks/BmBM_8DA.js","_web/immutable/chunks/Bwm72XnK.js","_web/immutable/chunks/CKMgSZ4E.js","_web/immutable/chunks/DTrYq5sy.js","_web/immutable/chunks/CUqq0XTU.js","_web/immutable/chunks/BT8pASxY.js","_web/immutable/chunks/CQ-HAyO-.js","_web/immutable/chunks/D6bg41JT.js","_web/immutable/chunks/Bvmn2D4F.js","_web/immutable/chunks/M_m03oyR.js","_web/immutable/chunks/CPUsTCzY.js","_web/immutable/chunks/BcI2I4EV.js","_web/immutable/chunks/PBtSvmdp.js","_web/immutable/chunks/Ch84m9De.js","_web/immutable/chunks/z7ACBgb9.js","_web/immutable/chunks/BfN__vMw.js","_web/immutable/chunks/Boa7yHJY.js","_web/immutable/chunks/E71Nf0pk.js","_web/immutable/chunks/B4ZRaZD0.js","_web/immutable/chunks/AjSZy6dP.js","_web/immutable/chunks/wajwKG6o.js","_web/immutable/chunks/BNc77Kty.js","_web/immutable/chunks/DcZakC4H.js","_web/immutable/chunks/Gi6I4Gst.js","_web/immutable/chunks/C4B-KCzX.js","_web/immutable/chunks/CZ21Yx7k.js","_web/immutable/chunks/CD5PGJl5.js","_web/immutable/chunks/CnCePWAe.js","_web/immutable/chunks/CmKTTxBW.js","_web/immutable/chunks/BWNIguB_.js","_web/immutable/chunks/DSaixN32.js","_web/immutable/chunks/Cw06MTgV.js","_web/immutable/chunks/D58fjdpI.js","_web/immutable/chunks/CJ09F9dJ.js","_web/immutable/chunks/BaNi5xNN.js","_web/immutable/chunks/XFjqbu2L.js","_web/immutable/chunks/C4Ehfrc_.js","_web/immutable/chunks/-1udqLO1.js","_web/immutable/chunks/BBxIFj5N.js","_web/immutable/chunks/V-2g10fG.js","_web/immutable/chunks/D_bKlyT_.js","_web/immutable/chunks/zb3mNWnD.js","_web/immutable/chunks/BSquQnjc.js","_web/immutable/chunks/D3XoOS_9.js","_web/immutable/chunks/i4qWY-5W.js","_web/immutable/chunks/C1Bu0sCJ.js","_web/immutable/chunks/CIlIG_8K.js","_web/immutable/chunks/BtvZFUuC.js","_web/immutable/chunks/DZKf3rI9.js","_web/immutable/chunks/D20CiN05.js","_web/immutable/chunks/49N_1tCk.js","_web/immutable/chunks/BNTzIQw5.js","_web/immutable/chunks/CVHy0ZLt.js","_web/immutable/chunks/DWfnq_jb.js","_web/immutable/chunks/DxgUO8P7.js"])))=>i.map(i=>d[i]);
2var DC=Object.defineProperty;var su=e=>{throw TypeError(e)};var PC=(e,t,r)=>t in e?DC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ht=(e,t,r)=>PC(e,typeof t!="symbol"?t+"":t,r),En=(e,t,r)=>t.has(e)||su("Cannot "+r);var vt=(e,t,r)=>(En(e,t,"read from private field"),r?r.call(e):t.get(e)),ge=(e,t,r)=>t.has(e)?su("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ee=(e,t,r,i)=>(En(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ye=(e,t,r)=>(En(e,t,"access private method"),r);var Fs=(e,t,r,i)=>({set _(s){ee(e,t,s,r)},get _(){return vt(e,t,i)}});import{p as Na,c as RC,i as qC,a as Mn,b as Pf,s as NC}from"./C6hLWICk.js";import{i as WC}from"./BNg1gUrI.js";import{p as zC,z as HC,v as As,u as $n,m as jC,l as Ai,w as au,o as YC,i as UC,q as GC,r as XC,D as VC,t as KC}from"./Cg_LLIlQ.js";import{h as ZC}from"./DTotf7hU.js";import{_ as It}from"./D7HrI6pR.js";var Rf=Object.defineProperty,p=(e,t)=>Rf(e,"name",{value:t,configurable:!0}),QC=(e,t)=>{for(var r in t)Rf(e,r,{get:t[r],enumerable:!0})};function qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}p(qf,"getDefaultExportFromCjs");var be={},Wa={},Hr={},ou;function ys(){if(ou)return Hr;ou=1;function e(o){return typeof o>"u"||o===null}p(e,"isNothing");function t(o){return typeof o=="object"&&o!==null}p(t,"isObject");function r(o){return Array.isArray(o)?o:e(o)?[]:[o]}p(r,"toArray");function i(o,n){if(n){const c=Object.keys(n);for(let l=0,h=c.length;l<h;l+=1){const u=c[l];o[u]=n[u]}}return o}p(i,"extend");function s(o,n){let c="";for(let l=0;l<n;l+=1)c+=o;return c}p(s,"repeat");function a(o){return o===0&&Number.NEGATIVE_INFINITY===1/o}return p(a,"isNegativeZero"),Hr.isNothing=e,Hr.isObject=t,Hr.toArray=r,Hr.repeat=s,Hr.isNegativeZero=a,Hr.extend=i,Hr}p(ys,"requireCommon");var On,nu;function Cs(){if(nu)return On;nu=1;function e(r,i){let s="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(s+=`
3
4`+r.mark.snippet),a+" "+s):a}p(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return p(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=p(function(i){return this.name+": "+e(this,i)},"toString"),On=t,On}p(Cs,"requireException");var In,lu;function Nf(){if(lu)return In;lu=1;const e=ys();function t(s,a,o,n,c){let l="",h="";const u=Math.floor(c/2)-1;return n-a>u&&(l=" ... ",a=n-u+l.length),o-n>u&&(h=" ...",o=n+u-h.length),{str:l+s.slice(a,o).replace(/\t/g,"→")+h,pos:n-a+l.length}}p(t,"getLine");function r(s,a){return e.repeat(" ",a-s.length)+s}p(r,"padStart");function i(s,a){if(a=Object.create(a||null),!s.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const o=/\r?\n|\r|\0/g,n=[0],c=[];let l,h=-1;for(;l=o.exec(s.buffer);)c.push(l.index),n.push(l.index+l[0].length),s.position<=l.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let u="";const d=Math.min(s.line+a.linesAfter,c.length).toString().length,f=a.maxLength-(a.indent+d+3);for(let C=1;C<=a.linesBefore&&!(h-C<0);C++){const x=t(s.buffer,n[h-C],c[h-C],s.position-(n[h]-n[h-C]),f);u=e.repeat(" ",a.indent)+r((s.line-C+1).toString(),d)+" | "+x.str+`
5`+u}const g=t(s.buffer,n[h],c[h],s.position,f);u+=e.repeat(" ",a.indent)+r((s.line+1).toString(),d)+" | "+g.str+`
6`,u+=e.repeat("-",a.indent+d+3+g.pos)+`^
7`;for(let C=1;C<=a.linesAfter&&!(h+C>=c.length);C++){const x=t(s.buffer,n[h+C],c[h+C],s.position-(n[h]-n[h+C]),f);u+=e.repeat(" ",a.indent)+r((s.line+C+1).toString(),d)+" | "+x.str+`
8`}return u.replace(/\n$/,"")}return p(i,"makeSnippet"),In=i,In}p(Nf,"requireSnippet");var Dn,hu;function _e(){if(hu)return Dn;hu=1;const e=Cs(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(a){const o={};
8return a!==null&&Object.keys(a).forEach(function(n){a[n].forEach(function(c){o[String(c)]=n})}),o}p(i,"compileStyleAliases");function s(a,o){if(o=o||{},Object.keys(o).forEach(function(n){if(t.indexOf(n)===-1)throw new e('Unknown option "'+n+'" is met in definition of "'+a+'" YAML type.')}),this.options=o,this.tag=a,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(n){return n},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=i(o.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}return p(s,"Type2"),Dn=s,Dn}p(_e,"requireType");var Pn,cu;function ph(){if(cu)return Pn;cu=1;const e=Cs(),t=_e();function r(a,o){const n=[];return a[o].forEach(function(c){let l=n.length;n.forEach(function(h,u){h.tag===c.tag&&h.kind===c.kind&&h.multi===c.multi&&(l=u)}),n[l]=c}),n}p(r,"compileList");function i(){const a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(n){n.multi?(a.multi[n.kind].push(n),a.multi.fallback.push(n)):a[n.kind][n.tag]=a.fallback[n.tag]=n}p(o,"collectType");for(let n=0,c=arguments.length;n<c;
vendor: 7,600 bytes, line 8
8n+=1)arguments[n].forEach(o);return a}p(i,"compileMap");function s(a){return this.extend(a)}return p(s,"Schema2"),s.prototype.extend=p(function(o){let n=[],c=[];if(o instanceof t)c.push(o);else if(Array.isArray(o))c=c.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(n=n.concat(o.implicit)),o.explicit&&(c=c.concat(o.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(h.loadKind&&h.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(h.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),c.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const l=Object.create(s.prototype);return l.implicit=(this.implicit||[]).concat(n),l.explicit=(this.explicit||[]).concat(c),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=i(l.compiledImplicit,l.compiledExplicit),l},"extend"),Pn=s,Pn}p(ph,"requireSchema");var Rn,uu;function mh(){if(uu)return Rn;uu=1;const e=_e();return Rn=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(t){return t!==null?t:""},"construct")}),Rn}p(mh,"requireStr");var qn,du;function yh(){if(du)return qn;du=1;const e=_e();return qn=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(t){return t!==null?t:[]},"construct")}),qn}p(yh,"requireSeq");var Nn,fu;function Ch(){if(fu)return Nn;fu=1;const e=_e();return Nn=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(t){return t!==null?t:{}},"construct")}),Nn}p(Ch,"requireMap");var Wn,gu;function xh(){if(gu)return Wn;gu=1;const e=ph();return Wn=new e({explicit:[mh(),yh(),Ch()]}),Wn}p(xh,"requireFailsafe");var zn,pu;function bh(){if(pu)return zn;pu=1;const e=_e();function t(s){if(s===null)return!0;const a=s.length;return a===1&&s==="~"||a===4&&(s==="null"||s==="Null"||s==="NULL")}p(t,"resolveYamlNull");function r(){return null}p(r,"constructYamlNull");function i(s){return s===null}return p(i,"isNull"),zn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"}),zn}p(bh,"require_null");var Hn,mu;function kh(){if(mu)return Hn;mu=1;const e=_e();function t(s){if(s===null)return!1;const a=s.length;return a===4&&(s==="true"||s==="True"||s==="TRUE")||a===5&&(s==="false"||s==="False"||s==="FALSE")}p(t,"resolveYamlBoolean");function r(s){return s==="true"||s==="True"||s==="TRUE"}p(r,"constructYamlBoolean");function i(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return p(i,"isBoolean"),Hn=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:p(function(s){return s?"true":"false"},"lowercase"),uppercase:p(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Hn}p(kh,"requireBool");var jn,yu;function wh(){if(yu)return jn;yu=1;const e=ys(),t=_e();function r(l){return l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102}p(r,"isHexCode");function i(l){return l>=48&&l<=55}p(i,"isOctCode");function s(l){return l>=48&&l<=57}p(s,"isDecCode");function a(l){if(l===null)return!1;const h=l.length;let u=0,d=!1;if(!h)return!1;let f=l[u];if((f==="-"||f==="+")&&(f=l[++u]),f==="0"){if(u+1===h)return!0;if(f=l[++u],f==="b"){for(u++;u<h;u++){if(f=l[u],f!=="0"&&f!=="1")return!1;d=!0}return d&&isFinite(o(l))}if(f==="x"){for(u++;u<h;u++){if(!r(l.charCodeAt(u)))return!1;d=!0}return d&&isFinite(o(l))}if(f==="o"){for(u++;u<h;u++){if(!i(l.charCodeAt(u)))return!1;d=!0}return d&&isFinite(o(l))}}for(;u<h;u++){if(!s(l.charCodeAt(u)))return!1;d=!0}return d?isFinite(o(l)):!1}p(a,"resolveYamlInteger");function o(l){let h=l,u=1,d=h[0];if((d==="-"||d==="+")&&(d==="-"&&(u=-1),h=h.slice(1),d=h[0]),h==="0")return 0;if(d==="0"){if(h[1]==="b")return u*parseInt(h.slice(2),2);if(h[1]==="x")return u*parseInt(h.slice(2),16);if(h[1]==="o")return u*parseInt(h.slice(2),8)}return u*parseInt(h,10)}p(o,"parseYamlInteger");function n(l){return o(l)}p(n,"constructYamlInteger");function c(l){return Object.prototype.toString.call(l)==="[object Number]"&&l%1===0&&!e.isNegativeZero(l)}return p(c,"isInteger"),jn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:n,predicate:c,represent:{binary:p(function(l){return l>=0?"0b"+l.toString(2):"-0b"+l.toString(2).slice(1)},"binary"),octal:p(function(l){return l>=0?"0o"+l.toString(8):"-0o"+l.toString(8).slice(1)},"octal"),decimal:p(function(l){return l.toString(10)},"decimal"),hexadecimal:p(function(l){return l>=0?"0x"+l.toString(16).toUpperCase():"-0x"+l.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),jn}p(wh,"requireInt");var Yn,Cu;function Th(){if(Cu)return Yn;Cu=1;const e=ys(),t=_e(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(l){return l===null||!r.test(l)?!1:isFinite(parseFloat(l,10))?!0:i.test(l)}p(s,"resolveYamlFloat");function a(l){let h=l.toLowerCase();const u=h[0]==="-"?-1:1;return"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:u*parseFloat(h,10)}p(a,"constructYamlFloat");const o=/^[-+]?[0-9]+e/;function n(l,h){if(isNaN(l))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===l)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===l)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(l))return"-0.0";const u=l.toString(10);return o.test(u)?u.replace("e",".e"):u}p(n,"representYamlFloat");function c(l){return Object.prototype.toString.call(l)==="[object Number]"&&(l%1!==0||e.isNegativeZero(l))}return p(c,"isFloat"),Yn=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:a,predicate:c,represent:n,defaultStyle:"lowercase"}),Yn}p(Th,"requireFloat");var Un,xu;function Sh(){return xu||(xu=1,Un=xh().extend({implicit:[bh(),kh(),wh(),Th()]})),Un}p(Sh,"requireJson");var Gn,bu;function _h(){return bu||(bu=1,Gn=Sh()),Gn}p(_h,"requireCore");var Xn,ku;function Bh(){if(ku)return Xn;ku=1;const e=_e(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function i(o){return o===null?!1:t.exec(o)!==null||r.exec(o)!==null}p(i,"resolveYamlTimestamp");function s(o){let n=0,c=null,l=t.exec(o);if(l===null&&(l=r.exec(o)),l===null)throw new Error("Date resolve error");const h=+l[1],u=+l[2]-1,d=+l[3];
8if(!l[4])return new Date(Date.UTC(h,u,d));const f=+l[4],g=+l[5],C=+l[6];if(l[7]){for(n=l[7].slice(0,3);n.length<3;)n+="0";n=+n}if(l[9]){const y=+l[10],b=+(l[11]||0);c=(y*60+b)*6e4,l[9]==="-"&&(c=-c)}const x=new Date(Date.UTC(h,u,d,f,g,C,n));return c&&x.setTime(x.getTime()-c),x}p(s,"constructYamlTimestamp");function a(o){return o.toISOString()}return p(a,"representYamlTimestamp"),Xn=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:s,instanceOf:Date,represent:a}),Xn}p(Bh,"requireTimestamp");var Vn,wu;function vh(){if(wu)return Vn;wu=1;const e=_e();function t(r){return r==="<<"||r===null}return p(t,"resolveYamlMerge"),Vn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Vn}p(vh,"requireMerge");var Kn,Tu;function Lh(){if(Tu)return Kn;Tu=1;const e=_e(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9\r`;function r(o){if(o===null)return!1;let n=0;const c=o.length,l=t;for(let h=0;h<c;h++){const u=l.indexOf(o.charAt(h));if(!(u>64)){if(u<0)return!1;n+=6}}return n%8===0}p(r,"resolveYamlBinary");function i(o){const n=o.replace(/[\r\n=]/g,""),c=n.length,l=t;let h=0;const u=[];for(let f=0;f<c;f++)f%4===0&&f&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|l.indexOf(n.charAt(f));const d=c%4*6;return d===0?(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)):d===18?(u.push(h>>10&255),u.push(h>>2&255)):d===12&&u.push(h>>4&255),new Uint8Array(u)}p(i,"constructYamlBinary");function s(o){let n="",c=0;const l=o.length,h=t;for(let d=0;d<l;d++)d%3===0&&d&&(n+=h[c>>18&63],n+=h[c>>12&63],n+=h[c>>6&63],n+=h[c&63]),c=(c<<8)+o[d];const u=l%3;return u===0?(n+=h[c>>18&63],n+=h[c>>12&63],n+=h[c>>6&63],n+=h[c&63]):u===2?(n+=h[c>>10&63],n+=h[c>>4&63],n+=h[c<<2&63],n+=h[64]):u===1&&(n+=h[c>>2&63],n+=h[c<<4&63],n+=h[64],n+=h[64]),n}p(s,"representYamlBinary");function a(o){return Object.prototype.toString.call(o)==="[object Uint8Array]"}return p(a,"isBinary"),Kn=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:a,represent:s}),Kn}p(Lh,"requireBinary");var Zn,Su;function Fh(){if(Su)return Zn;Su=1;const e=_e(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(a){if(a===null)return!0;const o=[],n=a;for(let c=0,l=n.length;c<l;c+=1){const h=n[c];let u=!1;if(r.call(h)!=="[object Object]")return!1;let d;for(d in h)if(t.call(h,d))if(!u)u=!0;else return!1;if(!u)return!1;if(o.indexOf(d)===-1)o.push(d);else return!1}return!0}p(i,"resolveYamlOmap");function s(a){return a!==null?a:[]}return p(s,"constructYamlOmap"),Zn=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:s}),Zn}p(Fh,"requireOmap");var Qn,_u;function Ah(){if(_u)return Qn;_u=1;const e=_e(),t=Object.prototype.toString;function r(s){if(s===null)return!0;const a=s,o=new Array(a.length);for(let n=0,c=a.length;n<c;n+=1){const l=a[n];if(t.call(l)!=="[object Object]")return!1;const h=Object.keys(l);if(h.length!==1)return!1;o[n]=[h[0],l[h[0]]]}return!0}p(r,"resolveYamlPairs");function i(s){if(s===null)return[];const a=s,o=new Array(a.length);for(let n=0,c=a.length;n<c;n+=1){const l=a[n],h=Object.keys(l);o[n]=[h[0],l[h[0]]]}return o}return p(i,"constructYamlPairs"),Qn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Qn}p(Ah,"requirePairs");var Jn,Bu;function Eh(){if(Bu)return Jn;Bu=1;const e=_e(),t=Object.prototype.hasOwnProperty;function r(s){if(s===null)return!0;const a=s;for(const o in a)if(t.call(a,o)&&a[o]!==null)return!1;return!0}p(r,"resolveYamlSet");function i(s){return s!==null?s:{}}return p(i,"constructYamlSet"),Jn=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),Jn}p(Eh,"requireSet");var tl,vu;function Uo(){return vu||(vu=1,tl=_h().extend({implicit:[Bh(),vh()],explicit:[Lh(),Fh(),Ah(),Eh()]})),tl}p(Uo,"require_default");var Lu;function Wf(){if(Lu)return Wa;Lu=1;const e=ys(),t=Cs(),r=Nf(),i=Uo(),s=Object.prototype.hasOwnProperty,a=1,o=2,n=3,c=4,l=1,h=2,u=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,g=/[,\[\]{}]/,C=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function y(m){return Object.prototype.toString.call(m)}p(y,"_class");function b(m){return m===10||m===13}p(b,"isEol");function w(m){return m===9||m===32}p(w,"isWhiteSpace");function T(m){return m===9||m===32||m===10||m===13}p(T,"isWsOrEol");function _(m){return m===44||m===91||m===93||m===123||m===125}p(_,"isFlowIndicator");function B(m){if(m>=48&&m<=57)return m-48;const R=m|32;return R>=97&&R<=102?R-97+10:-1}p(B,"fromHexCode");function v(m){return m===120?2:m===117?4:m===85?8:0}p(v,"escapedHexLen");function F(m){return m>=48&&m<=57?m-48:-1}p(F,"fromDecimalCode");function q(m){switch(m){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return"	";case 9:return"	";case 110:return`
10`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}p(q,"simpleEscapeSequence");function I(m){return m<=65535?String.fromCharCode(m):String.fromCharCode((m-65536>>10)+55296,(m-65536&1023)+56320)}p(I,"charFromCodepoint");function P(m,R,K){R==="__proto__"?Object.defineProperty(m,R,{configurable:!0,enumerable:!0,writable:!0,value:K}):m[R]=K}p(P,"setProperty");
vendor: 21,445 bytes, lines 10-18
10const tt=new Array(256),Y=new Array(256);for(let m=0;m<256;m++)tt[m]=q(m)?1:0,Y[m]=q(m);function E(m,R){this.input=m,this.filename=R.filename||null,this.schema=R.schema||i,this.onWarning=R.onWarning||null,this.legacy=R.legacy||!1,this.json=R.json||!1,this.listener=R.listener||null,this.maxDepth=typeof R.maxDepth=="number"?R.maxDepth:100,this.maxTotalMergeKeys=typeof R.maxTotalMergeKeys=="number"?R.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=m.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}p(E,"State");function M(m,R){const K={name:m.filename,buffer:m.input.slice(0,-1),position:m.position,line:m.line,column:m.position-m.lineStart};return K.snippet=r(K),new t(R,K)}p(M,"generateError");function A(m,R){throw M(m,R)}p(A,"throwError");function j(m,R){m.onWarning&&m.onWarning.call(null,M(m,R))}p(j,"throwWarning");function U(m,R,K){const st=m.anchorMapTransactions;if(st.length!==0){const Z=st[st.length-1];s.call(Z,R)||(Z[R]={existed:s.call(m.anchorMap,R),value:m.anchorMap[R]})}m.anchorMap[R]=K}p(U,"storeAnchor");function X(m){m.anchorMapTransactions.push(Object.create(null))}p(X,"beginAnchorTransaction");function et(m){const R=m.anchorMapTransactions.pop(),K=m.anchorMapTransactions;if(K.length===0)return;const st=K[K.length-1],Z=Object.keys(R);for(let nt=0,S=Z.length;nt<S;nt+=1){const H=Z[nt];s.call(st,H)||(st[H]=R[H])}}p(et,"commitAnchorTransaction");function at(m){const R=m.anchorMapTransactions.pop(),K=Object.keys(R);for(let st=K.length-1;st>=0;st-=1){const Z=R[K[st]];Z.existed?m.anchorMap[K[st]]=Z.value:delete m.anchorMap[K[st]]}}p(at,"rollbackAnchorTransaction");function ct(m){return{position:m.position,line:m.line,lineStart:m.lineStart,lineIndent:m.lineIndent,firstTabInLine:m.firstTabInLine,tag:m.tag,anchor:m.anchor,kind:m.kind,result:m.result}}p(ct,"snapshotState");function it(m,R){m.position=R.position,m.line=R.line,m.lineStart=R.lineStart,m.lineIndent=R.lineIndent,m.firstTabInLine=R.firstTabInLine,m.tag=R.tag,m.anchor=R.anchor,m.kind=R.kind,m.result=R.result}p(it,"restoreState");const xt={YAML:p(function(R,K,st){R.version!==null&&A(R,"duplication of %YAML directive"),st.length!==1&&A(R,"YAML directive accepts exactly one argument");const Z=/^([0-9]+)\.([0-9]+)$/.exec(st[0]);Z===null&&A(R,"ill-formed argument of the YAML directive");const nt=parseInt(Z[1],10),S=parseInt(Z[2],10);nt!==1&&A(R,"unacceptable YAML version of the document"),R.version=st[0],R.checkLineBreaks=S<2,S!==1&&S!==2&&j(R,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(R,K,st){let Z;st.length!==2&&A(R,"TAG directive accepts exactly two arguments");const nt=st[0];Z=st[1],C.test(nt)||A(R,"ill-formed tag handle (first argument) of the TAG directive"),s.call(R.tagMap,nt)&&A(R,'there is a previously declared suffix for "'+nt+'" tag handle'),x.test(Z)||A(R,"ill-formed tag prefix (second argument) of the TAG directive");try{Z=decodeURIComponent(Z)}catch{A(R,"tag prefix is malformed: "+Z)}R.tagMap[nt]=Z},"handleTagDirective")};function dt(m,R,K,st){if(R<K){const Z=m.input.slice(R,K);if(st)for(let nt=0,S=Z.length;nt<S;nt+=1){const H=Z.charCodeAt(nt);H===9||H>=32&&H<=1114111||A(m,"expected valid JSON character")}else d.test(Z)&&A(m,"the stream contains non-printable characters");m.result+=Z}}p(dt,"captureSegment");function Ft(m,R,K,st){e.isObject(K)||A(m,"cannot merge mappings; the provided source object is unacceptable");const Z=Object.keys(K);for(let nt=0,S=Z.length;nt<S;nt+=1){const H=Z[nt];m.maxTotalMergeKeys!==-1&&++m.totalMergeKeys>m.maxTotalMergeKeys&&A(m,"merge keys exceeded maxTotalMergeKeys ("+m.maxTotalMergeKeys+")"),s.call(R,H)||(P(R,H,K[H]),st[H]=!0)}}p(Ft,"mergeMappings");function _t(m,R,K,st,Z,nt,S,H,D){if(Array.isArray(Z)){Z=Array.prototype.slice.call(Z);for(let $=0,N=Z.length;$<N;$+=1)Array.isArray(Z[$])&&A(m,"nested arrays are not supported inside keys"),typeof Z=="object"&&y(Z[$])==="[object Object]"&&(Z[$]="[object Object]")}if(typeof Z=="object"&&y(Z)==="[object Object]"&&(Z="[object Object]"),Z=String(Z),R===null&&(R={}),st==="tag:yaml.org,2002:merge")if(Array.isArray(nt))for(let $=0,N=nt.length;$<N;$+=1)Ft(m,R,nt[$],K);else Ft(m,R,nt,K);else!m.json&&!s.call(K,Z)&&s.call(R,Z)&&(m.line=S||m.line,m.lineStart=H||m.lineStart,m.position=D||m.position,A(m,"duplicated mapping key")),P(R,Z,nt),delete K[Z];return R}p(_t,"storeMappingPair");function qt(m){const R=m.input.charCodeAt(m.position);R===10?m.position++:R===13?(m.position++,m.input.charCodeAt(m.position)===10&&m.position++):A(m,"a line break is expected"),m.line+=1,m.lineStart=m.position,m.firstTabInLine=-1}p(qt,"readLineBreak");function ot(m,R,K){let st=0,Z=m.input.charCodeAt(m.position);for(;Z!==0;){for(;w(Z);)Z===9&&m.firstTabInLine===-1&&(m.firstTabInLine=m.position),Z=m.input.charCodeAt(++m.position);if(R&&Z===35)do Z=m.input.charCodeAt(++m.position);while(Z!==10&&Z!==13&&Z!==0);if(b(Z))for(qt(m),Z=m.input.charCodeAt(m.position),st++,m.lineIndent=0;Z===32;)m.lineIndent++,Z=m.input.charCodeAt(++m.position);else break}return K!==-1&&st!==0&&m.lineIndent<K&&j(m,"deficient indentation"),st}p(ot,"skipSeparationSpace");function pt(m){let R=m.position,K=m.input.charCodeAt(R);return!!((K===45||K===46)&&K===m.input.charCodeAt(R+1)&&K===m.input.charCodeAt(R+2)&&(R+=3,K=m.input.charCodeAt(R),K===0||T(K)))}p(pt,"testDocumentSeparator");function Bt(m,R){R===1?m.result+=" ":R>1&&(m.result+=e.repeat(`
11`,R-1))}p(Bt,"writeFoldedLines");function Dt(m,R,K){let st,Z,nt,S,H,D;const $=m.kind,N=m.result;let V=m.input.charCodeAt(m.position);if(T(V)||_(V)||V===35||V===38||V===42||V===33||V===124||V===62||V===39||V===34||V===37||V===64||V===96)return!1;if(V===63||V===45){const Q=m.input.charCodeAt(m.position+1);if(T(Q)||K&&_(Q))return!1}for(m.kind="scalar",m.result="",st=Z=m.position,nt=!1;V!==0;){if(V===58){const Q=m.input.charCodeAt(m.position+1);if(T(Q)||K&&_(Q))break}else if(V===35){const Q=m.input.charCodeAt(m.position-1);if(T(Q))break}else{if(m.position===m.lineStart&&pt(m)||K&&_(V))break;if(b(V))if(S=m.line,H=m.lineStart,D=m.lineIndent,ot(m,!1,-1),m.lineIndent>=R){nt=!0,V=m.input.charCodeAt(m.position);continue}else{m.position=Z,m.line=S,m.lineStart=H,m.lineIndent=D;break}}nt&&(dt(m,st,Z,!1),Bt(m,m.line-S),st=Z=m.position,nt=!1),w(V)||(Z=m.position+1),V=m.input.charCodeAt(++m.position)}return dt(m,st,Z,!1),m.result?!0:(m.kind=$,m.result=N,!1)}p(Dt,"readPlainScalar");function Nt(m,R){let K,st,Z=m.input.charCodeAt(m.position);if(Z!==39)return!1;for(m.kind="scalar",m.result="",m.position++,K=st=m.position;(Z=m.input.charCodeAt(m.position))!==0;)if(Z===39)if(dt(m,K,m.position,!0),Z=m.input.charCodeAt(++m.position),Z===39)K=m.position,m.position++,st=m.position;else return!0;else b(Z)?(dt(m,K,st,!0),Bt(m,ot(m,!1,R)),K=st=m.position):m.position===m.lineStart&&pt(m)?A(m,"unexpected end of the document within a single quoted scalar"):(m.position++,w(Z)||(st=m.position));A(m,"unexpected end of the stream within a single quoted scalar")}p(Nt,"readSingleQuotedScalar");function zt(m,R){let K,st,Z,nt=m.input.charCodeAt(m.position);if(nt!==34)return!1;for(m.kind="scalar",m.result="",m.position++,K=st=m.position;(nt=m.input.charCodeAt(m.position))!==0;){if(nt===34)return dt(m,K,m.position,!0),m.position++,!0;if(nt===92){if(dt(m,K,m.position,!0),nt=m.input.charCodeAt(++m.position),b(nt))ot(m,!1,R);else if(nt<256&&tt[nt])m.result+=Y[nt],m.position++;else if((Z=v(nt))>0){let S=Z,H=0;for(;S>0;S--)nt=m.input.charCodeAt(++m.position),(Z=B(nt))>=0?H=(H<<4)+Z:A(m,"expected hexadecimal character");m.result+=I(H),m.position++}else A(m,"unknown escape sequence");K=st=m.position}else b(nt)?(dt(m,K,st,!0),Bt(m,ot(m,!1,R)),K=st=m.position):m.position===m.lineStart&&pt(m)?A(m,"unexpected end of the document within a double quoted scalar"):(m.position++,w(nt)||(st=m.position))}A(m,"unexpected end of the stream within a double quoted scalar")}p(zt,"readDoubleQuotedScalar");function G(m,R){let K=!0,st,Z,nt;const S=m.tag;let H;const D=m.anchor;let $,N,V,Q;const lt=Object.create(null);let ht,wt,bt,Pt=m.input.charCodeAt(m.position);if(Pt===91)$=93,Q=!1,H=[];else if(Pt===123)$=125,Q=!0,H={};else return!1;for(m.anchor!==null&&U(m,m.anchor,H),Pt=m.input.charCodeAt(++m.position);Pt!==0;){if(ot(m,!0,R),Pt=m.input.charCodeAt(m.position),Pt===$)return m.position++,m.tag=S,m.anchor=D,m.kind=Q?"mapping":"sequence",m.result=H,!0;if(K?Pt===44&&A(m,"expected the node content, but found ','"):A(m,"missed comma between flow collection entries"),wt=ht=bt=null,N=V=!1,Pt===63){const Xt=m.input.charCodeAt(m.position+1);T(Xt)&&(N=V=!0,m.position++,ot(m,!0,R))}st=m.line,Z=m.lineStart,nt=m.position,Ee(m,R,a,!1,!0),wt=m.tag,ht=m.result,ot(m,!0,R),Pt=m.input.charCodeAt(m.position),(V||m.line===st)&&Pt===58&&(N=!0,Pt=m.input.charCodeAt(++m.position),ot(m,!0,R),Ee(m,R,a,!1,!0),bt=m.result),Q?_t(m,H,lt,wt,ht,bt,st,Z,nt):N?H.push(_t(m,null,lt,wt,ht,bt,st,Z,nt)):H.push(ht),ot(m,!0,R),Pt=m.input.charCodeAt(m.position),Pt===44?(K=!0,Pt=m.input.charCodeAt(++m.position)):K=!1}A(m,"unexpected end of the stream within a flow collection")}p(G,"readFlowCollection");function Et(m,R){let K,st=l,Z=!1,nt=!1,S=R,H=0,D=!1,$,N=m.input.charCodeAt(m.position);if(N===124)K=!1;else if(N===62)K=!0;else return!1;for(m.kind="scalar",m.result="";N!==0;)if(N=m.input.charCodeAt(++m.position),N===43||N===45)l===st?st=N===43?u:h:A(m,"repeat of a chomping mode identifier");else if(($=F(N))>=0)$===0?A(m,"bad explicit indentation width of a block scalar; it cannot be less than one"):nt?A(m,"repeat of an indentation width identifier"):(S=R+$-1,nt=!0);else break;if(w(N)){do N=m.input.charCodeAt(++m.position);while(w(N));if(N===35)do N=m.input.charCodeAt(++m.position);while(!b(N)&&N!==0)}for(;N!==0;){for(qt(m),m.lineIndent=0,N=m.input.charCodeAt(m.position);(!nt||m.lineIndent<S)&&N===32;)m.lineIndent++,N=m.input.charCodeAt(++m.position);if(!nt&&m.lineIndent>S&&(S=m.lineIndent),b(N)){H++;continue}if(!nt&&S===0&&A(m,"missing indentation for block scalar"),m.lineIndent<S){st===u?m.result+=e.repeat(`
12`,Z?1+H:H):st===l&&Z&&(m.result+=`
13`);break}K?w(N)?(D=!0,m.result+=e.repeat(`
14`,Z?1+H:H)):D?(D=!1,m.result+=e.repeat(`
15`,H+1)):H===0?Z&&(m.result+=" "):m.result+=e.repeat(`
16`,H):m.result+=e.repeat(`
17`,Z?1+H:H),Z=!0,nt=!0,H=0;const V=m.position;for(;!b(N)&&N!==0;)N=m.input.charCodeAt(++m.position);dt(m,V,m.position,!1)}return!0}p(Et,"readBlockScalar");function ue(m,R){const K=m.tag,st=m.anchor,Z=[];let nt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&U(m,m.anchor,Z);let S=m.input.charCodeAt(m.position);for(;S!==0&&(m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,A(m,"tab characters must not be used in indentation")),S===45);){const H=m.input.charCodeAt(m.position+1);if(!T(H))break;if(nt=!0,m.position++,ot(m,!0,-1)&&m.lineIndent<=R){Z.push(null),S=m.input.charCodeAt(m.position);continue}const D=m.line;if(Ee(m,R,n,!1,!0),Z.push(m.result),ot(m,!0,-1),S=m.input.charCodeAt(m.position),(m.line===D||m.lineIndent>R)&&S!==0)A(m,"bad indentation of a sequence entry");else if(m.lineIndent<R)break}return nt?(m.tag=K,m.anchor=st,m.kind="sequence",m.result=Z,!0):!1}p(ue,"readBlockSequence");function xr(m,R,K){let st,Z,nt,S;const H=m.tag,D=m.anchor,$={},N=Object.create(null);let V=null,Q=null,lt=null,ht=!1,wt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&U(m,m.anchor,$);let bt=m.input.charCodeAt(m.position);for(;bt!==0;){!ht&&m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,A(m,"tab characters must not be used in indentation"));const Pt=m.input.charCodeAt(m.position+1),Xt=m.line;if((bt===63||bt===58)&&T(Pt))bt===63?(ht&&(_t(m,$,N,V,Q,null,Z,nt,S),V=Q=lt=null),wt=!0,ht=!0,st=!0):ht?(ht=!1,st=!0):A(m,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),m.position+=1,bt=Pt;else{if(Z=m.line,nt=m.lineStart,S=m.position,!Ee(m,K,o,!1,!0))break;if(m.line===Xt){for(bt=m.input.charCodeAt(m.position);w(bt);)bt=m.input.charCodeAt(++m.position);if(bt===58)bt=m.input.charCodeAt(++m.position),T(bt)||A(m,"a whitespace character is expected after the key-value separator within a block mapping"),ht&&(_t(m,$,N,V,Q,null,Z,nt,S),V=Q=lt=null),wt=!0,ht=!1,st=!1,V=m.tag,Q=m.result;else if(wt)A(m,"can not read an implicit mapping pair; a colon is missed");else return m.tag=H,m.anchor=D,!0}else if(wt)A(m,"can not read a block mapping entry; a multiline key may not be an implicit key");else return m.tag=H,m.anchor=D,!0}if((m.line===Xt||m.lineIndent>R)&&(ht&&(Z=m.line,nt=m.lineStart,S=m.position),Ee(m,R,c,!0,st)&&(ht?Q=m.result:lt=m.result),ht||(_t(m,$,N,V,Q,lt,Z,nt,S),V=Q=lt=null),ot(m,!0,-1),bt=m.input.charCodeAt(m.position)),(m.line===Xt||m.lineIndent>R)&&bt!==0)A(m,"bad indentation of a mapping entry");else if(m.lineIndent<R)break}return ht&&_t(m,$,N,V,Q,null,Z,nt,S),wt&&(m.tag=H,m.anchor=D,m.kind="mapping",m.result=$),wt}p(xr,"readBlockMapping");function ar(m){let R=!1,K=!1,st,Z,nt=m.input.charCodeAt(m.position);if(nt!==33)return!1;m.tag!==null&&A(m,"duplication of a tag property"),nt=m.input.charCodeAt(++m.position),nt===60?(R=!0,nt=m.input.charCodeAt(++m.position)):nt===33?(K=!0,st="!!",nt=m.input.charCodeAt(++m.position)):st="!";let S=m.position;if(R){do nt=m.input.charCodeAt(++m.position);while(nt!==0&&nt!==62);m.position<m.length?(Z=m.input.slice(S,m.position),nt=m.input.charCodeAt(++m.position)):A(m,"unexpected end of the stream within a verbatim tag")}else{for(;nt!==0&&!T(nt);)nt===33&&(K?A(m,"tag suffix cannot contain exclamation marks"):(st=m.input.slice(S-1,m.position+1),C.test(st)||A(m,"named tag handle cannot contain such characters"),K=!0,S=m.position+1)),nt=m.input.charCodeAt(++m.position);Z=m.input.slice(S,m.position),g.test(Z)&&A(m,"tag suffix cannot contain flow indicator characters")}Z&&!x.test(Z)&&A(m,"tag name cannot contain such characters: "+Z);try{Z=decodeURIComponent(Z)}catch{A(m,"tag name is malformed: "+Z)}return R?m.tag=Z:s.call(m.tagMap,st)?m.tag=m.tagMap[st]+Z:st==="!"?m.tag="!"+Z:st==="!!"?m.tag="tag:yaml.org,2002:"+Z:A(m,'undeclared tag handle "'+st+'"'),!0}p(ar,"readTagProperty");function Pr(m){let R=m.input.charCodeAt(m.position);if(R!==38)return!1;m.anchor!==null&&A(m,"duplication of an anchor property"),R=m.input.charCodeAt(++m.position);const K=m.position;for(;R!==0&&!T(R)&&!_(R);)R=m.input.charCodeAt(++m.position);return m.position===K&&A(m,"name of an anchor node must contain at least one character"),m.anchor=m.input.slice(K,m.position),!0}p(Pr,"readAnchorProperty");function Rr(m){let R=m.input.charCodeAt(m.position);if(R!==42)return!1;R=m.input.charCodeAt(++m.position);const K=m.position;for(;R!==0&&!T(R)&&!_(R);)R=m.input.charCodeAt(++m.position);m.position===K&&A(m,"name of an alias node must contain at least one character");const st=m.input.slice(K,m.position);return s.call(m.anchorMap,st)||A(m,'unidentified alias "'+st+'"'),m.result=m.anchorMap[st],ot(m,!0,-1),!0}p(Rr,"readAlias");function ei(m,R,K,st){const Z=ct(m);return X(m),it(m,R),m.tag=null,m.anchor=null,m.kind=null,m.result=null,xr(m,K,st)&&m.kind==="mapping"?(et(m),!0):(at(m),it(m,Z),!1)}p(ei,"tryReadBlockMappingFromProperty");function Ee(m,R,K,st,Z){let nt,S,H=1,D=!1,$=!1,N=null,V,Q,lt;m.depth>=m.maxDepth&&A(m,"nesting exceeded maxDepth ("+m.maxDepth+")"),m.depth+=1,m.listener!==null&&m.listener("open",m),m.tag=null,m.anchor=null,m.kind=null,m.result=null;const ht=nt=S=c===K||n===K;if(st&&ot(m,!0,-1)&&(D=!0,m.lineIndent>R?H=1:m.lineIndent===R?H=0:m.lineIndent<R&&(H=-1)),H===1)for(;;){const wt=m.input.charCodeAt(m.position),bt=ct(m);if(D&&(wt===33&&m.tag!==null||wt===38&&m.anchor!==null)||!ar(m)&&!Pr(m))break;N===null&&(N=bt),ot(m,!0,-1)?(D=!0,S=ht,m.lineIndent>R?H=1:m.lineIndent===R?H=0:m.lineIndent<R&&(H=-1)):S=!1}if(S&&(S=D||Z),H===1||c===K)if(a===K||o===K?Q=R:Q=R+1,lt=m.position-m.lineStart,H===1)if(S&&(ue(m,lt)||xr(m,lt,Q))||G(m,Q))$=!0;else{const wt=m.input.charCodeAt(m.position);N!==null&&ht&&!S&&wt!==124&&wt!==62&&ei(m,N,N.position-N.lineStart,Q)||nt&&Et(m,Q)||Nt(m,Q)||zt(m,Q)?$=!0:Rr(m)?($=!0,(m.tag!==null||m.anchor!==null)&&A(m,"alias node should not have any properties")):Dt(m,Q,a===K)&&($=!0,m.tag===null&&(m.tag="?")),m.anchor!==null&&U(m,m.anchor,m.result)}else H===0&&($=S&&ue(m,lt));if(m.tag===null)m.anchor!==null&&U(m,m.anchor,m.result);else if(m.tag==="?"){m.result!==null&&m.kind!=="scalar"&&A(m,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+m.kind+'"');for(let wt=0,bt=m.implicitTypes.length;wt<bt;wt+=1)if(V=m.implicitTypes[wt],V.resolve(m.result)){m.result=V.construct(m.result),m.tag=V.tag,m.anchor!==null&&U(m,m.anchor,m.result);break}}else if(m.tag!=="!"){if(s.call(m.typeMap[m.kind||"fallback"],m.tag))V=m.typeMap[m.kind||"fallback"][m.tag];else{V=null;const wt=m.typeMap.multi[m.kind||"fallback"];for(let bt=0,Pt=wt.length;bt<Pt;bt+=1)if(m.tag.slice(0,wt[bt].tag.length)===wt[bt].tag){V=wt[bt];break}}V||A(m,"unknown tag !<"+m.tag+">"),m.result!==null&&V.kind!==m.kind&&A(m,"unacceptable node kind for !<"+m.tag+'> tag; it should be "'+V.kind+'", not "'+m.kind+'"'),V.resolve(m.result,m.tag)?(m.result=V.construct(m.result,m.tag),m.anchor!==null&&U(m,m.anchor,m.result)):A(m,"cannot resolve a node with !<"+m.tag+"> explicit tag")}return m.listener!==null&&m.listener("close",m),m.depth-=1,m.tag!==null||m.anchor!==null||$}p(Ee,"composeNode");function ri(m){const R=m.position;let K=!1,st;for(m.version=null,m.checkLineBreaks=m.legacy,m.tagMap=Object.create(null),m.anchorMap=Object.create(null);(st=m.input.charCodeAt(m.position))!==0&&(ot(m,!0,-1),st=m.input.charCodeAt(m.position),!(m.lineIndent>0||st!==37));){K=!0,st=m.input.charCodeAt(++m.position);let Z=m.position;for(;st!==0&&!T(st);)st=m.input.charCodeAt(++m.position);const nt=m.input.slice(Z,m.position),S=[];for(nt.length<1&&A(m,"directive name must not be less than one character in length");st!==0;){for(;w(st);)st=m.input.charCodeAt(++m.position);if(st===35){do st=m.input.charCodeAt(++m.position);while(st!==0&&!b(st));break}if(b(st))break;for(Z=m.position;st!==0&&!T(st);)st=m.input.charCodeAt(++m.position);S.push(m.input.slice(Z,m.position))}st!==0&&qt(m),s.call(xt,nt)?xt[nt](m,nt,S):j(m,'unknown document directive "'+nt+'"')}if(ot(m,!0,-1),m.lineIndent===0&&m.input.charCodeAt(m.position)===45&&m.input.charCodeAt(m.position+1)===45&&m.input.charCodeAt(m.position+2)===45?(m.position+=3,ot(m,!0,-1)):K&&A(m,"directives end mark is expected"),Ee(m,m.lineIndent-1,c,!1,!0),ot(m,!0,-1),m.checkLineBreaks&&f.test(m.input.slice(R,m.position))&&j(m,"non-ASCII line breaks are interpreted as content"),m.documents.push(m.result),m.position===m.lineStart&&pt(m)){m.input.charCodeAt(m.position)===46&&(m.position+=3,ot(m,!0,-1));return}m.position<m.length-1&&A(m,"end of the stream or a document separator is expected")}p(ri,"readDocument");function br(m,R){m=String(m),R=R||{},m.length!==0&&(m.charCodeAt(m.length-1)!==10&&m.charCodeAt(m.length-1)!==13&&(m+=`
18`),m.charCodeAt(0)===65279&&(m=m.slice(1)));const K=new E(m,R),st=m.indexOf("\0");for(st!==-1&&(K.position=st,A(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)ri(K);return K.documents}p(br,"loadDocuments");function qr(m,R,K){R!==null&&typeof R=="object"&&typeof K>"u"&&(K=R,R=null);const st=br(m,K);if(typeof R!="function")return st;for(let Z=0,nt=st.length;Z<nt;Z+=1)R(st[Z])}p(qr,"loadAll2");function ii(m,R){const K=br(m,R);if(K.length!==0){if(K.length===1)return K[0];throw new t("expected a single document in the stream, but found more")}}return p(ii,"load2"),Wa.loadAll=qr,Wa.load=ii,Wa}p(Wf,"requireLoader");var el={},Fu;function zf(){if(Fu)return el;Fu=1;const e=ys(),t=Cs(),r=Uo(),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=65279,o=9,n=10,c=13,l=32,h=33,u=34,d=35,f=37,g=38,C=39,x=42,y=44,b=45,w=58,T=61,_=62,B=63,v=64,F=91,q=93,I=96,P=123,tt=124,Y=125,E={};E[0]="\\0",E[7]="\\a",E[8]="\\b",E[9]="\\t",E[10]="\\n",E[11]="\\v",E[12]="\\f",E[13]="\\r",E[27]="\\e",E[34]='\\"',E[92]="\\\\",E[133]="\\N",E[160]="\\_",E[8232]="\\L",E[8233]="\\P";const M=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],A=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function j(S,H){if(H===null)return{};const D={},$=Object.keys(H);for(let N=0,V=$.length;N<V;N+=1){let Q=$[N],lt=String(H[Q]);Q.slice(0,2)==="!!"&&(Q="tag:yaml.org,2002:"+Q.slice(2));const ht=S.compiledTypeMap.fallback[Q];ht&&s.call(ht.styleAliases,lt)&&(lt=ht.styleAliases[lt]),D[Q]=lt}return D}p(j,"compileStyleMap");function U(S){let H,D;const $=S.toString(16).toUpperCase();if(S<=255)H="x",D=2;else if(S<=65535)H="u",D=4;else if(S<=4294967295)H="U",D=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+H+e.repeat("0",D-$.length)+$}p(U,"encodeHex");const X=1,et=2;function at(S){this.schema=S.schema||r,this.indent=Math.max(1,S.indent||2),this.noArrayIndent=S.noArrayIndent||!1,this.skipInvalid=S.skipInvalid||!1,this.flowLevel=e.isNothing(S.flowLevel)?-1:S.flowLevel,this.styleMap=j(this.schema,S.styles||null),this.sortKeys=S.sortKeys||!1,this.lineWidth=S.lineWidth||80,this.noRefs=S.noRefs||!1,this.noCompatMode=S.noCompatMode||!1,this.condenseFlow=S.condenseFlow||!1,this.quotingType=S.quotingType==='"'?et:X,this.forceQuotes=S.forceQuotes||!1,this.replacer=typeof S.replacer=="function"?S.replacer:null,this.impl
18icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(at,"State");function ct(S,H){const D=e.repeat(" ",H);let $=0,N="";const V=S.length;for(;$<V;){let Q;const lt=S.indexOf(`
19`,$);lt===-1?(Q=S.slice($),$=V):(Q=S.slice($,lt+1),$=lt+1),Q.length&&Q!==`
20`&&(N+=D),N+=Q}return N}p(ct,"indentString");function it(S,H){return`
21`+e.repeat(" ",S.indent*H)}p(it,"generateNextLine");function xt(S,H){for(let D=0,$=S.implicitTypes.length;D<$;D+=1)if(S.implicitTypes[D].resolve(H))return!0;return!1}p(xt,"testImplicitResolving");function dt(S){return S===l||S===o}p(dt,"isWhitespace");function Ft(S){return S>=32&&S<=126||S>=161&&S<=55295&&S!==8232&&S!==8233||S>=57344&&S<=65533&&S!==a||S>=65536&&S<=1114111}p(Ft,"isPrintable");function _t(S){return Ft(S)&&S!==a&&S!==c&&S!==n}p(_t,"isNsCharOrWhitespace");function qt(S,H,D){const $=_t(S),N=$&&!dt(S);return(D?$:$&&S!==y&&S!==F&&S!==q&&S!==P&&S!==Y)&&S!==d&&!(H===w&&!N)||_t(H)&&!dt(H)&&S===d||H===w&&N}p(qt,"isPlainSafe");function ot(S){return Ft(S)&&S!==a&&!dt(S)&&S!==b&&S!==B&&S!==w&&S!==y&&S!==F&&S!==q&&S!==P&&S!==Y&&S!==d&&S!==g&&S!==x&&S!==h&&S!==tt&&S!==T&&S!==_&&S!==C&&S!==u&&S!==f&&S!==v&&S!==I}p(ot,"isPlainSafeFirst");function pt(S){return!dt(S)&&S!==w}p(pt,"isPlainSafeLast");function Bt(S,H){const D=S.charCodeAt(H);let $;return D>=55296&&D<=56319&&H+1<S.length&&($=S.charCodeAt(H+1),$>=56320&&$<=57343)?(D-55296)*1024+$-56320+65536:D}p(Bt,"codePointAt");function Dt(S){return/^\n* /.test(S)}p(Dt,"needIndentIndicator");const Nt=1,zt=2,G=3,Et=4,ue=5;function xr(S,H,D,$,N,V,Q,lt){let ht,wt=0,bt=null,Pt=!1,Xt=!1;const si=$!==-1;let Me=-1,ai=ot(Bt(S,0))&&pt(Bt(S,S.length-1));if(H||Q)for(ht=0;ht<S.length;wt>=65536?ht+=2:ht++){if(wt=Bt(S,ht),!Ft(wt))return ue;ai=ai&&qt(wt,bt,lt),bt=wt}else{for(ht=0;ht<S.length;wt>=65536?ht+=2:ht++){if(wt=Bt(S,ht),wt===n)Pt=!0,si&&(Xt=Xt||ht-Me-1>$&&S[Me+1]!==" ",Me=ht);else if(!Ft(wt))return ue;ai=ai&&qt(wt,bt,lt),bt=wt}Xt=Xt||si&&ht-Me-1>$&&S[Me+1]!==" "}return!Pt&&!Xt?ai&&!Q&&!N(S)?Nt:V===et?ue:zt:D>9&&Dt(S)?ue:Q?V===et?ue:zt:Xt?Et:G}p(xr,"chooseScalarStyle");function ar(S,H,D,$,N){S.dump=function(){if(H.length===0)return S.quotingType===et?'""':"''";if(!S.noCompatMode&&(M.indexOf(H)!==-1||A.test(H)))return S.quotingType===et?'"'+H+'"':"'"+H+"'";const V=S.indent*Math.max(1,D),Q=S.lineWidth===-1?-1:Math.max(Math.min(S.lineWidth,40),S.lineWidth-V),lt=$||S.flowLevel>-1&&D>=S.flowLevel;function ht(wt){return xt(S,wt)}switch(p(ht,"testAmbiguity"),xr(H,lt,S.indent,Q,ht,S.quotingType,S.forceQuotes&&!$,N)){case Nt:return H;case zt:return"'"+H.replace(/'/g,"''")+"'";case G:return"|"+Pr(H,S.indent)+Rr(ct(H,V));case Et:return">"+Pr(H,S.indent)+Rr(ct(ei(H,Q),V));case ue:return'"'+ri(H)+'"';default:throw new t("impossible error: invalid scalar style")}}()}p(ar,"writeScalar");function Pr(S,H){const D=Dt(S)?String(H):"",$=S[S.length-1]===`
22`,V=$&&(S[S.length-2]===`
23`||S===`
24`)?"+":$?"":"-";return D+V+`
25`}p(Pr,"blockHeader");function Rr(S){return S[S.length-1]===`
26`?S.slice(0,-1):S}p(Rr,"dropEndingNewline");function ei(S,H){const D=/(\n+)([^\n]*)/g;let $=function(){let lt=S.indexOf(`
27`);return lt=lt!==-1?lt:S.length,D.lastIndex=lt,Ee(S.slice(0,lt),H)}(),N=S[0]===`
28`||S[0]===" ",V,Q;for(;Q=D.exec(S);){const lt=Q[1],ht=Q[2];V=ht[0]===" ",$+=lt+(!N&&!V&&ht!==""?`
29`:"")+Ee(ht,H),N=V}return $}p(ei,"foldString");function Ee(S,H){if(S===""||S[0]===" ")return S;const D=/ [^ ]/g;let $,N=0,V,Q=0,lt=0,ht="";for(;$=D.exec(S);)lt=$.index,lt-N>H&&(V=Q>N?Q:lt,ht+=`
30`+S.slice(N,V),N=V+1),Q=lt;return ht+=`
31`,S.length-N>H&&Q>N?ht+=S.slice(N,Q)+`
32`+S.slice(Q+1):ht+=S.slice(N),ht.slice(1)}p(Ee,"foldLine");function ri(S){let H="",D=0;for(let $=0;$<S.length;D>=65536?$+=2:$++){D=Bt(S,$);const N=E[D];!N&&Ft(D)?(H+=S[$],D>=65536&&(H+=S[$+1])):H+=N||U(D)}return H}p(ri,"escapeString");function br(S,H,D){let $="";const N=S.tag;for(let V=0,Q=D.length;V<Q;V+=1){let lt=D[V];S.replacer&&(lt=S.replacer.call(D,String(V),lt)),(K(S,H,lt,!1,!1)||typeof lt>"u"&&K(S,H,null,!1,!1))&&($!==""&&($+=","+(S.condenseFlow?"":" ")),$+=S.dump)}S.tag=N,S.dump="["+$+"]"}p(br,"writeFlowSequence");function qr(S,H,D,$){let N="";const V=S.tag;
32for(let Q=0,lt=D.length;Q<lt;Q+=1){let ht=D[Q];S.replacer&&(ht=S.replacer.call(D,String(Q),ht)),(K(S,H+1,ht,!0,!0,!1,!0)||typeof ht>"u"&&K(S,H+1,null,!0,!0,!1,!0))&&((!$||N!=="")&&(N+=it(S,H)),S.dump&&n===S.dump.charCodeAt(0)?N+="-":N+="- ",N+=S.dump)}S.tag=V,S.dump=N||"[]"}p(qr,"writeBlockSequence");function ii(S,H,D){let $="";const N=S.tag,V=Object.keys(D);for(let Q=0,lt=V.length;Q<lt;Q+=1){let ht="";$!==""&&(ht+=", "),S.condenseFlow&&(ht+='"');const wt=V[Q];let bt=D[wt];S.replacer&&(bt=S.replacer.call(D,wt,bt)),K(S,H,wt,!1,!1)&&(S.dump.length>1024&&(ht+="? "),ht+=S.dump+(S.condenseFlow?'"':"")+":"+(S.condenseFlow?"":" "),K(S,H,bt,!1,!1)&&(ht+=S.dump,$+=ht))}S.tag=N,S.dump="{"+$+"}"}p(ii,"writeFlowMapping");function m(S,H,D,$){let N="";const V=S.tag,Q=Object.keys(D);if(S.sortKeys===!0)Q.sort();else if(typeof S.sortKeys=="function")Q.sort(S.sortKeys);else if(S.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let lt=0,ht=Q.length;lt<ht;lt+=1){let wt="";(!$||N!=="")&&(wt+=it(S,H));const bt=Q[lt];let Pt=D[bt];if(S.replacer&&(Pt=S.replacer.call(D,bt,Pt)),!K(S,H+1,bt,!0,!0,!0))continue;const Xt=S.tag!==null&&S.tag!=="?"||S.dump&&S.dump.length>1024;Xt&&(S.dump&&n===S.dump.charCodeAt(0)?wt+="?":wt+="? "),wt+=S.dump,Xt&&(wt+=it(S,H)),K(S,H+1,Pt,!0,Xt)&&(S.dump&&n===S.dump.charCodeAt(0)?wt+=":":wt+=": ",wt+=S.dump,N+=wt)}S.tag=V,S.dump=N||"{}"}p(m,"writeBlockMapping");function R(S,H,D){const $=D?S.explicitTypes:S.implicitTypes;for(let N=0,V=$.length;N<V;N+=1){const Q=$[N];if((Q.instanceOf||Q.predicate)&&(!Q.instanceOf||typeof H=="object"&&H instanceof Q.instanceOf)&&(!Q.predicate||Q.predicate(H))){if(D?Q.multi&&Q.representName?S.tag=Q.representName(H):S.tag=Q.tag:S.tag="?",Q.represent){const lt=S.styleMap[Q.tag]||Q.defaultStyle;let ht;if(i.call(Q.represent)==="[object Function]")ht=Q.represent(H,lt);else if(s.call(Q.represent,lt))ht=Q.represent[lt](H,lt);else throw new t("!<"+Q.tag+'> tag resolver accepts not "'+lt+'" style');S.dump=ht}return!0}}return!1}p(R,"detectType");function K(S,H,D,$,N,V,Q){S.tag=null,S.dump=D,R(S,D,!1)||R(S,D,!0);const lt=i.call(S.dump),ht=$;$&&($=S.flowLevel<0||S.flowLevel>H);const wt=lt==="[object Object]"||lt==="[object Array]";let bt,Pt;if(wt&&(bt=S.duplicates.indexOf(D),Pt=bt!==-1),(S.tag!==null&&S.tag!=="?"||Pt||S.indent!==2&&H>0)&&(N=!1),Pt&&S.usedDuplicates[bt])S.dump="*ref_"+bt;else{if(wt&&Pt&&!S.usedDuplicates[bt]&&(S.usedDuplicates[bt]=!0),lt==="[object Object]")$&&Object.keys(S.dump).length!==0?(m(S,H,S.dump,N),Pt&&(S.dump="&ref_"+bt+S.dump)):(ii(S,H,S.dump),Pt&&(S.dump="&ref_"+bt+" "+S.dump));else if(lt==="[object Array]")$&&S.dump.length!==0?(S.noArrayIndent&&!Q&&H>0?qr(S,H-1,S.dump,N):qr(S,H,S.dump,N),Pt&&(S.dump="&ref_"+bt+S.dump)):(br(S,H,S.dump),Pt&&(S.dump="&ref_"+bt+" "+S.dump));else if(lt==="[object String]")S.tag!=="?"&&ar(S,S.dump,H,V,ht);else{if(lt==="[object Undefined]")return!1;if(S.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+lt)}if(S.tag!==null&&S.tag!=="?"){let Xt=encodeURI(S.tag[0]==="!"?S.tag.slice(1):S.tag).replace(/!/g,"%21");S.tag[0]==="!"?Xt="!"+Xt:Xt.slice(0,18)==="tag:yaml.org,2002:"?Xt="!!"+Xt.slice(18):Xt="!<"+Xt+">",S.dump=Xt+" "+S.dump}}return!0}p(K,"writeNode");function st(S,H){const D=[],$=[];Z(S,D,$);const N=$.length;for(let V=0;V<N;V+=1)H.duplicates.push(D[$[V]]);H.usedDuplicates=new Array(N)}p(st,"getDuplicateReferences");function Z(S,H,D){if(S!==null&&typeof S=="object"){const $=H.indexOf(S);if($!==-1)D.indexOf($)===-1&&D.push($);else if(H.push(S),Array.isArray(S))for(let N=0,V=S.length;N<V;N+=1)Z(S[N],H,D);else{const N=Object.keys(S);for(let V=0,Q=N.length;V<Q;V+=1)Z(S[N[V]],H,D)}}}p(Z,"inspectNode");function nt(S,H){H=H||{};const D=new at(H);D.noRefs||st(S,D);let $=S;return D.replacer&&($=D.replacer.call({"":$},"",$)),K(D,0,$,!0,!0)?D.dump+`
33`:""}return p(nt,"dump2"),el.dump=nt,el}p(zf,"requireDumper");var Au;function Hf(){if(Au)return be;Au=1;const e=Wf(),t=zf();function r(i,s){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return p(r,"renamed"),be.Type=_e(),be.Schema=ph(),be.FAILSAFE_SCHEMA=xh(),be.JSON_SCHEMA=Sh(),be.CORE_SCHEMA=_h(),be.DEFAULT_SCHEMA=Uo(),be.load=e.load,be.loadAll=e.loadAll,be.dump=t.dump,be.YAMLException=Cs(),be.types={binary:Lh(),float:Th(),map:Ch(),null:bh(),pairs:Ah(),set:Eh(),timestamp:Bh(),bool:kh(),int:wh(),merge:vh(),omap:Fh(),seq:yh(),str:mh()}
vendor: 7,367 bytes, line 33
33,be.safeLoad=r("safeLoad","load"),be.safeLoadAll=r("safeLoadAll","loadAll"),be.safeDump=r("safeDump","dump"),be}p(Hf,"requireJsYaml");var JC=Hf(),tx=qf(JC),{Type:c3,Schema:u3,FAILSAFE_SCHEMA:d3,JSON_SCHEMA:ex,CORE_SCHEMA:f3,DEFAULT_SCHEMA:g3,load:rx,loadAll:p3,dump:m3,YAMLException:y3,types:C3,safeLoad:x3,safeLoadAll:b3,safeDump:k3}=tx,ix=p((e,t)=>{const{theme:r,themeVariables:i}=t,{useGradient:s,gradientStart:a,gradientStop:o}=i??{},n=e.attr("id"),c=r!=null&&r.includes("dark")?"#FFFFFF":"#000000",l=p((u,d,f)=>e.append("defs").append("filter").attr("id",u).attr("height",d).attr("width",d).append("feDropShadow").attr("dx",f).attr("dy",f).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",c),"dropShadow");if(l(`${n}-drop-shadow`,"130%","4"),l(`${n}-drop-shadow-small`,"150%","2"),!s)return;const h=e.append("linearGradient").attr("id",`${n}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)},"insertLookDefs"),sx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(sx,function(){var r=1e3,i=6e4,s=36e5,a="millisecond",o="second",n="minute",c="hour",l="day",h="week",u="month",d="quarter",f="year",g="date",C="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var M=["th","st","nd","rd"],A=E%100;return"["+E+(M[(A-20)%10]||M[A]||M[0])+"]"}},w=function(E,M,A){var j=String(E);return!j||j.length>=M?E:""+Array(M+1-j.length).join(A)+E},T={s:w,z:function(E){var M=-E.utcOffset(),A=Math.abs(M),j=Math.floor(A/60),U=A%60;return(M<=0?"+":"-")+w(j,2,"0")+":"+w(U,2,"0")},m:function E(M,A){if(M.date()<A.date())return-E(A,M);var j=12*(A.year()-M.year())+(A.month()-M.month()),U=M.clone().add(j,u),X=A-U<0,et=M.clone().add(j+(X?-1:1),u);return+(-(j+(A-U)/(X?U-et:et-U))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:u,y:f,w:h,d:l,D:g,h:c,m:n,s:o,ms:a,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},_="en",B={};B[_]=b;var v="$isDayjsObject",F=function(E){return E instanceof tt||!(!E||!E[v])},q=function E(M,A,j){var U;if(!M)return _;if(typeof M=="string"){var X=M.toLowerCase();B[X]&&(U=X),A&&(B[X]=A,U=X);var et=M.split("-");if(!U&&et.length>1)return E(et[0])}else{var at=M.name;B[at]=M,U=at}return!j&&U&&(_=U),U||!j&&_},I=function(E,M){if(F(E))return E.clone();var A=typeof M=="object"?M:{};return A.date=E,A.args=arguments,new tt(A)},P=T;P.l=q,P.i=F,P.w=function(E,M){return I(E,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var tt=function(){function E(A){this.$L=q(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[v]=!0}var M=E.prototype;return M.parse=function(A){this.$d=function(j){var U=j.date,X=j.utc;if(U===null)return new Date(NaN);if(P.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var et=U.match(x);if(et){var at=et[2]-1||0,ct=(et[7]||"0").substring(0,3);return X?new Date(Date.UTC(et[1],at,et[3]||1,et[4]||0,et[5]||0,et[6]||0,ct)):new Date(et[1],at,et[3]||1,et[4]||0,et[5]||0,et[6]||0,ct)}}return new Date(U)}(A),this.init()},M.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},M.$utils=function(){return P},M.isValid=function(){return this.$d.toString()!==C},M.isSame=function(A,j){var U=I(A);return this.startOf(j)<=U&&U<=this.endOf(j)},M.isAfter=function(A,j){return I(A)<this.startOf(j)},M.isBefore=function(A,j){return this.endOf(j)<I(A)},M.$g=function(A,j,U){return P.u(A)?this[j]:this.set(U,A)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(A,j){var U=this,X=!!P.u(j)||j,et=P.p(A),at=function(ot,pt){var Bt=P.w(U.$u?Date.UTC(U.$y,pt,ot):new Date(U.$y,pt,ot),U);return X?Bt:Bt.endOf(l)},ct=function(ot,pt){return P.w(U.toDate()[ot].apply(U.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(pt)),U)},it=this.$W,xt=this.$M,dt=this.$D,Ft="set"+(this.$u?"UTC":"");switch(et){case f:return X?at(1,0):at(31,11);case u:return X?at(1,xt):at(0,xt+1);case h:var _t=this.$locale().weekStart||0,qt=(it<_t?it+7:it)-_t;return at(X?dt-qt:dt+(6-qt),xt);case l:case g:return ct(Ft+"Hours",0);case c:return ct(Ft+"Minutes",1);case n:return ct(Ft+"Seconds",2);case o:return ct(Ft+"Milliseconds",3);default:return this.clone()}},M.endOf=function(A){return this.startOf(A,!1)},M.$set=function(A,j){var U,X=P.p(A),et="set"+(this.$u?"UTC":""),at=(U={},U[l]=et+"Date",U[g]=et+"Date",U[u]=et+"Month",U[f]=et+"FullYear",U[c]=et+"Hours",U[n]=et+"Minutes",U[o]=et+"Seconds",U[a]=et+"Milliseconds",U)[X],ct=X===l?this.$D+(j-this.$W):j;if(X===u||X===f){var it=this.clone().set(g,1);it.$d[at](ct),it.init(),this.$d=it.set(g,Math.min(this.$D,it.daysInMonth())).$d}else at&&this.$d[at](ct);return this.init(),this},M.set=function(A,j){return this.clone().$set(A,j)},M.get=function(A){return this[P.p(A)]()},M.add=function(A,j){var U,X=this;A=Number(A);var et=P.p(j),at=function(xt){var dt=I(X);return P.w(dt.date(dt.date()+Math.round(xt*A)),X)};if(et===u)return this.set(u,this.$M+A);if(et===f)return this.set(f,this.$y+A);if(et===l)return at(1);if(et===h)return at(7);var ct=(U={},U[n]=i,U[c]=s,U[o]=r,U)[et]||1,it=this.$d.getTime()+A*ct;return P.w(it,this)},M.subtract=function(A,j){return this.add(-1*A,j)},M.format=function(A){var j=this,U=this.$locale();if(!this.isValid())return U.invalidDate||C;var X=A||"YYYY-MM-DDTHH:mm:ssZ",et=P.z(this),at=this.$H,ct=this.$m,it=this.$M,xt=U.weekdays,dt=U.months,Ft=U.meridiem,_t=function(pt,Bt,Dt,Nt){return pt&&(pt[Bt]||pt(j,X))||Dt[Bt].slice(0,Nt)},qt=function(pt){return P.s(at%12||12,pt,"0")},ot=Ft||function(pt,Bt,Dt){var Nt=pt<12?"AM":"PM";return Dt?Nt.toLowerCase():Nt};return X.replace(y,function(pt,Bt){return Bt||function(Dt){switch(Dt){case"YY":return String(j.$y).slice(-2);case"YYYY":return P.s(j.$y,4,"0");case"M":return it+1;case"MM":return P.s(it+1,2,"0");case"MMM":return _t(U.monthsShort,it,dt,3);case"MMMM":return _t(dt,it);case"D":return j.$D;case"DD":return P.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return _t(U.weekdaysMin,j.$W,xt,2);case"ddd":return _t(U.weekdaysShort,j.$W,xt,3);case"dddd":return xt[j.$W];case"H":return String(at);case"HH":return P.s(at,2,"0");case"h":return qt(1);case"hh":return qt(2);case"a":return ot(at,ct,!0);case"A":return ot(at,ct,!1);case"m":return String(ct);case"mm":return P.s(ct,2,"0");case"s":return String(j.$s);case"ss":return P.s(j.$s,2,"0");case"SSS":return P.s(j.$ms,3,"0");case"Z":return et}return null}(pt)||et.replace(":","")})}
33,M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(A,j,U){var X,et=this,at=P.p(j),ct=I(A),it=(ct.utcOffset()-this.utcOffset())*i,xt=this-ct,dt=function(){return P.m(et,ct)};switch(at){case f:X=dt()/12;break;case u:X=dt();break;case d:X=dt()/3;break;case h:X=(xt-it)/6048e5;break;case l:X=(xt-it)/864e5;break;case c:X=xt/s;break;case n:X=xt/i;break;case o:X=xt/r;break;default:X=xt}return U?X:P.a(X)},M.daysInMonth=function(){return this.endOf(u).$D},M.$locale=function(){return B[this.$L]},M.locale=function(A,j){if(!A)return this.$L;var U=this.clone(),X=q(A,j,!0);return X&&(U.$L=X),U},M.clone=function(){return P.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},E}(),Y=tt.prototype;return I.prototype=Y,[["$ms",a],["$s",o],["$m",n],["$H",c],["$W",l],["$M",u],["$y",f],["$D",g]].forEach(function(E){Y[E[1]]=function(M){return this.$g(M,E[0],E[1])}}),I.extend=function(E,M){return E.$i||(E(M,tt,I),E.$i=!0),I},I.locale=q,I.isDayjs=F,I.unix=function(E){return I(1e3*E)},I.en=B[_],I.Ls=B,I.p={},I})})(jf);var ax=jf.exports;const ox=Mh(ax);var wr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},J={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},$h=p(function(e="fatal"){let t=wr.fatal;typeof e=="string"?e.toLowerCase()in wr&&(t=wr[e]):typeof e=="number"&&(t=e),J.trace=()=>{},J.debug=()=>{},J.info=()=>{},J.warn=()=>{},J.error=()=>{},J.fatal=()=>{},t<=wr.fatal&&(J.fatal=console.error?console.error.bind(console,Ne("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ne("FATAL"))),t<=wr.error&&(J.error=console.error?console.error.bind(console,Ne("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ne("ERROR"))),t<=wr.warn&&(J.warn=console.warn?console.warn.bind(console,Ne("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ne("WARN"))),t<=wr.info&&(J.info=console.info?console.info.bind(console,Ne("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ne("INFO"))),t<=wr.debug&&(J.debug=console.debug?console.debug.bind(console,Ne("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ne("DEBUG"))),t<=wr.trace&&(J.trace=console.debug?console.debug.bind(console,Ne("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ne("TRACE")))},"setLogLevel"),Ne=p(e=>`%c${ox().format("ss.SSS")} : ${e} : `,"format");const Ja={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,a=2*r-s;switch(i){case"r":return Ja.hue2rgb(a,s,e+1/3)*255;case"g":return Ja.hue2rgb(a,s,e)*255;case"b":return Ja.hue2rgb(a,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),a=Math.min(e,t,r),o=(s+a)/2;if(i==="l")return o*100;if(s===a)return 0;const n=s-a,c=o>.5?n/(2-s-a):n/(s+a);if(i==="s")return c*100;switch(s){case e:return((t-r)/n+(t<r?6:0))*60;case t:return((r-e)/n+2)*60;case r:return((e-t)/n+4)*60;default:return-1}}},nx={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},lx={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Mt={channel:Ja,lang:nx,unit:lx},jr={};for(let e=0;e<=255;e++)jr[e]=Mt.unit.dec2hex(e);const ke={ALL:0,RGB:1,HSL:2};class hx{constructor(){this.type=ke.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ke.ALL}is(t){return this.type===t}}class cx{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new hx}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ke.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=Mt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Mt.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=Mt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=Mt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Mt.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=Mt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ke.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"s"))}
33get l(){const t=this.data,r=t.l;return!this.type.is(ke.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ke.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ke.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ke.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ke.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ke.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ke.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Go=new cx({r:0,g:0,b:0,a:0},"transparent"),Ni={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Ni.re);if(!t)return;const r=t[1],i=parseInt(r,16),s=r.length,a=s%4===0,o=s>4,n=o?1:17,c=o?8:4,l=a?0:-1,h=o?255:15;return Go.set({r:(i>>c*(l+3)&h)*n,g:(i>>c*(l+2)&h)*n,b:(i>>c*(l+1)&h)*n,a:a?(i&h)*n/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`#${jr[Math.round(t)]}${jr[Math.round(r)]}${jr[Math.round(i)]}${jr[Math.round(s*255)]}`:`#${jr[Math.round(t)]}${jr[Math.round(r)]}${jr[Math.round(i)]}`}},ci={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(ci.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Mt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Mt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Mt.channel.clamp.h(parseFloat(r)*360)}}return Mt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(ci.re);if(!r)return;const[,i,s,a,o,n]=r;return Go.set({h:ci._hue2deg(i),s:Mt.channel.clamp.s(parseFloat(s)),l:Mt.channel.clamp.l(parseFloat(a)),a:o?Mt.channel.clamp.a(n?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:s}=e;return s<1?`hsla(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%, ${s})`:`hsl(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%)`}},Us={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
33almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Us.colors[e];if(t)return Ni.parse(t)},stringify:e=>{const t=Ni.stringify(e);for(const r in Us.colors)if(Us.colors[r]===t)return r}},Rs={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Rs.re);if(!r)return;const[,i,s,a,o,n,c,l,h]=r;return Go.set({r:Mt.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:Mt.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:Mt.channel.clamp.b(c?parseFloat(n)*2.55:parseFloat(n)),a:l?Mt.channel.clamp.a(h?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`rgba(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)}, ${Mt.lang.round(s)})`:`rgb(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)})`}},gr={format:{keyword:Us,hex:Ni,rgb:Rs,rgba:Rs,hsl:ci,hsla:ci},parse:e=>{if(typeof e!="string")return e;const t=Ni.parse(e)||Rs.parse(e)||ci.parse(e)||Us.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ke.HSL)||e.data.r===void 0?ci.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Rs.stringify(e):Ni.stringify(e)},Yf=(e,t)=>{const r=gr.parse(e);for(const i in t)r[i]=Mt.channel.clamp[i](t[i]);return gr.stringify(r)},Xr=(e,t,r=0,i=1)=>{if(typeof e!="number")return Yf(e,{a:t});const s=Go.set({r:Mt.channel.clamp.r(e),g:Mt.channel.clamp.g(t),b:Mt.channel.clamp.b(r),a:Mt.channel.clamp.a(i)});return gr.stringify(s)},ux=e=>{const{r:t,g:r,b:i}=gr.parse(e),s=.2126*Mt.channel.toLinear(t)+.7152*Mt.channel.toLinear(r)+.0722*Mt.channel.toLinear(i);return Mt.lang.round(s)},dx=e=>ux(e)>=.5,Se=e=>!dx(e),Uf=(e,t,r)=>{const i=gr.parse(e),s=i[t],a=Mt.channel.clamp[t](s+r);return s!==a&&(i[t]=a),gr.stringify(i)},z=(e,t)=>Uf(e,"l",t),W=(e,t)=>Uf(e,"l",-t),k=(e,t)=>{const r=gr.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return Yf(e,i)},fx=(e,t,r=50)=>{const{r:i,g:s,b:a,a:o}=gr.parse(e),{r:n,g:c,b:l,a:h}=gr.parse(t),u=r/100,d=u*2-1,f=o-h,C=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,x=1-C,y=i*C+n*x,b=s*C+c*x,w=a*C+l*x,T=o*u+h*(1-u);return Xr(y,b,w,T)},O=(e,t=100)=>{const r=gr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,fx(r,e,t)};/*! @license DOMPurify 3.4.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.8/LICENSE */var rl,Eu;function Mu(){if(Eu)return rl;Eu=1;function e(D,$){($==null||$>D.length)&&($=D.length);for(var N=0,V=Array($);N<$;N++)V[N]=D[N];return V}function t(D){if(Array.isArray(D))return D}function r(D,$){var N=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(N!=null){var V,Q,lt,ht,wt=[],bt=!0,Pt=!1;try{if(lt=(N=N.call(D)).next,$!==0)for(;!(bt=(V=lt.call(N)).done)&&(wt.push(V.value),wt.length!==$);bt=!0);}catch(Xt){Pt=!0,Q=Xt}finally{try{if(!bt&&N.return!=null&&(ht=N.return(),Object(ht)!==ht))return}finally{if(Pt)throw Q}}return wt}}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(D,$){return t(D)||r(D,$)||a(D,$)||i()}
vendor: 6,279 bytes, line 34
34function a(D,$){if(D){if(typeof D=="string")return e(D,$);var N={}.toString.call(D).slice(8,-1);return N==="Object"&&D.constructor&&(N=D.constructor.name),N==="Map"||N==="Set"?Array.from(D):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?e(D,$):void 0}}const o=Object.entries,n=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let u=Object.freeze,d=Object.seal,f=Object.create,g=typeof Reflect<"u"&&Reflect,C=g.apply,x=g.construct;u||(u=function($){return $}),d||(d=function($){return $}),C||(C=function($,N){for(var V=arguments.length,Q=new Array(V>2?V-2:0),lt=2;lt<V;lt++)Q[lt-2]=arguments[lt];return $.apply(N,Q)}),x||(x=function($){for(var N=arguments.length,V=new Array(N>1?N-1:0),Q=1;Q<N;Q++)V[Q-1]=arguments[Q];return new $(...V)});const y=at(Array.prototype.forEach),b=at(Array.prototype.lastIndexOf),w=at(Array.prototype.pop),T=at(Array.prototype.push),_=at(Array.prototype.splice),B=Array.isArray,v=at(String.prototype.toLowerCase),F=at(String.prototype.toString),q=at(String.prototype.match),I=at(String.prototype.replace),P=at(String.prototype.indexOf),tt=at(String.prototype.trim),Y=at(Number.prototype.toString),E=at(Boolean.prototype.toString),M=typeof BigInt>"u"?null:at(BigInt.prototype.toString),A=typeof Symbol>"u"?null:at(Symbol.prototype.toString),j=at(Object.prototype.hasOwnProperty),U=at(Object.prototype.toString),X=at(RegExp.prototype.test),et=ct(TypeError);function at(D){return function($){$ instanceof RegExp&&($.lastIndex=0);for(var N=arguments.length,V=new Array(N>1?N-1:0),Q=1;Q<N;Q++)V[Q-1]=arguments[Q];return C(D,$,V)}}function ct(D){return function(){for(var $=arguments.length,N=new Array($),V=0;V<$;V++)N[V]=arguments[V];return x(D,N)}}function it(D,$){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;if(n&&n(D,null),!B($))return D;let V=$.length;for(;V--;){let Q=$[V];if(typeof Q=="string"){const lt=N(Q);lt!==Q&&(c($)||($[V]=lt),Q=lt)}D[Q]=!0}return D}function xt(D){for(let $=0;$<D.length;$++)j(D,$)||(D[$]=null);return D}function dt(D){const $=f(null);for(const V of o(D)){var N=s(V,2);const Q=N[0],lt=N[1];j(D,Q)&&(B(lt)?$[Q]=xt(lt):lt&&typeof lt=="object"&&lt.constructor===Object?$[Q]=dt(lt):$[Q]=lt)}return $}function Ft(D){switch(typeof D){case"string":return D;case"number":return Y(D);case"boolean":return E(D);case"bigint":return M?M(D):"0";case"symbol":return A?A(D):"Symbol()";case"undefined":return U(D);case"function":case"object":{if(D===null)return U(D);const $=D,N=_t($,"toString");if(typeof N=="function"){const V=N($);return typeof V=="string"?V:U(V)}return U(D)}default:return U(D)}}function _t(D,$){for(;D!==null;){const V=h(D,$);if(V){if(V.get)return at(V.get);if(typeof V.value=="function")return at(V.value)}D=l(D)}function N(){return null}return N}function qt(D){try{return X(D,""),!0}catch{return!1}}const ot=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pt=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bt=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Dt=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nt=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zt=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=u(["#text"]),Et=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
34spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ue=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xr=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ar=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pr=d(/{{[\w\W]*|^[\w\W]*}}/g),Rr=d(/<%[\w\W]*|^[\w\W]*%>/g),ei=d(/\${[\w\W]*/g),Ee=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ri=d(/^aria-[\-\w]+$/),br=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qr=d(/^(?:\w+script|data):/i),ii=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),m=d(/^html$/i),R=d(/^[a-z][.\w]*(-[.\w]+)+$/i),K={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},st=function(){return typeof window>"u"?null:window},Z=function($,N){if(typeof $!="object"||typeof $.createPolicy!="function")return null;let V=null;const Q="data-tt-policy-suffix";N&&N.hasAttribute(Q)&&(V=N.getAttribute(Q));const lt="dompurify"+(V?"#"+V:"");try{return $.createPolicy(lt,{createHTML(ht){return ht},createScriptURL(ht){return ht}})}catch{return console.warn("TrustedTypes policy "+lt+" could not be created."),null}},nt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function S(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st();const $=St=>S(St);if($.version="3.4.8",$.removed=[],!D||!D.document||D.document.nodeType!==K.document||!D.Element)return $.isSupported=!1,$;let N=D.document;const V=N,Q=V.currentScript;D.DocumentFragment;const lt=D.HTMLTemplateElement,ht=D.Node,wt=D.Element,bt=D.NodeFilter,Pt=D.NamedNodeMap;Pt===void 0&&(D.NamedNodeMap||D.MozNamedAttrMap),D.HTMLFormElement;const Xt=D.DOMParser,si=D.trustedTypes,Me=wt.prototype,ai=_t(Me,"cloneNode"),xC=_t(
34Me,"remove"),bC=_t(Me,"nextSibling"),_a=_t(Me,"childNodes"),Ba=_t(Me,"parentNode"),va=_t(Me,"shadowRoot"),kC=_t(Me,"attributes"),Xe=ht&&ht.prototype?_t(ht.prototype,"nodeType"):null,Nr=ht&&ht.prototype?_t(ht.prototype,"nodeName"):null;if(typeof lt=="function"){const St=N.createElement("template");St.content&&St.content.ownerDocument&&(N=St.content.ownerDocument)}let Re,Ss="",gn=0;const Ti=function(L){if(gn>0)throw et('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');gn++;try{return Re.createHTML(L)}finally{gn--}},La=N,pn=La.implementation,Ic=La.createNodeIterator,wC=La.createDocumentFragment,TC=La.getElementsByTagName,SC=V.importNode;let de=nt();$.isSupported=typeof o=="function"&&typeof Ba=="function"&&pn&&pn.createHTMLDocument!==void 0;const Fa=Pr,Aa=Rr,Ea=ei,_C=Ee,BC=ri,vC=qr,Dc=ii,LC=R;let Pc=br,ie=null;const mn=it({},[...ot,...pt,...Bt,...Nt,...G]);let ne=null;const yn=it({},[...Et,...ue,...xr,...ar]);let se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_s=null,Ma=null;const Wr=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rc=!0,Cn=!0,qc=!1,Nc=!0,zr=!1,Bs=!0,oi=!1,xn=!1,bn=!1,Si=!1,$a=!1,Oa=!1,Wc=!0,zc=!1;const Hc="user-content-";let kn=!0,vs=!1,_i={},or=null;const wn=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jc=null;const Yc=it({},["audio","video","img","source","image","track"]);let Tn=null;const Uc=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ia="http://www.w3.org/1998/Math/MathML",Da="http://www.w3.org/2000/svg",nr="http://www.w3.org/1999/xhtml";let Bi=nr,Sn=!1,_n=null;const FC=it({},[Ia,Da,nr],F);let Bn=it({},["mi","mo","mn","ms","mtext"]),vn=it({},["annotation-xml"]);const AC=it({},["title","style","font","a","script"]);let Ls=null;const EC=["application/xhtml+xml","text/html"],MC="text/html";let ae=null,vi=null;const $C=N.createElement("form"),Gc=function(L){return L instanceof RegExp||L instanceof Function},Ln=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vi&&vi===L)return;(!L||typeof L!="object")&&(L={}),L=dt(L),Ls=EC.indexOf(L.PARSER_MEDIA_TYPE)===-1?MC:L.PARSER_MEDIA_TYPE,ae=Ls==="application/xhtml+xml"?F:v,ie=j(L,"ALLOWED_TAGS")&&B(L.ALLOWED_TAGS)?it({},L.ALLOWED_TAGS,ae):mn,ne=j(L,"ALLOWED_ATTR")&&B(L.ALLOWED_ATTR)?it({},L.ALLOWED_ATTR,ae):yn,_n=j(L,"ALLOWED_NAMESPACES")&&B(L.ALLOWED_NAMESPACES)?it({},L.ALLOWED_NAMESPACES,F):FC,Tn=j(L,"ADD_URI_SAFE_ATTR")&&B(L.ADD_URI_SAFE_ATTR)?it(dt(Uc),L.ADD_URI_SAFE_ATTR,ae):Uc,jc=j(L,"ADD_DATA_URI_TAGS")&&B(L.ADD_DATA_URI_TAGS)?it(dt(Yc),L.ADD_DATA_URI_TAGS,ae):Yc,or=j(L,"FORBID_CONTENTS")&&B(L.FORBID_CONTENTS)?it({},L.FORBID_CONTENTS,ae):wn,_s=j(L,"FORBID_TAGS")&&B(L.FORBID_TAGS)?it({},L.FORBID_TAGS,ae):dt({}),Ma=j(L,"FORBID_ATTR")&&B(L.FORBID_ATTR)?it({},L.FORBID_ATTR,ae):dt({}),_i=j(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?dt(L.USE_PROFILES):L.USE_PROFILES:!1,Rc=L.ALLOW_ARIA_ATTR!==!1,Cn=L.ALLOW_DATA_ATTR!==!1,qc=L.ALLOW_UNKNOWN_PROTOCOLS||!1,Nc=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,zr=L.SAFE_FOR_TEMPLATES||!1,Bs=L.SAFE_FOR_XML!==!1,oi=L.WHOLE_DOCUMENT||!1,Si=L.RETURN_DOM||!1,$a=L.RETURN_DOM_FRAGMENT||!1,Oa=L.RETURN_TRUSTED_TYPE||!1,bn=L.FORCE_BODY||!1,Wc=L.SANITIZE_DOM!==!1,zc=L.SANITIZE_NAMED_PROPS||!1,kn=L.KEEP_CONTENT!==!1,vs=L.IN_PLACE||!1,Pc=qt(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:br,Bi=typeof L.NAMESPACE=="string"?L.NAMESPACE:nr,Bn=j(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?dt(L.MATHML_TEXT_INTEGRATION_POINTS):it({},["mi","mo","mn","ms","mtext"]),vn=j(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?dt(L.HTML_INTEGRATION_POINTS):it({},["annotation-xml"]);const rt=j(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?dt(L.CUSTOM_ELEMENT_HANDLING):f(null);if(se=f(null),j(rt,"tagNameCheck")&&Gc(rt.tagNameCheck)&&(se.tagNameCheck=rt.tagNameCheck),j(rt,"attributeNameCheck")&&Gc(rt.attributeNameCheck)&&(se.attributeNameCheck=rt.attributeNameCheck),j(rt,"allowCustomizedBuiltInElements")&&typeof rt.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=rt.allowCustomizedBuiltInElements),zr&&(Cn=!1),$a&&(Si=!0),_i&&(ie=it({},G),ne=f(null),_i.html===!0&&(it(ie,ot),it(ne,Et)),_i.svg===!0&&(it(ie,pt),it(ne,ue),it(ne,ar)),_i.svgFilters===!0&&(it(ie,Bt),it(ne,ue),it(ne,ar)),_i.mathMl===!0&&(it(ie,Nt),it(ne,xr),it(ne,ar))),Wr.tagCheck=null,Wr.attributeCheck=null,j(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?Wr.tagCheck=L.ADD_TAGS:B(L.ADD_TAGS)&&(ie===mn&&(ie=dt(ie)),it(ie,L.ADD_TAGS,ae))),j(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?Wr.attributeCheck=L.ADD_ATTR:B(L.ADD_ATTR)&&(ne===yn&&(ne=dt(ne)),it(ne,L.ADD_ATTR,ae))),j(L,"ADD_URI_SAFE_ATTR")&&B(L.ADD_URI_SAFE_ATTR)&&it(Tn,L.ADD_URI_SAFE_ATTR,ae),j(L,"FORBID_CONTENTS")&&B(L.FORBID_CONTENTS)&&(or===wn&&(or=dt(or)),it(or,L.FORBID_CONTENTS,ae)),j(L,"ADD_FORBID_CONTENTS")&&B(L.ADD_FORBID_CONTENTS)&&(or===wn&&(or=dt(or)),it(or,L.ADD_FORBID_CONTENTS,ae)),kn&&(ie["#text"]=!0),oi&&it(ie,["html","head","body"]),ie.table&&(it(ie,["tbody"]),delete _s.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw et('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const yt=Re;Re=L.TRUSTED_TYPES_POLICY;try{Ss=Ti("")}
34catch(Yt){throw Re=yt,Yt}}else Re===void 0&&L.TRUSTED_TYPES_POLICY!==null&&(Re=Z(si,Q)),Re&&typeof Ss=="string"&&(Ss=Ti(""));(de.uponSanitizeElement.length>0||de.uponSanitizeAttribute.length>0)&&ie===mn&&(ie=dt(ie)),de.uponSanitizeAttribute.length>0&&ne===yn&&(ne=dt(ne)),u&&u(L),vi=L},Xc=it({},[...pt,...Bt,...Dt]),Vc=it({},[...Nt,...zt]),OC=function(L){let rt=Ba(L);(!rt||!rt.tagName)&&(rt={namespaceURI:Bi,tagName:"template"});const yt=v(L.tagName),Yt=v(rt.tagName);return _n[L.namespaceURI]?L.namespaceURI===Da?rt.namespaceURI===nr?yt==="svg":rt.namespaceURI===Ia?yt==="svg"&&(Yt==="annotation-xml"||Bn[Yt]):!!Xc[yt]:L.namespaceURI===Ia?rt.namespaceURI===nr?yt==="math":rt.namespaceURI===Da?yt==="math"&&vn[Yt]:!!Vc[yt]:L.namespaceURI===nr?rt.namespaceURI===Da&&!vn[Yt]||rt.namespaceURI===Ia&&!Bn[Yt]?!1:!Vc[yt]&&(AC[yt]||!Xc[yt]):!!(Ls==="application/xhtml+xml"&&_n[L.namespaceURI]):!1},Ve=function(L){T($.removed,{element:L});try{Ba(L).removeChild(L)}catch{xC(L)}},ni=function(L,rt){try{T($.removed,{attribute:rt.getAttributeNode(L),from:rt})}catch{T($.removed,{attribute:null,from:rt})}if(rt.removeAttribute(L),L==="is")if(Si||$a)try{Ve(rt)}catch{}else try{rt.setAttribute(L,"")}catch{}},Kc=function(L){let rt=null,yt=null;if(bn)L="<remove></remove>"+L;else{const Vt=q(L,/^[\r\n\t ]+/);yt=Vt&&Vt[0]}Ls==="application/xhtml+xml"&&Bi===nr&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const Yt=Re?Ti(L):L;if(Bi===nr)try{rt=new Xt().parseFromString(Yt,Ls)}catch{}if(!rt||!rt.documentElement){rt=pn.createDocument(Bi,"template",null);try{rt.documentElement.innerHTML=Sn?Ss:Yt}catch{}}const Rt=rt.body||rt.documentElement;return L&&yt&&Rt.insertBefore(N.createTextNode(yt),Rt.childNodes[0]||null),Bi===nr?TC.call(rt,oi?"html":"body")[0]:oi?rt.documentElement:Rt},Zc=function(L){return Ic.call(L.ownerDocument||L,L,bt.SHOW_ELEMENT|bt.SHOW_COMMENT|bt.SHOW_TEXT|bt.SHOW_PROCESSING_INSTRUCTION|bt.SHOW_CDATA_SECTION,null)},Fn=function(L){var rt,yt;L.normalize();const Yt=Ic.call(L.ownerDocument||L,L,bt.SHOW_TEXT|bt.SHOW_COMMENT|bt.SHOW_CDATA_SECTION|bt.SHOW_PROCESSING_INSTRUCTION,null);let Rt=Yt.nextNode();for(;Rt;){let ce=Rt.data;y([Fa,Aa,Ea],qe=>{ce=I(ce,qe," ")}),Rt.data=ce,Rt=Yt.nextNode()}const Vt=(rt=(yt=L.querySelectorAll)===null||yt===void 0?void 0:yt.call(L,"template"))!==null&&rt!==void 0?rt:[];y(Array.from(Vt),ce=>{Li(ce.content)&&Fn(ce.content)})},Pa=function(L){const rt=Nr?Nr(L):null;return typeof rt!="string"||ae(rt)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==kC(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==Xe(L)||L.childNodes!==_a(L)},Li=function(L){if(!Xe||typeof L!="object"||L===null)return!1;try{return Xe(L)===K.documentFragment}catch{return!1}},Ra=function(L){if(!Xe||typeof L!="object"||L===null)return!1;try{return typeof Xe(L)=="number"}catch{return!1}};function kr(St,L,rt){y(St,yt=>{yt.call($,L,rt,vi)})}const Qc=function(L){let rt=null;if(kr(de.beforeSanitizeElements,L,null),Pa(L))return Ve(L),!0;const yt=ae(Nr?Nr(L):L.nodeName);if(kr(de.uponSanitizeElement,L,{tagName:yt,allowedTags:ie}),Bs&&L.hasChildNodes()&&!Ra(L.firstElementChild)&&X(/<[/\w!]/g,L.innerHTML)&&X(/<[/\w!]/g,L.textContent)||Bs&&L.namespaceURI===nr&&yt==="style"&&Ra(L.firstElementChild)||L.nodeType===K.progressingInstruction||Bs&&L.nodeType===K.comment&&X(/<[/\w]/g,L.data))return Ve(L),!0;if(_s[yt]||!(Wr.tagCheck instanceof Function&&Wr.tagCheck(yt))&&!ie[yt]){if(!_s[yt]&&tu(yt)&&(se.tagNameCheck instanceof RegExp&&X(se.tagNameCheck,yt)||se.tagNameCheck instanceof Function&&se.tagNameCheck(yt)))return!1;if(kn&&!or[yt]){const Rt=Ba(L),Vt=_a(L);if(Vt&&Rt){const ce=Vt.length;for(let qe=ce-1;qe>=0;--qe){const Ke=ai(Vt[qe],!0);Rt.insertBefore(Ke,bC(L))}}}return Ve(L),!0}return(Xe?Xe(L):L.nodeType)===K.element&&!OC(L)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&X(/<\/no(script|embed|frames)/i,L.innerHTML)?(Ve(L),!0):(zr&&L.nodeType===K.text&&(rt=L.textContent,y([Fa,Aa,Ea],Rt=>{rt=I(rt,Rt," ")}),L.textContent!==rt&&(T($.removed,{element:L.cloneNode()}),L.textContent=rt)),kr(de.afterSanitizeElements,L,null),!1)},Jc=function(L,rt,yt){if(Ma[rt]||Wc&&(rt==="id"||rt==="name")&&(yt in N||yt in $C))return!1;const Yt=ne[rt]||Wr.attributeCheck instanceof Function&&Wr.attributeCheck(rt,L);if(!(Cn&&!Ma[rt]&&X(_C,rt))){if(!(Rc&&X(BC,rt))){if(!Yt||Ma[rt]){if(!(tu(L)&&(se.tagNameCheck instanceof RegExp&&X(se.tagNameCheck,L)||se.tagNameCheck instanceof Function&&se.tagNameCheck(L))&&(se.attributeNameCheck instanceof RegExp&&X(se.attributeNameCheck,rt)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(rt,L))||rt==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&X(se.tagNameCheck,yt)||se.tagNameCheck instanceof Function&&se.tagNameCheck(yt))))return!1}else if(!Tn[rt]){if(!X(Pc,I(yt,Dc,""))){if(!((rt==="src"||rt==="xlink:href"||rt==="href")&&L!=="script"&&P(yt,"data:")===0&&jc[L])){if(!(qc&&!X(vC,I(yt,Dc,"")))){if(yt)return!1}}}}}}return!0},IC=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tu=function(L){return!IC[v(L)]&&X(LC,L)},eu=function(L){kr(de.beforeSanitizeAttributes,L,null);const rt=L.attributes;if(!rt||Pa(L))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Yt=rt.length;for(;Yt--;){const Rt=rt[Yt],Vt=Rt.name,ce=Rt.namespaceURI,qe=Rt.value,Ke=ae(Vt),An=qe;let fe=Vt==="value"?An:tt(An);if(yt.attrName=Ke,yt.attrValue=fe,yt.keepAttr=!0,yt.forceKeepAttr=void 0,kr(de.uponSanitizeAttribute,L,yt),fe=yt.attrValue,zc&&(Ke==="id"||Ke==="name")&&P(fe,Hc)!==0&&(ni(Vt,L),fe=Hc+fe),Bs&&X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,fe)){ni(Vt,L);continue}if(Ke==="attributename"&&q(fe,"href")){ni(Vt,L);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){ni(Vt,L);continue}if(!Nc&&X(/\/>/i,fe)){ni(Vt,L);continue}zr&&y([Fa,Aa,Ea],iu=>{fe=I(fe,iu," ")});const ru=ae(L.nodeName);if(!Jc(ru,Ke,fe)){ni(Vt,L);continue}if(Re&&typeof si=="object"&&typeof si.getAttributeType=="function"&&!ce)switch(si.getAttributeType(ru,Ke)){case"TrustedHTML":{fe=Ti(fe);break}case"TrustedScriptURL":{fe=Re.createScriptURL(fe);break}}if(fe!==An)try{ce?L.setAttributeNS(ce,Vt,fe):L.setAttribute(Vt,fe),Pa(L)?Ve(L):w($.removed)}catch{ni(Vt,L)}}kr(de.afterSanitizeAttributes,L,null)},qa=function(L){let rt=null;const yt=Zc(L);for(kr(de.beforeSanitizeShadowDOM,L,null);rt=yt.nextNode();)if(kr(de.uponSanitizeShadowNode,rt,null),Qc(rt),eu(rt),Li(rt.content)&&qa(rt.content),(Xe?Xe(rt):rt.nodeType)===K.element){const Rt=va?va(rt):rt.shadowRoot;Li(Rt)&&(Fi(Rt),qa(Rt))}kr(de.afterSanitizeShadowDOM,L,null)},Fi=function(L){const rt=Xe?Xe(L):L.nodeType;if(rt===K.element){const Rt=va?va(L):L.shadowRoot;Li(Rt)&&(Fi(Rt),qa(Rt))}const yt=_a?_a(L):L.childNodes;if(!yt)return;const Yt=[];y(yt,Rt=>{T(Yt,Rt)});for(const Rt of Yt)Fi(Rt);if(rt===K.element){const Rt=Nr?Nr(L):null;if(typeof Rt=="string"&&ae(Rt)==="template"){const Vt=L.content;Li(Vt)&&Fi(Vt)}}};return $.sanitize=function(St){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=null,yt=null,Yt=null,Rt=null;if(Sn=!St,Sn&&(St="<!-->"),typeof St!="string"&&!Ra(St)&&(St=Ft(St),typeof St!="string"))throw et("dirty is not a string, aborting");if(!$.isSupported)return St;if(xn||Ln(L),$.removed=[],typeof St=="string"&&(vs=!1),vs){const qe=Nr?Nr(St):St.nodeName;if(typeof qe=="string"){const Ke=ae(qe);if(!ie[Ke]||_s[Ke])throw et("root node is forbidden and cannot be sanitized in-place")}if(Pa(St))throw et("root node is clobbered and cannot be sanitized in-place");Fi(St)}else if(Ra(St))rt=Kc("<!---->"),yt=rt.ownerDocument.importNode(St,!0),yt.nodeType===K.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?rt=yt:rt.appendChild(yt),Fi(yt);else{if(!Si&&!zr&&!oi&&St.indexOf("<")===-1)return Re&&Oa?Ti(St):St;if(rt=Kc(St),!rt)return Si?null:Oa?Ss:""}rt&&bn&&Ve(rt.firstChild);const Vt=Zc(vs?St:rt);for(;Yt=Vt.nextNode();)Qc(Yt),eu(Yt),Li(Yt.content)&&qa(Yt.content);if(vs)return zr&&Fn(St),St;if(Si){if(zr&&Fn(rt),$a)for(Rt=wC.call(rt.ownerDocument);rt.firstChild;)Rt.appendChild(rt.firstChild);else Rt=rt;return(ne.shadowroot||ne.shadowrootmode)&&(Rt=SC.call(V,Rt,!0)),Rt}let ce=oi?rt.outerHTML:rt.innerHTML;return oi&&ie["!doctype"]&&rt.ownerDocument&&rt.ownerDocument.doctype&&rt.ownerDocument.doctype.name&&X(m,rt.ownerDocument.doctype.name)&&(ce="<!DOCTYPE "+rt.ownerDocument.doctype.name+`>
35`+ce),zr&&y([Fa,Aa,Ea],qe=>{ce=I(ce,qe," ")}),Re&&Oa?Ti(ce):ce},$.setConfig=function(){let St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ln(St),xn=!0},$.clearConfig=function(){vi=null,xn=!1},$.isValidAttribute=function(St,L,rt){vi||Ln({});const yt=ae(St),Yt=ae(L);return Jc(yt,Yt,rt)},$.addHook=function(St,L){typeof L=="function"&&T(de[St],L)},$.removeHook=function(St,L){if(L!==void 0){const rt=b(de[St],L);return rt===-1?void 0:_(de[St],rt,1)[0]}return w(de[St])},$.removeHooks=function(St){de[St]=[]},$.removeAllHooks=function(){de=nt()},$}var H=S();return rl=H,rl}
35var gx=self.DOMPurify||(self.DOMPurify=Mu().default||Mu());const cs=Mh(gx);var mo=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Gs=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,px=/\s/,mx=p(e=>{let t="",r=0,i=0;for(;i<e.length;){const s=e.indexOf("%%",i);if(s===-1)break;const a=e.indexOf(`
36`,s);if(a===-1)break;let o=s;for(;o>r&&px.test(e[o-1]);)o--;t+=e.slice(r,o)+`
37`,r=a+1,i=r}return t+e.slice(r)},"stripAnyComments"),Hi,Gf=(Hi=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(Hi,"UnknownDiagramError"),Hi),Qe={},Xo=p(function(e,t){var s,a,o,n;const r=Xf(e),i=mx(e.replace(mo,"").replace(Gs,""));if((s=Qe.flowchart)!=null&&s.detector(r,t))return"flowchart";if((a=Qe.sequence)!=null&&a.detector(r,t))return"sequence";if((o=Qe.classDiagram)!=null&&o.detector(r,t))return"classDiagram";if((n=Qe.class)!=null&&n.detector(r,t))return"class";for(const[c,{detector:l}]of Object.entries(Qe))if(l(i,t))return c;throw new Gf(`No diagram type detected matching given configuration for text: ${e}`)},"detectType");function Xf(e){let t=e;t=t.replace(/^\uFEFF/,""),t=t.replace(mo,"");const r=/^(?:\s*%%{[\S\s]*?}%{2}\s*|\s*%%.*\r?\n|\s*#.*\r?\n|\s*\r?\n)*/,i=t;return t=t.replace(r,""),t===i||(t=t.replace(mo,""),t=t.replace(r,"")),t}p(Xf,"stripHeaderPrelude");var Sl=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)Vf(t,r,i)},"registerLazyLoadedDiagrams"),Vf=p((e,t,r)=>{Qe[e]&&J.warn(`Detector with key ${e} already exists. Overwriting.`),Qe[e]={detector:t,loader:r},J.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),yx=p(e=>Qe[e].loader,"getDiagramLoader"),_l=p((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(s=>_l(e,s,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(s=>{e.includes(s)||e.push(s)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){const s=e;Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){if(o===null)return;Object.hasOwn(e,a)||Object.defineProperty(e,a,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),s[a]===void 0&&(s[a]=Array.isArray(o)?[]:{}),typeof s[a]=="object"&&(s[a]=_l(s[a],o,{depth:r-1}))}else typeof s[a]!="object"&&(Object.hasOwn(e,a)?s[a]=o:Object.defineProperty(e,a,{value:o,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),he=_l,rr="#ffffff",ir="#f2f2f2",Lt=p((e,t)=>t?k(e,{s:-40,l:10}):k(e,{s:-40,l:-10}),"mkBorder"),ji,Cx=(ji=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,s,a,o,n,c,l,h,u,d,f,g,C,x,y,b,w,T,_,B,v,F,q,I,P,tt,Y,E,M,A,j,U,X,et,at,ct,it,xt,dt,Ft,_t,qt,ot,pt,Bt,Dt,Nt,zt,G;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
37d=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||W(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||W(this.mainBkg,10)):(this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.darkMode)for(let Et=0;Et<this.THEME_COLOR_LIMIT;Et++)this["cScale"+Et]=W(this["cScale"+Et],75);else for(let Et=0;Et<this.THEME_COLOR_LIMIT;Et++)this["cScale"+Et]=W(this["cScale"+Et],25);for(let Et=0;Et<this.THEME_COLOR_LIMIT;Et++)this["cScaleInv"+Et]=this["cScaleInv"+Et]||O(this["cScale"+Et]);for(let Et=0;Et<this.THEME_COLOR_LIMIT;Et++)this.darkMode?this["cScalePeer"+Et]=this["cScalePeer"+Et]||z(this["cScale"+Et],10):this["cScalePeer"+Et]=this["cScalePeer"+Et]||W(this["cScale"+Et],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let Et=0;Et<this.THEME_COLOR_LIMIT;Et++)this["cScaleLabel"+Et]=this["cScaleLabel"+Et]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let Et=0;Et<5;Et++)this["surface"+Et]=this["surface"+Et]||k(this.mainBkg,{h:180,s:-15,l:t*(5+Et*3)}),this["surfacePeer"+Et]=this["surfacePeer"+Et]||k(this.mainBkg,{h:180,s:-15,l:t*(8+Et*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||k(this.primaryColor,{h:64}),this.fillType3=this.fillType3||k(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||k(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||k(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||k(this.primaryColor,{h:128}),this.fillType7=this.fillType7||k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-10}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??k(this.primaryColor,{l:-30}),this.venn2=this.venn2??k(this.secondaryColor,{l:-30}),this.venn3=this.venn3??k(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??k(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??k(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??k(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??k(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??k(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((r=this.cynefin)==null?void 0:r.domainFontSize)||16,itemFontSize:((i=this.cynefin)==null?void 0:i.itemFontSize)||12,boundaryColor:((s=this.cynefin)==null?void 0:s.boundaryColor)||this.lineColor,boundaryWidth:((a=this.cynefin)==null?void 0:a.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((n=this.cynefin)==null?void 0:n.cliffWidth)||4,arrowColor:((c=this.cynefin)==null?void 0:c.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((h=this.cynefin)==null?void 0:h.complexBg)||"#E8F5E9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((g=this.cynefin)==null?void 0:g.confusionBg)||"#F3E5F5",textColor:((C=this.cynefin)==null?void 0:C.textColor)||this.textColor,labelColor:((x=this.cynefin)==null?void 0:x.labelColor)||this.primaryTextColor},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((b=this.radar)==null?void 0:b.axisStrokeWidth)||2,axisLabelFontSize:((w=this.radar)==null?void 0:w.axisLabelFontSize)||12,curveOpacity:((T=this.radar)==null?void 0:T.curveOpacity)||.5,curveStrokeWidth:((_=this.radar)==null?void 0:_.curveStrokeWidth)||2,graticuleColor:((B=this.radar)==null?void 0:B.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((v=this.radar)==null?void 0:v.graticuleStrokeWidth)||1,graticuleOpacity:((F=this.radar)==null?void 0:F.graticuleOpacity)||.3,legendBoxSize:((q=this.radar)==null?void 0:q.legendBoxSize)||12,legendFontSize:((I=this.radar)==null?void 0:I.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((P=this.wardley)==null?void 0:P.backgroundColor)||this.background,axisColor:((tt=this.wardley)==null?void 0:tt.axisColor)||this.lineColor,axisTextColor:((Y=this.wardley)==null?void 0:Y.axisTextColor)||this.primaryTextColor,gridColor:((E=this.wardley)==null?void 0:E.gridColor)||this.gridColor,componentFill:((M=this.wardley)==null?void 0:M.componentFill)||this.background,componentStroke:((A=this.wardley)==null?void 0:A.componentStroke)||this.lineColor,componentLabelColor:((j=this.wardley)==null?void 0:j.componentLabelColor)||this.primaryTextColor,linkStroke:((U=this.wardley)==null?void 0:U.linkStroke)||this.lineColor,evolutionStroke:((X=this.wardley)==null?void 0:X.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((et=this.wardley)==null?void 0:et.annotationStroke)||this.lineColor,annotationTextColor:((at=this.wardley)==null?void 0:at.annotationTextColor)||this.primaryTextColor,annotationFill:((ct=this.wardley)==null?void 0:ct.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((it=this.xyChart)==null?void 0:it.backgroundColor)||this.background,titleColor:((xt=this.xyChart)==null?void 0:xt.titleColor)||this.primaryTextColor,dataLabelColor:((dt=this.xyChart)==null?void 0:dt.dataLabelColor)||this.primaryTextColor,legendTextColor:((Ft=this.xyChart)==null?void 0:Ft.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((_t=this.xyChart)==null?void 0:_t.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((qt=this.xyChart)==null?void 0:qt.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((ot=this.xyChart)==null?void 0:ot.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((pt=this.xyChart)==null?void 0:pt.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Bt=this.xyChart)==null?void 0:Bt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Dt=this.xyChart)==null?void 0:Dt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((zt=this.xyChart)==null?void 0:zt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((G=this.xyChart)==null?void 0:G.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadMo
37delFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]}),Object.hasOwn(t,"nodeBorder")&&!Object.hasOwn(t,"useGradient")&&(this.useGradient=!1)}},p(ji,"Theme"),ji),xx=p(e=>{const t=new Cx;return t.calculate(e),t},"getThemeVariables"),Yi,bx=(Yi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.lineColor=O(this.background),this.textColor=O(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(O("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Xr(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=W("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=W(this.sectionBkgColor,10),this.taskBorderColor=Xr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xr(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||z(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||W(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,s,a,o,n,c,l,h,u,d,f,g,C,x,y,b,w,T,_,B,v,F,q,I,P,tt,Y,E,M,A,j,U,X,et,at,ct,it,xt,dt,Ft,_t,qt,ot,pt,Bt,Dt,Nt,zt;this.secondBkg=z(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackgroun
37d=z(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=z(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=O(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330});for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||O(this["cScale"+G]);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScalePeer"+G]=this["cScalePeer"+G]||z(this["cScale"+G],10);for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||k(this.mainBkg,{h:30,s:-30,l:-(-10+G*4)}),this["surfacePeer"+G]=this["surfacePeer"+G]||k(this.mainBkg,{h:30,s:-30,l:-(-7+G*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["pie"+G]=this["cScale"+G];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let G=0;G<8;G++)this["venn"+(G+1)]=this["venn"+(G+1)]??z(this["cScale"+G],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#FF6B6B",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((l=this.cynefin)==null?void 0:l.complexBg)||"#1B5E20",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#0D47A1",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#BF360C",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#F57F17",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#4A148
37C",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((x=this.xyChart)==null?void 0:x.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,legendTextColor:((w=this.xyChart)==null?void 0:w.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((B=this.xyChart)==null?void 0:B.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((F=this.xyChart)==null?void 0:F.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((q=this.xyChart)==null?void 0:q.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((I=this.xyChart)==null?void 0:I.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((tt=this.xyChart)==null?void 0:tt.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((Y=this.radar)==null?void 0:Y.axisColor)||this.lineColor,axisStrokeWidth:((E=this.radar)==null?void 0:E.axisStrokeWidth)||2,axisLabelFontSize:((M=this.radar)==null?void 0:M.axisLabelFontSize)||12,curveOpacity:((A=this.radar)==null?void 0:A.curveOpacity)||.5,curveStrokeWidth:((j=this.radar)==null?void 0:j.curveStrokeWidth)||2,graticuleColor:((U=this.radar)==null?void 0:U.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((X=this.radar)==null?void 0:X.graticuleStrokeWidth)||1,graticuleOpacity:((et=this.radar)==null?void 0:et.graticuleOpacity)||.3,legendBoxSize:((at=this.radar)==null?void 0:at.legendBoxSize)||12,legendFontSize:((ct=this.radar)==null?void 0:ct.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((it=this.wardley)==null?void 0:it.backgroundColor)||this.background,axisColor:((xt=this.wardley)==null?void 0:xt.axisColor)||this.lineColor,axisTextColor:((dt=this.wardley)==null?void 0:dt.axisTextColor)||this.primaryTextColor,gridColor:((Ft=this.wardley)==null?void 0:Ft.gridColor)||this.gridColor,componentFill:((_t=this.wardley)==null?void 0:_t.componentFill)||this.mainBkg,componentStroke:((qt=this.wardley)==null?void 0:qt.componentStroke)||this.lineColor,componentLabelColor:((ot=this.wardley)==null?void 0:ot.componentLabelColor)||this.primaryTextColor,linkStroke:((pt=this.wardley)==null?void 0:pt.linkStroke)||this.lineColor,evolutionStroke:((Bt=this.wardley)==null?void 0:Bt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Dt=this.wardley)==null?void 0:Dt.annotationStroke)||this.lineColor,annotationTextColor:((Nt=this.wardley)==null?void 0:Nt.annotationTextColor)||this.primaryTextColor,annotationFill:((zt=this.wardley)==null?void 0:zt.annotationFill)||this.mainBkg}
37,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.secondaryColor,20),this.git1=z(this.pie2||this.secondaryColor,20),this.git2=z(this.pie3||this.tertiaryColor,20),this.git3=z(this.pie4||k(this.primaryColor,{h:-30}),20),this.git4=z(this.pie5||k(this.primaryColor,{h:-60}),20),this.git5=z(this.pie6||k(this.primaryColor,{h:-90}),10),this.git6=z(this.pie7||k(this.primaryColor,{h:60}),10),this.git7=z(this.pie8||k(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||O(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||O(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||z("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||z("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||z("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||z("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||z(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||z(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||z(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||z(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Yi,"Theme"),Yi),kx=p(e=>{const t=new bx;return t.calculate(e),t},"getThemeVariables"),Ui,wx=(Ui=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=k(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.lineColor=O(this.background),this.textColor=O(this.background),this.background="white",this.mainBkg="#
37ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Xr(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,s,a,o,n,c,l,h,u,d,f,g,C,x,y,b,w,T,_,B,v,F,q,I,P,tt,Y,E,M,A,j,U,X,et,at,ct,it,xt,dt,Ft,_t,qt,ot,pt,Bt,Dt,Nt,zt;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||W(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||W(this.tertiaryColor,40);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScale"+G]=W(this["cScale"+G],10),this["cScalePeer"+G]=this["cScalePeer"+G]||W(this["cScale"+G],25);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||k(this["cScale"+G],{h:180});for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||k(this.mainBkg,{h:30,l:-(5+G*5)}),this["surfacePeer"+G]=this["surfacePeer"+G]||k(this.mainBkg,{h:30,l:-(7+G*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||O(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||O(this.labelTextColor);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
37d=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||z(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||k(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-30}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||k(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??k(this.primaryColor,{l:-30}),this.venn2=this.venn2??k(this.secondaryColor,{l:-30}),this.venn3=this.venn3??k(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??k(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??k(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??k(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??k(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??k(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((l=this.cynefin)==null?void 0:l.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((x=this.radar)==null?void 0:x.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((w=this.radar)==null?void 0:w.curveOpacity)||.5,curveStrokeWidth:((T=this.radar)==null?void 0:T.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((B=this.radar)==null?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((q=this.radar)==null?void 0:q.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((P=this.wardley)==null?void 0:P.axisColor)||this.lineColor,axisTextColor:((tt=this.wardley)==null?void 0:tt.axisTextColor)||this.primaryTextColor,gridColor:((Y=this.wardley)==null?void 0:Y.gridColor)||this.gridColor,componentFill:((E=this.wardley)==null?void 0:E.componentFill)||this.background,componentStroke:((M=this.wardley)==null?void 0:M.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((j=this.wardley)==null?void 0:j.linkStroke)||this.lineColor,evolutionStroke:((U=this.wardley)==null?void 0:U.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((X=this.wardley)==null?void 0:X.annotationStroke)||this.lineColor,annotationTextColor:((et=this.wardley)==null?void 0:et.annotationTextColor)||this.primaryTextColor,annotationFill:((at=this.wardley)==null?void 0:at.annotationFill)||this.background},this.xyChart={backgroundColor:((ct=this.xyChart)==null?void 0:ct.backgroundColor)||this.background,titleColor:((it=this.xyChart)==null?void 0:it.titleColor)||this.primaryTextColor,dataLabelColor:((xt=this.xyChart)==null?void 0:xt.dataLabelColor)||this.primaryTextColor,legendTextColor:((dt=this.xyChart)==null?void 0:dt.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((Ft=this.xyChart)==null?void 0:Ft.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_t=this.xyChart)==null?void 0:_t.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((qt=this.xyChart)==null?void 0:qt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ot=this.xyChart)==null?void 0:ot.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((pt=this.xyChart)==null?void 0:pt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Bt=this.xyChart)==null?void 0:Bt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Dt=this.xyChart)==null?void 0:Dt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((zt=this.xyChart)==null?void 0:zt.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||W(O(this.git0),25),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||O(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||O(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 7,139 bytes, line 37
37d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ui,"Theme"),Ui),Tx=p(e=>{const t=new wx;return t.calculate(e),t},"getThemeVariables"),Gi,Sx=(Gi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=z("#cde498",10),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.primaryColor),this.lineColor=O(this.background),this.textColor=O(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,s,a,o,n,c,l,h,u,d,f,g,C,x,y,b,w,T,_,B,v,F,q,I,P,tt,Y,E,M,A,j,U,X,et,at,ct,it,xt,dt,Ft,_t,qt,ot,pt,Bt,Dt,Nt,zt;this.actorBorder=W(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||W(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||W(this.tertiaryColor,40);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScale"+G]=W(this["cScale"+G],10),this["cScalePeer"+G]=this["cScalePeer"+G]||W(this["cScale"+G],25);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||k(this["cScale"+G],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||k(this.mainBkg,{h:30,s:-30,l:-(5+G*5)}),this["surfacePeer"+G]=this["surfacePeer"+G]||k(this.mainBkg,{h:30,s:-30,l:-(8+G*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
37dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-30}),this.pie5=this.pie5||k(this.secondaryColor,{l:-30}),this.pie6=this.pie6||k(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??k(this.primaryColor,{l:-30}),this.venn2=this.venn2??k(this.secondaryColor,{l:-30}),this.venn3=this.venn3??k(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??k(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??k(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??k(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??k(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??k(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B4513",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((l=this.cynefin)==null?void 0:l.complexBg)||"#C8E6C9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#DCEDC8",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FFE0B2",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF9C4",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#D7CCC8",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((x=this.radar)==null?void 0:x.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((w=this.radar)==null?void 0:w.curveOpacity)||.5,curveStrokeWidth:((T=this.radar)==null?void 0:T.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((B=this.radar)==null?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((q=this.radar)==null?void 0:q.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((P=this.wardley)==null?void 0:P.axisColor)||this.lineColor,axisTextColor:((tt=this.wardley)==null?void 0:tt.axisTextColor)||this.primaryTextColor,gridColor:((Y=this.wardley)==null?void 0:Y.gridColor)||this.gridColor,componentFill:((E=this.wardley)==null?void 0:E.componentFill)||this.background,componentStroke:((M=this.wardley)==null?void 0:M.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((j=this.wardley)==null?void 0:j.linkStroke)||this.lineColor,evolutionStroke:((U=this.wardley)==null?void 0:U.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((X=this.wardley)==null?void 0:X.annotationStroke)||this.lineColor,annotationTextColor:((et=this.wardley)==null?void 0:et.annotationTextColor)||this.primaryTextColor,annotationFill:((at=this.wardley)==null?void 0:at.annotationFill)||this.background},this.xyChart={backgroundColor:((ct=this.xyChart)==null?void 0:ct.backgroundColor)||this.background,titleColor:((it=this.xyChart)==null?void 0:it.titleColor)||this.primaryTextColor,dataLabelColor:((xt=this.xyChart)==null?void 0:xt.dataLabelColor)||this.primaryTextColor,legendTextColor:((dt=this.xyChart)==null?void 0:dt.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((Ft=this.xyChart)==null?void 0:Ft.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_t=this.xyChart)==null?void 0:_t.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((qt=this.xyChart)==null?void 0:qt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ot=this.xyChart)==null?void 0:ot.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((pt=this.xyChart)==null?void 0:pt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((Bt=this.xyChart)==null?void 0:Bt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Dt=this.xyChart)==null?void 0:Dt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Nt=this.xyChart)==null?void 0:Nt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((zt=this.xyChart)==null?void 0:zt.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||O(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||O(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 7,560 bytes, line 37
37d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Gi,"Theme"),Gi),_x=p(e=>{const t=new Sx;return t.calculate(e),t},"getThemeVariables"),Xi,Bx=(Xi=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=z(this.contrast,55),this.background="#ffffff",this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.lineColor=O(this.background),this.textColor=O(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||z(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,s,a,o,n,c,l,h,u,d,f,g,C,x,y,b,w,T,_,B,v,F,q,I,P,tt,Y,E,M,A,j,U,X,et,at,ct,it,xt,dt,Ft,_t,qt,ot,pt,Bt,Dt,Nt,zt;this.secondBkg=z(this.contrast,55),this.border2=this.contrast,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleInv"+G]=this["cScaleInv"+G]||O(this["cScale"+G]);for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this.darkMode?this["cScalePeer"+G]=this["cScalePeer"+G]||z(this["cScale"+G],10):this["cScalePeer"+G]=this["cScalePeer"+G]||W(this["cScale"+G],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["cScaleLabel"+G]=this["cScaleLabel"+G]||this.scaleLabelColor;for(let G=0;G<5;G++)this["surface"+G]=this["surface"+G]||k(this.mainBkg,{l:-(5+G*5)}),this["surfacePeer"+G]=this["surfacePeer"+G]||k(this.mainBkg,{l:-(8+G*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=z(this.contrast,30),this.sectionBkgColor2=z(this.contrast,30),this.taskBorderColor=W(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=z(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=W(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
37dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128});for(let G=0;G<this.THEME_COLOR_LIMIT;G++)this["pie"+G]=this["cScale"+G];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let G=0;G<8;G++)this["venn"+(G+1)]=this["venn"+(G+1)]??this["cScale"+G];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((l=this.cynefin)==null?void 0:l.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((x=this.xyChart)==null?void 0:x.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((b=this.xyChart)==null?void 0:b.dataLabelColor)||this.primaryTextColor,legendTextColor:((w=this.xyChart)==null?void 0:w.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((T=this.xyChart)==null?void 0:T.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((B=this.xyChart)==null?void 0:B.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((F=this.xyChart)==null?void 0:F.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((q=this.xyChart)==null?void 0:q.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((I=this.xyChart)==null?void 0:I.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((tt=this.xyChart)==null?void 0:tt.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((Y=this.radar)==null?void 0:Y.axisColor)||this.lineColor,axisStrokeWidth:((E=this.radar)==null?void 0:E.axisStrokeWidth)||2,axisLabelFontSize:((M=this.radar)==null?void 0:M.axisLabelFontSize)||12,curveOpacity:((A=this.radar)==null?void 0:A.curveOpacity)||.5,curveStrokeWidth:((j=this.radar)==null?void 0:j.curveStrokeWidth)||2,graticuleColor:((U=this.radar)==null?void 0:U.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((X=this.radar)==null?void 0:X.graticuleStrokeWidth)||1,graticuleOpacity:((et=this.radar)==null?void 0:et.graticuleOpacity)||.3,legendBoxSize:((at=this.radar)==null?void 0:at.legendBoxSize)||12,legendFontSize:((ct=this.radar)==null?void 0:ct.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((it=this.wardley)==null?void 0:it.backgroundColor)||this.background,axisColor:((xt=this.wardley)==null?void 0:xt.axisColor)||this.lineColor,axisTextColor:((dt=this.wardley)==null?void 0:dt.axisTextColor)||this.primaryTextColor,gridColor:((Ft=this.wardley)==null?void 0:Ft.gridColor)||this.gridColor,componentFill:((_t=this.wardley)==null?void 0:_t.componentFill)||this.background,componentStroke:((qt=this.wardley)==null?void 0:qt.componentStroke)||this.lineColor,componentLabelColor:((ot=this.wardley)==null?void 0:ot.componentLabelColor)||this.primaryTextColor,linkStroke:((pt=this.wardley)==null?void 0:pt.linkStroke)||this.lineColor,evolutionStroke:((Bt=this.wardley)==null?void 0:Bt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Dt=this.wardley)==null?void 0:Dt.annotationStroke)||this.lineColor,annotationTextColor:((Nt=this.wardley)==null?void 0:Nt.annotationTextColor)||this.primaryTextColor,annotationFill:((zt=this.wardley)==null?void 0:zt.annotationFill)||this.background}
37,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=W(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||k(this.primaryColor,{h:-30}),this.git4=this.pie5||k(this.primaryColor,{h:-60}),this.git5=this.pie6||k(this.primaryColor,{h:-90}),this.git6=this.pie7||k(this.primaryColor,{h:60}),this.git7=this.pie8||k(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Xi,"Theme"),Xi),vx=p(e=>{const t=new Bx;return t.calculate(e),t},"getThemeVariables"),Vi,Lx=(Vi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var a,o,n,c,l,h,u,d,f,g,C,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 7,272 bytes, line 37
37d=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Se(this.background)?z(this.background,4):W(this.background,4));const t="#ECECFE",r="#E9E9F1",i=k(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||k(t,{h:30}),this.cScale4=this.cScale4||k(t,{h:60}),this.cScale5=this.cScale5||k(t,{h:90}),this.cScale6=this.cScale6||k(t,{h:120}),this.cScale7=this.cScale7||k(t,{h:150}),this.cScale8=this.cScale8||k(t,{h:210,l:150}),this.cScale9=this.cScale9||k(t,{h:270}),this.cScale10=this.cScale10||k(t,{h:300}),this.cScale11=this.cScale11||k(t,{h:330}),this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=W(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=W(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||O(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||z(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||W(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||k(t,{h:64}),this.fillType3=this.fillType3||k(r,{h:64}),this.fillType4=this.fillType4||k(t,{h:-64}),this.fillType5=this.fillType5||k(r,{h:-64}),this.fillType6=this.fillType6||k(t,{h:128}),this.fillType7=this.fillType7||k(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||k(t,{l:-10}),this.pie5=this.pie5||k(r,{l:-10}),this.pie6=this.pie6||k(i,{l:-10}),this.pie7=this.pie7||k(t,{h:60,l:-10}),this.pie8=this.pie8||k(t,{h:-60,l:-10}),this.pie9=this.pie9||k(t,{h:120,l:0}),this.pie10=this.pie10||k(t,{h:60,l:-20}),this.pie11=this.pie11||k(t,{h:-60,l:-20}),this.pie12=this.pie12||k(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||k(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((C=this.xyChart)==null?void 0:C.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||k(t,{h:-30}),this.git4=this.git4||k(t,{h:-60}),this.git5=this.git5||k(t,{h:-90}),this.git6=this.git6||k(t,{h:60}),this.git7=this.git7||k(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>
vendor: 5,837 bytes, line 37
37{this[i]=t[i]})}},p(Vi,"Theme"),Vi),Fx=p(e=>{const t=new Lx;return t.calculate(e),t},"getThemeVariables"),Ki,Ax=(Ki=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(O("#323D47"),10),this.border1="#ccc",this.border2=Xr(255,255,255,.25),this.arrowheadColor=O(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,s,a,o,n,c,l,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?z(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 5,036 bytes, line 37
37dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||O(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||z(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||W(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||k(this.primaryColor,{h:64}),this.fillType3=this.fillType3||k(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||k(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||k(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||k(this.primaryColor,{h:128}),this.fillType7=this.fillType7||k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-10}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
37{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ki,"Theme"),Ki),Ex=p(e=>{const t=new Ax;return t.calculate(e),t},"getThemeVariables"),Zi,Mx=(Zi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Lt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var a,o,n,c,l,h,u,d,f,g,C,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Se(this.background)?z(this.background,4):W(this.background,4));const t="#ECECFE",r="#E9E9F1",i=k(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackgroun
vendor: 4,225 bytes, line 37
37d="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=this.mainBkg;if(this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=W(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=W(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||O(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||z(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||W(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||k(t,{h:64}),this.fillType3=this.fillType3||k(r,{h:64}),this.fillType4=this.fillType4||k(t,{h:-64}),this.fillType5=this.fillType5||k(r,{h:-64}),this.fillType6=this.fillType6||k(t,{h:128}),this.fillType7=this.fillType7||k(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||k(t,{l:-10}),this.pie5=this.pie5||k(r,{l:-10}),this.pie6=this.pie6||k(i,{l:-10}),this.pie7=this.pie7||k(t,{h:60,l:-10}),this.pie8=this.pie8||k(t,{h:-60,l:-10}),this.pie9=this.pie9||k(t,{h:120,l:0}),this.pie10=this.pie10||k(t,{h:60,l:-20}),this.pie11=this.pie11||k(t,{h:-60,l:-20}),this.pie12=this.pie12||k(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||k(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((C=this.xyChart)==null?void 0:C.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||k(t,{h:-30}),this.git4=this.git4||k(t,{h:-60}),this.git5=this.git5||k(t,{h:-90}),this.git6=this.git6||k(t,{h:60}),this.git7=this.git7||k(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
vendor: 6,155 bytes, line 37
37{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Zi,"Theme"),Zi),$x=p(e=>{const t=new Mx;return t.calculate(e),t},"getThemeVariables"),Qi,Ox=(Qi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(O("#323D47"),10),this.border1="#ccc",this.border2=Xr(255,255,255,.25),this.arrowheadColor=O(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,s,a,o,n,c,l,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?z(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
vendor: 5,238 bytes, line 37
37d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||O(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||z(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||W(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||k(this.primaryColor,{h:64}),this.fillType3=this.fillType3||k(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||k(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||k(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||k(this.primaryColor,{h:128}),this.fillType7=this.fillType7||k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-10}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackgroun
37d="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Qi,"Theme"),Qi),Ix=p(e=>{const t=new Ox;return t.calculate(e),t},"getThemeVariables"),Ji,Dx=(Ji=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Lt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){var a,o,n,c,l,h,u,d,f,g,C,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||(Se(this.background)?z(this.background,4):W(this.background,4));
vendor: 5,550 bytes, line 37
37const t="#ECECFE",r="#E9E9F1",i=k(t,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||z(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||O(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||z(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||W(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||k(this.mainBkg,{h:180,s:-15,l:s*(8+y*3)});this.classText=this.classText||this.textColor;for(let y=0;y<8;y++)this["fillType"+y]=this["fillType"+y]||this.bkgColorArray[y];for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["pie"+(y+1)]=this["pie"+(y+1)]||this["cScale"+y];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let y=0;y<8;y++)this["venn"+(y+1)]=this["venn"+(y+1)]??this.borderColorArray[y%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||k(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((C=this.xyChart)==null?void 0:C.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||k(t,{h:-30}),this.git4=this.git4||k(t,{h:-60}),this.git5=this.git5||k(t,{h:-90}),this.git6=this.git6||k(t,{h:60}),this.git7=this.git7||k(t,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroun
vendor: 6,390 bytes, line 37
37dColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ji,"Theme"),Ji),Px=p(e=>{const t=new Dx;return t.calculate(e),t},"getThemeVariables"),ts,Rx=(ts=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=O(this.primaryColor),this.secondaryTextColor=O(this.secondaryColor),this.tertiaryTextColor=O(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(O("#323D47"),10),this.border1="#ccc",this.border2=Xr(255,255,255,.25),this.arrowheadColor=O(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){var i,s,a,o,n,c,l,h,u,d,f,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?z(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackgroun
vendor: 4,156 bytes, line 37
37d=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||O(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||z(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||W(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=W(this["cScale"+C],75);const t=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||k(this.mainBkg,{h:180,s:-15,l:t*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||k(this.mainBkg,{h:180,s:-15,l:t*(8+C*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((C,x)=>{this["fillType"+x]=this["fillType"+x]||C});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+(C+1)]=this["pie"+(C+1)]||this["cScale"+C];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let C=0;C<8;C++)this["venn"+(C+1)]=this["venn"+(C+1)]??this.borderColorArray[C%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((i=this.xyChart)==null?void 0:i.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,legendTextColor:((a=this.xyChart)==null?void 0:a.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackgroun
37d="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(ts,"Theme"),ts),qx=p(e=>{const t=new Rx;return t.calculate(e),t},"getThemeVariables"),es,Nx=(es=class{constructor(){this.background="#ffffff",this.primaryColor="#ECECFE",this.secondaryColor="#E9E9F1",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,s,a,o,n,c,l,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||"#BCBCFB",this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||O(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||O(this.tertiaryColor),this.lineColor=this.lineColor||O(this.background),this.arrowheadColor=this.arrowheadColor||O(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.rectBkgColor=this.rectBkgColor||(Se(this.background)?z(this.background,4):W(this.background,4)),this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||W(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||O(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 5,487 bytes, line 37
37dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=W(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||O(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||z(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||W(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||k(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||k(this.primaryColor,{h:64}),this.fillType3=this.fillType3||k(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||k(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||k(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||k(this.primaryColor,{h:128}),this.fillType7=this.fillType7||k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-10}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.venn1=this.venn1??k(this.primaryColor,{l:-30}),this.venn2=this.venn2??k(this.secondaryColor,{l:-30}),this.venn3=this.venn3??k(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??k(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??k(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??k(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??k(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??k(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Se(this.quadrant1Fill)?z(this.quadrant1Fill):W(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
37nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?W(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=W(this.git0,25),this.git1=W(this.git1,25),this.git2=W(this.git2,25),this.git3=W(this.git3,25),this.git4=W(this.git4,25),this.git5=W(this.git5,25),this.git6=W(this.git6,25),this.git7=W(this.git7,25)),this.gitInv0=this.gitInv0||O(this.git0),this.gitInv1=this.gitInv1||O(this.git1),this.gitInv2=this.gitInv2||O(this.git2),this.gitInv3=this.gitInv3||O(this.git3),this.gitInv4=this.gitInv4||O(this.git4),this.gitInv5=this.gitInv5||O(this.git5),this.gitInv6=this.gitInv6||O(this.git6),this.gitInv7=this.gitInv7||O(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rr,this.attributeBackgroundColorEven=this.attributeBackgroun
37dColorEven||ir}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(es,"Theme"),es),Wx=p(e=>{const t=new Nx;return t.calculate(e),t},"getThemeVariables"),Er={base:{getThemeVariables:xx},dark:{getThemeVariables:kx},default:{getThemeVariables:Tx},forest:{getThemeVariables:_x},neutral:{getThemeVariables:vx},neo:{getThemeVariables:Fx},"neo-dark":{getThemeVariables:Ex},redux:{getThemeVariables:$x},"redux-dark":{getThemeVariables:Ix},"redux-color":{getThemeVariables:Px},"redux-dark-color":{getThemeVariables:qx},mc:{getThemeVariables:Wx}},oe={flowchart:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",edgeDebug:!1,padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,parser:"jison",titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,parser:"jison",diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,parser:"jison",textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,parser:"jison",chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExter
vendor: 7,077 bytes, line 37
37nalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,parser:"jison",width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,parser:"jison",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,parser:"jison",diagramPadding:20},kanban:{useMaxWidth:!0,parser:"jison",padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,parser:"jison",diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,parser:"jison",titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,parser:"jison",diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,parser:"jison",width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,parser:"jison",padding:8},packet:{useMaxWidth:!0,parser:"jison",rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,parser:"jison",rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,parser:"jison",padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,parser:"jison",padding:30,rowHeight:32},radar:{useMaxWidth:!0,parser:"jison",width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
3717},usecase:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,parser:"jison",theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,parser:"jison",width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Of,If,Df,Kf={...oe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:Er.default.getThemeVariables(),sequence:{...oe.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:(Of=oe.class)==null?void 0:Of.theme,look:(If=oe.class)==null?void 0:If.look,layout:(Df=oe.class)==null?void 0:Df.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...oe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...oe.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...oe.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...oe.pie,useWidth:984}
37,xyChart:{...oe.xyChart,useWidth:void 0},requirement:{...oe.requirement,useWidth:void 0},packet:{...oe.packet},eventmodeling:{...oe.eventmodeling},treeView:{...oe.treeView,useWidth:void 0},radar:{...oe.radar},usecase:{...oe.usecase},railroad:{...oe.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...oe.ishikawa},sankey:{...oe.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...oe.venn},cynefin:{...oe.cynefin}},Zf=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Zf(e[i],"")]:[...r,t+i],[]),"keyify"),zx=new Set(Zf(Kf,"")),Oh=Kf,Hx={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},jx=p(e=>Hx[e]??e,"getDiagramConfigKey"),Yx={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Ux=p((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(J.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),yo=p(e=>{if(J.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>yo(t));return}for(const t of Object.keys(e)){if(J.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!zx.has(t)||e[t]==null){J.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=Yx[t];i?Ux(e[t],i):(J.debug("sanitizing object",t),yo(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(J.debug("sanitizing css option",t),e[t]=Qf(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}J.debug("After sanitization",e)}},"sanitizeDirective"),Qf=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Vr=Object.freeze(Oh),Gx=["theme","look","layout"],Xx=new Set(["classic","handDrawn","neo"]),Vx=p((e,t)=>e==="theme"?t==="null"||Object.hasOwn(Er,t):e!=="look"||Xx.has(t),"isUsableAppearance"),Kx=p((e,t,r)=>{if(!e)return;const i=e[t];return[i==null?void 0:i[r],e[r]].find(s=>s!==void 0&&Vx(r,s))},"readAppearance"),pr=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),ve=he({},Vr),Co,xo={},Mr=[],Xs=he({},Vr),Vs,Zx=p((e,t)=>{if(!Vs)return;const r=[t,...[...Mr].reverse(),xo,Vr],i=e[Vs];for(const s of Gx)for(const a of r){const o=Kx(a,Vs,s);if(o!==void 0){e[s]=o,(i==null?void 0:i[s])!==void 0&&(i[s]=o);break}}},"resolveAppearance"),xs=p((e,t)=>{let r=he({},e),i={};for(const a of t)eg(a),i=he(i,a);if(r=he(r,i),Zx(r,i),(!!i.theme||r.theme!==e.theme)&&r.theme&&Object.hasOwn(Er,r.theme)){const a=he({},Co),o=he(a.themeVariables||{},i.themeVariables);r.themeVariables=Er[r.theme].getThemeVariables(o)}return Xs=r,ib(Xs),Xs},"updateCurrentConfig"),Ih=p(e=>{Vs=e===void 0?void 0:jx(e),xs(ve,Mr)},"setDiagramConfigScope"),Qx=p(e=>(ve=he({},Vr),ve=he(ve,e),xo=he({},e),e.theme&&Object.hasOwn(Er,e.theme)&&(ve.themeVariables=Er[e.theme].getThemeVariables(e.themeVariables)),xs(ve,Mr),ve),"setSiteConfig"),Jx=p(e=>{Co=he({},e)},"saveConfigFromInitialize"),tb=p(e=>(ve=he(ve,e),xo=he(xo,e),xs(ve,Mr),ve),"updateSiteConfig"),Jf=p(()=>he({},ve),"getSiteConfig"),tg=p(e=>(xs(Xs,[e]),Qt()),"setConfig"),Qt=p(()=>he({},Xs),"getConfig"),eg=p(e=>
37{e&&(["secure",...ve.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(J.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&eg(e[t])}))},"sanitize"),eb=p(e=>{var t;yo(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Mr.push(e),xs(ve,Mr)},"addDirective"),bo=p((e=ve)=>{Mr=[],Vs=void 0,xs(e,Mr)},"reset"),rb={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},$u={},rg=p(e=>{$u[e]||(J.warn(rb[e]),$u[e]=!0)},"issueWarning"),ib=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&rg("LAZY_LOAD_DEPRECATED")},"checkConfig"),w3=p(()=>{let e={};Co&&(e=he(e,Co));for(const t of Mr)e=he(e,t);return e},"getUserDefinedConfig"),me=p(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&rg("FLOWCHART_HTML_LABELS_DEPRECATED"),pr(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),ga=/<\/?br\s*\/?>/gi,sb=new RegExp(ga.source,"i"),ab=p(e=>
37e?ag(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ob=(()=>{let e=!1;return()=>{e||(ig(),e=!0)}})();function ig(){const e="data-temp-href-target";cs.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),cs.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(ig,"setupDompurifyHooks");var sg=p(e=>(ob(),cs.sanitize(e)),"removeScript"),Ou=p((e,t)=>{if(me(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=sg(e):r!=="loose"&&(e=ag(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=cb(e))}return e},"sanitizeMore"),je=p((e,t)=>(!e||t.securityLevel==="parseOnly"||(t.dompurifyConfig?e=cs.sanitize(Ou(e,t),t.dompurifyConfig).toString():e=cs.sanitize(Ou(e,t),{FORBID_TAGS:["style"]}).toString()),e),"sanitizeText"),nb=p((e,t)=>typeof e=="string"?je(e,t):e.flat().map(r=>je(r,t)),"sanitizeTextOrArray"),lb=p(e=>sb.test(e),"hasBreaks"),hb=p(e=>e.split(ga),"splitBreaks"),cb=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),ag=p(e=>e.replace(ga,"#br#"),"breakToPlaceholder"),ub=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),db=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),fb=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Iu=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let s=t[i];if(s===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];gb(a,o)&&(s=a+","+o,i++,r.pop())}r.push(pb(s))}return r.join("")},"parseGenericTypes"),Bl=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),gb=p((e,t)=>{const r=Bl(e,"~"),i=Bl(t,"~");return r===1&&i===1},"shouldCombineSets"),pb=p(e=>{const t=Bl(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let s=i.indexOf("~"),a=i.lastIndexOf("~");for(;s!==-1&&a!==-1&&s!==a;)i[s]="<",i[a]=">",s=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Du=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),vl=/\$\$(.*?)\$\$/g,Js=p(e=>{var t;return(((t=e.match(vl))==null?void 0:t.length)??0)>0},"hasKatex"),T3=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await og(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),mb=p(async(e,t)=>{if(!Js(e))return e;if(!(Du()||t.legacyMathML||t.forceLegacyMathML))return e.replace(vl,"MathML is unsupported in this environment.");{const{default:r}=await It(async()=>{const{default:s}=await import("./C5jXJg4s.js");return{default:s}},[]),i=t.forceLegacyMathML||!Du()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(ga).map(s=>Js(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(vl,(s,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),og=p(async(e,t)=>je(await mb(e,t),t),"renderKatexSanitized"),pa={getRows:ab,sanitizeText:je,sanitizeTextOrArray:nb,hasBreaks:lb,splitBreaks:hb,lineBreakRegex:ga,removeScript:sg,getUrl:ub,evaluate:pr,getMax:db,getMin:fb},ng={};QC(ng,{clear:()=>yb,getAccDescription:()=>kb,getAccTitle:()=>xb,getDiagramTitle:()=>Tb,setAccDescription:()=>bb,setAccTitle:()=>Cb,setDiagramTitle:()=>wb});var Dh="",Ph="",Rh="",qh=p(e=>je(e,Qt()),"sanitizeText"),yb=p(()=>{Dh="",Rh="",Ph=""},"clear"),Cb=p(e=>{Dh=qh(e).replace(/^\s+/g,"")},"setAccTitle"),xb=p(()=>Dh,"getAccTitle"),bb=p(e=>{Rh=qh(e).replace(/\n\s+/g,`
38`)},"setAccDescription"),kb=p(()=>Rh,"getAccDescription"),wb=p(e=>{Ph=qh(e)},"setDiagramTitle"),Tb=p(()=>Ph,"getDiagramTitle"),Sb=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),_b=p(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),lg=p(function(e,t,r,i){const s=_b(t,r,i);
38Sb(e,s)},"configureSvgSize"),Bb=p(function(e,t,r,i){const s=t.node().getBBox(),a=s.width,o=s.height;J.info(`SVG bounds: ${a}x${o}`,s);let n=0,c=0;J.info(`Graph bounds: ${n}x${c}`,e),n=a+r*2,c=o+r*2,J.info(`Calculated bounds: ${n}x${c}`),lg(t,c,n,i);const l=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",l)},"setupGraphViewbox"),to={};function Ll(e){return[...e.cssRules].map(t=>t.cssText).join(`
39`)}p(Ll,"cssStyleSheetToString");var vb=p((e,t,r,i)=>{let s="";return e in to&&to[e]?s=to[e]({...r,svgId:i}):J.warn(`No theme found for ${e}`),`& {
40    font-family: ${r.fontFamily};
41    font-size: ${r.fontSize};
42    fill: ${r.textColor}
43  }
44  @keyframes edge-animation-frame {
45    from {
46      stroke-dashoffset: 0;
47    }
48  }
49  @keyframes dash {
50    to {
51      stroke-dashoffset: 0;
52    }
53  }
54  & .edge-animation-slow {
55    stroke-dasharray: 9,5 !important;
56    stroke-dashoffset: 900;
57    animation: dash 50s linear infinite;
58    stroke-linecap: round;
59  }
60  & .edge-animation-fast {
61    stroke-dasharray: 9,5 !important;
62    stroke-dashoffset: 900;
63    animation: dash 20s linear infinite;
64    stroke-linecap: round;
65  }
66  /* Classes common for multiple diagrams */
67
68  & .error-icon {
69    fill: ${r.errorBkgColor};
70  }
71  & .error-text {
72    fill: ${r.errorTextColor};
73    stroke: ${r.errorTextColor};
74  }
75
76  & .edge-thickness-normal {
77    stroke-width: ${r.strokeWidth??1}px;
78  }
79  & .edge-thickness-thick {
80    stroke-width: 3.5px
81  }
82  & .edge-pattern-solid {
83    stroke-dasharray: 0;
84  }
85  & .edge-thickness-invisible {
86    stroke-width: 0;
87    fill: none;
88  }
89  & .edge-pattern-dashed{
90    stroke-dasharray: 3;
91  }
92  .edge-pattern-dotted {
93    stroke-dasharray: 2;
94  }
95
96  & .marker {
97    fill: ${r.lineColor};
98    stroke: ${r.lineColor};
99  }
100  & .marker.cross {
101    stroke: ${r.lineColor};
102  }
103
104  & svg {
105    font-family: ${r.fontFamily};
106    font-size: ${r.fontSize};
107  }
108   & p {
109    margin: 0
110   }
111
112  ${s}
113  .node .neo-node {
114    stroke: ${r.nodeBorder};
115  }
116
117  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
118    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
119    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
120  }
121  [data-look="neo"].swimlane.cluster rect {
122    filter: none;
123  }
124
125
126  [data-look="neo"].node path {
127    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
128    stroke-width: ${r.strokeWidth??1}px;
129  }
130
131  [data-look="neo"].node .outer-path {
132    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
133  }
134
135  [data-look="neo"].node .neo-line path {
136    stroke: ${r.nodeBorder};
137    filter: none;
138  }
139
140  [data-look="neo"].node circle{
141    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
142    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
143  }
144
145  [data-look="neo"].node circle .state-start{
146    fill: #000000;
147  }
148
149  [data-look="neo"].icon-shape .icon {
150    fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
151    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
152  }
153
154    [data-look="neo"].icon-shape .icon-neo path {
155    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
156    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
157  }
158
159  ${t}
160`},"getStyles"),Lb=p((e,t)=>{t!==void 0&&(to[e]=t)},"addStylesForDiagram"),Fb=vb,Pu=J,Ab=$h,Ot=Qt,S3=tg,_3=Vr,Nh=p(e=>je(e,Ot()),"sanitizeText"),Eb=Bb,Mb=p(()=>ng,"getCommonDb"),ko={},wo=p((e,t,r)=>{var i;ko[e]&&Pu.warn(`Diagram with id ${e} already registered. Overwriting.`),ko[e]=t,r&&Vf(e,r),Lb(e,t.styles),(i=t.injectUtils)==null||i.call(t,Pu,Ab,Ot,Nh,Eb,Mb(),()=>{})},"registerDiagram"),Fl=p(e=>{if(e in ko)return ko[e];throw new $b(e)},"getDiagram"),rs,$b=(rs=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p(rs,"DiagramNotFoundError"),rs),Ob=p(e=>{const{handDrawnSeed:t}=Ot();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Ib=p(e=>Array.isArray(e)?e:e?e.split(";").map(t=>
160t.trim()).filter(Boolean):[],"normalizeStyleList"),ti=p(e=>{const t=Db([...e.cssCompiledStyles||[],...e.cssStyles||[],...Ib(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Db=p(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),hg=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),Ct=p(e=>{const{stylesArray:t}=ti(e),r=[],i=[],s=[],a=[];return t.forEach(o=>{const n=o[0];hg(n)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),n.includes("stroke")&&s.push(o.join(":")+" !important"),n==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:a}},"styles2String"),ft=p((e,t)=>{var c;const{themeVariables:r,handDrawnSeed:i}=Ot(),{nodeBorder:s,mainBkg:a}=r,{stylesMap:o}=ti(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:o.get("stroke")||s,seed:i,strokeWidth:((c=o.get("stroke-width"))==null?void 0:c.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:Pb(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),Pb=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const Rb=Object.freeze({left:0,top:0,width:16,height:16}),To=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),cg=Object.freeze({...Rb,...To}),qb=Object.freeze({...cg,body:"",hidden:!1}),Nb=Object.freeze({width:null,height:null}),Wb=Object.freeze({...Nb,...To}),zb=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const n=s.pop(),c=s.pop(),l={provider:s.length>0?s[0]:i,prefix:c,name:n};return il(l)?l:null}const a=s[0],o=a.split("-");if(o.length>1){const n={provider:i,prefix:o.shift(),name:o.join("-")};return il(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:a};return il(n,r)?n:null}return null},il=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Hb(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function Ru(e,t){const r=Hb(e,t);for(const i in qb)i in To?i in e&&!(i in r)&&(r[i]=To[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function jb(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function a(o){if(r[o])return s[o]=[];if(!(o in s)){s[o]=null;const n=i[o]&&i[o].parent,c=n&&a(n);c&&(s[o]=[n].concat(c))}return s[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),s}function qu(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let a={};function o(n){a=Ru(i[n]||s[n],a)}return o(t),r.forEach(o),Ru(e,a)}function Yb(e,t){if(e.icons[t])return qu(e,t,[]);const r=jb(e,[t])[t];return r?qu(e,t,r):null}const Ub=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Nu(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(Ub);if(i===null||!i.length)return e;const s=[];let a=i.shift(),o=Gb.test(a);for(;;){if(o){const n=parseFloat(a);isNaN(n)?s.push(a):s.push(Math.ceil(n*t*r)/r)}else s.push(a);if(a=i.shift(),a===void 0)return s.join("");o=!o}}function Xb(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(s+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function Vb(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Kb(e,t,r){const i=Xb(e);return Vb(i.defs,t+i.content+r)}const Zb=e=>e==="unset"||e==="undefined"||e==="none";function Qb(e,t){const r={...cg,...e},i={...Wb,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;
160[r,i].forEach(C=>{const x=[],y=C.hFlip,b=C.vFlip;let w=C.rotate;y?b?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):b&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let T;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:T=s.height/2+s.top,x.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:T=s.width/2+s.left,x.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}w%2===1&&(s.left!==s.top&&(T=s.left,s.left=s.top,s.top=T),s.width!==s.height&&(T=s.width,s.width=s.height,s.height=T)),x.length&&(a=Kb(a,'<g transform="'+x.join(" ")+'">',"</g>"))});const o=i.width,n=i.height,c=s.width,l=s.height;let h,u;o===null?(u=n===null?"1em":n==="auto"?l:n,h=Nu(u,c/l)):(h=o==="auto"?c:o,u=n===null?Nu(h,l/c):n==="auto"?l:n);const d={},f=(C,x)=>{Zb(x)||(d[C]=x.toString())};f("width",h),f("height",u);const g=[s.left,s.top,c,l];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:a}}const Jb=/\sid="(\S+)"/g,tk="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ek=0;function rk(e,t=tk){const r=[];let i;for(;i=Jb.exec(e);)r.push(i[1]);if(!r.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const o=typeof t=="function"?t(a):t+(ek++).toString(),n=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+o+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}function ik(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var sk={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},Al=new Map,ug=new Map,ak=p(e=>{const t=/^(fa[bklrs]?)\s+fa-(.+)$/.exec(e);if(t)return`${t[1]}:${t[2]}`;const r=/^([a-z][\da-z]*)\s+\1-(.+)$/.exec(e);return r?`${r[1]}:${r[2]}`:e},"normalizeCssIconName"),ok=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(J.debug("Registering icon pack:",t.name),"loader"in t)ug.set(t.name,t.loader);else if("icons"in t)Al.set(t.name,t.icons);else throw J.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),dg=p(async(e,t)=>{const r=zb(ak(e),!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let s=Al.get(i);if(!s){const o=ug.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await o(),prefix:i},Al.set(i,s)}catch(n){throw J.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=Yb(s,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),fg=p(async e=>{try{return await dg(e),!0}catch{return!1}},"isIconAvailable"),Ue=p(async(e,t,r)=>{let i;try{i=await dg(e,t==null?void 0:t.fallbackPrefix)}catch(o){J.error(o),i=sk}const s=Qb(i,t),a=ik(rk(s.body),{...s.attributes,...r});return je(a,Qt())},"getIconSVG"),gg={},pe={};Object.defineProperty(pe,"__esModule",{value:!0});pe.BLANK_URL=pe.relativeFirstCharacters=pe.whitespaceEscapeCharsRegex=pe.urlSchemeRegex=pe.ctrlCharactersRegex=pe.htmlCtrlEntityRegex=pe.htmlEntitiesRegex=pe.invalidProtocolRegex=void 0;pe.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;pe.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;pe.htmlCtrlEntityRegex=/&(newline|tab);/gi;pe.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;pe.urlSchemeRegex=/^.+(:|&colon;)/gim;pe.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;pe.relativeFirstCharacters=[".","/"];pe.BLANK_URL="about:blank";
160Object.defineProperty(gg,"__esModule",{value:!0});var nk=gg.sanitizeUrl=uk,we=pe;function lk(e){return we.relativeFirstCharacters.indexOf(e[0])>-1}function hk(e){var t=e.replace(we.ctrlCharactersRegex,"");return t.replace(we.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function ck(e){return URL.canParse(e)}function Wu(e){try{return decodeURIComponent(e)}catch{return e}}function uk(e){if(!e)return we.BLANK_URL;var t,r=Wu(e.trim());do r=hk(r).replace(we.htmlCtrlEntityRegex,"").replace(we.ctrlCharactersRegex,"").replace(we.whitespaceEscapeCharsRegex,"").trim(),r=Wu(r),t=r.match(we.ctrlCharactersRegex)||r.match(we.htmlEntitiesRegex)||r.match(we.htmlCtrlEntityRegex)||r.match(we.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return we.BLANK_URL;if(lk(i))return i;var s=i.trimStart(),a=s.match(we.urlSchemeRegex);if(!a)return i;var o=a[0].toLowerCase().trim();if(we.invalidProtocolRegex.test(o))return we.BLANK_URL;var n=s.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return n;if(o==="http:"||o==="https:"){if(!ck(n))return we.BLANK_URL;var c=new URL(n);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return n}var dk={value:()=>{}};function pg(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new eo(r)}function eo(e){this._=e}function fk(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}eo.prototype=pg.prototype={constructor:eo,on:function(e,t){var r=this._,i=fk(e+"",r),s,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((s=(e=i[a]).type)&&(s=gk(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(s=(e=i[a]).type)r[s]=zu(r[s],e.name,t);else if(t==null)for(s in r)r[s]=zu(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new eo(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,a;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,s=a.length;i<s;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,a=i.length;s<a;++s)i[s].value.apply(t,r)}};function gk(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function zu(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=dk,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var El="http://www.w3.org/1999/xhtml";const Hu={svg:"http://www.w3.org/2000/svg",xhtml:El,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vo(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Hu.hasOwnProperty(t)?{space:Hu[t],local:e}:e}function pk(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===El&&t.documentElement.namespaceURI===El?t.createElement(e):t.createElementNS(r,e)}}function mk(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function mg(e){var t=Vo(e);return(t.local?mk:pk)(t)}function yk(){}function Wh(e){return e==null?yk:function(){return this.querySelector(e)}}function Ck(e){typeof e!="function"&&(e=Wh(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],o=a.length,n=i[s]=new Array(o),c,l,h=0;h<o;++h)(c=a[h])&&(l=e.call(c,c.__data__,h,a))&&("__data__"in c&&(l.__data__=c.__data__),n[h]=l);return new Ie(i,this._parents)}function xk(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function bk(){return[]}function yg(e){return e==null?bk:function(){return this.querySelectorAll(e)}}function kk(e){return function(){return xk(e.apply(this,arguments))}}function wk(e){typeof e=="function"?e=kk(e):e=yg(e);for(var t=this._groups,r=t.length,i=[],s=[],a=0;a<r;++a)for(var o=t[a],n=o.length,c,l=0;l<n;++l)(c=o[l])&&(i.push(e.call(c,c.__data__,l,o)),s.push(c));return new Ie(i,s)}function Cg(e){return function(){return this.matches(e)}}function xg(e){return function(t){return t.matches(e)}}var Tk=Array.prototype.find;function Sk(e){return function(){return Tk.call(this.children,e)}}function _k(){return this.firstElementChild}function Bk(e){return this.select(e==null?_k:Sk(typeof e=="function"?e:xg(e)))}var vk=Array.prototype.filter;function Lk(){return Array.from(this.children)}function Fk(e){return function(){return vk.call(this.children,e)}}function Ak(e){return this.selectAll(e==null?Lk:Fk(typeof e=="function"?e:xg(e)))}function Ek(e){typeof e!="function"&&(e=Cg(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],o=a.length,n=i[s]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&n.push(c);return new Ie(i,this._parents)}function bg(e){return new Array(e.length)}function Mk(){return new Ie(this._enter||this._groups.map(bg),this._parents)}function So(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}So.prototype={constructor:So,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function $k(e){return function(){return e}}function Ok(e,t,r,i,s,a){for(var o=0,n,c=t.length,l=a.length;o<l;++o)(n=t[o])?(n.__data__=a[o],i[o]=n):r[o]=new So(e,a[o]);for(;o<c;
vendor: 8,947 bytes, line 160
160++o)(n=t[o])&&(s[o]=n)}function Ik(e,t,r,i,s,a,o){var n,c,l=new Map,h=t.length,u=a.length,d=new Array(h),f;for(n=0;n<h;++n)(c=t[n])&&(d[n]=f=o.call(c,c.__data__,n,t)+"",l.has(f)?s[n]=c:l.set(f,c));for(n=0;n<u;++n)f=o.call(e,a[n],n,a)+"",(c=l.get(f))?(i[n]=c,c.__data__=a[n],l.delete(f)):r[n]=new So(e,a[n]);for(n=0;n<h;++n)(c=t[n])&&l.get(d[n])===c&&(s[n]=c)}function Dk(e){return e.__data__}function Pk(e,t){if(!arguments.length)return Array.from(this,Dk);var r=t?Ik:Ok,i=this._parents,s=this._groups;typeof e!="function"&&(e=$k(e));for(var a=s.length,o=new Array(a),n=new Array(a),c=new Array(a),l=0;l<a;++l){var h=i[l],u=s[l],d=u.length,f=Rk(e.call(h,h&&h.__data__,l,i)),g=f.length,C=n[l]=new Array(g),x=o[l]=new Array(g),y=c[l]=new Array(d);r(h,u,C,x,y,f,t);for(var b=0,w=0,T,_;b<g;++b)if(T=C[b]){for(b>=w&&(w=b+1);!(_=x[w])&&++w<g;);T._next=_||null}}return o=new Ie(o,i),o._enter=n,o._exit=c,o}function Rk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qk(){return new Ie(this._exit||this._groups.map(bg),this._parents)}function Nk(e,t,r){var i=this.enter(),s=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?a.remove():r(a),i&&s?i.merge(s).order():s}function Wk(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,a=i.length,o=Math.min(s,a),n=new Array(s),c=0;c<o;++c)for(var l=r[c],h=i[c],u=l.length,d=n[c]=new Array(u),f,g=0;g<u;++g)(f=l[g]||h[g])&&(d[g]=f);for(;c<s;++c)n[c]=r[c];return new Ie(n,this._parents)}function zk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,a=i[s],o;--s>=0;)(o=i[s])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Hk(e){e||(e=jk);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a){for(var o=r[a],n=o.length,c=s[a]=new Array(n),l,h=0;h<n;++h)(l=o[h])&&(c[h]=l);c.sort(t)}return new Ie(s,this._parents).order()}function jk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Uk(){return Array.from(this)}function Gk(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,a=i.length;s<a;++s){var o=i[s];if(o)return o}return null}function Xk(){let e=0;for(const t of this)++e;return e}function Vk(){return!this.node()}function Kk(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],a=0,o=s.length,n;a<o;++a)(n=s[a])&&e.call(n,n.__data__,a,s);return this}function Zk(e){return function(){this.removeAttribute(e)}}function Qk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jk(e,t){return function(){this.setAttribute(e,t)}}function t1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function e1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function r1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function i1(e,t){var r=Vo(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Qk:Zk:typeof t=="function"?r.local?r1:e1:r.local?t1:Jk)(r,t))}function kg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function s1(e){return function(){this.style.removeProperty(e)}}function a1(e,t,r){return function(){this.style.setProperty(e,t,r)}}function o1(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function n1(e,t,r){return arguments.length>1?this.each((t==null?s1:typeof t=="function"?o1:a1)(e,t,r??"")):us(this.node(),e)}function us(e,t){return e.style.getPropertyValue(t)||kg(e).getComputedStyle(e,null).getPropertyValue(t)}function l1(e){return function(){delete this[e]}}function h1(e,t){return function(){this[e]=t}}function c1(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function u1(e,t){return arguments.length>1?this.each((t==null?l1:typeof t=="function"?c1:h1)(e,t)):this.node()[e]}function wg(e){return e.trim().split(/^|\s+/)}function zh(e){return e.classList||new Tg(e)}function Tg(e){this._node=e,this._names=wg(e.getAttribute("class")||"")}Tg.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Sg(e,t){for(var r=zh(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function _g(e,t){for(var r=zh(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function d1(e){return function(){Sg(this,e)}}function f1(e){return function(){_g(this,e)}}function g1(e,t){return function(){(t.apply(this,arguments)?Sg:_g)(this,e)}}function p1(e,t){var r=wg(e+"");if(arguments.length<2){for(var i=zh(this.node()),s=-1,a=r.length;++s<a;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?g1:t?d1:f1)(r,t))}function m1(){this.textContent=""}function y1(e){return function(){this.textContent=e}}function C1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function x1(e){return arguments.length?this.each(e==null?m1:(typeof e=="function"?C1:y1)(e)):this.node().textContent}function b1(){this.innerHTML=""}function k1(e){return function(){this.innerHTML=e}}function w1(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function T1(e){return arguments.length?this.each(e==null?b1:(typeof e=="function"?w1:k1)(e)):this.node().innerHTML}function S1(){this.nextSibling&&this.parentNode.appendChild(this)}function _1(){return this.each(S1)}function B1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function v1(){return this.each(B1)}function L1(e){var t=typeof e=="function"?e:mg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function F1(){return null}function A1(e,t){var r=typeof e=="function"?e:mg(e),i=t==null?F1:typeof t=="function"?t:Wh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function E1(){var e=this.parentNode;e&&e.removeChild(this)}function M1(){return this.each(E1)}function $1(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function O1(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function I1(e){return this.select(e?O1:$1)}function D1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function P1(e){return function(t){e.call(this,t,this.__data__)}}function R1(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function q1(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,a;r<s;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function N1(e,t,r){return function(){var i=this.__on,s,a=P1(t);if(i){for(var o=0,n=i.length;o<n;++o)if((s=i[o]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=a,s.options=r),s.value=t;return}}this.addEventListener(e.type,a,r),s={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(s):this.__on=[s]}}function W1(e,t,r){var i=R1(e+""),s,a=i.length,o;if(arguments.length<2){var n=this.node().__on;if(n){for(var c=0,l=n.length,h;c<l;++c)for(s=0,h=n[c];s<a;++s)if((o=i[s]).type===h.type&&o.name===h.name)return h.value}return}for(n=t?N1:q1,s=0;s<a;++s)this.each(n(i[s],t,r));return this}function Bg(e,t,r){var i=kg(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function z1(e,t){return function(){return Bg(this,e,t)}}function H1(e,t){return function(){return Bg(this,e,t.apply(this,arguments))}}function j1(e,t){return this.each((typeof t=="function"?H1:z1)(e,t))}function*Y1(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,a=i.length,o;s<a;++s)(o=i[s])&&(yield o)}var vg=[null];function Ie(e,t){this._groups=e,this._parents=t}function ma(){return new Ie([[document.documentElement]],vg)}function U1(){return this}Ie.prototype=ma.prototype={constructor:Ie,select:Ck,selectAll:wk,selectChild:Bk,selectChildren:Ak,filter:Ek,data:Pk,enter:Mk,exit:qk,join:Nk,merge:Wk,selection:U1,order:zk,sort:Hk,call:Yk,nodes:Uk,node:Gk,size:Xk,empty:Vk,each:Kk,attr:i1,style:n1,property:u1,classed:p1,text:
160x1,html:T1,raise:_1,lower:v1,append:L1,insert:A1,remove:M1,clone:I1,datum:D1,on:W1,dispatch:j1,[Symbol.iterator]:Y1};function $t(e){return typeof e=="string"?new Ie([[document.querySelector(e)]],[document.documentElement]):new Ie([[e]],vg)}function Hh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Lg(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function ya(){}var ta=.7,_o=1/ta,Wi="\\s*([+-]?\\d+)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G1=/^#([0-9a-f]{3,8})$/,X1=new RegExp(`^rgb\\(${Wi},${Wi},${Wi}\\)$`),V1=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),K1=new RegExp(`^rgba\\(${Wi},${Wi},${Wi},${ea}\\)$`),Z1=new RegExp(`^rgba\\(${fr},${fr},${fr},${ea}\\)$`),Q1=new RegExp(`^hsl\\(${ea},${fr},${fr}\\)$`),J1=new RegExp(`^hsla\\(${ea},${fr},${fr},${ea}\\)$`),ju={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Hh(ya,ra,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yu,formatHex:Yu,formatHex8:t2,formatHsl:e2,formatRgb:Uu,toString:Uu});function Yu(){return this.rgb().formatHex()}function t2(){return this.rgb().formatHex8()}function e2(){return Fg(this).formatHsl()}function Uu(){return this.rgb().formatRgb()}function ra(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=G1.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Gu(t):r===3?new Ae(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?za(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?za(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=X1.exec(e))?new Ae(t[1],t[2],t[3],1):(t=V1.exec(e))?new Ae(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=K1.exec(e))?za(t[1],t[2],t[3],t[4]):(t=Z1.exec(e))?za(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Q1.exec(e))?Ku(t[1],t[2]/100,t[3]/100,1):(t=J1.exec(e))?Ku(t[1],t[2]/100,t[3]/100,t[4]):ju.hasOwnProperty(e)?Gu(ju[e]):e==="transparent"?new Ae(NaN,NaN,NaN,0):null}function Gu(e){return new Ae(e>>16&255,e>>8&255,e&255,1)}
160function za(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ae(e,t,r,i)}function r2(e){return e instanceof ya||(e=ra(e)),e?(e=e.rgb(),new Ae(e.r,e.g,e.b,e.opacity)):new Ae}function Ml(e,t,r,i){return arguments.length===1?r2(e):new Ae(e,t,r,i??1)}function Ae(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Hh(Ae,Ml,Lg(ya,{brighter(e){return e=e==null?_o:Math.pow(_o,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new Ae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ae(di(this.r),di(this.g),di(this.b),Bo(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xu,formatHex:Xu,formatHex8:i2,formatRgb:Vu,toString:Vu}));function Xu(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}`}function i2(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}${ui((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vu(){const e=Bo(this.opacity);return`${e===1?"rgb(":"rgba("}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${e===1?")":`, ${e})`}`}function Bo(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function di(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ui(e){return e=di(e),(e<16?"0":"")+e.toString(16)}function Ku(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Je(e,t,r,i)}function Fg(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof ya||(e=ra(e)),!e)return new Je;if(e instanceof Je)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,n=a-s,c=(a+s)/2;return n?(t===a?o=(r-i)/n+(r<i)*6:r===a?o=(i-t)/n+2:o=(t-r)/n+4,n/=c<.5?a+s:2-a-s,o*=60):n=c>0&&c<1?0:o,new Je(o,n,c,e.opacity)}
vendor: 14,863 bytes, line 160
160function s2(e,t,r,i){return arguments.length===1?Fg(e):new Je(e,t,r,i??1)}function Je(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Hh(Je,s2,Lg(ya,{brighter(e){return e=e==null?_o:Math.pow(_o,e),new Je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ta:Math.pow(ta,e),new Je(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new Ae(sl(e>=240?e-240:e+120,s,i),sl(e,s,i),sl(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Je(Zu(this.h),Ha(this.s),Ha(this.l),Bo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Bo(this.opacity);return`${e===1?"hsl(":"hsla("}${Zu(this.h)}, ${Ha(this.s)*100}%, ${Ha(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zu(e){return e=(e||0)%360,e<0?e+360:e}function Ha(e){return Math.max(0,Math.min(1,e||0))}function sl(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const jh=e=>()=>e;function Ag(e,t){return function(r){return e+r*t}}function a2(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function B3(e,t){var r=t-e;return r?Ag(e,r>180||r<-180?r-360*Math.round(r/360):r):jh(isNaN(e)?t:e)}function o2(e){return(e=+e)==1?Eg:function(t,r){return r-t?a2(t,r,e):jh(isNaN(t)?r:t)}}function Eg(e,t){var r=t-e;return r?Ag(e,r):jh(isNaN(e)?t:e)}const Qu=function e(t){var r=o2(t);function i(s,a){var o=r((s=Ml(s)).r,(a=Ml(a)).r),n=r(s.g,a.g),c=r(s.b,a.b),l=Eg(s.opacity,a.opacity);return function(h){return s.r=o(h),s.g=n(h),s.b=c(h),s.opacity=l(h),s+""}}return i.gamma=e,i}(1);function Yr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var $l=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,al=new RegExp($l.source,"g");function n2(e){return function(){return e}}function l2(e){return function(t){return e(t)+""}}function h2(e,t){var r=$l.lastIndex=al.lastIndex=0,i,s,a,o=-1,n=[],c=[];for(e=e+"",t=t+"";(i=$l.exec(e))&&(s=al.exec(t));)(a=s.index)>r&&(a=t.slice(r,a),n[o]?n[o]+=a:n[++o]=a),(i=i[0])===(s=s[0])?n[o]?n[o]+=s:n[++o]=s:(n[++o]=null,c.push({i:o,x:Yr(i,s)})),r=al.lastIndex;return r<t.length&&(a=t.slice(r),n[o]?n[o]+=a:n[++o]=a),n.length<2?c[0]?l2(c[0].x):n2(t):(t=c.length,function(l){for(var h=0,u;h<t;++h)n[(u=c[h]).i]=u.x(l);return n.join("")})}var Ju=180/Math.PI,Ol={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Mg(e,t,r,i,s,a){var o,n,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*r+t*i)&&(r-=e*c,i-=t*c),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,c/=n),e*i<t*r&&(e=-e,t=-t,c=-c,o=-o),{translateX:s,translateY:a,rotate:Math.atan2(t,e)*Ju,skewX:Math.atan(c)*Ju,scaleX:o,scaleY:n}}var ja;function c2(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ol:Mg(t.a,t.b,t.c,t.d,t.e,t.f)}function u2(e){return e==null||(ja||(ja=document.createElementNS("http://www.w3.org/2000/svg","g")),ja.setAttribute("transform",e),!(e=ja.transform.baseVal.consolidate()))?Ol:(e=e.matrix,Mg(e.a,e.b,e.c,e.d,e.e,e.f))}function $g(e,t,r,i){function s(l){return l.length?l.pop()+" ":""}function a(l,h,u,d,f,g){if(l!==u||h!==d){var C=f.push("translate(",null,t,null,r);g.push({i:C-4,x:Yr(l,u)},{i:C-2,x:Yr(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function o(l,h,u,d){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),d.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Yr(l,h)})):h&&u.push(s(u)+"rotate("+h+i)}function n(l,h,u,d){l!==h?d.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Yr(l,h)}):h&&u.push(s(u)+"skewX("+h+i)}function c(l,h,u,d,f,g){if(l!==u||h!==d){var C=f.push(s(f)+"scale(",null,",",null,")");g.push({i:C-4,x:Yr(l,u)},{i:C-2,x:Yr(h,d)})}else(u!==1||d!==1)&&f.push(s(f)+"scale("+u+","+d+")")}return function(l,h){var u=[],d=[];return l=e(l),h=e(h),a(l.translateX,l.translateY,h.translateX,h.translateY,u,d),o(l.rotate,h.rotate,u,d),n(l.skewX,h.skewX,u,d),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,u,d),l=h=null,function(f){for(var g=-1,C=d.length,x;++g<C;)u[(x=d[g]).i]=x.x(f);return u.join("")}}}var d2=$g(c2,"px, ","px)","deg)"),f2=$g(u2,", ",")",")"),ds=0,qs=0,Es=0,Og=1e3,vo,Ns,Lo=0,pi=0,Ko=0,ia=typeof performance=="object"&&performance.now?performance:Date,Ig=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return pi||(Ig(g2),pi=ia.now()+Ko)}function g2(){pi=0}function Fo(){this._call=this._time=this._next=null}Fo.prototype=Dg.prototype={constructor:Fo,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yh():+r)+(t==null?0:+t),!this._next&&Ns!==this&&(Ns?Ns._next=this:vo=this,Ns=this),this._call=e,this._time=r,Il()},stop:function(){this._call&&(this._call=null,this._time=1/0,Il())}};function Dg(e,t,r){var i=new Fo;return i.restart(e,t,r),i}function p2(){Yh(),++ds;for(var e=vo,t;e;)(t=pi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ds}function td(){pi=(Lo=ia.now())+Ko,ds=qs=0;try{p2()}finally{ds=0,y2(),pi=0}}function m2(){var e=ia.now(),t=e-Lo;t>Og&&(Ko-=t,Lo=e)}function y2(){for(var e,t=vo,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:vo=r);Ns=e,Il(i)}function Il(e){if(!ds){qs&&(qs=clearTimeout(qs));var t=e-pi;t>24?(e<1/0&&(qs=setTimeout(td,e-ia.now()-Ko)),Es&&(Es=clearInterval(Es))):(Es||(Lo=ia.now(),Es=setInterval(m2,Og)),ds=1,Ig(td))}}function ed(e,t,r){var i=new Fo;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var C2=pg("start","end","cancel","interrupt"),x2=[],Pg=0,rd=1,Dl=2,ro=3,id=4,Pl=5,io=6;function Zo(e,t,r,i,s,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;b2(e,r,{name:t,index:i,group:s,on:C2,tween:x2,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Pg})}function Uh(e,t){var r=sr(e,t);if(r.state>Pg)throw new Error("too late; already scheduled");return r}function mr(e,t){var r=sr(e,t);if(r.state>ro)throw new Error("too late; already running");return r}function sr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function b2(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=Dg(a,0,r.time);function a(l){r.state=rd,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var h,u,d,f;if(r.state!==rd)return c();for(h in i)if(f=i[h],f.name===r.name){if(f.state===ro)return ed(o);f.state===id?(f.state=io,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=io,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(ed(function(){r.state===ro&&(r.state=id,r.timer.restart(n,r.delay,r.time),n(l))}),r.state=Dl,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Dl){for(r.state=ro,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=f);s.length=u+1}}function n(l){for(var h=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(c),r.state=Pl,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===Pl&&(r.on.call("end",e,e.__data__,r.index,r.group),c())}function c(){r.state=io,r.timer.stop(),delete i[t];for(var l in i)return;delete e.__transition}}function k2(e,t){var r=e.__transition,i,s,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}s=i.state>Dl&&i.state<Pl,i.state=io,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}function w2(e){return this.each(function(){k2(this,e)})}function T2(e,t){var r,i;return function(){var s=mr(this,e),a=s.tween;if(a!==r){i=r=a;for(var o=0,n=i.length;o<n;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}s.tween=i}}function S2(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var a=mr(this,e),o=a.tween;if(o!==i){s=(i=o).slice();for(var n={name:t,value:r},c=0,l=s.length;c<l;++c)if(s[c].name===t){s[c]=n;break}c===l&&s.push(n)}a.tween=s}}function _2(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=sr(this.node(),r).tween,s=0,a=i.length,o;s<a;++s)if((o=i[s]).name===e)return o.value;return null}return this.each((t==null?T2:S2)(r,e,t))}function Gh(e,t,r){var i=e._id;return e.each(function(){var s=mr(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return sr(s,i).value[t]}}function Rg(e,t){var r;return(typeof t=="number"?Yr:t instanceof ra?Qu:(r=ra(t))?(t=r,Qu):h2)(e,t)}function B2(e){return function(){this.removeAttribute(e)}}function v2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function L2(e,t,r){var i,s=r+"",a;return function(){var o=this.getAttribute(e);return o===s?null:o===i?a:a=t(i=o,r)}}function F2(e,t,r){var i,s=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===s?null:o===i?a:a=t(i=o,r)}}function A2(e,t,r){var i,s,a;return function(){var o,n=r(this),c;return n==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=n+"",o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,n)))}}function E2(e,t,r){var i,s,a;return function(){var o,n=r(this),c;return n==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=n+"",o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,n)))}}function M2(e,t){var r=Vo(e),i=r==="transform"?f2:Rg;return this.attrTween(e,typeof t=="function"?(r.local?E2:A2)(r,i,Gh(this,"attr."+e,t)):t==null?(r.local?v2:B2)(r):(r.local?F2:L2)(r,i,t))}function $2(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function O2(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function I2(e,t){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&O2(e,a)),r}return s._value=t,s}function D2(e,t){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&$2(e,a)),r}return s._value=t,s}function P2(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Vo(e);return this.tween(r,(i.local?I2:D2)(i,t))}function R2(e,t){return function(){Uh(this,e).delay=+t.apply(this,arguments)}}function q2(e,t){return t=+t,function(){Uh(this,e).delay=t}}function N2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?R2:q2)(t,e)):sr(this.node(),t).delay}function W2(e,t){return function(){mr(this,e).duration=+t.apply(this,arguments)}}function z2(e,t){return t=+t,function(){mr(this,e).duration=t}}function H2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?W2:z2)(t,e)):sr(this.node(),t).duration}function j2(e,t){if(typeof t!="function")throw new Error;return function(){mr(this,e).ease=t}}function Y2(e){var t=this._id;return arguments.length?this.each(j2(t,e)):sr(this.node(),t).ease}function U2(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;mr(this,e).ease=r}}function G2(e){if(typeof e!="function")throw new Error;return this.each(U2(this._id,e))}function X2(e){typeof e!="function"&&(e=Cg(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],o=a.length,n=i[s]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&n.push(c);return new $r(i,this._parents,this._name,this._id)}function V2(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,a=Math.min(i,s),o=new Array(i),n=0;n<a;++n)for(var c=t[n],l=r[n],h=c.length,u=o[n]=new Array(h),d,f=0;f<h;++f)(d=c[f]||l[f])&&(u[f]=d);for(;n<i;++n)o[n]=t[n];return new $r(o,this._parents,this._name,this._id)}function K2(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Z2(e,t,r){var i,s,a=K2(t)?Uh:mr;return function(){var o=a(this,e),n=o.on;n!==i&&(s=(i=n).copy()).on(t,r),o.on=s}}function Q2(e,t){var r=this._id;return arguments.length<2?sr(this.node(),r).on.on(e):this.each(Z2(r,e,t))}function J2(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function tw(){return this.on("end.remove",J2(this._id))}function ew(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Wh(e));for(var i=this._groups,s=i.length,a=new Array(s),o=0;o<s;++o)for(var n=i[o],c=n.length,l=a[o]=new Array(c),h,u,d=0;d<c;++d)(h=n[d])&&(u=e.call(h,h.__data__,d,n))&&("__data__"in h&&(u.__data__=h.__data__),l[d]=u,Zo(l[d],t,r,d,l,sr(h,r)));return new $r(a,this._parents,t,r)}function rw(e){var t=this._name,r=this._id;typeof e!="function"&&(e=yg(e));for(var i=this._groups,s=i.length,a=[],o=[],n=0;n<s;++n)for(var c=i[n],l=c.length,h,u=0;u<l;++u)if(h=c[u]){for(var d=e.call(h,h.__data__,u,c),f,g=sr(h,r),C=0,x=d.length;C<x;++C)(f=d[C])&&Zo(f,t,r,C,d,g);a.push(d),o.push(h)}return new $r(a,o,t,r)}var iw=ma.prototype.constructor;function sw(){return new iw(this._groups,this._parents)}function aw(e,t){var r,i,s;return function(){var a=us(this,e),o=(this.style.removeProperty(e),us(this,e));return a===o?null:a===r&&o===i?s:s=t(r=a,i=o)}}function qg(e){return function(){this.style.removeProperty(e)}}function ow(e,t,r){var i,s=r+"",a;return function(){var o=us(this,e);return o===s?null:o===i?a:a=t(i=o,r)}}function nw(e,t,r){var i,s,a;return function(){var o=us(this,e),n=r(this),c=n+"";return n==null&&(c=n=(this.style.removeProperty(e),us(this,e))),o===c?null:o===i&&c===s?a:(s=c,a=t(i=o,n))}}function lw(e,t){var r,i,s,a="style."+t,o="end."+a,n;return function(){var c=mr(this,e),l=c.on,h=c.value[a]==null?n||(n=qg(t)):void 0;(l!==r||s!==h)&&(i=(r=l).copy()).on(o,s=h),c.on=i}}function hw(e,t,r){var i=(e+="")=="transform"?d2:Rg;return t==null?this.styleTween(e,aw(e,i)).on("end.style."+e,qg(e)):typeof t=="function"?this.styleTween(e,nw(e,i,Gh(this,"style."+e,t))).each(lw(this._id,e)):this.styleTween(e,ow(e,i,t),r).on("end.style."+e,null)}function cw(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function uw(e,t,r){var i,s;function a(){var o=t.apply(this,arguments);return o!==s&&(i=(s=o)&&cw(e,o,r)),i}return a._value=t,a}function dw(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,uw(e,t,r??""))}function fw(e){return function(){this.textContent=e}}function gw(e){return function(){var t=e(this);this.textContent=t??""}}function pw(e){return this.tween("text",typeof e=="function"?gw(Gh(this,"text",e)):fw(e==null?"":e+""))}function mw(e){return function(t){this.textContent=e.call(this,t)}}function yw(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&mw(s)),t}return i._value=e,i}function Cw(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,yw(e))}
160function xw(){for(var e=this._name,t=this._id,r=Ng(),i=this._groups,s=i.length,a=0;a<s;++a)for(var o=i[a],n=o.length,c,l=0;l<n;++l)if(c=o[l]){var h=sr(c,t);Zo(c,e,r,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new $r(i,this._parents,e,r)}function bw(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(a,o){var n={value:o},c={value:function(){--s===0&&a()}};r.each(function(){var l=mr(this,i),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(c)),l.on=t}),s===0&&a()})}var kw=0;function $r(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Ng(){return++kw}var Tr=ma.prototype;$r.prototype={constructor:$r,select:ew,selectAll:rw,selectChild:Tr.selectChild,selectChildren:Tr.selectChildren,filter:X2,merge:V2,selection:sw,transition:xw,call:Tr.call,nodes:Tr.nodes,node:Tr.node,size:Tr.size,empty:Tr.empty,each:Tr.each,on:Q2,attr:M2,attrTween:P2,style:hw,styleTween:dw,text:pw,textTween:Cw,remove:tw,tween:_2,delay:N2,duration:H2,ease:Y2,easeVarying:G2,end:bw,[Symbol.iterator]:Tr[Symbol.iterator]};function ww(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Tw={time:null,delay:0,duration:250,ease:ww};function Sw(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function _w(e){var t,r;e instanceof $r?(t=e._id,e=e._name):(t=Ng(),(r=Tw).time=Yh(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,a=0;a<s;++a)for(var o=i[a],n=o.length,c,l=0;l<n;++l)(c=o[l])&&Zo(c,e,t,l,o,r||Sw(c,t));return new $r(i,this._parents,e,t)}ma.prototype.interrupt=w2;ma.prototype.transition=_w;const Rl=Math.PI,ql=2*Rl,li=1e-6,Bw=ql-li;function Wg(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function vw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Wg;const r=10**t;return function(i){this._+=i[0];for(let s=1,a=i.length;s<a;++s)this._+=Math.round(arguments[s]*r)/r+i[s]}}class Lw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Wg:vw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,s){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,r,i,s,a,o){this._append`C${+t},${+r},${+i},${+s},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,i,s,a){if(t=+t,r=+r,i=+i,s=+s,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,n=this._y1,c=i-t,l=s-r,h=o-t,u=n-r,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>li)if(!(Math.abs(u*c-l*h)>li)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let f=i-o,g=s-n,C=c*c+l*l,x=f*f+g*g,y=Math.sqrt(C),b=Math.sqrt(d),w=a*Math.tan((Rl-Math.acos((C+d-x)/(2*y*b)))/2),T=w/b,_=w/y;Math.abs(T-1)>li&&this._append`L${t+T*h},${r+T*u}`,this._append`A${a},${a},0,0,${+(u*f>h*g)},${this._x1=t+_*c},${this._y1=r+_*l}`}}arc(t,r,i,s,a,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let n=i*Math.cos(s),c=i*Math.sin(s),l=t+n,h=r+c,u=1^o,d=o?s-a:a-s;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>li||Math.abs(this._y1-h)>li)&&this._append`L${l},${h}`,i&&(d<0&&(d=d%ql+ql),d>Bw?this._append`A${i},${i},0,1,${u},${t-n},${r-c}A${i},${i},0,1,${u},${this._x1=l},${this._y1=h}`:d>li&&this._append`A${i},${i},0,${+(d>=Rl)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function Ei(e){return function(){return e}}const v3=Math.abs,L3=Math.atan2,F3=Math.cos,A3=Math.max,E3=Math.min,M3=Math.sin,$3=Math.sqrt,sd=1e-12,Xh=Math.PI,ad=Xh/2,O3=2*Xh;function I3(e){return e>1?0:e<-1?Xh:Math.acos(e)}function D3(e){return e>=1?ad:e<=-1?-ad:Math.asin(e)}function Fw(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Lw(t)}function Aw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zg(e){this._context=e}zg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ks(e){return new zg(e)}function Ew(e){return e[0]}function Mw(e){return e[1]}function $w(e,t){var r=Ei(!0),i=null,s=Ks,a=null,o=Fw(n);e=typeof e=="function"?e:e===void 0?Ew:Ei(e),t=typeof t=="function"?t:t===void 0?Mw:Ei(t);function n(c){var l,h=(c=Aw(c)).length,u,d=!1,f;for(i==null&&(a=s(f=o())),l=0;l<=h;++l)!(l<h&&r(u=c[l],l,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,l,c),+t(u,l,c));if(f)return a=null,f+""||null}return n.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ei(+c),n):e},n.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ei(+c),n):t},n.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Ei(!!c),n):r},n.curve=function(c){return arguments.length?(s=c,i!=null&&(a=s(i)),n):s},n.context=function(c){return arguments.length?(c==null?i=a=null:a=s(i=c),n):i},n}
vendor: 11,109 bytes, line 160
160class Hg{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function jg(e){return new Hg(e,!0)}function Yg(e){return new Hg(e,!1)}function Kr(){}function Ao(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Qo(e){this._context=e}Qo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ao(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ao(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nl(e){return new Qo(e)}function Ug(e){this._context=e}Ug.prototype={areaStart:Kr,areaEnd:Kr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ao(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ow(e){return new Ug(e)}function Gg(e){this._context=e}Gg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Ao(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iw(e){return new Gg(e)}function Xg(e,t){this._basis=new Qo(e),this._beta=t}Xg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],s=t[0],a=e[r]-i,o=t[r]-s,n=-1,c;++n<=r;)c=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+c*a),this._beta*t[n]+(1-this._beta)*(s+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Dw=function e(t){function r(i){return t===1?new Qo(i):new Xg(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Eo(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 Vh(e,t){this._context=e,this._k=(1-t)/6}Vh.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:Eo(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Eo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vg=function e(t){function r(i){return new Vh(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Kh(e,t){this._context=e,this._k=(1-t)/6}Kh.prototype={areaStart:Kr,areaEnd:Kr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pw=function e(t){function r(i){return new Kh(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Zh(e,t){this._context=e,this._k=(1-t)/6}Zh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Eo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rw=function e(t){function r(i){return new Zh(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Qh(e,t,r){var i=e._x1,s=e._y1,a=e._x2,o=e._y2;if(e._l01_a>sd){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,s=(s*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>sd){var l=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);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/h,o=(o*l+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,s,a,o,e._x2,e._y2)}function Kg(e,t){this._context=e,this._alpha=t}Kg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Qh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Zg=function e(t){function r(i){return t?new Kg(i,t):new Vh(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Qg(e,t){this._context=e,this._alpha=t}Qg.prototype={areaStart:Kr,areaEnd:Kr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qw=function e(t){function r(i){return t?new Qg(i,t):new Kh(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Jg(e,t){this._context=e,this._alpha=t}Jg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Nw=function e(t){function r(i){return t?new Jg(i,t):new Zh(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function tp(e){this._context=e}tp.prototype={areaStart:Kr,areaEnd:Kr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ww(e){return new tp(e)}function od(e){return e<0?-1:1}
160function nd(e,t,r){var i=e._x1-e._x0,s=t-e._x1,a=(e._y1-e._y0)/(i||s<0&&-0),o=(r-e._y1)/(s||i<0&&-0),n=(a*s+o*i)/(i+s);return(od(a)+od(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(n))||0}function ld(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ol(e,t,r){var i=e._x0,s=e._y0,a=e._x1,o=e._y1,n=(a-i)/3;e._context.bezierCurveTo(i+n,s+n*t,a-n,o-n*r,a,o)}function Mo(e){this._context=e}Mo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ol(this,this._t0,ld(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ol(this,ld(this,r=nd(this,e,t)),r);break;default:ol(this,this._t0,r=nd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ep(e){this._context=new rp(e)}(ep.prototype=Object.create(Mo.prototype)).point=function(e,t){Mo.prototype.point.call(this,t,e)};function rp(e){this._context=e}rp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,s,a){this._context.bezierCurveTo(t,e,i,r,a,s)}};function ip(e){return new Mo(e)}function sp(e){return new ep(e)}function ap(e){this._context=e}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=hd(e),s=hd(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],s[0][a],i[1][a],s[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function hd(e){var t,r=e.length-1,i,s=new Array(r),a=new Array(r),o=new Array(r);for(s[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=s[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(s[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)s[t]=(o[t]-s[t+1])/a[t];for(a[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-s[t+1];return[s,a]}function op(e){return new ap(e)}function Jo(e,t){this._context=e,this._t=t}Jo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function np(e){return new Jo(e,.5)}function lp(e){return new Jo(e,0)}function hp(e){return new Jo(e,1)}function Ws(e,t,r){this.k=e,this.x=t,this.y=r}Ws.prototype={constructor:Ws,scale:function(e){return e===1?this:new Ws(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ws(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Ws.prototype;function nl(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;
160if(Object.prototype.toString.call(e)!=="[object Object]"){const i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zw(){}function cp(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Jh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Hw="[object RegExp]",up="[object String]",dp="[object Number]",fp="[object Boolean]",gp="[object Arguments]",jw="[object Symbol]",Yw="[object Date]",Uw="[object Map]",Gw="[object Set]",Xw="[object Array]",Vw="[object ArrayBuffer]",Kw="[object Object]",Zw="[object DataView]",Qw="[object Uint8Array]",Jw="[object Uint8ClampedArray]",tT="[object Uint16Array]",eT="[object Uint32Array]",rT="[object Int8Array]",iT="[object Int16Array]",sT="[object Int32Array]",aT="[object Float32Array]",oT="[object Float64Array]",cd=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}()||Function("return this")();function tc(e){return typeof cd.Buffer<"u"&&cd.Buffer.isBuffer(e)}function nT(e){return Number.isSafeInteger(e)&&e>=0}function pp(e){return e!=null&&typeof e!="function"&&nT(e.length)}function lT(e){return e==="__proto__"}function ec(e){return e==null||typeof e!="object"&&typeof e!="function"}function rc(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function hT(e,t){return qi(e,void 0,e,new Map,t)}function qi(e,t,r,i=new Map,s=void 0){const a=s==null?void 0:s(e,t,r,i);if(a!==void 0)return a;if(ec(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const o=new Array(e.length);i.set(e,o);for(let n=0;n<e.length;n++)o[n]=qi(e[n],n,r,i,s);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;i.set(e,o);for(const[n,c]of e)o.set(n,qi(c,n,r,i,s));return o}if(e instanceof Set){const o=new Set;i.set(e,o);for(const n of e)o.add(qi(n,void 0,r,i,s));return o}if(tc(e))return e.subarray();if(rc(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,o);for(let n=0;n<e.length;n++)o[n]=qi(e[n],n,r,i,s);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,o),Ze(o,e,r,i,s),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return i.set(e,o),Ze(o,e,r,i,s),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return i.set(e,o),Ze(o,e,r,i,s),o}if(e instanceof Error){const o=structuredClone(e);return i.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,Ze(o,e,r,i,s),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return i.set(e,o),Ze(o,e,r,i,s),o}if(e instanceof Number){const o=new Number(e.valueOf());return i.set(e,o),Ze(o,e,r,i,s),o}if(e instanceof String){const o=new String(e.valueOf());return i.set(e,o),Ze(o,e,r,i,s),o}if(typeof e=="object"&&cT(e)){const o=Object.create(Object.getPrototypeOf(e));return i.set(e,o),Ze(o,e,r,i,s),o}return e}function Ze(e,t,r=e,i,s){const a=[...Object.keys(t),...cp(t)];for(let o=0;o<a.length;o++){const n=a[o],c=Object.getOwnPropertyDescriptor(e,n);(c==null||c.writable)&&(e[n]=qi(t[n],n,r,i,s))}}function cT(e){switch(Jh(e)){case gp:case Xw:case Vw:case Zw:case fp:case Yw:case aT:case oT:case rT:case iT:case sT:case Uw:case dp:case Kw:case Hw:case Gw:case up:case jw:case Qw:case Jw:case tT:case eT:return!0;default:return!1}}function uT(e,t){return hT(e,(r,i,s,a)=>{if(typeof e=="object"){if(Jh(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),Ze(o,e,s,a),o}switch(Object.prototype.toString.call(e)){case dp:case up:case fp:{const o=new e.constructor(e==null?void 0:e.valueOf());return Ze(o,e),o}case gp:{const o={};return Ze(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function ud(e){return uT(e)}function Wl(e){return e!==null&&typeof e=="object"&&Jh(e)==="[object Arguments]"}function zl(e){return typeof e=="object"&&e!==null}function dT(e){return zl(e)&&pp(e)}function Ca(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const s=t?t.apply(this,i):i[0],a=r.cache;if(a.has(s))return a.get(s);const o=e.apply(this,i);return r.cache=a.set(s,o)||a,o};return r.cache=new(Ca.Cache||Map),r}Ca.Cache=Map;function so(e){return rc(e)}function fT(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function gT(e){if(ec(e))return e;if(Array.isArray(e)||rc(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function pT(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let s=e;for(let a=0;a<r.length;a++){const o=r[a];s=ao(s,o,i,new Map)}return s}function ao(e,t,r,i){if(ec(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return gT(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const s=[...Object.keys(t),...cp(t)];for(let a=0;a<s.length;a++){const o=s[a];if(lT(o))continue;let n=t[o],c=e[o];if(Wl(n)&&(n={...n}),Wl(c)&&(c={...c}),tc(n)&&(n=ud(n)),Array.isArray(n))if(Array.isArray(c)){const h=[],u=Reflect.ownKeys(c);for(let d=0;d<u.length;d++){const f=u[d];h[f]=c[f]}c=h}else if(dT(c)){const h=[];for(let u=0;u<c.length;u++)h[u]=c[u];c=h}else c=[];const l=r(c,n,o,e,t,i);l!==void 0?e[o]=l:Array.isArray(n)||zl(c)&&zl(n)&&(nl(c)||nl(n)||so(c)||so(n))?e[o]=ao(c,n,r,i):c==null&&nl(n)?e[o]=ao({},n,r,i):c==null&&so(n)?e[o]=ud(n):(c===void 0||n!==void 0)&&(e[o]=n)}return e}function mT(e,...t){return pT(e,...t,zw)}function dd(e){if(e==null)return!0;
160if(pp(e))return typeof e.splice!="function"&&typeof e!="string"&&!tc(e)&&!so(e)&&!Wl(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return fT(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var yT="​",CT={curveBasis:Nl,curveBasisClosed:Ow,curveBasisOpen:Iw,curveBumpX:jg,curveBumpY:Yg,curveBundle:Dw,curveCardinalClosed:Pw,curveCardinalOpen:Rw,curveCardinal:Vg,curveCatmullRomClosed:qw,curveCatmullRomOpen:Nw,curveCatmullRom:Zg,curveLinear:Ks,curveLinearClosed:Ww,curveMonotoneX:ip,curveMonotoneY:sp,curveNatural:op,curveStep:np,curveStepAfter:hp,curveStepBefore:lp},xT=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,bT=p(function(e,t){const r=mp(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(n=>n.args);yo(o),i=he(i,[...o])}else i=r.args;if(!i)return;let s=Xo(e,t);const a="config";return i[a]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[a],delete i[a]),i},"detectInit"),mp=p(function(e,t=null){var r,i;try{const s=new RegExp(`[%]{2}(?![{]${xT.source})(?=[}][%]{2}).*
161`,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),J.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=Gs.exec(e))!==null;)if(a.index===Gs.lastIndex&&Gs.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const n=a[1]?a[1]:a[2],c=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:n,args:c})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(s){return J.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),kT=p(function(e){return e.replace(Gs,"")},"removeDirectives"),wT=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function ic(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return CT[r]??t}p(ic,"interpolateToCurve");function yp(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?nk(r):r}p(yp,"formatUrl");var TT=p((e,...t)=>{const r=e.split("."),i=r.length-1,s=r[i];let a=window;for(let o=0;o<i;o++)if(a=a[r[o]],!a){J.error(`Function name: ${e} not found in window`);return}a[s](...t)},"runFunc");function sc(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(sc,"distance");function Cp(e){let t,r=0;e.forEach(s=>{r+=sc(s,t),t=s});const i=r/2;return ac(e,i)}p(Cp,"traverseEdge");function xp(e){return e.length===1?e[0]:Cp(e)}p(xp,"calcLabelPosition");var fd=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),ac=p((e,t)=>{let r,i=t;for(const s of e){if(r){const a=sc(s,r);if(a===0)return r;if(a<i)i-=a;else{const o=i/a;if(o<=0)return r;if(o>=1)return{x:s.x,y:s.y};if(o>0&&o<1)return{x:fd((1-o)*r.x+o*s.x,5),y:fd((1-o)*r.y+o*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ST=p((e,t,r)=>{J.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=ac(t,25),a=e?10:5,o=Math.atan2(t[0].y-s.y,t[0].x-s.x),n={x:0,y:0};return n.x=Math.sin(o)*a+(t[0].x+s.x)/2,n.y=-Math.cos(o)*a+(t[0].y+s.y)/2,n},"calcCardinalityPosition");function bp(e,t,r){const i=structuredClone(r);J.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,a=ac(i,s),o=10+e*.5,n=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return t==="start_left"?(c.x=Math.sin(n+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(n+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(c.x=Math.sin(n-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(n-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(c.x=Math.sin(n)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(n)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(n)*o+(i[0].x+a.x)/2,c.y=-Math.cos(n)*o+(i[0].y+a.y)/2),c}p(bp,"calcTerminalLabelPosition");function kp(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(kp,"getStylesFromArray");var gd=0,_T=p(()=>(gd++,"id-"+Math.random().toString(36).substr(2,12)+"-"+gd),"generateId");function wp(e){let t="";const r="0123456789abcdef",i=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(wp,"makeRandomHex");var BT=p(e=>wp(e.length),"random"),vT=p(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}
161,"getTextObj"),LT=p(function(e,t){const r=t.text.replace(pa.lineBreakRegex," "),[,i]=tn(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",i),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),s},"drawSimpleText"),FT=Ca((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),pa.hasBreaks(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let a="";return i.forEach((o,n)=>{const c=Or(`${o} `,r),l=Or(a,r);if(c>t){const{hyphenatedStrings:d,remainingWord:f}=AT(o,t,"-",r);s.push(a,...d),a=f}else l+c>=t?(s.push(a),a=o):a=[a,o].filter(Boolean).join(" ");n+1===i.length&&s.push(a)}),s.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),AT=Ca((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const s=[...e],a=[];let o="";return s.forEach((n,c)=>{const l=`${o}${n}`;if(Or(l,i)>=t){const u=c+1,d=s.length===u,f=`${l}${r}`;a.push(d?l:f),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Tp(e,t){return oc(e,t).height}p(Tp,"calculateTextHeight");function Or(e,t){return oc(e,t).width}p(Or,"calculateTextWidth");var oc=Ca((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,a]=tn(r),o=["sans-serif",i],n=e.split(pa.lineBreakRegex),c=[],l=$t("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const h=l.append("svg");for(const d of o){let f=0;const g={width:0,height:0,lineHeight:0};for(const C of n){const x=vT();x.text=C||yT;const y=LT(h,x).style("font-size",a).style("font-weight",s).style("font-family",d),b=(y._groups||y)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),f=Math.round(b.height),g.height+=f,g.lineHeight=Math.round(Math.max(g.lineHeight,f))}c.push(g)}h.remove();const u=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[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),is,ET=(is=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},p(is,"InitIDGenerator"),is),Ya,MT=p(function(e){return Ya=Ya||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ya.innerHTML=e,unescape(Ya.textContent)},"entityDecode");function nc(e){return"str"in e}p(nc,"isDetailedError");var $T=p((e,t,r,i)=>{var a;if(!i)return;const s=(a=e.node())==null?void 0:a.getBBox();s&&e.append("text").text(i).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),tn=p(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function lc(e,t){return mT({},e,t)}p(lc,"cleanAndMerge");var tr={assignWithDepth:he,wrapLabel:FT,calculateTextHeight:Tp,calculateTextWidth:Or,calculateTextDimensions:oc,cleanAndMerge:lc,detectInit:bT,detectDirective:mp,isSubstringInArray:wT,interpolateToCurve:ic,calcLabelPosition:xp,calcCardinalityPosition:ST,calcTerminalLabelPosition:bp,formatUrl:yp,getStylesFromArray:kp,generateId:_T,random:BT,runFunc:TT,entityDecode:MT,insertTitle:$T,isLabelCoordinateInPath:Sp,parseFontSize:tn,InitIDGenerator:ET},OT=p(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Zr=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),P3=p((e,t,{counter:r=0,prefix:i,suffix:s},a)=>a||(J.debug("Disabled addition of id:",a),`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`),"getEdgeId");function re(e){return e??null}p(re,"handleUndefinedAttr");function Sp(e,t){const r=Math.round(e.x),i=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return s.includes(r.toString())||s.includes(i.toString())}p(Sp,"isLabelCoordinateInPath");function hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var bi=hc();function _p(e){bi=e}var Zs={exec:()=>null};function Gt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>
vendor: 4,232 bytes, line 161
161{let o=typeof a=="string"?a:a.source;return o=o.replace(Le.caret,"$1"),r=r.replace(s,o),i},getRegex:()=>new RegExp(r,t)};return i}var Le={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},IT=/^(?:[ \t]*(?:\n|$))+/,DT=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,PT=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,RT=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cc=/(?:[*+-]|\d{1,9}[.)])/,Bp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,vp=Gt(Bp).replace(/bull/g,cc).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(),qT=Gt(Bp).replace(/bull/g,cc).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(),uc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,NT=/^[^\n]+/,dc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,WT=Gt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zT=Gt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cc).getRegex(),en="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",fc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,HT=Gt("^ {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|/?>
161)[\\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",fc).replace("tag",en).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lp=Gt(uc).replace("hr",xa).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",en).getRegex(),jT=Gt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Lp).getRegex(),gc={blockquote:jT,code:DT,def:WT,fences:PT,heading:RT,hr:xa,html:HT,lheading:vp,list:zT,newline:IT,paragraph:Lp,table:Zs,text:NT},pd=Gt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xa).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",en).getRegex(),YT={...gc,lheading:qT,table:pd,paragraph:Gt(uc).replace("hr",xa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pd).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",en).getRegex()},UT={...gc,html:Gt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fc).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:Zs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Gt(uc).replace("hr",xa).replace("heading",` *#{1,6} *[^
162]`).replace("lheading",vp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},GT=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,XT=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fp=/^( {2,}|\\)\n(?!\s*$)/,VT=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rn=/[\p{P}\p{S}]/u,pc=/[\s\p{P}\p{S}]/u,Ap=/[^\s\p{P}\p{S}]/u,KT=Gt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,pc).getRegex(),Ep=/(?!~)[\p{P}\p{S}]/u,ZT=/(?!~)[\s\p{P}\p{S}
162]/u,QT=/(?:[^\s\p{P}\p{S}]|~)/u,JT=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Mp=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,tS=Gt(Mp,"u").replace(/punct/g,rn).getRegex(),eS=Gt(Mp,"u").replace(/punct/g,Ep).getRegex(),$p="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rS=Gt($p,"gu").replace(/notPunctSpace/g,Ap).replace(/punctSpace/g,pc).replace(/punct/g,rn).getRegex(),iS=Gt($p,"gu").replace(/notPunctSpace/g,QT).replace(/punctSpace/g,ZT).replace(/punct/g,Ep).getRegex(),sS=Gt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ap).replace(/punctSpace/g,pc).replace(/punct/g,rn).getRegex(),aS=Gt(/\\(punct)/,"gu").replace(/punct/g,rn).getRegex(),oS=Gt(/^<(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(),nS=Gt(fc).replace("(?:-->|$)","-->").getRegex(),lS=Gt("^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",nS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$o=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,hS=Gt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",$o).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Op=Gt(/^!?\[(label)\]\[(ref)\]/).replace("label",$o).replace("ref",dc).getRegex(),Ip=Gt(/^!?\[(ref)\](?:\[\])?/).replace("ref",dc).getRegex(),cS=Gt("reflink|nolink(?!\\()","g").replace("reflink",Op).replace("nolink",Ip).getRegex(),mc={_backpedal:Zs,anyPunctuation:aS,autolink:oS,blockSkip:JT,br:Fp,code:XT,del:Zs,emStrongLDelim:tS,emStrongRDelimAst:rS,emStrongRDelimUnd:sS,escape:GT,link:hS,nolink:Ip,punctuation:KT,reflink:Op,reflinkSearch:cS,tag:lS,text:VT,url:Zs},uS={...mc,link:Gt(/^!?\[(label)\]\((.*?)\)/).replace("label",$o).getRegex(),reflink:Gt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$o).getRegex()},Hl={...mc,emStrongRDelimAst:iS,emStrongLDelim:eS,url:Gt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},dS={...Hl,br:Gt(Fp).replace("{2,}","*").getRegex(),text:Gt(Hl.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ua={normal:gc,gfm:YT,pedantic:UT},Ms={normal:mc,gfm:Hl,breaks:dS,pedantic:uS},fS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},md=e=>fS[e];function hr(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,md)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,md);return e}function yd(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Cd(e,t){var a;let r=e.replace(Le.findPipe,(o,n,c)=>{let l=!1,h=n;for(;--h>=0&&c[h]==="\\";)l=!l;return l?"|":" |"}),i=r.split(Le.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Le.slashPipe,"|");return i}function $s(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function gS(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function xd(e,t,r,i,s){let a=t.href,o=t.title||null,n=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:n,tokens:i.inl
vendor: 21,365 bytes, lines 162-219
162ineTokens(n)};return i.state.inLink=!1,c}function pS(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
163`).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[n]=o;return n.length>=s.length?a.slice(s.length):a}).join(`
164`)}var Oo=class{constructor(t){Ht(this,"options");Ht(this,"rules");Ht(this,"lexer");this.options=t||bi}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:$s(i,`
165`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=pS(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=$s(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:$s(r[0],`
166`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=$s(r[0],`
167`).split(`
168`),s="",a="",o=[];for(;i.length>0;){let n=!1,c=[],l;for(l=0;l<i.length;l++)if(this.rules.other.blockquoteStart.test(i[l]))c.push(i[l]),n=!0;else if(!n)c.push(i[l]);else break;i=i.slice(l);let h=c.join(`
169`),u=h.replace(this.rules.other.blockquoteSetextReplace,`
170    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
171${h}`:h,a=a?`${a}
172${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=d,i.length===0)break;let f=o.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let g=f,C=g.raw+`
173`+i.join(`
174`),x=this.blockquote(C);o[o.length-1]=x,s=s.substring(0,s.length-g.raw.length)+x.raw,a=a.substring(0,a.length-g.text.length)+x.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,C=g.raw+`
175`+i.join(`
176`),x=this.list(C);o[o.length-1]=x,s=s.substring(0,s.length-f.raw.length)+x.raw,a=a.substring(0,a.length-g.raw.length)+x.raw,i=C.substring(o.at(-1).raw.length).split(`
177`);continue}}return{type:"blockquote",raw:s,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let o=this.rules.other.listItemRegex(i),n=!1;for(;t;){let l=!1,h="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(`
178`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),f=t.split(`
179`,1)[0],g=!d.trim(),C=0;if(this.options.pedantic?(C=2,u=d.trimStart()):g?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,u=d.slice(C),C+=r[1].length),g&&this.rules.other.blankLine.test(f)&&(h+=f+`
180`,t=t.substring(f.length+1),l=!0),!l){let b=this.rules.other.nextBulletRegex(C),w=this.rules.other.hrRegex(C),T=this.rules.other.fencesBeginRegex(C),_=this.rules.other.headingBeginRegex(C),B=this.rules.other.htmlBeginRegex(C);for(;t;){let v=t.split(`
181`,1)[0],F;if(f=v,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting,"  "),F=f):F=f.replace(this.rules.other.tabCharGlobal,"    "),T.test(f)||_.test(f)||B.test(f)||b.test(f)||w.test(f))break;if(F.search(this.rules.other.nonSpaceChar)>=C||!f.trim())u+=`
182`+F.slice(C);else{if(g||d.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||_.test(d)||w.test(d))break;u+=`
183`+f}!g&&!f.trim()&&(g=!0),h+=v+`
184`,t=t.substring(v.length+1),d=F.slice(C)}}a.loose||(n?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let x=null,y;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(y=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!x,checked:y,loose:!1,text:u,tokens:[]}),a.raw+=h}let c=a.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){let h=a.items[l].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=u}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var n;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Cd(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(n=r[3])!=null&&n.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
185`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let c of s)this.rules.other.tableAlignRight.test(c)?o.align.push("right"):this.rules.other.tableAlignCenter.test(c)?o.align.push("center"):this.rules.other.tableAlignLeft.test(c)?o.align.push("left"):o.align.push(null);for(let c=0;c<i.length;c++)o.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:o.align[c]});for(let c of a)o.rows.push(Cd(c,o.header.length).map((l,h)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[h]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
186`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=$s(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=gS(r[2],"()");if(o===-2)return;if(o>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(s);o&&(s=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),xd(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return xd(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,o,n,c=a,l=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(s=h.exec(r))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(n=[...o].length,s[3]||s[4]){c+=n;continue}else if((s[5]||s[6])&&a%3&&!((a+n)%3)){l+=n;continue}if(c-=n,c>0)continue;n=Math.min(n,n+c+l);let u=[...s[0]][0].length,d=t.slice(0,a+s.index+u+n);if(Math.min(a,n)%2){let g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Lr=class jl{constructor(t){Ht(this,"tokens");Ht(this,"options");Ht(this,"state");Ht(this,"tokenizer");Ht(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||bi,this.options.tokenizer=this.options.tokenizer||new Oo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Le,block:Ua.normal,inline:Ms.normal};this.options.pedantic?(r.block=Ua.pedantic,r.inline=Ms.pedantic):this.options.gfm&&(r.block=Ua.gfm,this.options.breaks?r.inline=Ms.breaks:r.inline=Ms.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ua,inline:Ms}}static lex(t,r){return new jl(r).lex(t)}static lexInline(t,r){return new jl(r).inlineTokens(t)}lex(t){t=t.replace(Le.carriageReturn,`
187`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,o;for(this.options.pedantic&&(t=t.replace(Le.tabCharGlobal,"    ").replace(Le.spaceLine,""));t;){let n;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(l=>(n=l.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let l=r.at(-1);n.raw.length===1&&l!==void 0?l.raw+=`
188`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
189`)?"":`
190`)+n.raw,l.text+=`
191`+n.text,this.inlineQueue.at(-1).src=l.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
192`)?"":`
193`)+n.raw,l.text+=`
194`+n.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let c=t;if((o=this.options.extensions)!=null&&o.startBlock){let l=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(c=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(c))){let l=r.at(-1);i&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=(l.raw.endsWith(`
195`)?"":`
196`)+n.raw,l.text+=`
197`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(n),i=c.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
198`)?"":`
199`)+n.raw,l.text+=`
200`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(n);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var n,c,l,h,u;let i=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((c=(n=this.options.hooks)==null?void 0:n.emStrongMask)==null?void 0:c.call({lexer:this},i))??i;let a=!1,o="";for(;t;){a||(o=""),a=!1;let d;if((h=(l=this.options.extensions)==null?void 0:l.inline)!=null&&h.some(g=>(d=g.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let g=r.at(-1);d.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,o)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let f=t;if((u=this.options.extensions)!=null&&u.startInline){let g=1/0,C=t.slice(1),x;this.options.extensions.startInline.forEach(y=>{x=y.call({lexer:this},C),typeof x=="number"&&x>=0&&(g=Math.min(g,x))}),g<1/0&&g>=0&&(f=t.substring(0,g+1))}if(d=this.tokenizer.inlineText(f)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),a=!0;let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Io=class{constructor(t){Ht(this,"options");Ht(this,"parser");this.options=t||bi}space(t){return""}code({text:t,lang:r,escaped:i}){var o;let s=(o=(r||"").match(Le.notSpaceStart))==null?void 0:o[0],a=t.replace(Le.endingNewline,"")+`
201`;return s?'<pre><code class="language-'+hr(s)+'">'+(i?a:hr(a,!0))+`</code></pre>
202`:"<pre><code>"+(i?a:hr(a,!0))+`</code></pre>
203`}blockquote({tokens:t}){return`<blockquote>
204${this.parser.parse(t)}</blockquote>
205`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
206`}hr(t){return`<hr>
207`}list(t){let r=t.ordered,i=t.start,s="";for(let n=0;n<t.items.length;n++){let c=t.items[n];s+=this.listitem(c)}let a=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+a+o+`>
208`+s+"</"+a+`>
209`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+hr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
210`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
211`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let o=t.rows[a];i="";for(let n=0;n<o.length;n++)i+=this.tablecell(o[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
212<thead>
213`+r+`</thead>
214`+s+`</table>
215`}tablerow({text:t}){return`<tr>
216${t}</tr>
217`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
218`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${hr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=yd(t);if(a===null)return s;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+hr(r)+'"'),o+=">"+s+"</a>",o}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=yd(t);if(a===null)return hr(i);t=a;let o=`<img src="${t}" alt="${i}"`;return r&&(o+=` title="${hr(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:hr(t.text)}},yc=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Fr=class Yl{constructor(t){Ht(this,"options");Ht(this,"renderer");Ht(this,"textRenderer");this.options=t||bi,this.options.renderer=this.options.renderer||new Io,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yc}static parse(t,r){return new Yl(r).parse(t)}static parseInline(t,r){return new Yl(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let o=0;o<t.length;o++){let n=t[o];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[n.type]){let l=n,h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=h||"";continue}}let c=n;switch(c.type){case"space":{i+=this.renderer.space(c);continue}case"hr":{i+=this.renderer.hr(c);continue}case"heading":{i+=this.renderer.heading(c);continue}case"code":{i+=this.renderer.code(c);continue}case"table":{i+=this.renderer.table(c);continue}case"blockquote":{i+=this.renderer.blockquote(c);continue}case"list":{i+=this.renderer.list(c);continue}case"html":{i+=this.renderer.html(c);continue}case"def":{i+=this.renderer.def(c);continue}case"paragraph":{i+=this.renderer.paragraph(c);continue}case"text":{let l=c,h=this.renderer.text(l);for(;o+1<t.length&&t[o+1].type==="text";)l=t[++o],h+=`
219`+this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let o=0;o<t.length;o++){let n=t[o];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[n.type]){let l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.t
219ype)){i+=l||"";continue}}let c=n;switch(c.type){case"escape":{i+=r.text(c);break}case"html":{i+=r.html(c);break}case"link":{i+=r.link(c);break}case"image":{i+=r.image(c);break}case"strong":{i+=r.strong(c);break}case"em":{i+=r.em(c);break}case"codespan":{i+=r.codespan(c);break}case"br":{i+=r.br(c);break}case"del":{i+=r.del(c);break}case"text":{i+=r.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},Qa,zs=(Qa=class{constructor(t){Ht(this,"options");Ht(this,"block");this.options=t||bi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Lr.lex:Lr.lexInline}provideParser(){return this.block?Fr.parse:Fr.parseInline}},Ht(Qa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ht(Qa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Qa),mS=class{constructor(...t){Ht(this,"defaults",hc());Ht(this,"options",this.setOptions);Ht(this,"parse",this.parseMarkdown(!0));Ht(this,"parseInline",this.parseMarkdown(!1));Ht(this,"Parser",Fr);Ht(this,"Renderer",Io);Ht(this,"TextRenderer",yc);Ht(this,"Lexer",Lr);Ht(this,"Tokenizer",Oo);Ht(this,"Hooks",zs);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let n=o;for(let c of n.header)i=i.concat(this.walkTokens(c.tokens,r));for(let c of n.rows)for(let l of c)i=i.concat(this.walkTokens(l.tokens,r));break}case"list":{let n=o;i=i.concat(this.walkTokens(n.items,r));break}default:{let n=o;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[n.type]?this.defaults.extensions.childTokens[n.type].forEach(c=>{let l=n[c].flat(1/0);i=i.concat(this.walkTokens(l,r))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...n){let c=a.renderer.apply(this,n);return c===!1&&(c=o.apply(this,n)),c}:r.renderers[a.name]=a.renderer}
vendor: 4,772 bytes, lines 219-225
219if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Io(this.defaults);for(let o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let n=o,c=i.renderer[n],l=a[n];a[n]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Oo(this.defaults);for(let o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let n=o,c=i.tokenizer[n],l=a[n];a[n]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new zs;for(let o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let n=o,c=i.hooks[n],l=a[n];zs.passThroughHooks.has(o)?a[n]=h=>{if(this.defaults.async&&zs.passThroughHooksRespectAsync.has(o))return Promise.resolve(c.call(a,h)).then(d=>l.call(a,d));let u=c.call(a,h);return l.call(a,u)}:a[n]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,o=i.walkTokens;s.walkTokens=function(n){let c=[];return c.push(o.call(this,n)),a&&(c=c.concat(a.call(this,n))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Lr.lex(t,r??this.defaults)}parser(t,r){return Fr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));a.hooks&&(a.hooks.options=a,a.hooks.block=t);let n=a.hooks?a.hooks.provideLexer():t?Lr.lex:Lr.lexInline,c=a.hooks?a.hooks.provideParser():t?Fr.parse:Fr.parseInline;if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(l=>n(l,a)).then(l=>a.hooks?a.hooks.processAllTokens(l):l).then(l=>a.walkTokens?Promise.all(this.walkTokens(l,a.walkTokens)).then(()=>l):l).then(l=>c(l,a)).then(l=>a.hooks?a.hooks.postprocess(l):l).catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let l=n(r,a);a.hooks&&(l=a.hooks.processAllTokens(l)),a.walkTokens&&this.walkTokens(l,a.walkTokens);let h=c(l,a);return a.hooks&&(h=a.hooks.postprocess(h)),h}catch(l){return o(l)}}}onError(t,r){return i=>{if(i.message+=`
220Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+hr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},mi=new mS;function Ut(e,t){return mi.parse(e,t)}Ut.options=Ut.setOptions=function(e){return mi.setOptions(e),Ut.defaults=mi.defaults,_p(Ut.defaults),Ut};Ut.getDefaults=hc;Ut.defaults=bi;Ut.use=function(...e){return mi.use(...e),Ut.defaults=mi.defaults,_p(Ut.defaults),Ut};Ut.walkTokens=function(e,t){return mi.walkTokens(e,t)};Ut.parseInline=mi.parseInline;Ut.Parser=Fr;Ut.parser=Fr.parse;Ut.Renderer=Io;Ut.TextRenderer=yc;Ut.Lexer=Lr;Ut.lexer=Lr.lex;Ut.Tokenizer=Oo;Ut.Hooks=zs;Ut.parse=Ut;Ut.options;Ut.setOptions;Ut.use;Ut.walkTokens;Ut.parseInline;Fr.parse;Lr.lex;function Dp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(n,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?n.concat(l.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):n},[]);if(s.length){var a=new RegExp(`
221[	 ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(n){return n.replace(a,`
222`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(n,c){var l=o.match(/(?:^|\n)( *)$/),h=l?l[1]:"",u=n;typeof n=="string"&&n.includes(`
223`)&&(u=String(n).split(`
224`).map(function(d,f){return f===0?d:""+h+d}).join(`
225`)),o+=u+i[c+1]}),o}var Ul=typeof performance<"u"&&typeof performance.now=="function",Mi=
225p(()=>Ul?performance.now():0,"now"),ll="🧜 ",yS="Mermaid render",CS="Mermaid",xS={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},ss;ss=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,r){if(!this.enabled)return r();const i=Mi();try{return r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Mi()-i)}}async tick(t,r){if(!this.enabled)return r();const i=Mi();try{return await r()}finally{this.buckets[t]=(this.buckets[t]??0)+(Mi()-i)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),r=this.runLabel??(t==null?void 0:t.name);return t&&(this.records.push({label:r??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,r)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;const r={name:t,start:Mi(),duration:-1,children:[]},i=this.stack.at(-1);if(i?i.children.push(r):this.roots.push(r),this.stack.push(r),Ul&&typeof performance.mark=="function")try{performance.mark(`${ll}${t} ▶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const r=Mi();if(t.duration=r-t.start,Ul&&typeof performance.measure=="function")try{performance.measure(`${ll}${t.name}`,{start:t.start,end:r,detail:{devtools:{dataType:"track-entry",track:yS,trackGroup:CS,color:xS[t.name]??"primary",tooltipText:`${t.name} — ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,r){if(!this.enabled)return r();this.begin(t);try{return await r()}finally{this.end()}}report(){var t;return((t=this.records.at(-1))==null?void 0:t.tree)??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),r){if(!t)return;const i=t.duration,s=r&&r!==t.name?`${t.name} [${r}]`:t.name,a=["ms        %    phase"],o=p((c,l)=>{const h="  ".repeat(l),u=c.duration.toFixed(1).padStart(8),d=i>0?`${(c.duration/i*100).toFixed(0).padStart(3)}%`:"   -";a.push(`${u}  ${d}  ${h}${c.name}`);for(const f of c.children)o(f,l+1);if(c.children.length>0){const f=c.children.reduce((C,x)=>C+x.duration,0),g=c.duration-f;if(g>.5){const C=g.toFixed(1).padStart(8);a.push(`${C}       ${h}  (self)`)}}},"walk");o(t,0);const n=Object.keys(this.buckets);if(n.length>0){a.push("—— buckets (summed) ——");for(const c of n)a.push(`${this.buckets[c].toFixed(1).padStart(8)}       ${c}`)}console.log(`${ll}mermaid render profile · ${s}
226${a.join(`
227`)}`)}},p(ss,"Profiler");globalThis.injected??(globalThis.injected={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"});function Pp(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
228`).replace(/\n{2,}/g,`
229`);return Dp(i)}p(Pp,"preprocessMarkdown");function Rp(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}p(Rp,"nonMarkdownToLines");function qp(e,t={}){const r=Pp(e,t),i=Ut.lexer(r),s=[[]];let a=0;function o(n,c="normal"){n.type==="text"?n.text.split(`
230`).forEach((h,u)=>{u!==0&&(a++,s.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&s[a].push({content:d,type:c})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(l=>{o(l,n.type)}):n.type==="html"&&s[a].push({content:n.text,type:"normal"})}return p(o,"processNode"),i.forEach(n=>{var c;n.type==="paragraph"?(c=n.tokens)==null||c.forEach(l=>{o(l)}):n.type==="html"?s[a].push({content:n.text,type:"normal"}):s[a].push({content:n.raw,type:"normal"})}),s}p(qp,"markdownToLines");function Np(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}p(Np,"nonMarkdownToHTML");function Wp(e,{markdownAutoWrap:t}={}){const r=Ut.lexer(e);function i(s){var a,o,n;return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${(a=s.tokens)==null?void 0:a.map(i).join("")}</strong>`:s.type==="em"?`<em>${(o=s.tokens)==null?void 0:o.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${(n=s.tokens)==null?void 0:n.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(J.warn(`Unsupported markdown: ${s.type}`),s.raw)}return p(i,"output"),r.map(i).join("")}p(Wp,"markdownToHTML");var bS=function(e){var t=function(){},r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(l){return setTimeout(l,16)};function i(){var l=this;l.reads=[],l.writes=[],l.raf=r.bind(e)}p(i,"FastDom"),i.prototype={constructor:i,runTasks:p(function(l){for(var h;h=l.shift();)h()},"runTasks"),measure:p(function(l,h){var u=h?l.bind(h):l;return this.reads.push(u),s(this),u},"measure"),mutate:p(function(l,h){var u=h?l.bind(h):l;return this.writes.push(u),s(this),u},"mutate"),clear:p(function(l){return o(this.reads,l)||o(this.writes,l)},"clear"),extend:p(function(l){if(typeof l!="object")throw new Error("expected object");var h=Object.create(this);return n(h,l),h.fastdom=this,h.initialize&&h.initialize(),h},"extend"),catch:null};function s(l){l.scheduled||(l.scheduled=!0,l.raf(a.bind(null,l)))}p(s,"scheduleFlush");function a(l){var h=l.writes,u=l.reads,d;try{t("flushing reads",u.length),l.runTasks(u),t("flushing writes",h.length),l.runTasks(h)}catch(f){d=f}if(l.scheduled=!1,(u.length||h.length)&&s(l),d)if(t("task errored",d.message),l.catch)l.catch(d);else throw d}p(a,"flush");function o(l,h){var u=l.indexOf(h);return!!~u&&!!l.splice(u,1)}p(o,"remove");function n(l,h){for(var u in h)h.hasOwnProperty(u)&&(l[u]=h[u])}p(n,"mixin");var c=e.fastdom=e.fastdom||new i;return c}(typeof window<"u"?window:globalThis),zp={initialize:p(function(){this._tasks=new Map}
230,"initialize"),mutate:p(function(e,t){return Gl(this,"mutate",e,t)},"mutate"),measure:p(function(e,t){return Gl(this,"measure",e,t)},"measure"),clear:p(function(e){var t=this._tasks,r=t.get(e);this.fastdom.clear(r),t.delete(e)},"clear")};function Gl(e,t,r,i){var s=e._tasks,a=e.fastdom,o,n=new Promise(function(c,l){o=a[t](function(){s.delete(n);try{c(i?r.call(i):r())}catch(h){l(h)}},i)});return s.set(n,o),n}p(Gl,"create");var{initialize:H3,mutate:j3,measure:Y3,clear:U3}=zp,kS=zp,wS=bS.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(kS),yi=wS;function Hp(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(Hp,"splitTextToChars");function jp(e,t){const r=Hp(t.content);return Cc(e,[],r,t.type)}p(jp,"splitWordToFitWidth");function Cc(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[s,...a]=r,o=[...t,s];return e([{content:o.join(""),type:i}])?Cc(e,o,a,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(Cc,"splitWordToFitWidthRecursion");function Yp(e,t){if(e.some(({content:r})=>r.includes(`
231`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Do(e,t)}p(Yp,"splitLineToFitWidth");function Do(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...i];if(s!==""&&o.push({content:s,type:"normal"}),o.push(a),t(o))return Do(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[n,c]=jp(t,a);r.push([n]),c.content&&e.unshift(c)}return Do(e,t,r)}p(Do,"splitLineToFitWidthRecursion");function Xl(e,t){t&&e.attr("style",t)}p(Xl,"applyStyle");var bd=16384;async function Up(e,t,r,i,s=!1,a=Qt(),o="break-word",n=0){const c=e.append("foreignObject"),l=r<0?0:r;c.attr("width",`${Math.min(10*l,bd)}px`),c.attr("height",`${Math.min(10*l,bd)}px`);const h=c.append("xhtml:div"),u=Js(t.label)?await og(t.label.replace(pa.lineBreakRegex,`
232`),a):je(t.label,a),d=t.isNode?"nodeLabel":"edgeLabel",f=h.append("span");f.html(u),Xl(f,t.labelStyle),f.attr("class",`${d} ${i}`),Xl(h,t.labelStyle),h.style("display","table-cell"),h.style("white-space","wrap"),h.style("overflow-wrap",o),h.style("line-height","1.5"),l!==Number.POSITIVE_INFINITY&&(h.style("max-width",l+"px"),h.style("text-align","center")),h.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&h.attr("class","labelBkg");const g=await yi.measure(()=>h.node().getBoundingClientRect());return g.width===l?(h.style("display","table"),h.style("white-space","break-spaces"),h.style("width",l+"px")):g.width<n&&(h.style("display","table"),h.style("width",n+"px"),h.style("text-align","center")),c.node()}p(Up,"addHtmlSpan");function sn(e,t,r,i=!1){const s=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&s.attr("text-anchor","middle"),s}p(sn,"createTspan");function Gp(e,t,r){const i=e.append("text"),s=sn(i,1,t);an(s,r);const a=s.node().getComputedTextLength();return i.remove(),a}p(Gp,"computeWidthOfText");function TS(e,t,r){var o;const i=e.append("text"),s=sn(i,1,t);an(s,[{content:r,type:"normal"}]);const a=(o=s.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}p(TS,"computeDimensionOfText");function Xp(e,t,r,i=!1,s=!1){const o=t.append("g"),n=o.insert("rect").attr("class","background").attr("style","stroke: none"),c=o.append("text").attr("y","-10.1");s&&c.attr("text-anchor","middle");let l=0;for(const h of r){const u=p(f=>Gp(o,1.1,f)<=e,"checkWidth"),d=u(h)?[h]:Yp(h,u);for(const f of d){const g=sn(c,l,1.1,s);an(g,f),l++}}if(i){const h=c.node().getBBox(),u=2;return n.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),o.node()}else return c.node()}p(Xp,"createFormattedText");function Vl(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}p(Vl,"decodeHTMLEntities");function an(e,t){e.text(""),t.forEach((r,i)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?s.text(Vl(r.content)):s.text(" "+Vl(r.content))})}p(an,"updateTextContentAndStyles");async function Vp(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,a,o)=>(r.push((async()=>{const n=`${a}:${o}`;return await fg(n)?await Ue(n,void 0,{class:"label-icon"}):`<i class='${je(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(Vp,"replaceIconSubstring");var De=p(async(e,t="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:a=!0,markdown:o=!0,isNode:n=!0,width:c=200,minWidth:l=0,addSvgBackgroun
232d:h=!1,overflowWrap:u="break-word"}={},d)=>{if(J.debug("XYZ createText",t,r,i,s,a,n,"addSvgBackground: ",h),a){const f=o?Wp(t,d):Np(t),g=await Vp(Zr(f),d),C=t.replace(/\\\\/g,"\\"),x={isNode:n,label:Js(t)?C:g,labelStyle:r.replace("fill:","color:")};return await Up(e,x,c,s,h,d,u,l)}else{const f=Zr(t.replace(/<br\s*\/?>/g,"<br/>")),g=o?qp(f.replace("<br>","<br/>"),d):Rp(f),C=Xp(c,e,g,t?h:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");$t(C).attr("style",x)}else{const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");$t(C).select("rect").attr("style",x.replace(/background:/g,"fill:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");$t(C).select("text").attr("style",y)}return i?$t(C).selectAll("tspan.text-outer-tspan").classed("title-row",!0):$t(C).selectAll("tspan.text-outer-tspan").classed("row",!0),C}},"createText"),SS=new Set(["redux-color","redux-dark-color"]),_S=12,BS=64,xc=p(e=>Array.isArray(e)&&e.length>0,"hasPalette"),vS=p((e,t)=>e!=null&&SS.has(e)&&xc(t),"isColorTheme"),LS=/^[\w-]+$/,G3=p(e=>{const t=typeof e=="string"||typeof e=="number"?String(e):"";return LS.test(t)?t:"classic"},"safeLook"),Kp=p(e=>xc(e)?e.length:0,"paletteSlotCount"),X3=p((e,t)=>xc(t)?Kp(t):typeof e=="number"&&Number.isInteger(e)&&e>0&&e<=BS?e:_S,"colorSlotCount"),Ge=p((e,t,r,i)=>{if(t===void 0||!vS(r,i))return;const s=t%Kp(i);e.attr("data-color-id",`color-${s}`)},"stampColorSlot");function hl(e,t,r){if(e&&e.length){const[i,s]=t,a=Math.PI/180*r,o=Math.cos(a),n=Math.sin(a);for(const c of e){const[l,h]=c;c[0]=(l-i)*o-(h-s)*n+i,c[1]=(l-i)*n+(h-s)*o+s}}}function FS(e,t){return e[0]===t[0]&&e[1]===t[1]}function AS(e,t,r,i=1){const s=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0,0];if(s)for(const l of o)hl(l,n,s);const c=function(l,h,u){const d=[];for(const b of l){const w=[...b];FS(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&d.push(w)}const f=[];h=Math.max(h,.1);const g=[];for(const b of d)for(let w=0;w<b.length-1;w++){const T=b[w],_=b[w+1];if(T[1]!==_[1]){const B=Math.min(T[1],_[1]);g.push({ymin:B,ymax:Math.max(T[1],_[1]),x:B===T[1]?T[0]:_[0],islope:(_[0]-T[0])/(_[1]-T[1])})}}if(g.sort((b,w)=>b.ymin<w.ymin?-1:b.ymin>w.ymin?1:b.x<w.x?-1:b.x>w.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax)),!g.length)return f;let C=[],x=g[0].ymin,y=0;for(;C.length||g.length;){if(g.length){let b=-1;for(let w=0;w<g.length&&!(g[w].ymin>x);w++)b=w;g.splice(0,b+1).forEach(w=>{C.push({s:x,edge:w})})}if(C=C.filter(b=>!(b.edge.ymax<=x)),C.sort((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x)),(u!==1||y%h==0)&&C.length>1)for(let b=0;b<C.length;b+=2){const w=b+1;if(w>=C.length)break;const T=C[b].edge,_=C[w].edge;f.push([[Math.round(T.x),x],[Math.round(_.x),x]])}
232x+=u,C.forEach(b=>{b.edge.x=b.edge.x+u*b.edge.islope}),y++}return f}(o,a,i);if(s){for(const l of o)hl(l,n,-s);(function(l,h,u){const d=[];l.forEach(f=>d.push(...f)),hl(d,h,u)})(c,n,-s)}return c}function ba(e,t){var r;const i=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=s),AS(e,s,i,a||1)}class bc{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=ba(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const s of t)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return i}}function on(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class ES extends bc{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const s=ba(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,o=[],n=.5*i*Math.cos(a),c=.5*i*Math.sin(a);for(const[l,h]of s)on([l,h])&&o.push([[l[0]-n,l[1]+c],[...h]],[[l[0]+n,l[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class MS extends bc{fillPolygons(t,r){const i=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,s);return i.ops=i.ops.concat(a.ops),i}}class $S{constructor(t){this.helper=t}fillPolygons(t,r){const i=ba(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=s/4;for(const n of t){const c=on(n),l=c/s,h=Math.ceil(l)-1,u=c-h*s,d=(n[0][0]+n[1][0])/2-s/4,f=Math.min(n[0][1],n[1][1]);for(let g=0;g<h;g++){const C=f+u+g*s,x=d-o+2*Math.random()*o,y=C-o+2*Math.random()*o,b=this.helper.ellipse(x,y,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class OS{constructor(t){this.helper=t}fillPolygons(t,r){const i=ba(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach(o=>{const n=on(o),c=Math.floor(n/(i+s)),l=(n+s-c*(i+s))/2;let h=o[0],u=o[1];h[0]>u[0]&&(h=o[1],u=o[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let f=0;f<c;f++){const g=f*(i+s),C=g+i,x=[h[0]+g*Math.cos(d)+l*Math.cos(d),h[1]+g*Math.sin(d)+l*Math.sin(d)],y=[h[0]+C*Math.cos(d)+l*Math.cos(d),h[1]+C*Math.sin(d)+l*Math.sin(d)];a.push(...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],r))}}),a}}class IS{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?i:r.zigzagOffset,a=ba(t,r=Object.assign({},r,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(a,s,r)}}zigzagLines(t,r,i){const s=[];return t.forEach(a=>{const o=on(a),n=Math.round(o/(2*r));let c=a[0],l=a[1];c[0]>l[0]&&(c=a[1],l=a[0]);const h=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let u=0;u<n;u++){const d=2*u*r,f=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),C=[c[0]+d*Math.cos(h),c[1]+d*Math.sin(h)],x=[c[0]+f*Math.cos(h),c[1]+f*Math.sin(h)],y=[C[0]+g*Math.cos(h+Math.PI/4),C[1]+g*Math.sin(h+Math.PI/4)];s.push(...this.helper.doubleLineOps(C[0],C[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i))}}),s}}const Fe={};class DS{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const PS=0,cl=1,kd=2,Ga={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 ul(e,t){return e.type===t}function kc(e){const t=[],r=function(o){const n=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))n[n.length]={type:PS,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];n[n.length]={type:cl,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return n[n.length]={type:kd,text:""},n}(e);let i="BOD",s=0,a=r[s];for(;!ul(a,kd);){let o=0;const n=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return kc("M0,0"+e);s++,o=Ga[a.text],i=a.text}else ul(a,cl)?o=Ga[i]:(s++,o=Ga[a.text],i=a.text);if(!(s+o<r.length))throw new Error("Path data ended short");for(let c=s;c<s+o;c++){const l=r[c];if(!ul(l,cl))throw new Error("Param not a number: "+i+","+l.text);n[n.length]=+l.text}if(typeof Ga[i]!="number")throw new Error("Bad segment: "+i);{const c={key:i,data:n};t.push(c),s+=o,a=r[s],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Zp(e){let t=0,r=0,i=0,s=0;const a=[];for(const{key:o,data:n}of e)switch(o){case"M":a.push({key:"M",data:[...n]}),[t,r]=n,[i,s]=n;break;case"m":t+=n[0],r+=n[1],a.push({key:"M",data:[t,r]}),i=t,s=r;break;case"L":a.push({key:"L",data:[...n]}),[t,r]=n;break;case"l":t+=n[0],r+=n[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...n]}),t=n[4],r=n[5];break;case"c":{const c=n.map((l,h)=>h%2?l+r:l+t);a.push({key:"C",data:c}),t=c[4],r=c[5];break}case"Q":a.push({key:"Q",data:[...n]}),t=n[2],r=n[3];break;case"q":{const c=n.map((l,h)=>h%2?l+r:l+t);a.push({key:"Q",data:c}),t=c[2],r=c[3];break}case"A":a.push({key:"A",data:[...n]}),t=n[5],r=n[6];break;case"a":t+=n[5],r+=n[6],a.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],t,r]});break;case"H":a.push({key:"H",data:[...n]}),t=n[0];break;case"h":t+=n[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...n]}),t=n[2],r=n[3];break;case"s":{const c=n.map((l,h)=>h%2?l+r:l+t);a.push({key:"S",data:c}),t=c[2],r=c[3];break}case"T":a.push({key:"T",data:[...n]}),t=n[0],r=n[1];break;case"t":t+=n[0],r+=n[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=s}
232return a}function Qp(e){const t=[];let r="",i=0,s=0,a=0,o=0,n=0,c=0;for(const{key:l,data:h}of e){switch(l){case"M":t.push({key:"M",data:[...h]}),[i,s]=h,[a,o]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],s=h[5],n=h[2],c=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,s]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,s]});break;case"V":s=h[0],t.push({key:"L",data:[i,s]});break;case"S":{let u=0,d=0;r==="C"||r==="S"?(u=i+(i-n),d=s+(s-c)):(u=i,d=s),t.push({key:"C",data:[u,d,...h]}),n=h[0],c=h[1],i=h[2],s=h[3];break}case"T":{const[u,d]=h;let f=0,g=0;r==="Q"||r==="T"?(f=i+(i-n),g=s+(s-c)):(f=i,g=s);const C=i+2*(f-i)/3,x=s+2*(g-s)/3,y=u+2*(f-u)/3,b=d+2*(g-d)/3;t.push({key:"C",data:[C,x,y,b,u,d]}),n=f,c=g,i=u,s=d;break}case"Q":{const[u,d,f,g]=h,C=i+2*(u-i)/3,x=s+2*(d-s)/3,y=f+2*(u-f)/3,b=g+2*(d-g)/3;t.push({key:"C",data:[C,x,y,b,f,g]}),n=u,c=d,i=f,s=g;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],g=h[3],C=h[4],x=h[5],y=h[6];u===0||d===0?(t.push({key:"C",data:[i,s,x,y,x,y]}),i=x,s=y):(i!==x||s!==y)&&(Jp(i,s,x,y,u,d,f,g,C).forEach(function(b){t.push({key:"C",data:b})}),i=x,s=y);break}case"Z":t.push({key:"Z",data:[]}),i=a,s=o}r=l}return t}function Os(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Jp(e,t,r,i,s,a,o,n,c,l){const h=(u=o,Math.PI*u/180);var u;let d=[],f=0,g=0,C=0,x=0;if(l)[f,g,C,x]=l;else{[e,t]=Os(e,t,-h),[r,i]=Os(r,i,-h);const Y=(e-r)/2,E=(t-i)/2;let M=Y*Y/(s*s)+E*E/(a*a);M>1&&(M=Math.sqrt(M),s*=M,a*=M);const A=s*s,j=a*a,U=A*j-A*E*E-j*Y*Y,X=A*E*E+j*Y*Y,et=(n===c?-1:1)*Math.sqrt(Math.abs(U/X));C=et*s*E/a+(e+r)/2,x=et*-a*Y/s+(t+i)/2,f=Math.asin(parseFloat(((t-x)/a).toFixed(9))),g=Math.asin(parseFloat(((i-x)/a).toFixed(9))),e<C&&(f=Math.PI-f),r<C&&(g=Math.PI-g),f<0&&(f=2*Math.PI+f),g<0&&(g=2*Math.PI+g),c&&f>g&&(f-=2*Math.PI),!c&&g>f&&(g-=2*Math.PI)}let y=g-f;if(Math.abs(y)>120*Math.PI/180){const Y=g,E=r,M=i;g=c&&g>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=Jp(r=C+s*Math.cos(g),i=x+a*Math.sin(g),E,M,s,a,o,0,c,[g,Y,C,x])}y=g-f;const b=Math.cos(f),w=Math.sin(f),T=Math.cos(g),_=Math.sin(g),B=Math.tan(y/4),v=4/3*s*B,F=4/3*a*B,q=[e,t],I=[e+v*w,t-F*b],P=[r+v*_,i-F*T],tt=[r,i];if(I[0]=2*q[0]-I[0],I[1]=2*q[1]-I[1],l)return[I,P,tt].concat(d);{d=[I,P,tt].concat(d);const Y=[];for(let E=0;E<d.length;E+=3){const M=Os(d[E][0],d[E][1],h),A=Os(d[E+1][0],d[E+1][1],h),j=Os(d[E+2][0],d[E+2][1],h);Y.push([M[0],M[1],A[0],A[1],j[0],j[1]])}return Y}}const RS={randOffset:function(e,t){return At(e,t)},randOffsetWithRange:function(e,t,r){return Po(e,t,r)},ellipse:function(e,t,r,i,s){const a=em(r,i,s);return Kl(e,t,s,a).opset},doubleLineOps:function(e,t,r,i,s){return Qr(e,t,r,i,s,!0)}};function tm(e,t,r,i,s){return{type:"path",ops:Qr(e,t,r,i,s)}}function oo(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let a=0;a<i-1;a++)s.push(...Qr(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&s.push(...Qr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?tm(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function qS(e,t,r,i,s){return function(a,o){return oo(a,!0,o)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function wd(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Xa(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:Xa(r[0],1.5*(1+.22*t.roughness),_d(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const n=Xa(o,1*(1+.2*t.roughness),t),c=t.disableMultiStroke?[]:Xa(o,1.5*(1+.22*t.roughness),_d(t));for(const l of n)l.op!=="move"&&i.push(l);for(const l of c)l.op!=="move"&&s.push(l)}}return{type:"path",ops:i.concat(s)}}return{type:"path",ops:[]}}function em(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/s;let o=Math.abs(e/2),n=Math.abs(t/2);const c=1-r.curveFitting;return o+=At(o*c,r),n+=At(n*c,r),{increment:a,rx:o,ry:n}}function Kl(e,t,r,i){const[s,a]=Bd(i.increment,e,t,i.rx,i.ry,1,i.increment*Po(.1,Po(.4,1,r),r),r);let o=Ro(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=Bd(i.increment,e,t,i.rx,i.ry,1.5,0,r),c=Ro(n,null,r);o=o.concat(c)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function Td(e,t,r,i,s,a,o,n,c){const l=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=At(.01*u,c),d+=At(.01*d,c);let f=s,g=a;for(;f<0;)f+=2*Math.PI,g+=2*Math.PI;g-f>2*Math.PI&&(f=0,g=2*Math.PI);const C=2*Math.PI/c.curveStepCount,x=Math.min(C/2,(g-f)/2),y=vd(x,l,h,u,d,f,g,1,c);if(!c.disableMultiStroke){const b=vd(x,l,h,u,d,f,g,1.5,c);y.push(...b)}
232return o&&(n?y.push(...Qr(l,h,l+u*Math.cos(f),h+d*Math.sin(f),c),...Qr(l,h,l+u*Math.cos(g),h+d*Math.sin(g),c)):y.push({op:"lineTo",data:[l,h]},{op:"lineTo",data:[l+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:y}}function Sd(e,t){const r=Qp(Zp(kc(e))),i=[];let s=[0,0],a=[0,0];for(const{key:o,data:n}of r)switch(o){case"M":a=[n[0],n[1]],s=[n[0],n[1]];break;case"L":i.push(...Qr(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]];break;case"C":{const[c,l,h,u,d,f]=n;i.push(...NS(c,l,h,u,d,f,a,t)),a=[d,f];break}case"Z":i.push(...Qr(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]]}return{type:"path",ops:i}}function dl(e,t){const r=[];for(const i of e)if(i.length){const s=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+At(s,t),i[0][1]+At(s,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+At(s,t),i[o][1]+At(s,t)]})}}return{type:"fillPath",ops:r}}function $i(e,t){return function(r,i){let s=r.fillStyle||"hachure";if(!Fe[s])switch(s){case"zigzag":Fe[s]||(Fe[s]=new ES(i));break;case"cross-hatch":Fe[s]||(Fe[s]=new MS(i));break;case"dots":Fe[s]||(Fe[s]=new $S(i));break;case"dashed":Fe[s]||(Fe[s]=new OS(i));break;case"zigzag-line":Fe[s]||(Fe[s]=new IS(i));break;default:s="hachure",Fe[s]||(Fe[s]=new bc(i))}return Fe[s]}(t,RS).fillPolygons(e,t)}function _d(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function rm(e){return e.randomizer||(e.randomizer=new DS(e.seed||0)),e.randomizer.next()}function Po(e,t,r,i=1){return r.roughness*i*(rm(r)*(t-e)+e)}function At(e,t,r=1){return Po(-e,e,t,r)}function Qr(e,t,r,i,s,a=!1){const o=a?s.disableMultiStrokeFill:s.disableMultiStroke,n=Zl(e,t,r,i,s,!0,!1);if(o)return n;const c=Zl(e,t,r,i,s,!0,!0);return n.concat(c)}function Zl(e,t,r,i,s,a,o){const n=Math.pow(e-r,2)+Math.pow(t-i,2),c=Math.sqrt(n);let l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let h=s.maxRandomnessOffset||0;h*h*100>n&&(h=c/10);const u=h/2,d=.2+.2*rm(s);let f=s.bowing*s.maxRandomnessOffset*(i-t)/200,g=s.bowing*s.maxRandomnessOffset*(e-r)/200;f=At(f,s,l),g=At(g,s,l);const C=[],x=()=>At(u,s,l),y=()=>At(h,s,l),b=s.preserveVertices;return o?C.push({op:"move",data:[e+(b?0:x()),t+(b?0:x())]}):C.push({op:"move",data:[e+(b?0:At(h,s,l)),t+(b?0:At(h,s,l))]}),o?C.push({op:"bcurveTo",data:[f+e+(r-e)*d+x(),g+t+(i-t)*d+x(),f+e+2*(r-e)*d+x(),g+t+2*(i-t)*d+x(),r+(b?0:x()),i+(b?0:x())]}):C.push({op:"bcurveTo",data:[f+e+(r-e)*d+y(),g+t+(i-t)*d+y(),f+e+2*(r-e)*d+y(),g+t+2*(i-t)*d+y(),r+(b?0:y()),i+(b?0:y())]}),C}function Xa(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+At(t,r),e[0][1]+At(t,r)]),i.push([e[0][0]+At(t,r),e[0][1]+At(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+At(t,r),e[s][1]+At(t,r)]),s===e.length-1&&i.push([e[s][0]+At(t,r),e[s][1]+At(t,r)]);return Ro(i,null,r)}function Ro(e,t,r){const i=e.length,s=[];if(i>3){const a=[],o=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<i;n++){const c=e[n];a[0]=[c[0],c[1]],a[1]=[c[0]+(o*e[n+1][0]-o*e[n-1][0])/6,c[1]+(o*e[n+1][1]-o*e[n-1][1])/6],a[2]=[e[n+1][0]+(o*e[n][0]-o*e[n+2][0])/6,e[n+1][1]+(o*e[n][1]-o*e[n+2][1])/6],a[3]=[e[n+1][0],e[n+1][1]],s.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&s.push(...Zl(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Bd(e,t,r,i,s,a,o,n){const c=[],l=[];if(n.roughness===0){e/=4,l.push([t+i*Math.cos(-e),r+s*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+s*Math.sin(h)];c.push(u),l.push(u)}l.push([t+i*Math.cos(0),r+s*Math.sin(0)]),l.push([t+i*Math.cos(e),r+s*Math.sin(e)])}else{const h=At(.5,n)-Math.PI/2;l.push([At(a,n)+t+.9*i*Math.cos(h-e),At(a,n)+r+.9*s*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const f=[At(a,n)+t+i*Math.cos(d),At(a,n)+r+s*Math.sin(d)];c.push(f),l.push(f)}l.push([At(a,n)+t+i*Math.cos(h+2*Math.PI+.5*o),At(a,n)+r+s*Math.sin(h+2*Math.PI+.5*o)]),l.push([At(a,n)+t+.98*i*Math.cos(h+o),At(a,n)+r+.98*s*Math.sin(h+o)]),l.push([At(a,n)+t+.9*i*Math.cos(h+.5*o),At(a,n)+r+.9*s*Math.sin(h+.5*o)])}return[l,c]}function vd(e,t,r,i,s,a,o,n,c){const l=a+At(.1,c),h=[];h.push([At(n,c)+t+.9*i*Math.cos(l-e),At(n,c)+r+.9*s*Math.sin(l-e)]);for(let u=l;u<=o;u+=e)h.push([At(n,c)+t+i*Math.cos(u),At(n,c)+r+s*Math.sin(u)]);return h.push([t+i*Math.cos(o),r+s*Math.sin(o)]),h.push([t+i*Math.cos(o),r+s*Math.sin(o)]),Ro(h,null,c)}function NS(e,t,r,i,s,a,o,n){const c=[],l=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let h=[0,0];const u=n.disableMultiStroke?1:2,d=n.preserveVertices;for(let f=0;f<u;f++)f===0?c.push({op:"move",data:[o[0],o[1]]}
232):c.push({op:"move",data:[o[0]+(d?0:At(l[0],n)),o[1]+(d?0:At(l[0],n))]}),h=d?[s,a]:[s+At(l[f],n),a+At(l[f],n)],c.push({op:"bcurveTo",data:[e+At(l[f],n),t+At(l[f],n),r+At(l[f],n),i+At(l[f],n),h[0],h[1]]});return c}function Is(e){return[...e]}function Ld(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(Is(e[0]),Is(e[1]),Is(e[2]),Is(e[2]));else{const s=[];s.push(e[0],e[0]);for(let n=1;n<e.length;n++)s.push(e[n]),n===e.length-1&&s.push(e[n]);const a=[],o=1-t;i.push(Is(s[0]));for(let n=1;n+2<s.length;n++){const c=s[n];a[0]=[c[0],c[1]],a[1]=[c[0]+(o*s[n+1][0]-o*s[n-1][0])/6,c[1]+(o*s[n+1][1]-o*s[n-1][1])/6],a[2]=[s[n+1][0]+(o*s[n][0]-o*s[n+2][0])/6,s[n+1][1]+(o*s[n][1]-o*s[n+2][1])/6],a[3]=[s[n+1][0],s[n+1][1]],i.push(a[1],a[2],a[3])}}return i}function no(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function WS(e,t,r){const i=no(t,r);if(i===0)return no(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return s=Math.max(0,Math.min(1,s)),no(e,hi(t,r,s))}function hi(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Ql(e,t,r,i){const s=i||[];if(function(n,c){const l=n[c+0],h=n[c+1],u=n[c+2],d=n[c+3];let f=3*h[0]-2*l[0]-d[0];f*=f;let g=3*h[1]-2*l[1]-d[1];g*=g;let C=3*u[0]-2*d[0]-l[0];C*=C;let x=3*u[1]-2*d[1]-l[1];return x*=x,f<C&&(f=C),g<x&&(g=x),f+g}(e,t)<r){const n=e[t+0];s.length?(a=s[s.length-1],o=n,Math.sqrt(no(a,o))>1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const c=e[t+0],l=e[t+1],h=e[t+2],u=e[t+3],d=hi(c,l,.5),f=hi(l,h,.5),g=hi(h,u,.5),C=hi(d,f,.5),x=hi(f,g,.5),y=hi(C,x,.5);Ql([c,d,C,y],0,r,s),Ql([y,x,g,u],0,r,s)}var a,o;return s}function zS(e,t){return qo(e,0,e.length,t)}function qo(e,t,r,i,s){const a=s||[],o=e[t],n=e[r-1];let c=0,l=1;for(let h=t+1;h<r-1;++h){const u=WS(e[h],o,n);u>c&&(c=u,l=h)}return Math.sqrt(c)>i?(qo(e,t,l+1,i,a),qo(e,l,r,i,a)):(a.length||a.push(o),a.push(n)),a}function fl(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let a=0;a<s;a++)Ql(e,3*a,t,i);return r&&r>0?qo(i,0,i.length,r):i}const $e="none";class No{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,s,a){const o=this._o(a);return this._d("line",[tm(t,r,i,s,o)],o)}rectangle(t,r,i,s,a){const o=this._o(a),n=[],c=qS(t,r,i,s,o);if(o.fill){const l=[[t,r],[t+i,r],[t+i,r+s],[t,r+s]];o.fillStyle==="solid"?n.push(dl([l],o)):n.push($i([l],o))}return o.stroke!==$e&&n.push(c),this._d("rectangle",n,o)}ellipse(t,r,i,s,a){const o=this._o(a),n=[],c=em(i,s,o),l=Kl(t,r,o,c);if(o.fill)if(o.fillStyle==="solid"){const h=Kl(t,r,o,c).opset;h.type="fillPath",n.push(h)}else n.push($i([l.estimatedPoints],o));return o.stroke!==$e&&n.push(l.opset),this._d("ellipse",n,o)}circle(t,r,i,s){const a=this.ellipse(t,r,i,i,s);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[oo(t,!1,i)],i)}arc(t,r,i,s,a,o,n=!1,c){const l=this._o(c),h=[],u=Td(t,r,i,s,a,o,n,!0,l);if(n&&l.fill)if(l.fillStyle==="solid"){const d=Object.assign({},l);d.disableMultiStroke=!0;const f=Td(t,r,i,s,a,o,!0,!1,d);f.type="fillPath",h.push(f)}else h.push(function(d,f,g,C,x,y,b){const w=d,T=f;let _=Math.abs(g/2),B=Math.abs(C/2);_+=At(.01*_,b),B+=At(.01*B,b);let v=x,F=y;for(;v<0;)v+=2*Math.PI,F+=2*Math.PI;F-v>2*Math.PI&&(v=0,F=2*Math.PI);const q=(F-v)/b.curveStepCount,I=[];for(let P=v;P<=F;P+=q)I.push([w+_*Math.cos(P),T+B*Math.sin(P)]);return I.push([w+_*Math.cos(F),T+B*Math.sin(F)]),I.push([w,T]),$i([I],b)}(t,r,i,s,a,o,l));return l.stroke!==$e&&h.push(u),this._d("arc",h,l)}curve(t,r){const i=this._o(r),s=[],a=wd(t,i);if(i.fill&&i.fill!==$e)if(i.fillStyle==="solid"){const o=wd(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],n=t;if(n.length){const c=typeof n[0][0]=="number"?[n]:n;for(const l of c)l.length<3?o.push(...l):l.length===3?o.push(...fl(Ld([l[0],l[0],l[1],l[2]]),10,(1+i.roughness)/2)):o.push(...fl(Ld(l),10,(1+i.roughness)/2))}o.length&&s.push($i([o],i))}return i.stroke!==$e&&s.push(a),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],a=oo(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(dl([t],i)):s.push($i([t],i))),i.stroke!==$e&&s.push(a),this._d("polygon",s,i)}path(t,r){const i=this._o(r),s=[];if(!t)return this._d("path",s,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==$e,o=i.stroke!==$e,n=!!(i.simplification&&i.simplification<1),c=function(h,u,d){const f=Qp(Zp(kc(h))),g=[];let C=[],x=[0,0],y=[];const b=()=>{y.length>=4&&C.push(...fl(y,u)),y=[]},w=()=>{b(),C.length&&(g.push(C),C=[])};for(const{key:_,data:B}of f)switch(_){case"M":w(),x=[B[0],B[1]],C.push(x);break;case"L":b(),C.push([B[0],B[1]]);break;case"C":if(!y.length){const v=C.length?C[C.length-1]:x;y.push([v[0],v[1]])}y.push([B[0],B[1]]),y.push([B[2],B[3]]),y.push([B[4],B[5]]);break;
232case"Z":b(),C.push([x[0],x[1]])}if(w(),!d)return g;const T=[];for(const _ of g){const B=zS(_,d);B.length&&T.push(B)}return T}(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),l=Sd(t,i);if(a)if(i.fillStyle==="solid")if(c.length===1){const h=Sd(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else s.push(dl(c,i));else s.push($i(c,i));return o&&(n?c.forEach(h=>{s.push(oo(h,!1,i))}):s.push(l)),this._d("path",s,i)}opsToPath(t,r){let i="";for(const s of t.ops){const a=typeof r=="number"&&r>=0?s.data.map(o=>+o.toFixed(r)):s.data;switch(s.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,s=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:$e};break;case"fillPath":o={d:this.opsToPath(a),stroke:$e,strokeWidth:0,fill:i.fill||$e};break;case"fillSketch":o=this.fillSketch(a,i)}o&&s.push(o)}return s}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||$e,strokeWidth:i,fill:$e}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class HS{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new No(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,o,a),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";const n=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,o,a,n),s.restore();break}case"fillSketch":this.fillSketch(s,o,i)}}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=s,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,s="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof i=="number"&&i>=0?a.data.map(n=>+n.toFixed(i)):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,s,a){const o=this.gen.line(t,r,i,s,a);return this.draw(o),o}rectangle(t,r,i,s,a){const o=this.gen.rectangle(t,r,i,s,a);return this.draw(o),o}ellipse(t,r,i,s,a){const o=this.gen.ellipse(t,r,i,s,a);return this.draw(o),o}circle(t,r,i,s){const a=this.gen.circle(t,r,i,s);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,s,a,o,n=!1,c){const l=this.gen.arc(t,r,i,s,a,o,n,c);return this.draw(l),l}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const Va="http://www.w3.org/2000/svg";class jS{constructor(t,r){this.svg=t,this.gen=new No(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,a=s.createElementNS(Va,"g"),o=t.options.fixedDecimalPlaceDigits;for(const n of r){let c=null;switch(n.type){case"path":c=s.createElementNS(Va,"path"),c.setAttribute("d",this.opsToPath(n,o)),c.setAttribute("stroke",i.stroke),c.setAttribute("stroke-width",i.strokeWidth+""),c.setAttribute("fill","none"),i.strokeLineDash&&c.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&c.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":c=s.createElementNS(Va,"path"),c.setAttribute("d",this.opsToPath(n,o)),c.setAttribute("stroke","none"),c.setAttribute("stroke-width","0"),c.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||c.setAttribute("fill-rule","evenodd");break;case"fillSketch":c=this.fillSketch(s,n,i)}c&&a.appendChild(c)}return a}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const a=t.createElementNS(Va,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",s+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,s,a){const o=this.gen.line(t,r,i,s,a);return this.draw(o)}rectangle(t,r,i,s,a){const o=this.gen.rectangle(t,r,i,s,a);return this.draw(o)}ellipse(t,r,i,s,a){const o=this.gen.ellipse(t,r,i,s,a);return this.draw(o)}circle(t,r,i,s){const a=this.gen.circle(t,r,i,s);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,s,a,o,n=!1,c){const l=this.gen.arc(t,r,i,s,a,o,n,c);return this.draw(l)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var gt={canvas:(e,t)=>new HS(e,t),svg:(e,t)=>new jS(e,t),generator:e=>new No(e),newSeed:()=>No.newSeed()},Di=p((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),YS=1,US=3;async function wc(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!Tc(e);await Promise.all([...t].map(i=>new Promise(s=>{function a(){if(i.style.display="flex",i.style.flexDirection="column",r){const o=Ot().fontSize?Ot().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[c=Oh.fontSize]=tn(o),l=c*n+"px";i.style.minWidth=l,i.style.maxWidth=l}else i.style.width="100%";s(i)}p(a,"setupImage"),setTimeout(()=>{i.complete&&a()}),i.addEventListener("error",a),i.addEventListener("load",a)})))}p(wc,"configureLabelImages");function Tc(e){var r;
232return e.nodeType===US?((r=e.textContent)==null?void 0:r.trim())!=="":e.nodeType!==YS||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(Tc)}p(Tc,"hasTextBesidesImages");var Fd=3,GS=32,XS=p(async(e,t,r)=>{var y,b,w;const i=Ot(),s=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),a=s.insert("g").attr("class","label").attr("style",re(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:((y=t.label)==null?void 0:y[0])??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(T=>({text:T,cssClass:"c4-descr"}))].filter(T=>T.text),c=t.width?Math.max(t.width-2*(t.padding??0),GS):((b=Ot().flowchart)==null?void 0:b.wrappingWidth)??200,h=((w=i.c4)==null?void 0:w.wrap)??!0?c:Number.POSITIVE_INFINITY,u=await Promise.all(n.map(async T=>{const _=a.append("g").attr("class",T.cssClass),B=await De(_,je(Zr(T.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:h,style:t.labelStyle},i);return $t(B).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),$t(B).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:_,box:_.node().getBBox()}})),d=Math.max(...u.map(({box:T})=>T.width),0);let f=0;for(const{el:T,box:_}of u)T.attr("transform",`translate(${d/2-_.x-_.width/2}, ${f-_.y})`),f+=_.height+Fd;const g=u.length>0?f-Fd:0;a.insert("rect",":first-child"),a.attr("transform",`translate(${-d/2}, ${-g/2})`);const C=a.node().getBBox(),x=(t.padding??0)/2;return{shapeSvg:s,bbox:C,halfPadding:x,label:a}},"c4LabelHelper"),Ad=p((e,t)=>{const{x:r,y:i,width:s,height:a}=e;return s>=t?e:"left"in e?{x:r,y:i,width:t,height:a,top:i,left:r,bottom:i+a,right:r+t,toJSON:p(()=>({}),"toJSON")}:{x:r-(t-s)/2,y:i,width:t,height:a}},"withMinWidth"),Tt=p(async(e,t,r)=>{var C,x;if(t.stereotype!==void 0)return XS(e,t,r);let i;const s=t.useHtmlLabels||pr((C=Ot())==null?void 0:C.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",re(t.labelStyle));let n;t.label===void 0?n="":n=typeof t.label=="string"?t.label:t.label[0];const c=!!t.icon||!!t.img,l=t.labelType==="markdown",h=(t.cssClasses??"").includes("mindmap-node"),u=n&&!t.width?t.minWidth??0:0,d=await De(o,je(Zr(n),Ot()),{useHtmlLabels:s,width:t.width||t.wrappingWidth||((x=Ot().flowchart)==null?void 0:x.wrappingWidth),minWidth:u,classes:l?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:c,markdown:l,overflowWrap:h?"anywhere":"break-word"},Ot()),f=((t==null?void 0:t.padding)??0)/2;let g;if(s){const y=d.children[0],b=$t(d);await wc(y),g=await yi.measure(()=>y.getBoundingClientRect()),g=Ad(g,u),b.attr("width",g.width),t.height&&t.height<g.height&&(g.height=t.height<0?0:t.height),b.attr("height",g.height)}else g=await yi.measure(()=>d.getBBox()),g=Ad(g,u);return o.attr("transform",Di(g,s)),o.insert("rect",":first-child"),{shapeSvg:a,bbox:g,halfPadding:f,label:o}},"labelHelper"),fi=p(async(e,t,r)=>{var c,l;const i=r.useHtmlLabels??me(Ot()),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await De(s,je(Zr(t),Ot()),{useHtmlLabels:i,width:r.width||((l=(c=Ot())==null?void 0:c.flowchart)==null?void 0:l.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),o=r.padding/2;let n;if(me(Ot())){const h=a.children[0],u=$t(a);n=await yi.measure(()=>h.getBoundingClientRect()),u.attr("width",n.width),u.attr("height",n.height)}else n=await yi.measure(()=>a.getBBox());return i?s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):s.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:n,halfPadding:o,label:s}},"insertLabel"),mt=p((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}const i=t.node().getBBox();e.width=i.width,e.height=i.height,J.debug("updateNodeBounds: #####################################"),J.debug("updateNodeBounds:",e.id,e.width,e.height),J.debug("updateNodeBounds: #####################################")},"updateNodeBounds"),kt=p((e,t)=>
232(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Wt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(Wt,"createPathFromPoints");function Jr(e,t,r,i,s,a){const o=[],c=r-e,l=i-t,h=c/a,u=2*Math.PI/h,d=t+l/2;for(let f=0;f<=50;f++){const g=f/50,C=e+g*c,x=d+s*Math.sin(u*(C-e));o.push({x:C,y:x})}return o}p(Jr,"generateFullSineWavePoints");function dr(e,t,r,i,s,a){const o=[],n=s*Math.PI/180,h=(a*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-f,y:-g})}return o}p(dr,"generateCirclePoints");function sa(e){const t=Array.from(e.childNodes).filter(c=>c.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(c=>c.getAttribute("d")).filter(c=>c!==null).join(" ");r.setAttribute("d",i);const s=t.find(c=>c.getAttribute("fill")!=="none"),a=t.find(c=>c.getAttribute("stroke")!=="none"),o=p((c,l)=>(c==null?void 0:c.getAttribute(l))??void 0,"getAttr");if(s){const c={fill:o(s,"fill"),"fill-opacity":o(s,"fill-opacity")??"1"};Object.entries(c).forEach(([l,h])=>{h&&r.setAttribute(l,h)})}if(a){const c={stroke:o(a,"stroke"),"stroke-width":o(a,"stroke-width")??"1","stroke-opacity":o(a,"stroke-opacity")??"1"};Object.entries(c).forEach(([l,h])=>{h&&r.setAttribute(l,h)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}p(sa,"mergePaths");var VS=p((e,t)=>{var r=e.x,i=e.y,s=t.x-r,a=t.y-i,o=e.width/2,n=e.height/2,c,l;return Math.abs(a)*o>Math.abs(s)*n?(a<0&&(n=-n),c=a===0?0:n*s/a,l=n):(s<0&&(o=-o),c=o,l=s===0?0:o*a/s),{x:r+c,y:i+l}},"intersectRect"),Ir=VS;function im(e,t){return e.intersect(t)}p(im,"intersectNode");var KS=im;function sm(e,t,r,i){var s=e.x,a=e.y,o=s-i.x,n=a-i.y,c=Math.sqrt(t*t*n*n+r*r*o*o),l=Math.abs(t*r*o/c);i.x<s&&(l=-l);var h=Math.abs(t*r*n/c);return i.y<a&&(h=-h),{x:s+l,y:a+h}}p(sm,"intersectEllipse");var am=sm;function om(e,t,r){return am(e,t,t,r)}p(om,"intersectCircle");var ZS=om;function nm(e,t,r,i){{const s=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,n=s*r.x+a*r.y+o,c=s*i.x+a*i.y+o,l=1e-6;if(n!==0&&c!==0&&Jl(n,c))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,g=h*t.x+u*t.y+d;if(Math.abs(f)<l&&Math.abs(g)<l&&Jl(f,g))return;const C=s*u-h*a;if(C===0)return;const x=(a*d-u*o)/C,y=(h*o-s*d)/C;return{x,y}}}p(nm,"intersectLine");function Jl(e,t){return e*t>0}p(Jl,"sameSign");var QS=nm;function lm(e,t,r){let i=e.x,s=e.y,a=[],o=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){o=Math.min(o,h.x),n=Math.min(n,h.y)}):(o=Math.min(o,t.x),n=Math.min(n,t.y));let c=i-e.width/2-o,l=s-e.height/2-n;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],f=QS(e,r,{x:c+u.x,y:l+u.y},{x:c+d.x,y:l+d.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,g=Math.sqrt(d*d+f*f),C=u.x-r.x,x=u.y-r.y,y=Math.sqrt(C*C+x*x);return g<y?-1:g===y?0:1}),a[0]):e}p(lm,"intersectPolygon");var JS=lm,ut={node:KS,circle:ZS,ellipse:am,polygon:JS,rect:Ir},Pe=p((e,t,r,i,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+i-s,"A",s,s,0,0,1,e+r-s,t+i,"H",e+s,"A",s,s,0,0,1,e,t+i-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),t_=p(async(e,t,r,i=!1,s=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);const o=Ot(),n=me(o);return await De(e,a,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Ar=t_;function hm(e,t){const{labelStyles:r}=Ct(t);t.labelStyle=r;const i=kt(t);let s=i;i||(s="anchor");const a=e.insert("g").attr("class",s).attr("id",t.domId||t.id),o=1,{cssStyles:n}=t,c=gt.svg(a),l=ft(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(l.roughness=0);const h=c.circle(0,0,o*2,l),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",re(n)),mt(t,u),t.intersect=function(d){return J.info("Circle intersect",t,o,d),ut.circle(t,o,d)},a}p(hm,"anchor");function th(e,t,r,i,s,a,o){const c=(e+r)/2,l=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/s,g=d/a,C=Math.sqrt(f**2+g**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-C**2),y=c+x*a*Math.sin(h)*(o?-1:1),b=l-x*s*Math.cos(h)*(o?-1:1),w=Math.atan2((t-b)/a,(e-y)/s);let _=Math.atan2((i-b)/a,(r-y)/s)-w;o&&_<0&&(_+=2*Math.PI),!o&&_>0&&(_-=2*Math.PI);const B=[];for(let v=0;v<21;v++){const F=v/20,q=w+F*_,I=y+s*Math.cos(q),P=b+a*Math.sin(q);B.push({x:I,y:P})}return B}p(th,"generateArcPoints");function eh(e,t,r){const[i,s]=[t,r].sort((a,o)=>o-a);return s*(1-Math.sqrt(1-(e/i/2)**2))}p(eh,"calculateArcSagitta");async function cm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s,n=p(q=>q+o,"calcTotalHeight"),c=p(q=>{const I=q/2;return[I/(2.5+q/50),I]},"calcEllipseRadius");if(t.width||t.height){t.height=Math.max(((t==null?void 0:t.height)??0)-o*2,10);const q=n(t.height),[I,P]=c(q);t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-eh(q,I,P),10)}const{shapeSvg:l,bbox:h}=await Tt(e,t,kt(t)),u=n(t!=null&&t.height?t==null?void 0:t.height:h.height),[d,f]=c(u),g=eh(u,d,f),x=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2+g-g,y=u,{cssStyles:b}=t,w=[{x:x/2,y:-y/2},{x:-x/2,y:-y/2},...th(-x/2,-y/2,-x/2,y/2,d,f,!1),{x:x/2,y:y/2},...th(x/2,y/2,x/2,-y/2,d,f,!0)],T=gt.svg(l),_=ft(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const B=Wt(w),v=T.path(B,_),F=l.insert(()=>v,":first-child");return F.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${d/2}, 0)`),mt(t,F),t.intersect=function(q){return ut.polygon(t,w,q)},l}p(cm,"bowTieRect");
232async function um(e,t,{config:{themeVariables:r}}){var v;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,label:n}=await Tt(e,t,kt(t)),c=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",l=t.padding??12,h=Math.max(o.width+l*2,t.width??0,80),u=Math.max(Math.min(h*.08,12),5),d=Math.max(o.height+l*2+u,t.height??0),f=-d/2+u,g=d/2,C=h*.72,x=[`M${-h/2},${f}`,`L${-C/2},${g}`,`A${C/2},${u} 0 0 0 ${C/2},${g}`,`L${h/2},${f}`,`A${h/2},${u} 0 0 0 ${-h/2},${f}`,"Z"].join(" "),{cssStyles:y}=t,b=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const q=gt.svg(a).path(x,ft(t,{}));(v=b.node())==null||v.appendChild(q),y&&b.attr("style",y)}else b.append("path").attr("d",x).attr("style",s);b.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${c};stroke-width:1px`),mt(t,b);const w=f+(g-f)/2;n.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${w-o.height/2-(o.y-(o.top??0))})`);const T=12,_=p((F,q,I)=>Array.from({length:T+1},(P,tt)=>{const Y=Math.PI-tt*Math.PI/T;return{x:F*Math.cos(Y),y:q+I*u*Math.sin(Y)}}),"arc"),B=[..._(h/2,f,-1),..._(C/2,g,1).reverse()];return t.intersect=function(F){return ut.polygon(t,B,F)},a}p(um,"bucket");var Ed=20,Md=8,e_=80,r_=8;function dm(e){const{themeVariables:t}=Ot(),r=t.clusterBkg,i=t.clusterBorder;switch(e){case"flow":return{rx:10,fill:"none",stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"};default:return{rx:r_,fill:r,stroke:i,cssClass:"collapsed-group"}}}p(dm,"getCollapsedStyle");async function fm(e,t){var v;const r=dm((v=t.metadata)==null?void 0:v.containerType),{fill:i,stroke:s}=r,{nodeStyles:a}=Ct(t),{shapeSvg:o,bbox:n}=await Tt(e,t,kt(t)),{theme:c,themeVariables:l}=Ot();Ge(o,t.colorIndex,c,l.borderColorArray);const h=t.padding??8,u=n.height,d=Math.max(n.width+h*2,e_,(t==null?void 0:t.width)??0),f=Math.max(u+Md+Ed+h*2,(t==null?void 0:t.height)??0),g=-d/2,C=-f/2,x=-28/2,y=o.select(".label");y&&(t.useHtmlLabels??me(Ot())?y.attr("transform",`translate(${-n.width/2}, ${-n.height/2+x})`):y.attr("transform",`translate(0, ${-n.height/2+x})`));let b;if(t.look==="handDrawn"){const F=gt.svg(o),q=ft(t,{fill:i,stroke:s,...r.strokeWidth===void 0?{}:{strokeWidth:r.strokeWidth},...i==="none"?{fillWeight:0}:{fillStyle:"solid"}}),I=F.path(Pe(g,C,d,f,r.rx),q);b=o.insert(()=>I,":first-child"),b.attr("class","basic label-container "+r.cssClass).attr("style",re(t.cssStyles))}else b=o.insert("rect",":first-child"),b.attr("class","basic label-container "+r.cssClass).attr("style",a).attr("rx",r.rx).attr("ry",r.rx).attr("x",g).attr("y",C).attr("width",d).attr("height",f).attr("fill",i).attr("stroke",s),r.strokeWidth!==void 0&&b.attr("stroke-width",r.strokeWidth+"px");const w=C+h+u+Md;o.append("line").attr("class","collapsed-separator").attr("x1",g+8).attr("y1",w).attr("x2",g+d-8).attr("y2",w).attr("stroke",s).attr("stroke-dasharray","3, 3");const T=w+Ed/2,_=2.5,B=10;for(let F=-1;F<=1;F++)o.append("circle").attr("class","collapsed-indicator").attr("cx",F*B).attr("cy",T).attr("r",_).attr("fill",s);return mt(t,b),t.calcIntersect=function(F,q){return ut.rect(F,q)},t.intersect=function(F){return ut.rect(t,F)},o}p(fm,"collapsedGroup");function yr(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}p(yr,"insertPolygonShape");var i_=["right","left","up","down"],Sc="point",s_=p(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),a_=p(e=>i_.filter(t=>e.has(t)).join("|")||Sc,"getDirectionKey"),$d={"right|left|up|down":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":p(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":p(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":p(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":p(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":p(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[Sc]:()=>[{x:0,y:0}]},o_=p((e,t,r,i)=>
232{const s=s_(e),a=(r.padding??0)/2,o=t.height+4*a,n=o/2,c=i??t.width+2*n+2*a,l=a_(s);return($d[l]??$d[Sc])({height:o,midpoint:n,padding:a,width:c})},"getArrowPoints");async function gm(e,t){const r=t,{shapeSvg:i,bbox:s}=await Tt(e,r,kt(r)),a=r.padding??0,o=s.height+2*a,n=o/2,c=s.width+2*n+a,l=r.width??0,u=r.positioned&&(r.widthInColumns??1)>1&&l>c?l:c,d=o_(r.directions??[],s,r,u),f=yr(i,u,o,d);return f.attr("style",r.style??null),mt(r,f),r.intersect=function(g){return ut.polygon(r,d,g)},i}p(gm,"block_arrow");async function pm(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,label:n}=await Tt(e,t,kt(t)),c=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",l=t.padding??12,h=18,u=12,d=Math.max(o.width+l*2,t.width??0,90),f=Math.max(o.height+l*2+h,t.height??0),g=-f/2,{cssStyles:C}=t,x=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=gt.svg(a).path(Pe(-d/2,g,d,f,u),ft(t,{}));(b=x.node())==null||b.appendChild(T),C&&x.attr("style",C)}else x.append("rect").attr("x",-d/2).attr("y",g).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);x.append("line").attr("x1",-d/2).attr("y1",g+h).attr("x2",d/2).attr("y2",g+h).attr("style",`stroke:${c};stroke-width:1px`);for(let w=0;w<3;w++)x.append("circle").attr("cx",-d/2+12+w*9).attr("cy",g+h/2).attr("r",2.5).attr("style",`fill:${c};stroke:none`);x.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",g+4).attr("width",Math.max(d-56,10)).attr("height",h-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${c};stroke-width:1px;opacity:0.6`),mt(t,x);const y=g+h+(f-h)/2;return n.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${y-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(w){return ut.rect(t,w)},a}p(pm,"browser");var Ka=12;async function mm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?28:s,o=t.look==="neo"?24:s;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-(a??0),10),t.height=Math.max(((t==null?void 0:t.height)??0)-(o??0),10));const{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=((t==null?void 0:t.width)??c.width)+(t.look==="neo"?a*2:a+Ka),h=((t==null?void 0:t.height)??c.height)+(t.look==="neo"?o*2:o),u=0,d=l,f=-h,g=0,C=[{x:u+Ka,y:f},{x:d,y:f},{x:d,y:g},{x:u,y:g},{x:u,y:f+Ka},{x:u+Ka,y:f}];let x;const{cssStyles:y}=t;if(t.look==="handDrawn"){const b=gt.svg(n),w=ft(t,{}),T=Wt(C),_=b.path(T,w);x=n.insert(()=>_,":first-child").attr("transform",`translate(${-l/2}, ${h/2})`),y&&x.attr("style",y)}else x=yr(n,l,h,C);return i&&x.attr("style",i),mt(t,x),t.intersect=function(b){return ut.polygon(t,C,b)},n}p(mm,"card");function ym(e,t,{config:{theme:r}}){const{nodeStyles:i}=Ct(t);t.label="";const s=e.insert("g").attr("class",kt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(28,t.width??0),n=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],c=gt.svg(s),l=ft(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=Wt(n),u=c.path(h,l),d=s.insert(()=>u,":first-child");return a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),r!=null&&r.includes("redux")&&t.look!=="handDrawn"&&d.attr("style","filter:url(#drop-shadow-small)"),t.width=28,t.height=28,t.intersect=function(f){return ut.polygon(t,n,f)},s}p(ym,"choice");async function Cm(e,t,r){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:n}=await Tt(e,t,kt(t)),c=16,l=(r==null?void 0:r.padding)??n,h=Math.sqrt(o.width**2+o.height**2)/2,u=t.width?t.width/2:t.look==="neo"?h+c*2:h+l;let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(a),C=ft(t,{}),x=g.circle(0,0,u*2,C);d=a.insert(()=>x,":first-child"),d.attr("class","basic label-container").attr("style",re(f))}else d=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",u).attr("cx",0).attr("cy",0);return mt(t,d),t.calcIntersect=function(g,C){const x=g.width/2;return ut.circle(g,x,C)},t.intersect=function(g){return J.info("Circle intersect",t,u,g),ut.circle(t,u,g)},a}p(Cm,"circle");
232async function xm(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:a,halfPadding:o}=await Tt(e,r,i),n=s.insert("rect",":first-child"),c=r.padding??0,l=r.positioned?r.width??0:a.width+c,h=r.positioned?r.height??0:a.height+c,u=r.positioned?-l/2:-a.width/2-o,d=r.positioned?-h/2:-a.height/2-o;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",u).attr("y",d).attr("width",l).attr("height",h),mt(r,n),r.intersect=function(f){return ut.rect(r,f)},s}p(xm,"composite");async function bm(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,label:n}=await Tt(e,t,kt(t)),c=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",l=t.padding??12,h=20,u=12,d=Math.max(o.width+l*2,t.width??0,90),f=Math.max(o.height+l*2+h,t.height??0),g=-f/2,{cssStyles:C}=t,x=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const T=gt.svg(a).path(Pe(-d/2,g,d,f,u),ft(t,{}));(b=x.node())==null||b.appendChild(T),C&&x.attr("style",C)}else x.append("rect").attr("x",-d/2).attr("y",g).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);x.append("text").attr("x",-d/2+12).attr("y",g+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${c}`).text(">_"),mt(t,x);const y=g+h+(f-h)/2;return n.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${y-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(w){return ut.rect(t,w)},a}p(bm,"consoleWindow");function km(e){const t=Math.SQRT1_2,r=e*2,i={x:r/2*t,y:r/2*t},s={x:-(r/2)*t,y:r/2*t},a={x:-(r/2)*t,y:-(r/2)*t},o={x:r/2*t,y:-(r/2)*t};return`M ${s.x},${s.y} L ${o.x},${o.y}
233                   M ${i.x},${i.y} L ${a.x},${a.y}`}p(km,"createLine");function wm(e,t){t.label="";const r=e.insert("g").attr("class",kt(t)).attr("id",t.domId??t.id),i=t!=null&&t.width?(t==null?void 0:t.width)/2:t!=null&&t.height?(t==null?void 0:t.height)/2:25,{cssStyles:s}=t,a=gt.svg(r),o=ft(t,{});t.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");const n=a.circle(0,0,i*2,o),c=km(i),l=a.path(c,o),h=r.insert("g",":first-child");return h.insert(()=>n),h.insert(()=>l),h.attr("class","outer-path"),s&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",s),mt(t,h),t.intersect=function(u){return J.info("crossedCircle intersect",t,{radius:i,point:u}),ut.circle(t,i,u)},r}p(wm,"crossedCircle");function Sr(e,t,r,i=100,s=0,a=180){const o=[],n=s*Math.PI/180,h=(a*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-f,y:-g})}return o}p(Sr,"generateCirclePoints");async function Tm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.look==="neo"?18:t.padding??0,c=t.look==="neo"?12:t.padding??0;if(t.width||t.height){let v=5;const F=(((t==null?void 0:t.height)??0)-c*2)*10/11;F/10>5&&(v=F/10),t.height=((t==null?void 0:t.height)??0)-c*2-2*v,t.height<10&&(t.height=10),t.width=((t==null?void 0:t.width)??0)-n*2-2*v,t.width<10&&(t.width=10)}const l=(t.width?t.width:a.width)+(n??0)*2,h=(t.height?t.height:a.height)+(c??0)*2,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Sr(l/2,-h/2,u,30,-90,0),{x:-l/2-u,y:u},...Sr(l/2+u*2,-u,u,20,-180,-270),...Sr(l/2+u*2,u,u,20,-90,-180),{x:-l/2-u,y:-h/2},...Sr(l/2,h/2,u,20,0,90)],g=[{x:l/2,y:-h/2-u},{x:-l/2,y:-h/2-u},...Sr(l/2,-h/2,u,20,-90,0),{x:-l/2-u,y:-u},...Sr(l/2+l*.1,-u,u,20,-180,-270),...Sr(l/2+l*.1,u,u,20,-90,-180),{x:-l/2-u,y:h/2},...Sr(l/2,h/2,u,20,0,90),{x:-l/2,y:h/2+u},{x:l/2,y:h/2+u}],C=gt.svg(s),x=ft(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=Wt(f).replace("Z",""),w=C.path(b,x),T=Wt(g),_=C.path(T,{...x}),B=s.insert("g",":first-child");return B.insert(()=>_,":first-child").attr("stroke-opacity",0),B.insert(()=>w,":first-child"),B.attr("class","text"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${u}, 0)`),o.attr("transform",`translate(${-l/2+(n??0)-(a.x-(a.left??0))}, ${-a.height/2})`),mt(t,B),t.intersect=function(v){return ut.polygon(t,g,v)},s}p(Tm,"curlyBraceLeft");function _r(e,t,r,i=100,s=0,a=180){const o=[],n=s*Math.PI/180,h=(a*M
233ath.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:f,y:g})}return o}p(_r,"generateCirclePoints");async function Sm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.look==="neo"?18:t.padding??0,c=t.look==="neo"?12:t.padding??0;if(t.width||t.height){let v=5;const F=(((t==null?void 0:t.height)??0)-c*2)*10/11;F/10>5&&(v=F/10),t.width=((t==null?void 0:t.width)??0)-n*2-v*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-c*2-v*2,t.height<10&&(t.height=10)}const l=(t.width?t.width:a.width)+(n??0)*2,h=(t.height?t.height:a.height)+(c??0)*2,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[..._r(l/2,-h/2,u,20,-90,0),{x:l/2+u,y:-u},..._r(l/2+u*2,-u,u,20,-180,-270),..._r(l/2+u*2,u,u,20,-90,-180),{x:l/2+u,y:h/2},..._r(l/2,h/2,u,20,0,90)],g=[{x:-l/2,y:-h/2-u},{x:l/2,y:-h/2-u},..._r(l/2,-h/2,u,20,-90,0),{x:l/2+u,y:-u},..._r(l/2+u*2,-u,u,20,-180,-270),..._r(l/2+u*2,u,u,20,-90,-180),{x:l/2+u,y:h/2},..._r(l/2,h/2,u,20,0,90),{x:l/2,y:h/2+u},{x:-l/2,y:h/2+u}],C=gt.svg(s),x=ft(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=Wt(f).replace("Z",""),w=C.path(b,x),T=Wt(g),_=C.path(T,{...x}),B=s.insert("g",":first-child");return B.insert(()=>_,":first-child").attr("stroke-opacity",0),B.insert(()=>w,":first-child"),B.attr("class","text"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-u}, 0)`),o.attr("transform",`translate(${-l/2+(n??0)-(a.x-(a.left??0))}, ${-a.height/2})`),mt(t,B),t.intersect=function(v){return ut.polygon(t,g,v)},s}p(Sm,"curlyBraceRight");function Ce(e,t,r,i=100,s=0,a=180){const o=[],n=s*Math.PI/180,h=(a*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);o.push({x:-f,y:-g})}return o}p(Ce,"generateCirclePoints");async function _m(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.look==="neo"?18:t.padding??0,c=t.look==="neo"?12:t.padding??0;if(t.width||t.height){let P=5;const tt=(((t==null?void 0:t.height)??0)-c*2)*10/11;tt/10>5&&(P=tt/10),t.width=((t==null?void 0:t.width)??0)-n*2-P*2.5,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-c*2-P*2,t.height<10&&(t.height=10)}const l=(t.width?t.width:a.width)+(n??0)*2,h=(t.height?t.height:a.height)+(c??0)*2,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Ce(l/2,-h/2,u,30,-90,0),{x:-l/2-u,y:u},...Ce(l/2+u*2,-u,u,20,-180,-270),...Ce(l/2+u*2,u,u,20,-90,-180),{x:-l/2-u,y:-h/2},...Ce(l/2,h/2,u,20,0,90)],g=[...Ce(-l/2+u+u/2,-h/2,u,20,-90,-180),{x:l/2-u/2,y:u},...Ce(-l/2-u/2,-u,u,20,0,90),...Ce(-l/2-u/2,u,u,20,-90,0),{x:l/2-u/2,y:-u},...Ce(-l/2+u+u/2,h/2,u,30,-180,-270)],C=[{x:l/2,y:-h/2-u},{x:-l/2,y:-h/2-u},...Ce(l/2,-h/2,u,20,-90,0),{x:-l/2-u,y:-u},...Ce(l/2+u*2,-u,u,20,-180,-270),...Ce(l/2+u*2,u,u,20,-90,-180),{x:-l/2-u,y:h/2},...Ce(l/2,h/2,u,20,0,90),{x:-l/2,y:h/2+u},{x:l/2-u-u/2,y:h/2+u},...Ce(-l/2+u+u/2,-h/2,u,20,-90,-180),{x:l/2-u/2,y:u},...Ce(-l/2-u/2,-u,u,20,0,90),...Ce(-l/2-u/2,u,u,20,-90,0),{x:l/2-u/2,y:-u},...Ce(-l/2+u+u/2,h/2,u,30,-180,-270)],x=gt.svg(s),y=ft(t,{fill:"transparent"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const w=Wt(f).replace("Z",""),T=x.path(w,y),B=Wt(g).replace("Z",""),v=x.path(B,y),F=Wt(C),q=x.path(F,{...y}),I=s.insert("g",":first-child");return I.insert(()=>q,":first-child").attr("stroke-opacity",0),I.insert(()=>T,":first-child"),I.insert(()=>v,":first-child"),I.attr("class","text"),d&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${u-u/4}, 0)`),o.attr("transform",`translate(${-l/2+(n??0)-(a.x-(a.left??0))}, ${-a.height/2})`),mt(t,I),t.intersect=function(P){return ut.polygon(t,C,P)},s}p(_m,"curlyBraces");async function Bm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s,n=20,c=5,{shapeSvg:l,bbox:h}=await Tt(e,t,kt(t)),u=Math.max(c,h.height+o*2,(t==null?void 0:t.height)??0),d=u/2,f=d-Math.sqrt(Math.max(0,d**2-(h.height/2)**2)),g=Math.max(u/4,f),C=Math.max(n,h.width+a*2+g*2,(h.width+a*2)*1.25,(t==null?void 0:t.width)??0),{cssStyles:x}=t,y=gt.svg(l),b=ft(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=C,T=u,_=w-d,B=T/4,v=[{x:_,y:0},{x:B,y:0},{x:0,y:T/2},{x:B,y:T},{x:_,y:T},...dr(-_,-T/2,d,50,270,90)],F=Wt(v),q=y.path(F,b),I=l.insert(()=>q,":first-child");return I.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",i),I.attr("transform",`translate(${-C/2}, ${-u/2})`),mt(t,I),t.intersect=function(P){return ut.polygon(t,v,P)},l}p(Bm,"curvedTrapezoid");async function vm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.padding??20,c=Math.max(a.width+n*2,t.width??0,100),l=Math.min(Math.max(c*.23,16),56),h=l*.27,u=Math.max(a.height+n*2,t.height?t.height-(2*l-h):0),d=Math.min(c*.177,u*.45),f=u+2*l-h,g=-f/2,C=g+2*l-h,x=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:y}=t;if(t.look==="handDrawn"){const F=gt.svg(s),q=ft(t,{}),I=F.path(Pe(-c/2,C,c,u,d),q),P=F.circle(0,g+l,l*2,q);x.insert(()=>P,":first-child"),x.insert(()=>I,":first-child"),y&&x.attr("style",y)}else x.append("rect").attr("x",-c/2).attr("y",C).attr("width",c).attr("height",u).attr("rx",d).attr("ry",d).attr("style",i),x.append("circle").attr("cx",0).attr("cy",g+l).attr("r",l).attr("style",i);mt(t,x);const b=C+u/2;o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${b-a.height/2-(a.y-(a.top??0))})`);const w=g+l,T=Math.asin(Math.min(1,(C-w)/l))*180/Math.PI,v=[...dr(0,-w,l,24,180+T,-T),...dr(-(-c/2+d),-(C+d),d,12,90,0),...dr
233(-(-c/2+d),-(f/2-d),d,12,360,270),...dr(-(c/2-d),-(f/2-d),d,12,270,180),...dr(-(c/2-d),-(C+d),d,12,180,90)];return t.intersect=function(F){return ut.polygon(t,v,F)},s}p(vm,"person");var n_=p((e,t,r,i,s,a)=>[`M${e},${t+a}`,`a${s},${a} 0,0,0 ${r},0`,`a${s},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),l_=p((e,t,r,i,s,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${s},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),h_=p((e,t,r,i,s,a)=>[`M${e-r/2},${-i/2}`,`a${s},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Od=8,Id=8;async function Lm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?24:s,o=t.look==="neo"?24:s,n=t.width??0;if(t.width&&(t.width=t.width-o,t.width<Id&&(t.width=Id)),t.height){const b=n/2/(2.5+n/50);t.height=t.height-a-b*3,t.height<Od&&(t.height=Od)}const{shapeSvg:c,bbox:l,label:h}=await Tt(e,t,kt(t)),u=Math.max(t.width??0,l.width)+o,d=u/2,f=d/(2.5+u/50),g=Math.max(t.height??0,l.height)+a+f;let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const y=gt.svg(c),b=l_(0,0,u,g,d,f),w=h_(0,f,u,g,d,f),T=ft(t,{}),_={},B=y.path(b,{...T,..._}),v=y.path(w,{...T,..._});c.insert(()=>v,":first-child").attr("class","neo-line"),C=c.insert(()=>B,":first-child"),C.attr("class","basic label-container"),x&&C.attr("style",x)}else{const y=n_(0,0,u,g,d,f);C=c.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",re(x)).attr("style",i)}return C.attr("label-offset-y",f),C.attr("transform",`translate(${-u/2}, ${-(g/2+f)})`),mt(t,C),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(s??0)/2-(l.y-(l.top??0))})`),t.intersect=function(y){const b=ut.rect(t,y),w=b.x-(t.x??0);if(d!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-f)){let T=f*f*(1-w*w/(d*d));T>0&&(T=Math.sqrt(T)),T=f-T,y.y-(t.y??0)>0&&(T=-T),b.y+=T}return b},c}p(Lm,"cylinder");async function bs(e,t,r){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;let a;t.width&&(a=Math.max(t.width-r.labelPaddingX*2,1),t.wrappingWidth=a,t.width=void 0,t.minWidth=void 0),t.height&&(t.height=t.height-r.labelPaddingY*2);const o=20,n=8,c=t.icon?o+n:0,{shapeSvg:l,bbox:h,label:u}=await Tt(e,t,kt(t)),d=(a??h.width)+r.labelPaddingX*2+c,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+r.labelPaddingY*2,g=-d/2,C=-f/2;let x,{rx:y,ry:b}=t;const{cssStyles:w}=t;if(r!=null&&r.rx&&r.ry&&(y=r.rx,b=r.ry),t.look==="handDrawn"){const T=gt.svg(l),_=ft(t,{}),B=y||b?T.path(Pe(g,C,d,f,y||0),_):T.rectangle(g,C,d,f,_);x=l.insert(()=>B,":first-child"),x.attr("class","basic label-container").attr("style",re(w))}else x=l.insert("rect",":first-child"),x.attr("class","basic label-container").attr("style",s).attr("rx",re(y)).attr("data-id",t.id).attr("ry",re(b)).attr("x",g).attr("y",C).attr("width",d).attr("height",f).attr("stroke","url(#gradient)");if(mt(t,x,t.look==="handDrawn"?void 0:{width:d,height:f}),t.icon){const T=u.attr("transform")??"translate(0,0)";u.attr("transform",T.replace(/translate\(([^,]+),([^)]+)\)/,(I,P,tt)=>`translate(${parseFloat(P)+c/2}, ${tt})`));const _=l.append("g").attr("class","mindmap-icon");_.html(`<g>${await Ue(t.icon,{height:o,fallbackPrefix:""})}</g>`);const B=_.node().getBBox(),F=-(h.width+n)/2-B.x-B.width/2,q=-B.y-B.height/2;_.attr("transform",`translate(${F}, ${q})`)}return t.calcIntersect=function(T,_){return ut.rect(T,_)},t.intersect=function(T){return ut.rect(t,T)},l}p(bs,"drawRect");async function Fm(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:s,padding:a,width:o,height:n}=t,c={rx:0,ry:0,labelPaddingX:i??(a??0)*2,labelPaddingY:s??a??0},l=await bs(e,t,c);if(t.look==="handDrawn"){const f=gt.svg(l),g=ft(t,{}),C=l.select(".basic.label-container > path:nth-child(2)"),x=C.node();if(!x)return l;let y=null;if(x instanceof SVGGraphicsElement)y=x.getBBox();else return l;return l.insert(()=>f.line(y.x,y.y,y.x+y.width,y.y,g),".basic.label-container g.label"),l.insert(()=>f.line(y.x,y.y+y.height,y.x+y.width,y.y+y.height,g),".basic.label-container g.label"),C.remove(),l}const h=l.select(".basic.label-container"),u=(Number(h.attr("width"))||o)??0,d=(Number(h.attr("height"))||n)??0;return u>0&&d>0&&h.attr("stroke-dasharray",`${u} ${d}`),l}p(Fm,"datastore");async function Am(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2,10));const{shapeSvg:o,bbox:n,label:c}=await Tt(e,t,kt(t)),l=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2,h=(t!=null&&t.height?t==null?void 0:t.height:n.height)+a*2,u=h*.2,d=l,f=h-u,g=-d/2,C=-f/2-u/2,{cssStyles:x}=t,y=gt.svg(o),b=ft(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:g,y:C+u},{x:-g,y:C+u},{x:-g,y:-C},{x:g,y:-C},{x:g,y:C},{x:-g,y:C},{x:-g,y:C+u}],T=y.polygon(w.map(B=>[B.x,B.y]),b),_=o.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),c.attr("transform",`translate(${-d/2+(s??0)-(n.x-(n.left??0))}, ${-n.height/2-u/2+u})`),mt(t,_),t.intersect=function(B){return ut.rect(t,B)},o}p(Am,"dividedRectangle");async function Em(e,t){var g,C;const{labelStyles:r,nodeStyles:i}=Ct(t),s=t.look==="neo"?12:5;t.labelStyle=r;const a=t.padding??0,o=t.look==="neo"?16:a,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.sqrt(c.width**2+c.height**2)/2,h=(t!=null&&t.width?(t==null?void 0:t.width)/2:l)+(o??0),u=h+s;let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const x=gt.svg(n),y=ft(t,{roughness:.2,strokeWidth:2.5}),b=ft(t,{roughness:.2,strokeWidth:1.5}
233),w=x.circle(0,0,u*2,y),T=x.circle(0,0,h*2,b);d=n.insert("g",":first-child"),d.attr("class",re(t.cssClasses)).attr("style",re(f)),(g=d.node())==null||g.appendChild(w),(C=d.node())==null||C.appendChild(T)}else{d=n.insert("g",":first-child");const x=d.insert("circle",":first-child"),y=d.insert("circle");d.attr("class","basic label-container").attr("style",i),x.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return mt(t,d),t.intersect=function(x){return J.info("DoubleCircle intersect",t,u,x),ut.circle(t,u,x)},n}p(Em,"doublecircle");async function Mm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,halfPadding:o}=await Tt(e,t,kt(t)),{theme:n,themeVariables:c}=Ot();Ge(s,t.colorIndex,n,c.borderColorArray);const l=o??10,h=a.width/2+l*2,u=a.height/2+l*2;let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(s),C=ft(t,{}),x=g.ellipse(0,0,h*2,u*2,C);d=s.insert(()=>x,":first-child"),d.attr("class","basic label-container"),f&&d.attr("style",f)}else d=s.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",i).attr("rx",h).attr("ry",u).attr("cx",0).attr("cy",0);return t.width=h*2,t.height=u*2,mt(t,d),t.calcIntersect=function(g,C){const x=g.width/2,y=g.height/2;return ut.ellipse(g,x,y,C)},t.intersect=function(g){return ut.ellipse(t,h,u,g)},s}p(Mm,"usecaseEllipse");function $m(e,t,{config:{themeVariables:r,theme:i}}){t.label="",(t.width||t.height)&&((t.width??0)<10&&(t.width=10),(t.height??0)<10&&(t.height=10)),t.width||(t.width=10),t.height||(t.width=10);const s=e.insert("g").attr("class",kt(t)).attr("id",t.domId??t.id),a=(t.width??0)/2,{cssStyles:o}=t,n=gt.svg(s),{nodeBorder:c}=r,l=ft(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(l.roughness=0);const h=n.circle(0,0,a*2,l),u=s.insert(()=>h,":first-child");return u.selectAll("path").attr("style",`fill: ${c} !important;`),t.look!=="handDrawn"&&u.attr("class","outer-path"),t.width<25&&(i!=null&&i.includes("redux"))&&t.look!=="handDrawn"&&u.attr("style","filter:url(#drop-shadow-small)"),o&&o.length>0&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",o),mt(t,u),t.intersect=function(d){return J.info("filledCircle intersect",t,{radius:a,point:d}),ut.circle(t,a,d)},s}p($m,"filledCircle");var Dd=10,Pd=10;async function Om(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?s*2:s,o=t.look==="neo"?s*1:s;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<Dd&&(t.height=Dd),t.width=((t==null?void 0:t.width)??0)-a-a/2,t.width<Pd&&(t.width=Pd));const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(a??0),u=t!=null&&t.height?t==null?void 0:t.height:h+c.height,d=u,f=[{x:0,y:-u},{x:d,y:-u},{x:d/2,y:0}],{cssStyles:g}=t,C=gt.svg(n),x=ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=Wt(f),b=C.path(y,x),w=n.insert(()=>b,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=h,t.height=u,mt(t,w),l.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-u/2+(o??0)/2+(c.y-(c.top??0))})`),t.intersect=function(T){return J.info("Triangle intersect",t,f,T),ut.polygon(t,f,T)},n}p(Om,"flippedTriangle");async function Im(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.padding??12,c=Math.max(a.width+n*2,t.width??0,90),l=a.height+n*2,h=Math.max(Math.min(l*.16,14),8),u=Math.max(l+h,t.height??0),d=u-h,f=Math.max(c*.38,28),g=-u/2,C=[{x:-c/2,y:g},{x:-c/2+f,y:g},{x:-c/2+f,y:g+h},{x:c/2,y:g+h},{x:c/2,y:u/2},{x:-c/2,y:u/2}],x=[`M${C[0].x},${C[0].y}`,...C.slice(1).map(T=>`L${T.x},${T.y}`),"Z"].join(" "),{cssStyles:y}=t;let b;if(t.look==="handDrawn"){const _=gt.svg(s).path(x,ft(t,{}));b=s.insert(()=>_,":first-child").attr("class","basic label-container"),y&&b.attr("style",y)}else b=s.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?mt(t,b):mt(t,b,{width:c,height:u});const w=g+h+d/2;return o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${w-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(T){return ut.polygon(t,C,T)},s}p(Im,"folder");function Dm(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:a}=Ct(t);t.label="";const o=e.insert("g").attr("class",kt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let c=t!=null&&t.width?t==null?void 0:t.width:70,l=t!=null&&t.height?t==null?void 0:t.height:10;(r==="LR"||r==="RL")&&(c=Math.max(10,(t==null?void 0:t.width)??0),l=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*c/2,u=-1*l/2,d=gt.svg(o),f=ft(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=d.rectangle(h,u,c,l,f),C=o.insert(()=>g,":first-child");t.look!=="handDrawn"&&C.attr("class","outer-path"),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),a&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",a),mt(t,C);const x=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(y){return ut.rect(t,y)},o}p(Dm,"forkJoin");async function Pm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=15,a=10,o=t.look==="neo"?16:t.padding??0,n=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-n*2,t.height<a&&(t.height=a),t.width=((t==null?void 0:t.width)??0)-o*2,t.width<s&&(t.width=s));const{shapeSvg:c,bbox:l}=await Tt(e,t,kt(t)),h=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,l.height))+n*2,u=h/2,d=u-Math.sqrt(Math.max(0,u**2-(l.height/2)**2)),f=(t!=null&&t.width?t==null?void 0:t.width:Math.max(s,l.width)+d*2)+o*2,{cssStyles:g}=t,C=gt.svg(c),x=ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:-f/2,y:-h/2}
233,{x:f/2-u,y:-h/2},...dr(-f/2+u,0,u,50,90,270),{x:f/2-u,y:h/2},{x:-f/2,y:h/2}],b=Wt(y),w=C.path(b,x),T=c.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),mt(t,T),t.intersect=function(_){return J.info("Pill intersect",t,{radius:u,point:_}),ut.polygon(t,y,_)},c}p(Pm,"halfRoundedRectangle");var c_=p((e,t,r,i,s)=>[`M${e+s},${t}`,`L${e+r-s},${t}`,`L${e+r},${t-i/2}`,`L${e+r-s},${t-i}`,`L${e+s},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function Rm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t),s=t.look==="neo"?3.5:4;t.labelStyle=r;const a=t.padding??0,o=70,n=32,c=20,l=8,h=t.icon?c+l:0,u=t.look==="neo"?o:a,d=t.look==="neo"?n:a;if(t.width||t.height){const v=(t.height??0)/s;t.width=((t==null?void 0:t.width)??0)-2*v-d,t.height=(t.height??0)-u}const{shapeSvg:f,bbox:g,label:C}=await Tt(e,t,kt(t)),x=(t!=null&&t.height?t==null?void 0:t.height:g.height)+u,y=x/s,b=(t!=null&&t.width?t==null?void 0:t.width:g.width)+2*y+d+h,w=[{x:y,y:0},{x:b-y,y:0},{x:b,y:-x/2},{x:b-y,y:-x},{x:y,y:-x},{x:0,y:-x/2}];let T;const{cssStyles:_}=t;if(t.look==="handDrawn"){const B=gt.svg(f),v=ft(t,{}),F=c_(0,0,b,x,y),q=B.path(F,v);T=f.insert(()=>q,":first-child").attr("transform",`translate(${-b/2}, ${x/2})`),_&&T.attr("style",_)}else T=yr(f,b,x,w);if(i&&T.attr("style",i),t.width=b,t.height=x,mt(t,T),t.icon){const B=C.attr("transform")??"translate(0,0)";C.attr("transform",B.replace(/translate\(([^,]+),([^)]+)\)/,(tt,Y,E)=>`translate(${parseFloat(Y)+h/2}, ${E})`));const v=f.append("g").attr("class","mindmap-icon");v.html(`<g>${await Ue(t.icon,{height:c,fallbackPrefix:""})}</g>`);const F=v.node().getBBox(),I=-(g.width+l)/2-F.x-F.width/2,P=-F.y-F.height/2;v.attr("transform",`translate(${I}, ${P})`)}return t.intersect=function(B){return ut.polygon(t,w,B)},f}p(Rm,"hexagon");async function qm(e,t){t.label="";const{shapeSvg:r}=await Tt(e,t,kt(t)),i=t!=null&&t.width?t==null?void 0:t.width:30,s=t!=null&&t.height?t==null?void 0:t.height:30,{cssStyles:a}=t,o=gt.svg(r),n=ft(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");const c=[{x:0,y:0},{x:i,y:0},{x:0,y:s},{x:i,y:s}],l=Wt(c),h=o.path(l,n),u=r.insert(()=>h,":first-child");return u.attr("class","basic label-container outer-path"),a&&t.look!=="handDrawn"&&u.selectChildren("path").attr("style",a),u.attr("transform",`translate(${-i/2}, ${-s/2})`),mt(t,u),t.intersect=function(d){return J.info("Pill intersect",t,{points:c}),ut.polygon(t,c,d)},r}p(qm,"hourglass");async function Nm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const a=t.assetHeight??48,o=t.assetWidth??48,n=Math.max(a,o),c=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,c??0);const{shapeSvg:l,bbox:h,label:u}=await Tt(e,t,"icon-shape default"),d=t.pos==="t",f=n,g=n,{nodeBorder:C}=r,{stylesMap:x}=ti(t),y=-g/2,b=-f/2,w=t.label?8:0,T=gt.svg(l),_=ft(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const B=T.rectangle(y,b,g,f,_),v=Math.max(g,h.width),F=f+h.height+w,q=T.rectangle(-v/2,-F/2,v,F,{..._,fill:"transparent",stroke:"none"}),I=l.insert(()=>B,":first-child"),P=l.insert(()=>q),tt=l.append("g");if(t.icon){tt.html(`<g>${await Ue(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const Y=tt.node().getBBox(),E=Y.width,M=Y.height,A=Y.x,j=Y.y;tt.attr("transform",`translate(${-E/2-A},${d?h.height/2+w/2-M/2-j:-h.height/2-w/2-M/2-j})`),tt.attr("style",`color : ${x.get("stroke")??C};`),tt.selectAll("path").nodes().forEach(U=>{U.getAttribute("fill")==="currentColor"&&U.setAttribute("class","icon")})}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-F/2:F/2-h.height})`),I.attr("transform",`translate(0,${d?h.height/2+w/2:-h.height/2-w/2})`),x.get("stroke")&&tt.selectAll("path").attr("style",`fill: ${x.get("stroke")}`),x.get("fill")&&I.selectAll("path").attr("style",`stroke: ${x.get("fill")}`),mt(t,P),t.intersect=function(Y){if(J.info("iconSquare intersect",t,Y),!t.label)return ut.rect(t,Y);const E=t.x??0,M=t.y??0,A=t.height??0;let j=[];return d?j=[{x:E-h.width/2,y:M-A/2},{x:E+h.width/2,y:M-A/2},{x:E+h.width/2,y:M-A/2+h.height+w},{x:E+g/2,y:M-A/2+h.height+w},{x:E+g/2,y:M+A/2},{x:E-g/2,y:M+A/2},{x:E-g/2,y:M-A/2+h.height+w},{x:E-h.width/2,y:M-A/2+h.height+w}]:j=[{x:E-g/2,y:M-A/2},{x:E+g/2,y:M-A/2},{x:E+g/2,y:M-A/2+f},{x:E+h.width/2,y:M-A/2+f},{x:E+h.width/2/2,y:M+A/2},{x:E-h.width/2,y:M+A/2},{x:E-h.width/2,y:M-A/2+f},{x:E-g/2,y:M-A/2+f}],ut.polygon(t,j,Y)},l}p(Nm,"icon");
233async function Wm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const a=i==null?void 0:i.wrappingWidth,o=t.height?t.height*.05:15,n=t.label?8:0,c=t.assetHeight??48,l=t.assetWidth??48;let h=Math.max(c,l)/Math.SQRT2-o,u=Math.max(c,l),d=Math.max(c,l),f=!1;t.width||t.height?(f=!0,t.width=(((t==null?void 0:t.width)??10)-n*2)/Math.SQRT2-o,t.height=(((t==null?void 0:t.height)??10)-n*2)/Math.SQRT2-o,d=t.width,u=t.height):t.width=Math.max(d,a??0);const{shapeSvg:g,bbox:C,label:x}=await Tt(e,t,"icon-shape default"),y=t.pos==="t";f&&(t.width=(t.width+o)*Math.SQRT2+n*2,t.height=((t.height??10)+o)*Math.SQRT2+n*2,d=t.width,u=t.height,h=(Math.max(t.width,t.height)-o)/Math.SQRT2);const{nodeBorder:b,mainBkg:w}=r,{stylesMap:T}=ti(t),_=gt.svg(g),B=ft(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const v=T.get("fill");B.stroke=v??w;const F=g.append("g");t.icon&&F.html(`<g>${await Ue(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const q=F.node().getBBox(),I=q.width,P=q.x,tt=Math.max(u,d),Y=_.circle(0,0,tt,B),E=g.insert(()=>Y,":first-child");return F.attr("transform",`translate(${-I/2-P},${-h/2})`),F.attr("style",`color : ${T.get("stroke")??b};`),F.selectAll("path").nodes().forEach(M=>{M.getAttribute("fill")==="currentColor"&&M.setAttribute("class","icon")}),x.attr("transform",`translate(${-C.width/2-(C.x-(C.left??0))},${y?-tt/2-C.height-n:tt/2+n})`),T.get("stroke")&&F.selectAll("path").attr("style",`fill: ${T.get("stroke")}`),T.get("fill")&&E.selectAll("path").attr("style",`stroke: ${T.get("fill")}`),E.attr("class","icon-neo"),mt(t,E),t.intersect=function(M){return J.info("iconSquare intersect",t,M),ut.circle(t,tt/2,M)},g}p(Wm,"iconCircle");async function zm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const a=i==null?void 0:i.wrappingWidth,o=t.label?8:0,n=t.height?t.height*.05:15,c=t.assetHeight??48,l=t.assetWidth??48;let h=Math.max(c,l),u=h+n*2,d=h+n*2,f=!1;t.width||t.height?(f=!0,t.width=((t==null?void 0:t.width)??10)-o*2,t.height=((t==null?void 0:t.height)??10)-o*2,d=t.width,u=t.height):t.width=Math.max(d,a??0);
233const{shapeSvg:g,bbox:C,label:x}=await Tt(e,t,"icon-shape default"),y=t.pos==="t";f&&(t.width=t.width+o*2,t.height=(t.height??10)+o*2,d=t.width,u=t.height,h=Math.max(t.width-n*2,t.height-n*2));const{nodeBorder:b,mainBkg:w}=r,{stylesMap:T}=ti(t),_=-d/2,B=-u/2,v=gt.svg(g),F=ft(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const q=T.get("fill");F.stroke=q??w;const I=v.path(Pe(_,B,d,u,5),F),P=g.insert(()=>I,":first-child"),tt=g.append("g");if(t.icon){tt.html(`<g>${await Ue(t.icon,{height:h,fallbackPrefix:""})}</g>`);const Y=tt.node().getBBox(),E=Y.width,M=Y.x;tt.attr("transform",`translate(${-E/2-M},${-h/2})`),tt.attr("style",`color : ${T.get("stroke")??b};`),tt.selectAll("path").nodes().forEach(A=>{A.getAttribute("fill")==="currentColor"&&A.setAttribute("class","icon")})}return x.attr("transform",`translate(${-C.width/2-(C.x-(C.left??0))},${y?-u/2-C.height-o:u/2+o})`),T.get("stroke")&&tt.selectAll("path").attr("style",`fill: ${T.get("stroke")}`),T.get("fill")&&P.selectAll("path").attr("style",`stroke: ${T.get("fill")}`),P.attr("class","icon-neo"),mt(t,P),t.intersect=function(Y){return J.info("iconSquare intersect",t,Y),ut.rect(t,Y)},g}p(zm,"iconRounded");async function Hm(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const a=i==null?void 0:i.wrappingWidth,o=t.label?8:0,n=t.height?t.height*.05:15,c=t.assetHeight??48,l=t.assetWidth??48;let h=Math.max(c,l),u=h+n*2,d=h+n*2,f=!1;t.width||t.height?(f=!0,t.width=((t==null?void 0:t.width)??10)-o*2,t.height=((t==null?void 0:t.height)??10)-o*2,d=t.width,u=t.height):t.width=Math.max(d,a??0);
233const{shapeSvg:g,bbox:C,label:x}=await Tt(e,t,"icon-shape default"),y=t.pos==="t";f&&(t.width=t.width+o*2,t.height=(t.height??10)+o*2,d=t.width,u=t.height,h=Math.max(t.width-n*2,t.height-n*2));const{nodeBorder:b,mainBkg:w}=r,{stylesMap:T}=ti(t),_=-d/2,B=-u/2,v=gt.svg(g),F=ft(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const q=T.get("fill");F.stroke=q??w;const I=v.path(Pe(_,B,d,u,.1),F),P=g.append("g");if(t.icon){P.html(`<g>${await Ue(t.icon,{height:h,fallbackPrefix:""})}</g>`);const Y=P.node().getBBox(),E=Y.width,M=Y.x;P.attr("transform",`translate(${-E/2-M},${-h/2})`),P.attr("style",`color : ${T.get("stroke")??b};`),P.selectAll("path").nodes().forEach(A=>{A.getAttribute("fill")==="currentColor"&&A.setAttribute("class","icon")})}x.attr("transform",`translate(${-C.width/2-(C.x-(C.left??0))},${y?-u/2-C.height-o:u/2+o})`);const tt=g.insert(()=>I,":first-child");return T.get("stroke")&&P.selectAll("path").attr("style",`fill: ${T.get("stroke")}`),T.get("fill")&&tt.selectAll("path").attr("style",`stroke: ${T.get("fill")}`),tt.attr("class","icon-neo"),mt(t,tt),t.intersect=function(Y){return J.info("iconSquare intersect",t,Y),ut.rect(t,Y)},g}p(Hm,"iconSquare");async function jm(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const s=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/a;const{labelStyles:o}=Ct(t);t.labelStyle=o;const n=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const c=Math.max(t.label?n??0:0,(t==null?void 0:t.assetWidth)??s);let l=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:c,h=t.constraint==="on"?l/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;const u=t.label?8:0,d=!!(t.width||t.height);d?(l=(t.width??10)-u*2,h=(t.height??10)-u*2,t.width=l,t.height=h):t.width=Math.max(l,n??0);const{shapeSvg:f,bbox:g,label:C}=await Tt(e,t,"image-shape default");d&&(l+=u*2,h+=u*2);const x=t.pos==="t",y=-l/2,b=-h/2,w=gt.svg(f),T=ft(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=w.rectangle(y,b,l,h,T),B=Math.max(l,g.width),v=h+g.height+u,F=f.insert(()=>_,":first-child");if(t.img){const q=f.append("image");q.attr("href",t.img),q.attr("width",l),q.attr("height",h),q.attr("preserveAspectRatio","none"),q.attr("transform",`translate(${-l/2},${x?v/2-h:-v/2})`)}return C.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-h/2-g.height/2-u/2:h/2-g.height/2+u/2})`),F.attr("transform",`translate(0,${x?g.height/2+u/2:-g.height/2-u/2})`),mt(t,F,{width:B,height:v}),t.intersect=function(q){if(J.info("iconSquare intersect",t,q),!t.label)return ut.rect(t,q);const I=t.x??0,P=t.y??0,tt=t.height??0;let Y=[];return x?Y=[{x:I-g.width/2,y:P-tt/2},{x:I+g.width/2,y:P-tt/2},{x:I+g.width/2,y:P-tt/2+g.height+u},{x:I+l/2,y:P-tt/2+g.height+u},{x:I+l/2,y:P+tt/2},{x:I-l/2,y:P+tt/2},{x:I-l/2,y:P-tt/2+g.height+u},{x:I-g.width/2,y:P-tt/2+g.height+u}]:Y=[{x:I-l/2,y:P-tt/2},{x:I+l/2,y:P-tt/2},{x:I+l/2,y:P-tt/2+h},{x:I+g.width/2,y:P-tt/2+h},{x:I+g.width/2/2,y:P+tt/2},{x:I-g.width/2,y:P+tt/2},{x:I-g.width/2,y:P-tt/2+h},{x:I-l/2,y:P-tt/2+h}],ut.polygon(t,Y,q)},f}p(jm,"imageSquare");async function Ym(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?24:s,o=t.look==="neo"?9:0,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.max(c.height+a*2,t.height??0),h=Math.max(c.width+o*2,(t.width??0)-l),u=[{x:0,y:0},{x:h,y:0},{x:h+3*l/6,y:-l},{x:-3*l/6,y:-l}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(n),C=ft(t,{}),x=Wt(u),y=g.path(x,C);d=n.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),f&&d.attr("style",f)}else d=yr(n,h,l,u);return i&&d.attr("style",i),t.width=h,t.height=l,mt(t,d),t.intersect=function(g){return ut.polygon(t,u,g)},n}p(Ym,"inv_trapezoid");async function Um(e,t){const{shapeSvg:r,bbox:i,label:s}=await Tt(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),mt(t,a),t.intersect=function(c){return ut.rect(t,c)},r}p(Um,"labelRect");async function Gm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?24:s,o=t.look==="neo"?9:0,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.max(c.height+a,t.height??0),h=Math.max(c.width+o,(t.width??0)-l),u=[{x:0,y:0},{x:h+3*l/6,y:0},{x:h,y:-l},{x:-(3*l)/6,y:-l}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(n),C=ft(t,{}),x=Wt(u),y=g.path(x,C);d=n.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),f&&d.attr("style",f)}else d=yr(n,h,l,u);return i&&d.attr("style",i),t.width=h,t.height=l,mt(t,d),t.intersect=function(g){return ut.polygon(t,u,g)},n}p(Gm,"lean_left");async function Xm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?24:s,o=t.look==="neo"?9:0,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.max(c.height+a,t.height??0),h=Math.max(c.width+o,(t.width??0)-l),u=[{x:-3*l/6,y:0},{x:h,y:0},{x:h+3*l/6,y:-l},{x:0,y:-l}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(n),C=ft(t,{}),x=Wt(u),y=g.path(x,C);d=n.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),f&&d.attr("style",f)}else d=yr(n,h,l,u);return i&&d.attr("style",i),t.width=h,t.height=l,mt(t,d),t.intersect=function(g){return ut.polygon(t,u,g)},n}p(Xm,"lean_right");function Vm(e,t){t.label="";const r=e.insert("g").attr("class",kt(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,s=Math.max(5,(t.width??0)*.1),a=Math.max(5,(t.height??0)*.1),o=t!=null&&t.width?t==null?void 0:t.width:50,n=t!=null&&t.height?t==null?void 0:t.height:50,c=[{x:o,y:0},{x:0,y:n/2+a/2},{x:o-4*s,y:n/2+a/2},{x:0,y:n},{x:o,y:n/2-a/2},{x:4*s,y:n/2-a/2}],l=gt.svg(r),h=ft(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const u=Wt(c),d=l.path(u,h),f=r.insert(()=>d,":first-child");return f.attr("class","outer-path"),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),f.attr("transform",`translate(-${o/2},${-n/2})`),mt(t,f),t.intersect=function(g){return J.info("lightningBolt intersect",t,g),ut.polygon(t,c,g)},r}p(Vm,"lightningBolt");var u_=p((e,t,r,i,s,a,o)=>[`M${e},${t+a}`,`a${s},${a} 0,0,0 ${r},0`,`a${s},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${s},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),d_=p((e,t,r,i,s,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${s},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${s},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),f_=p((e,t,r,i,s,a)=>[`M${e-r/2},${-i/2}`,`a${s},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Rd=10,qd=10;async function Km(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?24:s;if(t.width||t.height){const y=t.width??0;t.width=(t.width??0)-a,t.width<qd&&(t.width=qd);const w=y/2/(2.5+y/50);t.height=(t.height??0)-o-w*3,t.height<Rd&&(t.height=Rd)}const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2,u=h/2,d=u/(2.5+h/50),f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+d+o*2,g=f*.1;let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const y=gt.svg(n),b=d_(0,0,h,f,u,d,g),w=f_(0,d,h,f,u,d),T=ft(t,{}),_=y.path(b,T),B=y.path(w,T);n.insert(()=>B,":first-child").attr("class","line"),C=n.insert(()=>_,":first-child"),C.attr("class","basic label-container"),x&&C.attr("style",x)}else{const y=u_(0,0,h,f,u,d,g);C=n.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",re(x)).attr("style",i)}return C.attr("label-offset-y",d),C.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),mt(t,C),l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(o??0)/2-(c.y-(c.top??0))})`),t.intersect=function(y){const b=ut.rect(t,y),w=b.x-(t.x??0);if(u!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-d)){let T=d*d*(1-w*w/(u*u));T>0&&(T=Math.sqrt(T)),T=d-T,y.y-(t.y??0)>0&&(T=-T),b.y+=T}return b},n}p(Km,"linedCylinder");async function Zm(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s;if(t.width||t.height){const T=t.width;t.width=(T??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.he
233ight<10&&(t.height=10)}const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(a??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:c.height)+(o??0)*2,d=t.look==="neo"?u/4:u/8,f=u+d,{cssStyles:g}=t,C=gt.svg(n),x=ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:-h/2-h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:f/2},...Jr(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2},{x:-h/2,y:-f/2},{x:-h/2,y:f/2*1.1},{x:-h/2,y:-f/2}],b=C.polygon(y.map(T=>[T.x,T.y]),x),w=n.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(0,${-d/2})`),l.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(c.x-(c.left??0))},${-u/2+(t.padding??0)-d-(c.y-(c.top??0))})`),mt(t,w),t.intersect=function(T){return ut.polygon(t,y,T)},n}p(Zm,"linedWaveEdgedRect");var g_=56,gl=72,Nd=8,Wd=2,p_=8,m_={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},zd=Math.PI/3,Hd=.6,pl=p((e,t)=>{const r=t*Hd,i=t*Math.sqrt(1-Hd**2),s=Math.cos(zd),a=-Math.sin(zd),o=r*-a,n=e+r*s,c=i*s,l=i*a;return`M ${o-c} ${n-l} L ${o+c} ${n+l}`},"businessMarkerPathForCircle"),y_={normal:pl(-24,12),hollow:pl(-23,9),awesome:pl(-21,13),icon:"M 12 -8 L 26 -26"},jd=p((e,t,r)=>{const i=(t.x??0)-(t.left??0),s=(t.y??0)-(t.top??0);e.attr("transform",`translate(${-t.width/2-i},${r-t.height/2-s})`)},"positionLabel"),_c=p((e,t,r,i,s=!1)=>{if(t.look==="handDrawn"){const n=gt.svg(e).path(r,ft(t,s?{fill:"none"}:{}));return e.insert(()=>n,":first-child").attr("class",i)}const a=e.append("path").attr("class",i).attr("d",r);return s&&a.attr("fill","none"),a},"appendActorPath"),C_=p((e,t,r,i,s,a,o=!1)=>{if(t.look==="handDrawn"){const l=gt.svg(e).circle(r,i,s*2,ft(t,o?{fill:"none"}:{}));return e.insert(()=>l,":first-child").attr("class",a)}const n=e.append("circle").attr("class",a).attr("cx",r).attr("cy",i).attr("r",s);return o&&n.attr("fill","none"),n},"appendActorCircle"),x_=p((e,t,r)=>{t.business&&e.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",y_[r]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function ka(e,t,r,i){const{labelStyles:s,nodeStyles:a}=Ct(t);t.labelStyle=s;const o=r==="icon"||t.stereotype!==void 0?{...t,icon:r==="icon"?void 0:t.icon,stereotype:void 0}:t,{shapeSvg:n,bbox:c,label:l}=await Tt(e,o,kt(t,`usecase-actor-variant usecase-actor-${r}`)),h=t.accessibleName??t.label;h&&n.attr("role","img").attr("aria-label",h),l.attr("class","label actor-label usecase-actor-label");const{theme:u,themeVariables:d}=Ot();Ge(n,t.colorIndex,u,d.borderColorArray);let f,g;if(t.stereotype){const F=await fi(n,`«${t.stereotype}»`,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});f=F.label.attr("class","label usecase-stereotype"),g=F.bbox}const C=n.append("g").attr("class",`usecase-actor-glyph ${m_[r]}`).attr("style",a||null);await i(C,t),x_(C,t,r);const x=t.padding??p_,y=(g==null?void 0:g.height)??0,b=gl+Nd+c.height+(g?y+Wd:0),w=Math.max(g_,c.width,(g==null?void 0:g.width)??0)+x*2,T=b+x*2,_=-b/2;C.attr("transform",`translate(0,${_+gl/2})`);let B=_+gl+Nd;f&&g&&(B+=y/2,jd(f,g,B),B+=y/2+Wd),jd(l,c,B+c.height/2);const v=n.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-w/2).attr("y",-T/2).attr("width",w).attr("height",T).attr("opacity",0).attr("aria-hidden","true");return mt(t,v),t.intersect=F=>ut.rect(t,F),n}p(ka,"renderUsecaseActor");var b_=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function Qm(e,t){return ka(e,t,"normal",(r,i)=>{_c(r,i,b_,"usecase-actor-stick")})}p(Qm,"usecaseActor");var k_=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function Jm(e,t){return ka(e,t,"awesome",(r,i)=>{_c(r,i,k_,"usecase-actor-awesome-silhouette")})}p(Jm,"usecaseActorAwesome");var w_=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function ty(e,t){return ka(e,t,"hollow",(r,i)=>{C_(r,i,0,-23,9,"usecase-actor-hollow-head",!0),_c(r,i,w_,"usecase-actor-hollow-body",!0)})}p(ty,"usecaseActorHollow");var Oi=52,Yd=42,Ud=-2,T_=p(async(e,t)=>{var l;const r=-Oi/2,i=Ud-Oi/2;if(t.look==="handDrawn"){const u=gt.svg(e).rectangle(r,i,Oi,Oi,ft(t,{}));e.insert(()=>u,":first-child").attr("class","usecase-actor-icon-frame")}
233else e.append("rect").attr("class","usecase-actor-icon-frame").attr("x",r).attr("y",i).attr("width",Oi).attr("height",Oi).attr("rx",4).attr("ry",4);const s=t.icon??"",a=await fg(s.includes(":")?s:`fa:${s}`),o=await Ue(s,{height:Yd,width:Yd,fallbackPrefix:"fa"}),n=e.append("g").attr("class",`usecase-actor-icon-symbol${a?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${o}</g>`),c=(l=n.node())==null?void 0:l.getBBox();c&&n.attr("transform",`translate(${-c.width/2-c.x},${Ud-c.height/2-c.y})`)},"drawIconActor");async function ey(e,t){return ka(e,t,"icon",T_)}p(ey,"usecaseActorIcon");var Gd=p((e,t,r)=>{const i=(t.x??0)-(t.left??0),s=(t.y??0)-(t.top??0);e.attr("transform",`translate(${-t.width/2-i},${r-t.height/2-s})`)},"positionLabel");async function ry(e,t){const r=t,{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const a=r.stereotype?{...t,stereotype:void 0}:t,{shapeSvg:o,bbox:n,halfPadding:c,label:l}=await Tt(e,a,kt(t,"usecase-business-shape"));l.attr("class","label usecase-label");const{theme:h,themeVariables:u}=Ot();Ge(o,t.colorIndex,h,u.borderColorArray);let d,f;if(r.stereotype){const Y=await fi(o,`«${r.stereotype}»`,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});d=Y.label.attr("class","label usecase-stereotype"),f=Y.bbox}const g=f?2:0,C=n.height+((f==null?void 0:f.height)??0)+g,x=Math.max(n.width,(f==null?void 0:f.width)??0),y=c??10,b=x/2+y*2,w=C/2+y*2,T=Math.min(Math.max(y/5,1),y/2),_=x/2+T,B=b-T,v=_/b,F=B/b,q=w*Math.sqrt(Math.max(0,1-v*v)),I=-w*Math.sqrt(Math.max(0,1-F*F));d&&f&&Gd(d,f,-C/2+f.height/2),Gd(l,n,C/2-n.height/2);let P;if(t.look==="handDrawn"){const E=gt.svg(o).ellipse(0,0,b*2,w*2,ft(t,{}));P=o.insert(()=>E,":first-child").attr("class","basic label-container usecase-business-ellipse")}else P=o.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",s).attr("rx",b).attr("ry",w).attr("cx",0).attr("cy",0);o.append("path").attr("class","usecase-business-marker").attr("d",`M ${_} ${q} L ${B} ${I}`).attr("fill","none").attr("style",s||null);const tt=r.accessibleName??r.label;return tt&&o.attr("role","img").attr("aria-label",tt),mt(t,P),t.calcIntersect=(Y,E)=>ut.ellipse(Y,Y.width/2,Y.height/2,E),t.intersect=Y=>ut.ellipse(t,b,w,Y),o}p(ry,"usecaseBusiness");var ml=8,Xd=4,S_=1,yl=p((e,t,r,i)=>{const s=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);e.attr("transform",`translate(${r-t.width/2-s},${i-t.height/2-a})`)},"positionLabel"),__=p(e=>{const t=Number.parseFloat(e??"");return Number.isFinite(t)&&t>=0?t:S_},"numericStrokeWidth");async function iy(e,t){var Y;const r=t,{labelStyles:i,nodeStyles:s}=Ct(t),{stylesMap:a}=ti(t);t.labelStyle=i;const{shapeSvg:o,bbox:n,label:c}=await Tt(e,t,kt(t,"usecase-json-table"));o.attr("role","img"),r.accessibleName&&o.attr("aria-label",r.accessibleName),c.attr("class","label usecase-json-title");const l=o.append("g").attr("class","usecase-json-table-grid"),h=[];for(const E of r.jsonRows??[]){const M=await fi(l,E.key,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),A=await fi(l,E.value,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});h.push({key:{label:M.label.attr("class","label usecase-json-key"),bbox:M.bbox},value:{label:A.label.attr("class","label usecase-json-value"),bbox:A.bbox}})}const u=Math.max(0,...h.map(({key:E})=>E.bbox.width))+ml*2,d=Math.max(0,...h.map(({value:E})=>E.bbox.width))+ml*2,f=n.width+ml*2,g=Math.max(f,u+d),C=d+Math.max(0,g-u-d),x=n.height+Xd*2,y=h.map(({key:E,value:M})=>Math.max(E.bbox.height,M.bbox.height)+Xd*2),b=x+y.reduce((E,M)=>E+M,0),w=__(a.get("stroke-width")),T=g+w*2,_=b+w*2,B=-g/2,v=-b/2,F=t.look==="handDrawn"?gt.svg(o):void 0,q=F?ft(t,{}):void 0,I=p((E,M,A,j,U,X)=>{if(F&&q){const et=F.rectangle(A,j,U,X,q);return E.insert(()=>et,":first-child").attr("class",M)}return E.insert("rect",":first-child").attr("class",M).attr("x",A).attr("y",j).attr("width",U).attr("height",X).attr("style",s)},"insertCell"),P=I(o,"label-container usecase-json-border",-T/2,-_/2,T,_);I(l,"usecase-json-cell usecase-json-title-cell",B,v,g,x),(Y=l.node())==null||Y.append(c.node()),yl(c,n,0,v+x/2);let tt=v+x;return h.forEach(({key:E,value:M},A)=>{var X;const j=y[A],U=l.append("g").attr("class","usecase-json-row").attr("data-row-index",A).attr("transform",`translate(0,${tt})`);I(U,"usecase-json-cell usecase-json-key-cell",B,0,u,j),I(U,"usecase-json-cell usecase-json-value-cell",B+u,0,C,j),(X=U.node())==null||X.append(E.label.node(),M.label.node()),yl(E.label,E.bbox,B+u/2,j/2),yl(M.label,M.bbox,B+u+C/2,j/2),tt+=j}),mt(t,P),t.intersect=E=>ut.rect(t,E),o}p(iy,"usecaseJsonTable");async function sy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s,n=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-2*n,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-2*n,10));const{shapeSvg:c,bbox:l,label:h}=await Tt(e,t,kt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2+2*n,d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2+2*n,f=u-2*n,g=d-2*n,C=-f/2,x=-g/2,{cssStyles:y}=t,b=gt.svg(c),w=ft(t,{}),T=[{x:C-n,y:x+n},{x:C-n,y:x+g+n},{x:C+f-n,y:x+g+n},{x:C+f-n,y:x+g},{x:C+f,y:x+g},{x:C+f,y:x+g-n},{x:C+f+n,y:x+g-n},{x:C+f+n,y:x-n},{x:C+n,y:x-n},{x:C+n,y:x},{x:C,y:x},{x:C,y:x+n}],_=[{x:C,y:x+n},{x:C+f-n,y:x+n},{x:C+f-n,y:x+g},{x:C+f,y:x+g},{x:C+f,y:x},{x:C,y:x}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const B=Wt(T);let v=b.path(B,w);const F=Wt(_);let q=b.path(F,w);t.look!=="handDrawn"&&(v=sa(v),q=sa(q));const I=c.insert("g",":first-child");return I.insert(()=>v),I.insert(()=>q),I.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(l.width/2)-n-(l.x-(l.left??0))}, ${-(l.height/2)+n-(l.y-(l.top??0))})`),mt(t,I),t.intersect=function(P){return ut.polygon(t,T,P)},c}p(sy,"multiRect");async function ay(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,label:o}=await Tt(e,t,kt(t)),n=t.padding??0,c=t.look==="neo"?16:n,l=t.look==="neo"?12:n;let h=!0;(t.width||t.height)&&(h=!1,t.width=((t==null?void 0:t.width)??0)-c*2,t.height=((t==null?void 0:t.height)??0)-l*3);const u=Math.max(a.width,(t==null?void 0:t.width)??0)+c*2,d=Math.max(a.height,(t==null?void 0:t.height)??0)+l*3,f=t.look==="neo"?d/4:d/8,g=d+(h?f/2:-f/2),C=-u/2,x=-g/2,y=10,{cssStyles:b}=t,w=Jr(C-y,x+g+y,C+u-y,x+g+y,f,.8),T=w==null?void 0:w[w.length-1],_=[{x:C-y,y:x+y},{x:C-y,y:x+g+y},...w,{x:C+u-y,y:T.y-y},{x:C+u,y:T.y-y},{x:C+u,y:T.y-2*y},{x:C+u+y,y:T.y-2*y},{x:C+u+y,y:x-y},{x:C+y,y:x-y},{x:C+y,y:x},{x:C,y:x},{x:C,y:x+y}],B=[{x:C,y:x+y},{x:C+u-y,y:x+y},{x:C+u-y,y:T.y-y},{x:C+u,y:T.y-y},{x:C+u,y:x},{x:C,y:x}],v=gt.svg(s),F=ft(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const q=Wt(_);let I=v.path(q,F);const P=Wt(B);let tt=v.path(P,F);t.look!=="handDrawn"&&(I=sa(I),tt=sa(tt));const Y=s.insert("g",":first-child");return Y.insert(()=>I),Y.insert(()=>tt),Y.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&Y.selectAll("path").attr("style",i),Y.attr("transform",`translate(0,${-f/2})`),o.attr("transform",`translate(${-(a.width/2)-y-(a.x-(a.left??0))}, ${-(a.height/2)+y-f-(a.y-(a.top??0))})`),mt(t,Y),t.intersect=function(E){return ut.polygon(t,_,E)},s}p(ay,"multiWaveEdgedRectangle");async function oy(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i,t.useHtmlLabels||me(Qt())||(t.centerLabel=!0);const{shapeSvg:o,bbox:n,label:c}=await Tt(e,t,kt(t)),l=Math.max(n.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(n.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-l/2,d=-h/2,{cssStyles:f}=t,g=gt.svg(o),C=ft(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=g.rectangle(u,d,l,h,C),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container outer-path"),c.attr("class","label noteLabel"),f&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),c.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),mt(t,y),t.intersect=function(b){return ut.rect(t,b)},o}p(oy,"note");var B_=p((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function ny(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=(t.padding??0)*4;(t.width||t.height)&&((t.width??10)<10&&(t.width=10),t.width=((t==null?void 0:t.width)??0)-s,(t.height??10)<10&&(t.height=10),t.height=((t==null?void 0:t.height)??0)-s);const{shapeSvg:a,bbox:o}=await Tt(e,t,kt(t)),n=((t!=null&&t.width?t==null?void 0:t.width:o.width)+s)/2,l=n+n,h=.5,u=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(a),C=ft(t,{}),x=B_(0,0,l),y=g.path(x,C);d=a.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+h}, ${l/2})`),f&&d.attr("style",f)}else d=yr(a,l,l,u),d.attr("transform",`translate(${-l/2+h}, ${l/2})`);return i&&d.attr("style",i),mt(t,d),t.calcIntersect=function(g,C){const x=g.width,y=[{x:x/2,y:0},{x,y:-x/2},{x:x/2,y:-x},{x:0,y:-x/2}];return ut.polygon(g,y,C)},t.intersect=function(g){return this.calcIntersect(t,g)},a}p(ny,"question");async function ly(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?21:s??0,o=t.look==="neo"?12:s??0;(t.width||t.height)&&(t.width=((t==null?void 0:t.width)??10)-a*2,t.he
233ight=((t==null?void 0:t.height)??10)-o*2);const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=c.width+(t.look==="neo"?a*2:a),u=Math.max(c.height+(t.look==="neo"?o*2:o),t.height??0),d=u/4,g=-Math.max(h,(t.width??0)-d)/2,C=-u/2,x=-C/2,y=[{x:g,y:C},{x:g+x,y:0},{x:g,y:-C},{x:-g,y:-C},{x:-g,y:C}],{cssStyles:b}=t,w=gt.svg(n),T=ft(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=Wt(y),B=w.path(_,T),v=n.insert(()=>B,":first-child");return v.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(c.x-(c.left??0))-c.width/2+x/2}, ${-(c.height/2)-(c.y-(c.top??0))})`),mt(t,v),t.intersect=function(F){return ut.polygon(t,y,F)},n}p(ly,"rect_left_inv_arrow");async function hy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const a=e.insert("g").attr("class",s).attr("id",t.domId||t.id),o=a.insert("g"),n=a.insert("g").attr("class","label").attr("style",i),c=t.description,l=t.label,h=await Ar(n,l,t.labelStyle,!0,!0);let u={width:0,height:0};if(me(Ot())){const F=h.children[0],q=$t(h);u=F.getBoundingClientRect(),q.attr("width",u.width),q.attr("height",u.height)}J.info("Text 2",c);const d=c||[],f=h.getBBox(),g=await Ar(n,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),C=g.children[0],x=$t(g);u=C.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const y=(t.padding||0)/2;$t(g).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+y+5)+")"),$t(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=n.node().getBBox(),n.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const b=u.width+(t.padding||0),w=u.height+(t.padding||0),T=-u.width/2-y,_=-u.height/2-y;let B,v;if(t.look==="handDrawn"){const F=gt.svg(a),q=ft(t,{}),I=F.path(Pe(T,_,b,w,t.rx||0),q),P=F.line(-u.width/2-y,-u.height/2-y+f.height+y,u.width/2+y,-u.height/2-y+f.height+y,q);v=a.insert(()=>(J.debug("Rough node insert CXC",I),P),":first-child"),B=a.insert(()=>(J.debug("Rough node insert CXC",I),I),":first-child")}else B=o.insert("rect",":first-child"),v=o.insert("line"),B.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),v.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+f.height+y).attr("y2",-u.height/2-y+f.height+y);return mt(t,B),t.intersect=function(F){return ut.rect(t,F)},a}p(hy,"rectWithTitle");async function cy(e,t){const{themeVariables:r}=Qt(),{radius:i}=r,s=t.padding??0;let a=0,o=0,n=0,c=0;switch(t.look){case"neo":a=16,o=12,n=c=i;break;default:a=s,o=s,n=c=5}return bs(e,t,{rx:n,ry:c,labelPaddingX:a,labelPaddingY:o})}p(cy,"roundedRect");var Ii=8;async function uy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-Ii,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2,10));const{shapeSvg:o,bbox:n}=await Tt(e,t,kt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2+Ii,l=(t!=null&&t.height?t==null?void 0:t.height:n.height)+a*2,h=c-Ii,u=l,d=-(c-Ii)/2,f=-l/2,{cssStyles:g}=t,C=gt.svg(o),x=ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:d,y:f},{x:d+h,y:f},{x:d+h,y:f+u},{x:d-Ii,y:f+u},{x:d-Ii,y:f},{x:d,y:f},{x:d,y:f+u}],b=C.polygon(y.map(T=>[T.x,T.y]),x),w=o.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path").attr("style",re(g)),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),g&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),mt(t,w),t.intersect=function(T){return ut.rect(t,T)},o}p(uy,"shadedProcess");async function dy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-o*2,10));const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2,u=((t!=null&&t.height?t==null?void 0:t.height:c.height)+o*2)*1.5,d=h,f=u/1.5,g=-d/2,C=-f/2,{cssStyles:x}=t,y=gt.svg(n),b=ft(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:g,y:C},{x:g,y:C+f},{x:g+d,y:C+f},{x:g+d,y:C-f/2}],T=Wt(w),_=y.path(T,b),B=n.insert(()=>_,":first-child");return B.attr("class","basic label-container  outer-path"),x&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",i),B.attr("transform",`translate(0, ${f/4})`),l.attr("transform",`translate(${-d/2+(a??0)-(c.x-(c.left??0))}, ${-f/4+(o??0)-(c.y-(c.top??0))})`),mt(t,B),t.intersect=function(v){return ut.polygon(t,w,v)},n}p(dy,"slopedRect");async function fy(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,s=t.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i??((t==null?void 0:t.padding)||0)*2,labelPaddingY:s??((t==null?void 0:t.padding)||0)*1},o=await bs(e,t,a);if(t.colorIndex!==void 0){const{theme:n,themeVariables:c}=Ot();Ge(o,t.colorIndex,n,c.borderColorArray)}return o}p(fy,"squareRect");var rh=50,v_=p((e,t,r)=>{const i=e.height+r,s=i*Math.cos(Math.PI/(2*(rh-1))),a=Math.sqrt(Math.max(0,s**2-e.height**2));return{w:Math.max(e.width+i/4+t,1.5*i+(i-s),e.width+t+i-a),h:i}},"stadiumDimensions");async function gy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?40:s,o=t.look==="neo"?24:s,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=v_(c,a,o),h=t.width??l.w,u=t.height??l.h,d=u/2,{cssStyles:f}=t,g=gt.svg(n),C=ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:-h/2+d,y:-u/2},{x:h/2-d,y:-u/2},...dr(-h/2+d,0,d,rh,90,270),{x:h/2-d,y:u/2},...dr(h/2-d,0,d,rh,270,450)],y=Wt(x),b=g.path(y,C),w=n.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),mt(t,
233w),t.intersect=function(T){return ut.polygon(t,x,T)},n}p(gy,"stadium");async function py(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return bs(e,t,r)}p(py,"state");function my(e,t,{config:{themeVariables:r}}){var b,w;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:o,stateBorder:n,nodeBorder:c,nodeShadow:l}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=gt.svg(h),d=ft(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=u.circle(0,0,t.width,{...d,stroke:o,strokeWidth:2}),g=n??c,C=(t.width??0)*5/14,x=u.circle(0,0,C,{...d,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=h.insert(()=>f,":first-child");if(y.insert(()=>x),t.look!=="handDrawn"&&y.attr("class","outer-path"),a&&y.selectAll("path").attr("style",a),s&&y.selectAll("path").attr("style",s),t.width<25&&l&&t.look!=="handDrawn"){const T=((w=(b=e.node())==null?void 0:b.ownerSVGElement)==null?void 0:w.id)??"",_=T?`${T}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${_})`)}return mt(t,y),t.intersect=function(T){return ut.circle(t,(t.width??0)/2,T)},h}p(my,"stateEnd");function yy(e,t,{config:{themeVariables:r}}){var n,c;const{lineColor:i,nodeShadow:s}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const h=gt.svg(a).circle(0,0,t.width,Ob(i));o=a.insert(()=>h),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else o=a.insert("circle",":first-child"),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&s&&t.look!=="handDrawn"){const l=((c=(n=e.node())==null?void 0:n.ownerSVGElement)==null?void 0:c.id)??"",h=l?`${l}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${h})`)}return mt(t,o),t.intersect=function(l){return ut.circle(t,(t.width??7)/2,l)},a}p(yy,"stateStart");var lr=8;async function Cy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=(t==null?void 0:t.padding)??8,a=t.look==="neo"?28:s,o=t.look==="neo"?12:s;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a-2*lr,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o,10));const{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.max(c.width+2*lr+a,t.width??0),h=Math.max(c.height+o,t.height??0),u=l-2*lr,d=h,f=-l/2,g=-h/2,C=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-lr,y:0},{x:u+lr,y:0},{x:u+lr,y:-d},{x:-lr,y:-d},{x:-lr,y:0}];if(t.look==="handDrawn"){const x=gt.svg(n),y=ft(t,{}),b=x.rectangle(f-lr,g,u+2*lr,d,y),w=x.line(f,g,f,g+d,y),T=x.line(f+u,g,f+u,g+d,y),_=n.insert(()=>w,":first-child"),B=n.insert(()=>T,":first-child");_.attr("class","neo-line"),B.attr("class","neo-line");const v=n.insert(()=>b,":first-child"),{cssStyles:F}=t;v.attr("class","basic label-container outer-path").attr("style",re(F)),mt(t,v)}else{const x=yr(n,u,d,C);i&&x.attr("style",i),mt(t,x)}return t.intersect=function(x){return ut.polygon(t,C,x)},n}p(Cy,"subroutine");var Cl=.2;async function xy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-o*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-Cl*(t.height+o*2),10));const{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=(t!=null&&t.height?t==null?void 0:t.height:c.height)+o*2,h=Cl*l,u=Cl*l,f=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2+h-h,g=l,C=-f/2,x=-g/2,{cssStyles:y}=t,b=gt.svg(n),w=ft(t,{}),T=[{x:C-h/2,y:x},{x:C+f+h/2,y:x},{x:C+f+h/2,y:x+g},{x:C-h/2,y:x+g}],_=[{x:C+f-h/2,y:x+g},{x:C+f+h/2,y:x+g},{x:C+f+h/2,y:x+g-u}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const B=Wt(T),v=b.path(B,w),F=Wt(_),q=b.path(F,{...w,fillStyle:"solid"}),I=n.insert(()=>q,":first-child");return I.insert(()=>v,":first-child"),I.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),mt(t,I),t.intersect=function(P){return ut.polygon(t,T,P)},n}p(xy,"taggedRect");async function by(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s;let n=!0;(t.width||t.height)&&(n=!1,t.width=((t==null?void 0:t.width)??0)-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.he
233ight<10&&(t.height=10));const{shapeSvg:c,bbox:l,label:h}=await Tt(e,t,kt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(o??0)*2,f=d/8,g=.2*u,C=.2*d,x=d+(n?f:-f),{cssStyles:y}=t,w=14-u,T=w>0?w/2:0,_=gt.svg(c),B=ft(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const v=[{x:-u/2-T,y:x/2},...Jr(-u/2-T,x/2,u/2+T,x/2,f,.8),{x:u/2+T,y:-x/2},{x:-u/2-T,y:-x/2}],F=-u/2,q=n?-x/2-.4*C:-x/2-1.6*C,I=[{x:F+u-T-g,y:(q+d)*1.4},{x:F+u-T,y:q+d-C},{x:F+u-T,y:(q+d)*.9},...Jr(F+u,(q+d)*1.25,F+u-g,(q+d)*1.3,-d*.02,.5)],P=Wt(v),tt=_.path(P,B),Y=Wt(I),E=_.path(Y,{...B,fillStyle:"solid"}),M=c.insert(()=>E,":first-child");return M.insert(()=>tt,":first-child"),M.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-f-(l.y-(l.top??0))})`),mt(t,M),t.intersect=function(A){return ut.polygon(t,v,A)},c}p(by,"taggedWaveEdgedRectangle");async function ky(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a}=await Tt(e,t,kt(t)),o=t!=null&&t.width?t==null?void 0:t.width:a.width,n=t!=null&&t.height?t==null?void 0:t.height:a.height,c=-o/2,l=-n/2,h=s.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",c).attr("y",l).attr("width",o).attr("height",n),mt(t,h),t.intersect=function(u){return ut.rect(t,u)},s}p(ky,"text");var L_=p((e,t,r,i,s,a)=>`M${e},${t}
234    a${s},${a} 0,0,1 0,${-i}
235    l${r},0
236    a${s},${a} 0,0,1 0,${i}
237    M${r},${-i}
238    a${s},${a} 0,0,0 0,${i}
239    l${-r},0`,"createCylinderPathD"),F_=p((e,t,r,i,s,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${s},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),A_=p((e,t,r,i,s,a)=>[`M${e+r/2},${-i/2}`,`a${s},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Vd=5,Kd=10;async function wy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?12:s/2,o=t.height??0;if(t.height&&(t.height=t.height-a,t.height<Vd&&(t.height=Vd)),t.width){const y=o/2/(2.5+o/50);t.width=t.width-a-y*3,t.width<Kd&&(t.width=Kd)}const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=Math.max(t.height??0,c.height)+a,u=h/2,d=u/(2.5+h/50),f=Math.max(t.width??0,c.width)+d+a,{cssStyles:g}=t;let C;if(t.look==="handDrawn"){const x=gt.svg(n),y=F_(0,0,f,h,d,u),b=A_(0,0,f,h,d,u),w=x.path(y,ft(t,{})),T=x.path(b,ft(t,{fill:"none"}));C=n.insert(()=>T,":first-child"),C=n.insert(()=>w,":first-child"),C.attr("class","basic label-container"),g&&C.attr("style",g)}else{const x=L_(0,0,f,h,d,u);C=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",re(g)).attr("style",i),C.attr("class","basic label-container outer-path"),g&&C.selectAll("path").attr("style",g),i&&C.selectAll("path").attr("style",i)}return C.attr("label-offset-x",d),C.attr("transform",`translate(${-f/2}, ${h/2} )`),l.attr("transform",`translate(${-(c.width/2)-d-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),mt(t,C),t.intersect=function(x){const y=ut.rect(t,x),b=y.y-(t.y??0);if(u!=0&&(Math.abs(b)<(t.height??0)/2||Math.abs(b)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-d)){let w=d*d*(1-b*b/(u*u));w!=0&&(w=Math.sqrt(Math.abs(w))),w=d-w,x.x-(t.x??0)>0&&(w=-w),y.x+=w}return y},n}p(wy,"tiltedCylinder");async function Ty(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?24:s,o=t.look==="neo"?9:0,{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=Math.max(c.height+a,t.height??0),h=Math.max(c.width+o,(t.width??0)-l),u=[{x:-3*l/6,y:0},{x:h+3*l/6,y:0},{x:h,y:-l},{x:0,y:-l}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=gt.svg(n),C=ft(t,{}),x=Wt(u),y=g.path(x,C);d=n.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),f&&d.attr("style",f)}else d=yr(n,h,l,u);return i&&d.attr("style",i),t.width=h,t.height=l,mt(t,d),t.intersect=function(g){return ut.polygon(t,u,g)},n}p(Ty,"trapezoid");async function Sy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s,n=15,c=5;
239(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<c&&(t.height=c),t.width=(t.width??0)-a*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:h}=await Tt(e,t,kt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,h.width))+(a??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:Math.max(c,h.height))+(o??0)*2,{cssStyles:f}=t,g=gt.svg(l),C=ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],y=Wt(x),b=g.path(y,C),w=l.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),mt(t,w),t.intersect=function(T){return ut.polygon(t,x,T)},l}p(Sy,"trapezoidalPentagon");var Zd=10,Qd=10;async function _y(e,t){var T;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-a)/2,t.width<Qd&&(t.width=Qd),t.height=(t==null?void 0:t.height)??0,t.height<Zd&&(t.height=Zd));const{shapeSvg:o,bbox:n,label:c}=await Tt(e,t,kt(t)),l=pr((T=Ot().flowchart)==null?void 0:T.htmlLabels),h=(t!=null&&t.width?t==null?void 0:t.width:n.width)+a,u=t!=null&&t.height?t==null?void 0:t.height:h+n.height,d=u,f=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:g}=t,C=gt.svg(o),x=ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=Wt(f),b=C.path(y,x),w=o.insert(()=>b,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=h,t.height=u,mt(t,w),c.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${u/2-(n.height+(t.padding??0)/(l?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(_){return J.info("Triangle intersect",t,f,_),ut.polygon(t,f,_)},o}p(_y,"triangle");async function By(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?12:s;let n=!0;(t.width||t.height)&&(n=!1,t.width=((t==null?void 0:t.width)??0)-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.height<10&&(t.height=10));const{shapeSvg:c,bbox:l,label:h}=await Tt(e,t,kt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(o??0)*2,f=t.look==="neo"?d/4:d/8,g=d+(n?f:-f),{cssStyles:C}=t,y=14-u,b=y>0?y/2:0,w=gt.svg(c),T=ft(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=[{x:-u/2-b,y:g/2},...Jr(-u/2-b,g/2,u/2+b,g/2,f,.8),{x:u/2+b,y:-g/2},{x:-u/2-b,y:-g/2}],B=Wt(_),v=w.path(B,T),F=c.insert(()=>v,":first-child");return F.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-f-(l.y-(l.top??0))})`),mt(t,F),t.intersect=function(q){return ut.polygon(t,_,q)},c}p(By,"waveEdgedRectangle");async function vy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,o=t.look==="neo"?20:s;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const T=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-T*(20/9)),t.width=t.width-a*2}const{shapeSvg:n,bbox:c}=await Tt(e,t,kt(t)),l=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2,h=(t!=null&&t.height?t==null?void 0:t.height:c.height)+o,u=h/8,d=h+u*2,{cssStyles:f}=t,g=gt.svg(n),C=ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:-l/2,y:d/2},...Jr(-l/2,d/2,l/2,d/2,u,1),{x:l/2,y:-d/2},...Jr(l/2,-d/2,-l/2,-d/2,u,-1)],y=Wt(x),b=g.path(y,C),w=n.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),t.width=l,t.height=d,mt(t,
239w),t.intersect=function(T){return ut.polygon(t,x,T)},n}p(vy,"waveRectangle");var Kt=10;async function Ly(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-Kt,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-Kt,10));const{shapeSvg:o,bbox:n,label:c}=await Tt(e,t,kt(t)),l=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2+Kt,h=(t!=null&&t.height?t==null?void 0:t.height:n.height)+a*2+Kt,u=l-Kt,d=h-Kt,f=-u/2,g=-d/2,{cssStyles:C}=t,x=gt.svg(o),y=ft(t,{}),b=[{x:f-Kt,y:g-Kt},{x:f-Kt,y:g+d},{x:f+u,y:g+d},{x:f+u,y:g-Kt}],w=`M${f-Kt},${g-Kt} L${f+u},${g-Kt} L${f+u},${g+d} L${f-Kt},${g+d} L${f-Kt},${g-Kt}
240                M${f-Kt},${g} L${f+u},${g} L${f+u},${g+d} L${f-Kt},${g+d} L${f-Kt},${g}
241                M${f},${g-Kt} L${f+u},${g-Kt} L${f+u},${g+d} L${f},${g+d} L${f},${g-Kt}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const T=x.path(w,y),_=o.insert(()=>T,":first-child");return _.attr("transform",`translate(${Kt/2}, ${Kt/2})`),_.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(n.width/2)+Kt/2-(n.x-(n.left??0))}, ${-(n.height/2)+Kt/2-(n.y-(n.top??0))})`),mt(t,_),t.intersect=function(B){return ut.polygon(t,b,B)},o}p(Ly,"windowPane");var Jd=new Set(["redux-color","redux-dark-color"]),E_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Bc(e,t){var Ft,_t,qt;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:s}=Qt(),{rowEven:a,rowOdd:o,nodeBorder:n,borderColorArray:c}=s;if(t.look==="handDrawn"){const{themeVariables:ot}=Qt(),{background:pt}=ot,Bt={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${pt}`]};await Bc(e,Bt)}const l=Qt();t.useHtmlLabels=l.htmlLabels;let h=((Ft=l.er)==null?void 0:Ft.diagramPadding)??10,u=((_t=l.er)==null?void 0:_t.entityPadding)??6;const{cssStyles:d}=t,{labelStyles:f,nodeStyles:g}=Ct(t);if(r.attributes.length===0&&t.label){const ot={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Or(t.label,l)+ot.labelPaddingX*2<l.er.minEntityWidth&&(t.width=l.er.minEntityWidth,t.height=(l.er.minEntityHeight??0)+h/2);const pt=await bs(e,t,ot);if(i!=null&&Jd.has(i)){const Bt=r.colorIndex??0;pt.attr("data-color-id",`color-${Bt%c.length}`)}return pt}l.htmlLabels||(h*=1.25,u*=1.25);let C=kt(t);C||(C="node default");const x=e.insert("g").attr("class",C).attr("id",t.domId||t.id),y=await Ri(x,t.label??"",l,0,0,["name"],f);y.height+=u;let b=0;const w=[],T=[];let _=0,B=0,v=0,F=0,q=!0,I=!0;for(const ot of r.attributes){const pt=await Ri(x,ot.type,l,0,b,["attribute-type"],f);_=Math.max(_,pt.width+h);const Bt=await Ri(x,ot.name,l,0,b,["attribute-name"],f);B=Math.max(B,Bt.width+h);const Dt=await Ri(x,ot.keys.join(),l,0,b,["attribute-keys"],f);v=Math.max(v,Dt.width+h);const Nt=await Ri(x,ot.comment,l,0,b,["attribute-comment"],f);F=Math.max(F,Nt.width+h);const zt=Math.max(pt.height,Bt.height,Dt.height,Nt.height)+u;T.push({yOffset:b,rowHeight:zt}),b+=zt}let P=4;v<=h&&(q=!1,v=0,P--),F<=h&&(I=!1,F=0,P--);const tt=x.node().getBBox();if(y.width+h*2-(_+B+v+F)>0){const ot=y.width+h*2-(_+B+v+F);_+=ot/P,B+=ot/P,v>0&&(v+=ot/P),F>0&&(F+=ot/P)}const Y=_+B+v+F,E=gt.svg(x),M=ft(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");let A=0;T.length>0&&(A=T.reduce((ot,pt)=>ot+((pt==null?void 0:pt.rowHeight)??0),0));const j=Math.max(tt.width+h*2,(t==null?void 0:t.width)||0,Y),U=Math.max((A??0)+y.height,(t==null?void 0:t.height)||0),X=-j/2,et=-U/2;if(x.selectAll("g:not(:first-child)").each((ot,pt,Bt)=>{const Dt=$t(Bt[pt]),Nt=Dt.attr("transform");let zt=0,G=0;if(Nt){const ue=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Nt);ue&&(zt=parseFloat(ue[1]),G=parseFloat(ue[2]),Dt.attr("class").includes("attribute-name")?zt+=_:Dt.attr("class").includes("attribute-keys")?zt+=_+B:Dt.attr("class").includes("attribute-comment")&&(zt+=_+B+v))}Dt.attr("transform",`translate(${X+h/2+zt}, ${G+et+y.height+u/2})`)}),x.select(".name").attr("transform","translate("+-y.width/2+", "+(et+u/2)+")"),i!=null&&Jd.has(i)){const ot=r.colorIndex??0;x.attr("data-color-id",`color-${ot%c.length}`)}const at=E.rectangle(X,et,j,U,M),ct=x.insert(()=>at,":first-child").attr("class","outer-path").attr("style",d.join(""));w.push(0);for(const[ot,pt]of T.entries()){const Dt=(ot+1)%2===0&&pt.yOffset!==0,Nt=E.rectangle(X,y.height+et+(pt==null?void 0:pt.yOffset),j,pt==null?void 0:pt.rowHeight,{...M,fill:Dt?a:o,stroke:n});x.insert(()=>Nt,"g.label").attr("style",d.join("")).attr("class",`row-rect-${Dt?"even":"odd"}`)}const it=1e-4;let xt=Pi(X,y.height+et,j+X,y.height+et,it),dt=E.polygon(xt.map(ot=>[ot.x,ot.y]),M);if(x.insert(()=>dt).attr("class","divider"),xt=Pi(_+X,y.height+et,_+X,U+et,it),dt=E.polygon(xt.map(ot=>[ot.x,ot.y]),M),x.insert(()=>dt).attr("class","divider"),q){const ot=_+B+X;xt=Pi(ot,y.height+et,ot,U+et,it),dt=E.polygon(xt.map(pt=>[pt.x,pt.y]),M),x.insert(()=>dt).attr("class","divider")}if(I){const ot=_+B+v+X;xt=Pi(ot,y.height+et,ot,U+et,it),dt=E.polygon(xt.map(pt=>[pt.x,pt.y]),M),x.insert(()=>dt).attr("class","divider")}for(const ot of w){const pt=y.height+et+ot;
241xt=Pi(X,pt,j+X,pt,it),dt=E.polygon(xt.map(Bt=>[Bt.x,Bt.y]),M),x.insert(()=>dt).attr("class","divider")}if(mt(t,ct),g&&t.look!=="handDrawn")if(i!=null&&E_.has(i))x.selectAll("path").attr("style",g);else{const ot=g.split(";"),pt=(qt=ot==null?void 0:ot.filter(Bt=>Bt.includes("stroke")))==null?void 0:qt.map(Bt=>`${Bt}`).join("; ");x.selectAll("path").attr("style",pt??""),x.selectAll(".row-rect-even path").attr("style",g)}return t.intersect=function(ot){return ut.rect(t,ot)},x}p(Bc,"erBox");function Pi(e,t,r,i,s){if(e===r)return[{x:e-s/2,y:t},{x:e+s/2,y:t},{x:r+s/2,y:i},{x:r-s/2,y:i}];if(t===i)return[{x:e,y:t-s/2},{x:e,y:t+s/2},{x:r,y:i+s/2},{x:r,y:i-s/2}];{const a=r-e,o=i-t,n=Math.sqrt(a*a+o*o),c=o/n*(s/2),l=-(a/n)*(s/2);return[{x:e-c,y:t-l},{x:e+c,y:t+l},{x:r+c,y:i+l},{x:r-c,y:i-l}]}}p(Pi,"lineToPolygon");async function Ri(e,t,r,i=0,s=0,a=[],o=""){const n=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${s})`).attr("style",o);t!==Iu(t)&&(t=Iu(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const c=n.node().appendChild(await De(n,t,{width:Or(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=c.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let l=c.getBBox();if(pr(r.htmlLabels)){const h=c.children[0];h.style.textAlign="start";const u=$t(c);l=h.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}return l}p(Ri,"addText");async function Fy(e,t,r,i,s=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",kt(t)).attr("id",t.domId||t.id);let n=null,c=null,l=null,h=null,u=0,d=0,f=0;if(n=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await Hs(n,{text:`«${b}»`},0),u=n.node().getBBox().height}c=o.insert("g").attr("class","label-group text"),await Hs(c,t,0,["font-weight: bolder"]);const g=c.node().getBBox();d=g.height,l=o.insert("g").attr("class","members-group text");let C=0;for(const b of t.members){const w=await Hs(l,b,C,[b.parseClassifier()]);C+=w+a}f=l.node().getBBox().height,f<=0&&(f=s/2),h=o.insert("g").attr("class","methods-group text");let x=0;for(const b of t.methods){const w=await Hs(h,b,x,[b.parseClassifier()]);x+=w+a}let y=o.node().getBBox();if(n!==null){const b=n.node().getBBox();n.attr("transform",`translate(${-b.width/2})`)}return c.attr("transform",`translate(${-g.width/2}, ${u})`),y=o.node().getBBox(),l.attr("transform",`translate(0, ${u+d+s*2})`),y=o.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+s*4:s*2)})`),y=o.node().getBBox(),{shapeSvg:o,bbox:y}}p(Fy,"textHelper");async function Hs(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Qt();let o="useHtmlLabels"in t?t.useHtmlLabels:pr(a.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!o&&n.startsWith("\\")&&(n=n.substring(1)),Js(n)&&(o=!0);const c=await De(s,Nh(Zr(n)),{width:Or(n,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let l,h=1;if(o){const u=c.children[0],d=$t(c);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await wc(u),l=u.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}else{i.includes("font-weight: bolder")&&$t(c).selectAll("tspan").attr("font-weight",""),h=c.children.length;const u=c.children[0];(c.textContent===""||c.textContent.includes("&gt"))&&(u.textContent=n[0]+n.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),n[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),l=c.getBBox()}return s.attr("transform","translate(0,"+(-l.height/(2*h)+r)+")"),l.height}p(Hs,"addText");async function Ay(e,t){var A,j;const r=Ot(),{theme:i,themeVariables:s}=r,{useGradient:a,borderColorArray:o}=s,n=r.class.padding??12,c=n,l=t.useHtmlLabels??pr(r.htmlLabels)??!0,h=t;h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[];const{shapeSvg:u,bbox:d}=await Fy(e,t,r,l,c);Ge(u,t.colorIndex,i,o);
241const{labelStyles:f,nodeStyles:g}=Ct(t);t.labelStyle=f,t.cssStyles=h.styles||"";const C=((A=h.styles)==null?void 0:A.join(";"))||g||"";t.cssStyles||(t.cssStyles=C.replaceAll("!important","").split(";"));const x=h.members.length===0&&h.methods.length===0&&!((j=r.class)!=null&&j.hideEmptyMembersBox),y=gt.svg(u),b=ft(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=Math.max(t.width??0,d.width);let T=Math.max(t.height??0,d.height);const _=(t.height??0)>d.height;h.members.length===0&&h.methods.length===0?T+=c:h.members.length>0&&h.methods.length===0&&(T+=c*2);const B=-w/2,v=-T/2;let F=x?n*2:h.members.length===0&&h.methods.length===0?-n:0;_&&(F=n*2);const q=y.rectangle(B-n,v-n-(x?n:h.members.length===0&&h.methods.length===0?-n/2:0),w+2*n,T+2*n+F,b),I=u.insert(()=>q,":first-child");I.attr("class","basic label-container outer-path");const P=I.node().getBBox(),tt=u.select(".annotation-group").node().getBBox().height-(x?n/2:0)||0,Y=u.select(".label-group").node().getBBox().height-(x?n/2:0)||0,E=u.select(".members-group").node().getBBox().height-(x?n/2:0)||0,M=(tt+Y+v+n-(v-n-(x?n:h.members.length===0&&h.methods.length===0?-n/2:0)))/2;if(u.selectAll(".text").each((U,X,et)=>{var Ft,_t;const at=$t(et[X]),ct=at.attr("transform");let it=0;if(ct){const ot=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ct);ot&&(it=parseFloat(ot[2]))}let xt=it+v+n-(x?n:h.members.length===0&&h.methods.length===0?-n/2:0);at.attr("class").includes("methods-group")&&(_?xt=Math.max(M,tt+Y+E+v+c*2+n)+c*2:xt=tt+Y+E+v+c*4+n),h.members.length===0&&h.methods.length===0&&((Ft=r.class)!=null&&Ft.hideEmptyMembersBox)&&(h.annotations.length>0?xt=it-c:xt=it),l||(xt-=4);let dt=B;(at.attr("class").includes("label-group")||at.attr("class").includes("annotation-group"))&&(dt=-((_t=at.node())==null?void 0:_t.getBBox().width)/2||0,u.selectAll("text").each(function(qt,ot,pt){window.getComputedStyle(pt[ot]).textAnchor==="middle"&&(dt=0)})),at.attr("transform",`translate(${dt}, ${xt})`)}),h.members.length>0||h.methods.length>0||x){const U=tt+Y+v+n,X=y.line(P.x,U,P.x+P.width,U+.001,b);u.insert(()=>X).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",C)}if(x||h.members.length>0||h.methods.length>0){const U=tt+Y+E+v+c*2+n,X=y.line(P.x,_?Math.max(M,U):U,P.x+P.width,(_?Math.max(M,U):U)+.001,b);u.insert(()=>X).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",C)}if(h.look!=="handDrawn"&&u.selectAll("path").attr("style",C),I.select(":nth-child(2)").attr("style",C),u.selectAll(".divider").select("path").attr("style",C),t.labelStyle?u.selectAll("span").attr("style",t.labelStyle):u.selectAll("span").attr("style",C),!l){const U=RegExp(/color\s*:\s*([^;]*)/),X=U.exec(C);if(X){const et=X[0].replace("color","fill");u.selectAll("tspan").attr("style",et)}else if(f){const et=U.exec(f);if(et){const at=et[0].replace("color","fill");u.selectAll("tspan").attr("style",at)}}}return mt(t,I),t.intersect=function(U){return ut.rect(t,U)},u}p(Ay,"classBox");async function Ey(e,t){var P,tt;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t,a=t,o=20,n=20,c="verifyMethod"in t,l=kt(t),h=Ot(),{themeVariables:u}=h,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,g=h.layout==="elk"?"start":"center",C=e.insert("g").attr("class",l).attr("id",t.domId??t.id);let x;c?x=await cr(C,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):x=await cr(C,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let y=x;const b=await cr(C,s.name,y,t.labelStyle+"; font-weight: bold;");if(y+=b+n,c){const Y=await cr(C,`${s.requirementId?`ID: ${s.requirementId}`:""}`,y,t.labelStyle,g);y+=Y;const E=await cr(C,`${s.text?`Text: ${s.text}`:""}`,y,t.labelStyle,g);y+=E;const M=await cr(C,`${s.risk?`Risk: ${s.risk}`:""}`,y,t.labelStyle,g);y+=M,await cr(C,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,y,t.labelStyle,g)}else{const Y=await cr(C,`${a.type?`Type: ${a.type}`:""}`,y,t.labelStyle,g);y+=Y,await cr(C,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,y,t.labelStyle,g)}const w=(((P=C.node())==null?void 0:P.getBBox().width)??200)+o,T=(((tt=C.node())==null?void 0:tt.getBBox().height)??200)+o,_=-w/2,B=-T/2,v=gt.svg(C),F=ft(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const q=v.rectangle(_,B,w,T,F),I=C.insert(()=>q,":first-child");if(I.attr("class","basic label-container outer-path").attr("style",i),d!=null&&d.length){const Y=t.colorIndex??0;C.attr("data-color-id",`color-${Y%d.length}`)}if(C.selectAll(".label").each((Y,E,M)=>{const A=$t(M[E]),j=A.attr("transform");let U=0,X=0;if(j){const it=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(j);it&&(U=parseFloat(it[1]),X=parseFloat(it[2]))}const et=X-T/2;let at=_+o/2;(E===0||E===1)&&(at=U),A.attr("transform",`translate(${at}, ${et+o})`)}),y>x+b+n){const Y=B+x+b+n;let E;if(t.look==="neo"){const j=[[_,Y],[_+w,Y],[_+w,Y+.001],[_,Y+.001]];E=v.polygon(j,F)}else E=v.line(_,Y,_+w,Y,F);C.insert(()=>E).attr("class","divider")}return mt(t,I),t.intersect=function(Y){return ut.rect(t,Y)},i&&t.look!=="handDrawn"&&(f||d!=null&&d.length)&&C.selectAll("path").attr("style",i),C}p(Ey,"requirementBox");async function cr(e,t,r,i="",s="center"){if(t==="")return 0;const a=e.insert("g").attr("class","label").attr("style",i),o=Ot(),n=o.htmlLabels??!0,c=await De(a,Nh(Zr(t)),{width:Or(t,o)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},o);let l;if(n){const h=c.children[0],u=$t(c);s==="start"&&$t(h).style("text-align","left"),l=h.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}else{const h=c.children[0];for(const u of h.children)i&&u.setAttribute("style",i);if(s==="start"){h.setAttribute("text-anchor","start");for(const u of h.children)u.setAttribute("text-anchor","start")}l=c.getBBox(),l.height+=6}return a.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}p(cr,"addText");var M_=p(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function My(e,t,{config:r}){var tt,Y;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:c,label:l}=await Tt(e,t,kt(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&((tt=r==null?void 0:r.kanban)!=null&&tt.ticketBaseUrl)&&(u=(Y=r==null?void 0:r.kanban)==null?void 0:Y.ticketBaseUrl.replace("#TICKET#",t.ticket),d=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,C;d?{label:g,bbox:C}=await fi(d,"ticket"in t&&t.ticket||"",f):{label:g,bbox:C}=await fi(n,"ticket"in t&&t.ticket||"",f);
241const{label:x,bbox:y}=await fi(n,"assigned"in t&&t.assigned||"",f);t.width=o;const b=10,w=(t==null?void 0:t.width)||0,T=Math.max(C.height,y.height)/2,_=Math.max(c.height+b*2,(t==null?void 0:t.height)||0)+T,B=-w/2,v=-_/2;l.attr("transform","translate("+(h-w/2)+", "+(-T-c.height/2)+")"),g.attr("transform","translate("+(h-w/2)+", "+(-T+c.height/2)+")"),x.attr("transform","translate("+(h+w/2-y.width-2*a)+", "+(-T+c.height/2)+")");let F;const{rx:q,ry:I}=t,{cssStyles:P}=t;if(t.look==="handDrawn"){const E=gt.svg(n),M=ft(t,{}),A=q||I?E.path(Pe(B,v,w,_,q||0),M):E.rectangle(B,v,w,_,M);F=n.insert(()=>A,":first-child"),F.attr("class","basic label-container").attr("style",P||null)}else{F=n.insert("rect",":first-child"),F.attr("class","basic label-container __APA__").attr("style",s).attr("rx",q??5).attr("ry",I??5).attr("x",B).attr("y",v).attr("width",w).attr("height",_);const E="priority"in t&&t.priority;if(E){const M=n.append("line"),A=B+2,j=v+Math.floor((q??0)/2),U=v+_-Math.floor((q??0)/2);M.attr("x1",A).attr("y1",j).attr("x2",A).attr("y2",U).attr("stroke-width","4").attr("stroke",M_(E))}}return mt(t,F),t.height=_,t.intersect=function(E){return ut.rect(t,E)},n}p(My,"kanbanItem");async function $y(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,halfPadding:o,label:n}=await Tt(e,t,kt(t)),c=20,l=8,h=t.icon?c+l:0,u=a.width+10*o,d=a.height+8*o,f=.15*u,{cssStyles:g}=t,C=a.width+20,x=a.height+20,y=Math.max(u,C)+h,b=Math.max(d,x);n.attr("transform",`translate(${-a.width/2+h/2}, ${-a.height/2})`);let w;const T=`M0 0 
242    a${f},${f} 1 0,0 ${y*.25},${-1*b*.1}
243    a${f},${f} 1 0,0 ${y*.25},0
244    a${f},${f} 1 0,0 ${y*.25},0
245    a${f},${f} 1 0,0 ${y*.25},${b*.1}
246
247    a${f},${f} 1 0,0 ${y*.15},${b*.33}
248    a${f*.8},${f*.8} 1 0,0 0,${b*.34}
249    a${f},${f} 1 0,0 ${-1*y*.15},${b*.33}
250
251    a${f},${f} 1 0,0 ${-1*y*.25},${b*.15}
252    a${f},${f} 1 0,0 ${-1*y*.25},0
253    a${f},${f} 1 0,0 ${-1*y*.25},0
254    a${f},${f} 1 0,0 ${-1*y*.25},${-1*b*.15}
255
256    a${f},${f} 1 0,0 ${-1*y*.1},${-1*b*.33}
257    a${f*.8},${f*.8} 1 0,0 0,${-1*b*.34}
258    a${f},${f} 1 0,0 ${y*.1},${-1*b*.33}
259  H0 V0 Z`;if(t.look==="handDrawn"){const _=gt.svg(s),B=ft(t,{}),v=_.path(T,B);w=s.insert(()=>v,":first-child"),w.attr("class","basic label-container").attr("style",re(g))}else w=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",T);if(w.attr("transform",`translate(${-y/2}, ${-b/2})`),t.icon){const _=s.append("g").attr("class","mindmap-icon");_.html(`<g>${await Ue(t.icon,{height:c,fallbackPrefix:""})}</g>`);const B=_.node().getBBox(),F=-(a.width+l)/2-B.x-B.width/2,q=-B.y-B.height/2;_.attr("transform",`translate(${F}, ${q})`)}return mt(t,w),t.calcIntersect=function(_,B){return ut.rect(_,B)},t.intersect=function(_){return J.info("Bang intersect",t,_),ut.rect(t,_)},s}p($y,"bang");async function Oy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,halfPadding:o,label:n}=await Tt(e,t,kt(t)),c=20,l=8,h=t.icon?c+l:0,u=a.width+2*o+h,d=a.height+2*o,f=.15*u,g=.25*u,C=.35*u,x=.2*u,{cssStyles:y}=t;let b;const w=`M0 0 
260    a${f},${f} 0 0,1 ${u*.25},${-1*u*.1}
261    a${C},${C} 1 0,1 ${u*.4},${-1*u*.1}
262    a${g},${g} 1 0,1 ${u*.35},${u*.2}
263
264    a${f},${f} 1 0,1 ${u*.15},${d*.35}
265    a${x},${x} 1 0,1 ${-1*u*.15},${d*.65}
266
267    a${g},${f} 1 0,1 ${-1*u*.25},${u*.15}
268    a${C},${C} 1 0,1 ${-1*u*.5},0
269    a${f},${f} 1 0,1 ${-1*u*.25},${-1*u*.15}
270
271    a${f},${f} 1 0,1 ${-1*u*.1},${-1*d*.35}
272    a${x},${x} 1 0,1 ${u*.1},${-1*d*.65}
273  H0 V0 Z`;if(t.look==="handDrawn"){const T=gt.svg(s),_=ft(t,{}),B=T.path(w,_);b=s.insert(()=>B,":first-child"),b.attr("class","basic label-container").attr("style",re(y))}else b=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w);if(n.attr("transform",`translate(${-a.width/2+h/2}, ${-a.height/2})`),b.attr("transform",`translate(${-u/2}, ${-d/2})`),t.icon){const T=s.append("g").attr("class","mindmap-icon");T.html(`<g>${await Ue(t.icon,{height:c,fallbackPrefix:""})}</g>`);const _=T.node().getBBox(),v=-(a.width+l)/2-_.x-_.width/2,F=-_.y-_.height/2;T.attr("transform",`translate(${v}, ${F})`)}return mt(t,b),t.calcIntersect=function(T,_){return ut.rect(T,_)},t.intersect=function(T){return J.info("Cloud intersect",t,T),ut.rect(t,T)}
273,s}p(Oy,"cloud");async function Iy(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:a,halfPadding:o,label:n}=await Tt(e,t,kt(t)),c=20,l=8,h=t.icon?c+l:0,u=a.width+4*o+h,d=a.height+2*o,f=5,g=t.look==="neo"?`
274    M${-u/2} ${d/2-f}
275    v${-d+2*f}
276    q0,-${f} ${f},-${f}
277    h${u-2*f}
278    q${f},0 ${f},${f}
279    v${d-f}
280    H${-u/2}
281    Z
282  `:`
283    M${-u/2} ${d/2-f}
284    v${-d+2*f}
285    q0,-${f} ${f},-${f}
286    h${u-2*f}
287    q${f},0 ${f},${f}
288    v${d-2*f}
289    q0,${f} ${-f},${f}
290    h${-(u-2*f)}
291    q${-f},0 ${-f},${-f}
292    Z
293  `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const C=s.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",g);if(s.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",d/2).attr("x2",u/2).attr("y2",d/2),n.attr("transform",`translate(${-a.width/2+h/2}, ${-a.height/2})`),s.append(()=>n.node()),t.icon){const x=s.append("g").attr("class","mindmap-icon");x.html(`<g>${await Ue(t.icon,{height:c,fallbackPrefix:""})}</g>`);const y=x.node().getBBox(),w=-(a.width+l)/2-y.x-y.width/2,T=-y.y-y.height/2;x.attr("transform",`translate(${w}, ${T})`)}return mt(t,C),t.calcIntersect=function(x,y){return ut.rect(x,y)},t.intersect=function(x){return ut.rect(t,x)},s}p(Iy,"defaultMindmapNode");async function Dy(e,t,r){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:n,label:c}=await Tt(e,t,kt(t)),l=(r==null?void 0:r.padding)??(n??0)*2,h=t.look==="neo"?16:l,u=20,d=6,f=t.icon?(u+d)/2:0;(t.width||t.height)&&(t.width=(t.width??6)-h*2,t.height=t.width),t!=null&&t.width&&(t.width=(t==null?void 0:t.width)-h*2);const g=Math.max(o.width,u)/2+l+f;let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const y=gt.svg(a),b=ft(t,{}),w=y.circle(0,0,g*2,b);C=a.insert(()=>w,":first-child"),C.attr("class","basic label-container").attr("style",re(x))}else C=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",g).attr("cx",0).attr("cy",0);if(t.icon){const y=c.attr("transform")??"translate(0,0)";c.attr("transform",y.replace(/translate\(([^,]+),([^)]+)\)/,(v,F,q)=>`translate(${F}, ${parseFloat(q)+f})`));const b=a.append("g").attr("class","mindmap-icon");b.html(`<g>${await Ue(t.icon,{height:u,fallbackPrefix:""})}</g>`);const w=b.node().getBBox(),T=-(o.height/2+d+u/2)+f,_=-w.x-w.width/2,B=T-w.y-w.height/2;b.attr("transform",`translate(${_}, ${B})`)}return mt(t,C),t.calcIntersect=function(y,b){const w=y.width/2;return ut.circle(y,w,b)},t.intersect=function(y){return J.info("MindmapCircle intersect",t,g,y),ut.circle(t,g,y)},a}p(Dy,"mindmapCircle");var $_=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:fy},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:cy},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:gy},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Cy},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Lm},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Fm},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Im},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:um},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:bm},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:pm}
293,{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:vm},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Cm},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:$y},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Oy},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:ny},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Rm},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Xm},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Gm},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Ty},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Ym},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Em},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ky}
293,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:mm},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:uy},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:yy},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:my},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Dm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:qm},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Tm},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Sm},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:_m},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Vm}
293,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:By},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Pm},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:wy},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Km},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Bm},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Am},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:_y},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Ly},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:$m},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Sy},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Om},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:dy},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ay},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:sy},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:cm},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:wm},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:by},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:xy},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:vy},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:ly},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Zm}],O_=p(()=>{const t=[...Object.entries({state:py,choice:ym,note:oy,composite:xm,rectWithTitle:hy,labelRect:Um,block_arrow:gm,collapsedGroup:fm,iconSquare:Hm,iconCircle:Wm,icon:Nm,iconRounded:zm,imageSquare:jm,anchor:hm,kanbanItem:My,mindmapCircle:Dy,defaultMindmapNode:Iy,classBox:Ay,erBox:Bc,requirementBox:Ey,usecaseActor:Qm,usecaseActorHollow:ty,usecaseActorAwesome:Jm,usecaseActorIcon:ey,usecaseBusiness:ry,usecaseEllipse:Mm,usecaseJsonTable:iy}),...$_.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Py=O_();function I_(e){return e in Py}p(I_,"isValidShape");var wa=p(({flowchart:e})=>{var s,a;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),nn=new Map;async function Ry(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?Py[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),s=await a(i,t,r)}else s=await a(e,t,r),i=s;return i.attr("data-look",re(t.look)),i.attr("data-id",t.id),i.attr("data-node",!0),i.attr("data-et","node"),i.attr("data-look",re(t.look)),t.tooltip&&s.attr("title",t.tooltip),nn.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
293p(Ry,"insertNode");var V3=p((e,t)=>{nn.set(t.id,e)},"setNodeElem"),K3=p(()=>{nn.clear()},"clear"),Z3=p(e=>{const t=nn.get(e.id);J.trace("Transforming node",e.diff,e,"translate("+(e.x-+(e.diff||0)-e.width/2)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),D_=p(async(e,t)=>{const r=Ot(),{theme:i,themeVariables:s,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:n,borderColorArray:c}=s,l=n,{labelStyles:h,nodeStyles:u,borderStyles:d,backgroundStyles:f}=Ct(t),g=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);Ge(g,t.colorIndex,i,c);const C=pr(r.flowchart.htmlLabels),x=t.direction==="LR",y=g.insert("g").attr("class","cluster-label swimlane-label"),b=await De(y,t.label,{style:t.labelStyle,useHtmlLabels:C,isNode:!0,width:t.width});let w=b.getBBox();if(C){const M=b.children[0],A=$t(b);w=M.getBoundingClientRect(),A.attr("width",w.width),A.attr("height",w.height)}const T=t.padding??0,_=t.width<=w.width+T?w.width+T:t.width;t.width<=w.width+T?t.diff=(_-t.width)/2-T:t.diff=-T;const B=t.height,v=t.y-B/2,F=t.y+B/2,q=t.x-_/2,I=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+B/3,P=x?4:0,tt=w.height+2*P;let Y,E;if(x){const M=Math.max(tt,w.height+2*P),A=q+M,j=Math.max(0,_-M);if(t.look==="handDrawn"){const et=gt.svg(g),at=ft(t,{roughness:.7,fill:o,stroke:l,seed:a}),ct=ft(t,{roughness:.7,fill:"none",stroke:l,seed:a}),it=et.rectangle(q,v,M,B,at);Y=g.insert(()=>it,":first-child").attr("class","swimlane-title");const xt=et.rectangle(A,v,j,B,ct);E=g.insert(()=>xt,":first-child").attr("class","swimlane-body"),Y.select("path:nth-child(2)").attr("style",d.join(";")),Y.select("path").attr("style",f.join(";").replace("fill","stroke"))}else Y=g.insert("rect",":first-child"),E=g.insert("rect",":first-child"),Y.attr("class","swimlane-title").attr("style",u).attr("x",q).attr("y",v).attr("width",M).attr("height",B).attr("fill",o).attr("stroke",l),E.attr("class","swimlane-body").attr("style",u).attr("x",A).attr("y",v).attr("width",j).attr("height",B).attr("fill","none").attr("stroke",l);const U=q+M/2,X=t.y;y.attr("transform",`translate(${U}, ${X}) rotate(-90) translate(${-w.width/2}, ${-w.height/2})`)}else{const M=Math.max(0,I-v),A=Math.min(tt,M),j=v+A,U=Math.max(0,F-j),X=t.x-_/2;if(t.look==="handDrawn"){const ct=gt.svg(g),it=ft(t,{roughness:.7,fill:o,stroke:l,fillWeight:3,seed:a}),xt=ft(t,{roughness:.7,fill:"none",stroke:l,seed:a}),dt=ct.rectangle(X,v,_,A,it);Y=g.insert(()=>dt,":first-child").attr("class","swimlane-title");const Ft=ct.rectangle(X,j,_,U,xt);E=g.insert(()=>Ft,":first-child").attr("class","swimlane-body"),Y.select("path:nth-child(2)").attr("style",d.join(";")),Y.select("path").attr("style",f.join(";").replace("fill","stroke"))}else Y=g.insert("rect",":first-child"),E=g.insert("rect",":first-child"),Y.attr("class","swimlane-title").attr("style",u).attr("x",X).attr("y",v).attr("width",_).attr("height",A).attr("fill",o).attr("stroke",l),E.attr("class","swimlane-body").attr("style",u).attr("x",X).attr("y",j).attr("width",_).attr("height",U).attr("fill","none").attr("stroke",l);const et=t.x-w.width/2,at=v+(A-w.height)/2;y.attr("transform",`translate(${et}, ${at})`)}if(J.trace("Swimlane data ",t,JSON.stringify(t)),h){const M=y.select("span");M&&M.attr("style",h)}return t.offsetX=0,t.width=_,t.height=B,t.offsetY=w.height-T/2,t.intersect=function(M){return Ir(t,M)},{cluster:g,labelBBox:w}},"swimlane"),qy=p(async(e,t)=>{J.info("Creating subgraph rect for ",t.id,t);const r=Ot(),{theme:i,themeVariables:s,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:n,borderColorArray:c}=s,{labelStyles:l,nodeStyles:h,borderStyles:u,backgroundStyles:d}=Ct(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);Ge(f,t.colorIndex,i,c);const g=me(r),C=f.insert("g").attr("class","cluster-label ");let x;t.labelType==="markdown"?x=await De(C,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}):x=await Ar(C,t.label,t.labelStyle||"",!1,!0);let y=x.getBBox();if(me(r)){const q=x.children[0],I=$t(x);y=q.getBoundingClientRect(),I.attr("width",y.width),I.attr("height",y.height)}const b=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height,T=t.x-b/2,_=t.y-w/2;J.trace("Data ",t,JSON.stringify(t));let B;if(t.look==="handDrawn"){const q=gt.svg(f),I=ft(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:a}),P=q.path(Pe(T,_,b,w,0),I);B=f.insert(()=>(J.debug("Rough node insert CXC",P),P),":first-child"),B.select("path:nth-child(2)").attr("style",u.join(";")),B.select("path").attr("style",d.join(";").replace("fill","stroke"))}else B=f.insert("rect",":first-child"),B.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",b).attr("height",w);const{subGraphTitleTopMargin:v}=wa(r);if(C.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+v})`),l){const q=C.select("span");q&&q.attr("style",l)}const F=B.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=y.height-t.padding/2,t.intersect=function(q){return Ir(t,q)},{cluster:f,labelBBox:y}},"rect"),P_=p((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),s=0*t.padding,a=s/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(n){return Ir(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),R_=p(async(e,t)=>
293{const r=Ot(),{theme:i,themeVariables:s,handDrawnSeed:a}=r,{altBackground:o,borderColorArray:n,compositeBackground:c,compositeTitleBackground:l,nodeBorder:h,strokeWidth:u}=s,d=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-et","cluster").attr("data-id",t.id).attr("data-look",t.look);Ge(d,t.colorIndex,i,n);const f=d.insert("g",":first-child"),g=d.insert("g").attr("class","cluster-label");let C=d.append("rect");const x=await Ar(g,t.label,t.labelStyle,void 0,!0);let y=x.getBBox();if(me(r)){const Y=x.children[0],E=$t(x);y=Y.getBoundingClientRect(),E.attr("width",y.width),E.attr("height",y.height)}const b=0*t.padding,w=b/2,T=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+b;t.width<=y.width+t.padding?t.diff=(T-t.width)/2-t.padding:t.diff=-t.padding;const _=t.height+b,B=6,v=t.height+b-y.height-B,F=t.x-T/2,q=t.y-_/2;t.width=T;const I=t.y-t.height/2-w+y.height+2;let P;if(t.look==="handDrawn"){const Y=t.cssClasses.includes("statediagram-cluster-alt"),E=gt.svg(d),M=t.rx||t.ry?E.path(Pe(F,q,T,_,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:h,seed:a}):E.rectangle(F,q,T,_,{seed:a});P=d.insert(()=>M,":first-child");const A=E.rectangle(F,I,T,v,{fill:Y?o:c,fillStyle:Y?"hachure":"solid",stroke:h,seed:a});P=d.insert(()=>M,":first-child"),C=d.insert(()=>A),P.attr("class","outer"),C.attr("class","inner")}else if(P=f.insert("rect",":first-child"),P.attr("class","outer").attr("x",F).attr("y",q).attr("width",T).attr("height",_).attr("data-look",t.look),i.includes("redux")){const E=t.rx,M=`
294        M ${F},${I}
295        H ${F+T}
296        V ${I+v-E}
297        Q ${F+T},${I+v} ${F+T-E},${I+v}
298        H ${F+E}
299        Q ${F},${I+v} ${F},${I+v-E}
300        Z`;f.insert("path").attr("class","inner").attr("d",M).attr("fill",o).attr("stroke",h).attr("stroke-width",u).attr("transform",`translate(0, ${B-(pr(r.flowchart.htmlLabels)?1.5:2)})`)}else C.attr("class","inner").attr("x",F).attr("y",I).attr("width",T).attr("height",v);g.attr("transform",`translate(${t.x-y.width/2}, ${q+1-(me(r)?0:3)})`);const tt=P.node().getBBox();return t.height=tt.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(Y){return Ir(t,Y)},{cluster:d,labelBBox:y}},"roundedWithTitle"),q_=p(async(e,t)=>{J.info("Creating subgraph rect for ",t.id,t);const r=Ot(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:n,nodeStyles:c,borderStyles:l,backgroundStyles:h}=Ct(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=me(r),f=u.insert("g").attr("class","cluster-label "),g=await De(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let C=g.getBBox();if(me(r)){const v=g.children[0],F=$t(g);C=v.getBoundingClientRect(),F.attr("width",C.width),F.attr("height",C.height)}const x=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,b=t.x-x/2,w=t.y-y/2;J.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const v=gt.svg(u),F=ft(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:s}),q=v.path(Pe(b,w,x,y,t.rx),F);T=u.insert(()=>(J.debug("Rough node insert CXC",q),q),":first-child"),T.select("path:nth-child(2)").attr("style",l.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",c).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",w).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:_}=wa(r);if(f.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+_})`),n){const v=f.select("span");v&&v.attr("style",n)}const B=T.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=C.height-t.padding/2,t.intersect=function(v){return Ir(t,v)},{cluster:u,labelBBox:C}},"kanbanSection"),N_=p((e,t)=>{const r=Ot(),{theme:i,themeVariables:s,handDrawnSeed:a}=r,{altBackground:o,nodeBorder:n,borderColorArray:c}=s,l=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-et","node").attr("data-node","true").attr("data-id",t.id).attr("data-look",t.look);Ge(l,t.colorIndex,i,c);const h=l.insert("g",":first-child"),u=0*t.padding,d=t.width+u;t.diff=-t.padding;const f=t.height+u,g=t.x-d/2,C=t.y-f/2;t.width=d;let x;if(t.look==="handDrawn"){const w=gt.svg(l).rectangle(g,C,d,f,{fill:o??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});x=l.insert(()=>w,":first-child").attr("class","divider")}else{x=h.insert("rect",":first-child");let b="outer";t.look,b="divider",x.attr("class",b).attr("x",g).attr("y",C).attr("width",d).attr("height",f).attr("data-look",t.look)}const y=x.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(b){return Ir(t,b)},{cluster:l,labelBBox:{}}}
300,"divider"),W_=p(async(e,t,r)=>{var _;J.info(`Creating ${r.cssClass} for `,t.id,t);const i=Ot(),{theme:s,themeVariables:a,handDrawnSeed:o}=i,{borderColorArray:n}=a,{labelStyles:c,borderStyles:l}=Ct(t),h=e.insert("g").attr("class","cluster "+r.cssClass+" "+t.cssClasses).attr("id",t.domId??t.id).attr("data-look",t.look);Ge(h,t.colorIndex,s,n);const u=me(i),d=h.insert("g").attr("class","cluster-label");let f={width:0,height:0};const g=(_=t.label)==null?void 0:_.trim();if(g){let B;if(t.labelType==="markdown"?B=await De(d,t.label,{style:t.labelStyle,useHtmlLabels:u,isNode:!0,width:t.width}):B=await Ar(d,t.label,t.labelStyle||"",!1,!0),f=B.getBBox(),u){const v=B.children[0],F=$t(B);f=v.getBoundingClientRect(),F.attr("width",f.width),F.attr("height",f.height)}}const C=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,y=t.x-C/2,b=t.y-x/2;let w;if(t.look==="handDrawn"){const B=gt.svg(h),v=ft(t,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:o,...r.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),F=B.path(Pe(y,b,C,x,r.rx),v);w=h.insert(()=>F,":first-child"),w.select("path:nth-child(2)").attr("style",l.join(";"))}else w=h.insert("rect",":first-child"),w.attr("rx",r.rx).attr("ry",r.rx).attr("x",y).attr("y",b).attr("width",C).attr("height",x).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&w.attr("stroke-dasharray",r.strokeDash.join(", "));if(g){const{subGraphTitleTopMargin:B}=wa(i);if(d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+B})`),c){const v=d.select("span");v&&v.attr("style",c)}}const T=w.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=f.height-t.padding/2,t.intersect=function(B){return Ir(t,B)},{cluster:h,labelBBox:f}},"createContainerGroup"),z_=p(async(e,t)=>{const{themeVariables:r}=Ot(),i=r.flowContainerStroke||r.secondaryBorderColor;return W_(e,t,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:i,strokeWidth:.75,roughness:.7})},"flowGroup"),H_=p((e,t)=>{const r=e.boundaryType||"rect",i=r==="package"?20:e.padding,s=r==="package"?t.height+10:0,a=Math.max(e.width,t.width+i),o=r==="package"?Math.max(e.height,s+e.padding*2):e.height,n=e.x-a/2,c=e.y-o/2;return{boundaryType:r,width:a,height:o,x:n,y:c,bodyY:c+s,bodyHeight:o-s,tabHeight:s,tabWidth:r==="package"?Math.min(a,Math.max(80,t.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),j_=p(async(e,t)=>{var Y;J.info("Creating usecase system boundary for ",t.id,t);const r=Ot(),{theme:i,themeVariables:s,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:n,borderColorArray:c}=s,{labelStyles:l,nodeStyles:h}=Ct(t),{stylesMap:u}=ti(t),d=t.boundaryType||"rect",f=e.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${d} ${t.cssClasses}`).attr("id",typeof t.domId=="string"?t.domId:t.id).attr("data-boundary-type",d).attr("data-look",t.look);Ge(f,t.colorIndex,i,c);const g=me(r),C=f.insert("g").attr("class","cluster-label system-boundary-title"),x=await De(C,t.label,{style:l,useHtmlLabels:g,isNode:!0});let y=x.getBBox();if(g){const E=x.children[0],M=$t(x);y=E.getBoundingClientRect(),M.attr("width",y.width),M.attr("height",y.height)}const b=H_(t,y),{width:w,height:T,x:_,y:B,bodyY:v,bodyHeight:F,tabHeight:q,tabWidth:I}=b;t.diff=t.width<=y.width+t.padding?(w-t.width)/2-t.padding:-t.padding;const P=ft(t,{fill:u.get("fill")||o,stroke:u.get("stroke")||n,strokeWidth:((Y=u.get("stroke-width"))==null?void 0:Y.replace("px",""))||1,seed:a});if(t.look==="handDrawn"){const E=gt.svg(f),M=E.rectangle(_,v,w,F,P);if(f.insert(()=>M,":first-child").attr("class","boundary-body label-container"),d==="package"){const A=E.rectangle(_,B,I,q,P);f.insert(()=>A,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else f.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",h).attr("x",_).attr("y",v).attr("width",w).attr("height",F),d==="package"&&f.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",h).attr("x",_).attr("y",B).attr("width",I).attr("height",q);const{subGraphTitleTopMargin:tt}=wa(r);return d==="package"?C.attr("transform",`translate(${_+(I-y.width)/2}, ${B+(q-y.height)/2})`):C.attr("transform",`translate(${t.x-y.width/2}, ${B+tt})`),l&&(C.attr("style",l),C.select("span").attr("style",l)),t.offsetX=0,t.width=w,t.height=T,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(E){return Ir(t,
300E)},{cluster:f,labelBBox:y}},"usecaseSystemBoundary"),Y_=qy,U_={rect:qy,squareRect:Y_,roundedWithTitle:R_,noteGroup:P_,divider:N_,kanbanSection:q_,flowGroup:z_,usecaseSystemBoundary:j_,swimlane:D_},G_=new Set(["noteGroup","divider"]),Q3=p(e=>!G_.has(e??"rect"),"clusterPaintsTitle"),Wo=new Map,X_=p(async(e,t)=>{const r=t.shape||"rect",i=await U_[r](e,t);return Wo.set(t.id,i),i},"insertCluster"),J3=p(()=>{Wo=new Map},"clear"),t$=p(e=>{J.info("Position cluster ("+e.id+", "+e.x+", "+e.y+") ("+(e==null?void 0:e.width)+", "+(e==null?void 0:e.height)+")",Wo.get(e.id)),Wo.get(e.id).cluster.attr("transform","translate("+e.x+", "+e.y+")")},"positionCluster"),Te={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,requirement_arrow:5.5},tf={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function js(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=te(e),t=te(t);const[r,i]=[e.x,e.y],[s,a]=[t.x,t.y],o=s-r,n=a-i;return{angle:Math.atan(n/o),deltaX:o,deltaY:n}}p(js,"calculateDeltaAndAngle");var te=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),V_=p(e=>({x:p(function(t,r,i){let s=0;const a=te(i[0]).x<te(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Te,e.arrowTypeStart)){const{angle:f,deltaX:g}=js(i[0],i[1]);s=Te[e.arrowTypeStart]*Math.cos(f)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Te,e.arrowTypeEnd)){const{angle:f,deltaX:g}=js(i[i.length-1],i[i.length-2]);s=Te[e.arrowTypeEnd]*Math.cos(f)*(g>=0?1:-1)}const o=Math.abs(te(t).x-te(i[i.length-1]).x),n=Math.abs(te(t).y-te(i[i.length-1]).y),c=Math.abs(te(t).x-te(i[0]).x),l=Math.abs(te(t).y-te(i[0]).y),h=Te[e.arrowTypeStart],u=Te[e.arrowTypeEnd],d=1;if(o<u&&o>0&&n<u){let f=u+d-o;f*=a==="right"?-1:1,s-=f}if(c<h&&c>0&&l<h){let f=h+d-c;f*=a==="right"?-1:1,s+=f}return te(t).x+s},"x"),y:p(function(t,r,i){let s=0;const a=te(i[0]).y<te(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Te,e.arrowTypeStart)){const{angle:f,deltaY:g}=js(i[0],i[1]);s=Te[e.arrowTypeStart]*Math.abs(Math.sin(f))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Te,e.arrowTypeEnd)){const{angle:f,deltaY:g}=js(i[i.length-1],i[i.length-2]);s=Te[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(g>=0?1:-1)}const o=Math.abs(te(t).y-te(i[i.length-1]).y),n=Math.abs(te(t).x-te(i[i.length-1]).x),c=Math.abs(te(t).y-te(i[0]).y),l=Math.abs(te(t).x-te(i[0]).x),h=Te[e.arrowTypeStart],u=Te[e.arrowTypeEnd],d=1;if(o<u&&o>0&&n<u){let f=u+d-o;f*=a==="up"?-1:1,s-=f}if(c<h&&c>0&&l<h){let f=h+d-c;f*=a==="up"?-1:1,s+=f}return te(t).y+s},"y")}),"getLineFunctionsWithOffset"),K_=p((e,t,r,i,s,a=!1,o)=>{t.arrowTypeStart&&ef(e,"start",t.arrowTypeStart,r,i,s,a,o),t.arrowTypeEnd&&ef(e,"end",t.arrowTypeEnd,r,i,s,a,o)},"addEdgeMarkers"),Z_={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},arrow_hierarchy:{type:"hierarchy",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}},Q_=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],ef=p((e,t,r,i,s,a,o=!1,n)=>{var g;if(!r||r==="none")return;const c=Z_[r],l=c&&Q_.includes(c.type);if(!c){J.warn(`Unknown arrow type: ${r}`);return}const h=c.type,f=`${s}_${a}-${h}${t==="start"?"Start":"End"}${o&&l?"-margin":""}`;if(n&&n.trim()!==""){const C=n.replace(/[^\dA-Za-z]/g,"_"),x=`${f}_${C}`;if(!document.getElementById(x)){const y=document.getElementById(f);if(y){const b=y.cloneNode(!0);b.id=x,b.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",n),c.fill&&T.setAttribute("fill",n)}),(g=y.parentNode)==null||g.appendChild(b)}}e.attr(`marker-${t}`,`url(${i}#${x})`)}else e.attr(`marker-${t}`,`url(${i}#${f})`)},"addEdgeMarker"),J_=p(e=>{var t,r;return typeof e=="string"?e:(r=(t=Ot())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),zo=new Map,xe=new Map,e$=p(()=>{zo.clear(),xe.clear()},"clear"),r$=p(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Ds=p(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),tB=p(async(e,t)=>{const r=Ot();let i=me(r);const{labelStyles:s}=Ct(t);t.labelStyle=s;const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id),n=t.labelType==="markdown",l=await De(e,t.label,{style:Ds(t.labelStyle),useHtmlLabels:i,addSvgBackgroun
300d:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);o.node().appendChild(l),J.info("abc82",t,t.labelType);let h,u;if(i){const f=l.children[0],g=$t(l);h=await yi.measure(()=>f.getBoundingClientRect()),u=h,g.attr("width",h.width),g.attr("height",h.height)}else{const f=$t(l).select("text").node();await yi.measure(()=>{h=l.getBBox(),f&&typeof f.getBBox=="function"?u=f.getBBox():u=h})}o.attr("transform",Di(u,i)),zo.set(t.id,a),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),g=f.insert("g").attr("class","inner"),C=await Ar(g,t.startLabelLeft,Ds(t.labelStyle)||"",!1,!1);d=C;let x=C.getBBox();if(i){const y=C.children[0],b=$t(C);x=y.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}g.attr("transform",Di(x,i)),xe.get(t.id)||xe.set(t.id,{}),xe.get(t.id).startLeft=f,Ys(d,t.startLabelLeft)}if(t.startLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),g=f.insert("g").attr("class","inner"),C=await Ar(g,t.startLabelRight,Ds(t.labelStyle)||"",!1,!1);d=C;let x=C.getBBox();if(i){const y=C.children[0],b=$t(C);x=y.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}g.attr("transform",Di(x,i)),xe.get(t.id)||xe.set(t.id,{}),xe.get(t.id).startRight=f,Ys(d,t.startLabelRight)}if(t.endLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),g=f.insert("g").attr("class","inner"),C=await Ar(f,t.endLabelLeft,Ds(t.labelStyle)||"",!1,!1);d=C;let x=C.getBBox();if(i){const y=C.children[0],b=$t(C);x=y.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}g.attr("transform",Di(x,i)),xe.get(t.id)||xe.set(t.id,{}),xe.get(t.id).endLeft=f,Ys(d,t.endLabelLeft)}if(t.endLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),g=f.insert("g").attr("class","inner"),C=await Ar(f,t.endLabelRight,Ds(t.labelStyle)||"",!1,!1);d=C;let x=C.getBBox();if(i){const y=C.children[0],b=$t(C);x=y.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}g.attr("transform",Di(x,i)),xe.get(t.id)||xe.set(t.id,{}),xe.get(t.id).endRight=f,Ys(d,t.endLabelRight)}return l},"insertEdgeLabel");function Ys(e,t){me(Ot())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(Ys,"setTerminalWidth");var eB=p((e,t)=>{J.debug("Moving label abc88 ",e.id,e.label,zo.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Ot(),{subGraphTitleTotalMargin:s}=wa(i);if(e.label){const a=zo.get(e.id);let o=e.x,n=e.y;if(r){const c=tr.calcLabelPosition(r);J.debug("Moving label "+e.label+" from (",o,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(o=c.x,n=c.y)}a.attr("transform",`translate(${o}, ${n+s/2})`)}if(e.startLabelLeft){const a=xe.get(e.id).startLeft;let o=e.x,n=e.y;if(r){const c=tr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=c.x,n=c.y}a.attr("transform",`translate(${o}, ${n})`)}if(e.startLabelRight){const a=xe.get(e.id).startRight;let o=e.x,n=e.y;if(r){const c=tr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=c.x,n=c.y}a.attr("transform",`translate(${o}, ${n})`)}if(e.endLabelLeft){const a=xe.get(e.id).endLeft;let o=e.x,n=e.y;if(r){const c=tr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=c.x,n=c.y}a.attr("transform",`translate(${o}, ${n})`)}if(e.endLabelRight){const a=xe.get(e.id).endRight;let o=e.x,n=e.y;if(r){const c=tr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=c.x,n=c.y}a.attr("transform",`translate(${o}, ${n})`)}},"positionEdgeLabel"),rB=p((e,t)=>{var o;if(!(e!=null&&e.isLabelEdge)||!((o=e==null?void 0:e.id)!=null&&o.endsWith("-to-label"))||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,s=Math.abs(i.x-r.x),a=Math.abs(i.y-r.y);return s<.001||a<.001?t:a>=s?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),iB=p((e,t)=>{const r=e.x,i=e.y,s=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,n=e.height/2;return s>=o||a>=n},"outsideNode"),sB=p((e,t,r)=>{J.debug(`intersection calc abc89:
301  outsidePoint: ${JSON.stringify(t)}
302  insidePoint : ${JSON.stringify(r)}
303  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,a=Math.abs(i-r.x),o=e.width/2;let n=r.x<t.x?o-a:o+a;
303const c=e.height/2,l=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*o>Math.abs(i-t.x)*c){let u=r.y<t.y?t.y-c-s:s-c-t.y;n=h*u/l;const d={x:r.x<t.x?r.x+n:r.x-h+n,y:r.y<t.y?r.y+l-u:r.y-l+u};return n===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),l===0&&(d.y=t.y),J.debug(`abc89 top/bottom calc, Q ${l}, q ${u}, R ${h}, r ${n}`,d),d}else{r.x<t.x?n=t.x-o-i:n=i-o-t.x;let u=l*n/h,d=r.x<t.x?r.x+h-n:r.x-h+n,f=r.y<t.y?r.y+u:r.y-u;return J.debug(`sides calc abc89, Q ${l}, q ${u}, R ${h}, r ${n}`,{_x:d,_y:f}),n===0&&(d=t.x,f=t.y),h===0&&(d=t.x),l===0&&(f=t.y),{x:d,y:f}}},"intersection"),rf=p((e,t)=>{J.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(a=>{if(J.info("abc88 checking point",a,t),!iB(t,a)&&!s){const o=sB(t,i,a);J.debug("abc88 inside",a,i,o),J.debug("abc88 intersection",o,t);let n=!1;r.forEach(c=>{n=n||c.x===o.x&&c.y===o.y}),r.some(c=>c.x===o.x&&c.y===o.y)?J.warn("abc88 no intersect",o,r):r.push(o),s=!0}else J.warn("abc88 outside",a,i),i=a,s||r.push(a)}),J.debug("returning points",r),r},"cutPathAtIntersect");function Ny(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],a=e[i],o=e[i+1];(s.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5||s.y===a.y&&a.x===o.x&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Ny,"extractCornerPoints");var sf=p(function(e,t,r){const i=t.x-e.x,s=t.y-e.y,a=Math.sqrt(i*i+s*s),o=r/a;return{x:t.x-o*i,y:t.y-o*s}},"findAdjacentPoint"),aB=p(function(e){const{cornerPointPositions:t}=Ny(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const s=e[i-1],a=e[i+1],o=e[i],n=sf(s,o,5),c=sf(a,o,5),l=c.x-n.x,h=c.y-n.y;r.push(n);const u=Math.sqrt(2)*2;let d={x:o.x,y:o.y};if(Math.abs(a.x-s.x)>10&&Math.abs(a.y-s.y)>=10){J.debug("Corner point fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));const f=5;o.x===n.x?d={x:l<0?n.x-f+u:n.x+f-u,y:h<0?n.y-u:n.y+u}:d={x:l<0?n.x-u:n.x+u,y:h<0?n.y-f+u:n.y+f-u}}else J.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));r.push(d,c)}else r.push(e[i]);return r},"fixCorners"),oB=p((e,t,r)=>{const i=e-t-r,s=2,a=2,o=s+a,n=Math.floor(i/o),c=Number.isFinite(n)?Math.max(0,n):0,l=Array(c).fill(`${s} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),nB=p(function(e,t,r,i,s,a,o,n=!1){var U;if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:c,layout:l}=Ot();let h=t.points,u=!1;const d=s;var f=a;const g=[];for(const X in t.cssCompiledStyles)hg(X)||g.push(t.cssCompiledStyles[X]);if(l==="swimlane"){if(f.intersect&&d.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[d.intersect(h[0]),f.intersect(h[1])];else{const X=h.slice(1,-1),et=X[0],at=X[X.length-1],ct=.5,it=Math.abs(h[h.length-1].x-at.x)<ct&&Math.abs(h[h.length-1].y-at.y)<ct,xt=d.intersect(et),dt=it?at:f.intersect(at),Ft=Math.abs(dt.x-at.x)<ct&&Math.abs(dt.y-at.y)<ct,qt=Math.abs(xt.x-et.x)<ct&&Math.abs(xt.y-et.y)<ct?[]:[xt],ot=Ft?[]:[dt];h=[...qt,...X,...ot]}h=rB(t,h)}else f.intersect&&d.intersect&&!n&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),h.push(f.intersect(h[h.length-1])));const C=btoa(JSON.stringify(h));t.toCluster&&(J.info("to cluster abc88",r.get(t.toCluster)),h=rf(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(J.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=rf(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let x=h.filter(X=>!Number.isNaN(X.y));const y=J_(t.curve);y!=="rounded"&&(x=aB(x));let b=Ks;switch(y){case"linear":b=Ks;break;case"basis":b=Nl;break;case"cardinal":b=Vg;break;case"bumpX":b=jg;break;case"bumpY":b=Yg;break;case"catmullRom":b=Zg;break;case"monotoneX":b=ip;break;case"monotoneY":b=sp;break;case"natural":b=op;break;case"step":b=np;break;case"stepAfter":b=hp;break;case"stepBefore":b=lp;break;case"rounded":b=Ks;break;default:b=Nl}const{x:w,y:T}=V_(t),_=$w().x(w).y(T).curve(b);let B;switch(t.thickness){case"normal":B="edge-thickness-normal";break;case"thick":B="edge-thickness-thick";break;case"invisible":B="edge-thickness-invisible";break;default:B="edge-thickness-normal"}switch(t.pattern){case"solid":B+=" edge-pattern-solid";break;case"dotted":B+=" edge-pattern-dotted";break;case"dashed":B+=" edge-pattern-dashed";break;default:B+=" edge-pattern-solid"}let v,F=y==="rounded"?Wy(zy(x,t),5):_(x);const q=Array.isArray(t.style)?t.style:[t.style];let I=q.find(X=>X==null?void 0:X.startsWith("stroke:")),P="";t.animate&&(P="edge-animation-fast"),t.animation&&(P="edge-animation-"+t.animation);let tt=!1;if(t.look==="handDrawn"){const X=gt.svg(e);Object.assign([],x);const et=X.path(F,{roughness:.3,seed:c});B+=" transition",v=$t(et).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+B+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",q?q.reduce((ct,it)=>ct+";"+it,""):"");let at=v.attr("d");v.attr("d",at),e.node().appendChild(v.node())}else{const X=g.join(";"),et=q?q.reduce((Ft,_t)=>Ft+_t+";",""):"",at=(X?X+";"+et+";":et)+";"+(q?q.reduce((Ft,_t)=>Ft+";"+_t,""):"");v=e.append("path").attr("d",F).attr("id",`${o}-${t.id}`).attr("class"," "+B+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",at),I=(U=at.match(/stroke:([^;
vendor: 9,818 bytes, line 303
303]+)/))==null?void 0:U[1],tt=t.animate===!0||!!t.animation||X.includes("animation");const ct=v.node(),it=typeof ct.getTotalLength=="function"?ct.getTotalLength():0,xt=tf[t.arrowTypeStart]||0,dt=tf[t.arrowTypeEnd]||0;if(t.look==="neo"&&!tt){const _t=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?oB(it,xt,dt):`0 ${xt} ${it-xt-dt} ${dt}`}; stroke-dashoffset: 0;`;v.attr("style",_t+v.attr("style"))}}v.attr("data-edge",!0),v.attr("data-et","edge"),v.attr("data-id",t.id),v.attr("data-points",C),v.attr("data-look",re(t.look)),t.showPoints&&x.forEach(X=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",X.x).attr("cy",X.y)});let Y="";(Ot().flowchart.arrowMarkerAbsolute||Ot().state.arrowMarkerAbsolute)&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),J.info("arrowTypeStart",t.arrowTypeStart),J.info("arrowTypeEnd",t.arrowTypeEnd);const E=!tt&&(t==null?void 0:t.look)==="neo";K_(v,t,Y,o,i,E,I);const M=Math.floor(h.length/2),A=h[M];tr.isLabelCoordinateInPath(A,v.attr("d"))||(u=!0);let j={};return u&&(j.updatedPath=h),j.originalPath=t.points,j},"insertEdge");function Wy(e,t){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let a=0;a<i;a++){const o=e[a],n=e[a-1],c=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const l=o.x-n.x,h=o.y-n.y,u=c.x-o.x,d=c.y-o.y,f=Math.hypot(l,h),g=Math.hypot(u,d);if(f<s||g<s){r+=`L${o.x},${o.y}`;continue}const C=l/f,x=h/f,y=u/g,b=d/g,w=C*y+x*b,T=Math.max(-1,Math.min(1,w)),_=Math.acos(T);if(_<s||Math.abs(Math.PI-_)<s){r+=`L${o.x},${o.y}`;continue}const B=Math.min(t/Math.sin(_/2),f/2,g/2),v=o.x-C*B,F=o.y-x*B,q=o.x+y*B,I=o.y+b*B;r+=`L${v},${F}`,r+=`Q${o.x},${o.y} ${q},${I}`}}return r}p(Wy,"generateRoundedPath");function ih(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(ih,"calculateDeltaAndAngle");function zy(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&Te[t.arrowTypeStart]){const s=Te[t.arrowTypeStart],a=e[0],o=e[1],{angle:n}=ih(a,o),c=s*Math.cos(n),l=s*Math.sin(n);r[0].x=a.x+c,r[0].y=a.y+l}const i=e.length;if(i>=2&&Te[t.arrowTypeEnd]){const s=Te[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:n}=ih(o,a),c=s*Math.cos(n),l=s*Math.sin(n);r[i-1].x=a.x-c,r[i-1].y=a.y-l}return r}p(zy,"applyMarkerOffsetsToPoints");var lB=p((e,t,r,i)=>{t.forEach(s=>{MB[s](e,r,i)})},"insertMarkers"),hB=p((e,t,r)=>{J.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",17.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),cB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),uB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),fB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),gB=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",7.75).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").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",4).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
303ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).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"),pB=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",10.75).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").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).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"),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"),mB=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").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").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"),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"),yB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",20).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"),CB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{transitionColor:a}=s;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"),xB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),bB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s;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"),kB=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),wB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s,o=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");o.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const n=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");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),n.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),TB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),SB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s;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"),_B=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s,o=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");o.append("circle").attr("fill","white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const n=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");n.append("circle").attr("fill","white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),BB=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),vB=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d",`M0,0
304      L20,10
305      M20,10
306      L0,20`)},"requirement_arrow"),LB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s;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
307      L20,10
308      M20,10
309      L0,20`).attr("stroke-linejoin","miter")}
309,"requirement_arrow_neo"),FB=p((e,t,r)=>{const 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)},"requirement_contains"),AB=p((e,t,r)=>{const i=Qt(),{themeVariables:s}=i,{strokeWidth:a}=s,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),EB=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),MB={extension:hB,composition:cB,aggregation:uB,dependency:dB,lollipop:fB,point:gB,circle:pB,cross:mB,barb:yB,barbNeo:CB,hierarchy:EB,only_one:xB,zero_or_one:kB,one_or_more:TB,zero_or_more:BB,only_one_neo:bB,zero_or_one_neo:wB,one_or_more_neo:SB,zero_or_more_neo:_B,requirement_arrow:vB,requirement_contains:FB,requirement_arrow_neo:LB,requirement_contains_neo:AB},$B=lB,OB={common:pa,getConfig:Qt,insertCluster:X_,insertEdge:nB,insertEdgeLabel:tB,insertMarkers:$B,insertNode:Ry,interpolateToCurve:ic,labelHelper:Tt,log:J,positionEdgeLabel:eB},IB=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],aa=Object.create(null),Hy=p(e=>{for(const t of e)aa[t.name]=t},"registerLayoutLoaders"),DB=p(()=>{const e=p(async()=>await It(()=>import("./yb0T6kEh.js"),__vite__mapDeps([0,1,2,3,4])),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...IB.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),PB=p(()=>{Hy([{name:"dagre",loader:p(async()=>await It(()=>import("./Bwm72XnK.js"),__vite__mapDeps([5,2,3,4])),"loader")},{name:"fixed",loader:p(async()=>await It(()=>import("./CrQFM7IO.js"),[]),"loader")},{name:"swimlane",loader:p(async()=>await It(()=>import("./CKMgSZ4E.js"),__vite__mapDeps([6,1,2,3,4])),"loader")},{name:"cose-bilkent",loader:p(async()=>await It(()=>import("./DTrYq5sy.js"),__vite__mapDeps([7,8,9])),"loader")},...DB()])},"registerDefaultLayoutLoaders");PB();var i$=p(async(e,t,r)=>{if(!Object.hasOwn(aa,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const o=a.domId||a.id;a.domId=`${e.diagramId}-${o}`}const i=aa[e.layoutAlgorithm],s=await i.loader();return ix(t,e.config),s.render(e,t,OB,{algorithm:i.algorithm},r)},"render"),xl="dagre",s$=p((e="",{fallback:t=xl}={})=>{if(Object.hasOwn(aa,e))return e;for(const r of[t,xl])if(Object.hasOwn(aa,r))return J.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${xl} is registered.`)},"getRegisteredLayoutAlgorithm"),RB=p(e=>{var s;const{securityLevel:t}=Ot();let r=$t("body");if(t==="sandbox"){const o=((s=$t(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=$t(o.body)}return r.select(`#${e}`)},"selectSvgElement"),vc="comm",jy="rule",Yy="decl",qB="@media",NB="@import",WB="@supports",zB="@namespace",sh="@keyframes",Uy="@layer",HB="@scope",Gy=Math.abs,Lc=String.fromCharCode;function Xy(e){return e.trim()}function lo(e,t,r){return e.replace(t,r)}function jB(e,t,r){return e.indexOf(t,r)}function zi(e,t){return e.charCodeAt(t)|0}function fs(e,t,r){return e.slice(t,r)}function ur(e){return e.length}function Vy(e){return e.length}function Za(e,t){return t.push(e),e}var ln=1,gs=1,Ky=0,Ye=0,le=0,ks="";function Fc(e,t,r,i,s,a,o,n){return{value:e,root:t,parent:r,type:i,props:s,children:a,line:ln,column:gs,length:o,return:"",siblings:n}}function YB(){return le}function UB(){return le=Ye>0?zi(ks,--Ye):0,gs--,le===10&&(gs=1,ln--),le}function er(){return le=Ye<Ky?zi(ks,Ye++):0,gs++,le===10&&(gs=1,ln++),le}function Gr(){return zi(ks,Ye)}function ho(){return Ye}function hn(e,t){return fs(ks,e,t)}function oa(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 GB(e){return ln=gs=1,Ky=ur(ks=e),Ye=0,[]}function XB(e){return ks="",e}function bl(e){return Xy(hn(Ye-1,ah(e===91?e+2:e===40?e+1:e)))}function VB(e){for(;(le=Gr())&&le<33;)er();return oa(e)>2||oa(le)>3?"":" "}function KB(e,t){for(;--t&&er()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return hn(e,ho()+(t<6&&Gr()==32&&er()==32))}function ah(e){for(;er();)switch(le){case e:return Ye;case 34:case 39:e!==34&&e!==39&&ah(le);break;case 40:e===41&&ah(e);break;case 92:er();break}return Ye}function ZB(e,t){for(;er()&&e+le!==57;)if(e+le===84&&Gr()===47)break;return"/*"+hn(t,Ye-1)+"*"+Lc(e===47?e:er())}function QB(e){for(;!oa(Gr());)er();return hn(e,Ye)}function JB(e){return XB(co("",null,null,null,[""],e=GB(e),0,[0],e))}function co(e,t,r,i,s,a,o,n,c){for(var l=0,h=0,u=o,d=0,f=0,g=0,C=1,x=1,y=1,b=0,w="",T=s,_=a,B=i,v=w;x;)switch(g=b,b=er()){case 40:if(g!=108&&zi(v,u-1)==58){jB(v+=lo(bl(b),"&","&\f"),"&\f",Gy(l?n[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:v+=bl(b);break;case 9:case 10:case 13:case 32:v+=VB(g);break;case 92:v+=KB(ho()-1,7);continue;case 47:switch(Gr()){case 42:case 47:Za(tv(ZB(er(),ho()),t,r,c),c),(oa(g||1)==5||oa(Gr()||1)==5)&&ur(v)&&fs(v,-1,void 0)!==" "&&(v+=" ");break;default:v+="/"}break;case 123*C:n[l++]=ur(v)*y;case 125*C:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+h:y==-1&&(v=lo(v,/\f/g,"")),f>0&&(ur(v)-u||C===0&&g===47)&&Za(f>32?of(v+";",i,r,u-1,c):of(lo(v," ","")+";",i,r,u-2,c),c);break;case 59:v+=";";default:if(Za(B=af(v,t,r,l,h,s,n,w,T=[],_=[],u,a),a),b===123)if(h===0)co(v,t,B,B,T,a,u,n,_);else{switch(d){case 99:if(zi(v,3)===110)break;case 108:if(zi(v,2)===97)break;default:h=0;case 100:case 109:case 115:}h?co(e,B,B,i&&Za(af(e,B,B,0,0,s,n,w,s,T=[],u,_),_),s,_,u,n,i?T:_):co(v,B,B,B,[""],_,0,n,_)}}l=h=f=0,C=y=1,w=v="",u=o;break;case 58:u=1+ur(v),f=g;default:if(C<1){if(b==123)--C;else if(b==125&&C++==0&&UB()==125)continue}switch(v+=Lc(b),b*C){case 38:y=h>0?1:(v+="\f",-1);break;case 44:n[l++]=(ur(v)-1)*y,y=1;break;case 64:Gr()===45&&(v+=bl(er())),d=Gr(),h=u=ur(w=v+=QB(ho())),b++;break;case 45:g===45&&ur(v)==2&&(C=0)}}return a}function af(e,t,r,i,s,a,o,n,c,l,h,u){for(var d=s-1,f=s===0?a:[""],g=Vy(f),C=0,x=0,y=0;C<i;++C)for(var b=0,w=fs(e,d+1,d=Gy(x=o[C])),T=e;b<g;++b)(T=Xy(x>0?f[b]+" "+w:lo(w,/&\f/g,f[b])))&&(c[y++]=T);return Fc(e,t,r,s===0?jy:n,c,l,h,u)}
309function tv(e,t,r,i){return Fc(e,t,r,vc,Lc(YB()),fs(e,2,-2),0,i)}function of(e,t,r,i,s){return Fc(e,t,r,Yy,fs(e,0,i),fs(e,i+1,-1),i,s)}function oh(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function ev(e,t,r,i){switch(e.type){case Uy:if(e.children.length)break;case NB:case zB:case Yy:return e.return=e.return||e.value;case vc:return"";case sh:return e.return=e.value+"{"+oh(e.children,i)+"}";case jy:if(!ur(e.value=e.props.join(",")))return""}return ur(r=oh(e.children,i))?e.return=e.value+"{"+r+"}":""}function rv(e){var t=Vy(e);return function(r,i,s,a){for(var o="",n=0;n<t;n++)o+=e[n](r,i,s,a)||"";return o}}var Zy="c4",iv=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),sv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CQ-HAyO-.js");return{diagram:t}},__vite__mapDeps([10,11]));return{id:Zy,diagram:e}},"loader"),av={id:Zy,detector:iv,loader:sv},ov=av,Qy="flowchart-v2",nv=p(e=>/^\s*(graph|flowchart)/.test(e),"detector"),lv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./Bvmn2D4F.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([12,13,14,15,11,16,17]));return{id:Qy,diagram:e}},"loader"),hv={id:Qy,detector:nv,loader:lv},cv=hv,Jy="agentflow",uv=p(e=>/^\s*agentflow-beta\b/.test(e),"detector"),dv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./z7ACBgb9.js");return{diagram:t}},__vite__mapDeps([18,13,14,15,11,17]));return{id:Jy,diagram:e}},"loader"),fv={id:Jy,detector:uv,loader:dv},gv=fv,t0="swimlane",pv=p(e=>/^\s*swimlane-beta\b/.test(e),"detector"),mv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BfN__vMw.js");return{diagram:t}},__vite__mapDeps([19,12,13,14,15,11,16,17]));return{id:t0,diagram:e}},"loader"),yv={id:t0,detector:pv,loader:mv},Cv=yv,e0="er",xv=p(e=>/^\s*erDiagram/.test(e),"detector"),bv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./Boa7yHJY.js");return{diagram:t}},__vite__mapDeps([20,14,15,17]));return{id:e0,diagram:e}},"loader"),kv={id:e0,detector:xv,loader:bv},wv=kv,r0="gitGraph",Tv=p(e=>/^\s*gitGraph/.test(e),"detector"),Sv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./E71Nf0pk.js");return{diagram:t}},__vite__mapDeps([21,22,23,24,3]));return{id:r0,diagram:e}},"loader"),_v={id:r0,detector:Tv,loader:Sv},Bv=_v,i0="gantt",vv=p(e=>/^\s*gantt/.test(e),"detector"),Lv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BNc77Kty.js");return{diagram:t}},__vite__mapDeps([25,26,27,28]));return{id:i0,diagram:e}},"loader"),Fv={id:i0,detector:vv,loader:Lv},Av=Fv,s0="info",Ev=p(e=>/^\s*info/.test(e),"detector"),Mv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CZ21Yx7k.js");return{diagram:t}},__vite__mapDeps([29,24,3]));return{id:s0,diagram:e}},"loader"),$v={id:s0,detector:Ev,loader:Mv},a0="pie",Ov=p(e=>/^\s*pie/.test(e),"detector"),Iv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CD5PGJl5.js");return{diagram:t}},__vite__mapDeps([30,23,24,3,31,32,27]));return{id:a0,diagram:e}},"loader"),Dv={id:a0,detector:Ov,loader:Iv},o0="quadrantChart",Pv=p(e=>/^\s*quadrantChart/.test(e),"detector"),Rv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BWNIguB_.js");return{diagram:t}},__vite__mapDeps([33,26,27,28]));return{id:o0,diagram:e}},"loader"),qv={id:o0,detector:Pv,loader:Rv},Nv=qv,n0="xychart",Wv=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),zv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./DSaixN32.js");return{diagram:t}},__vite__mapDeps([34,27,32,26,28]));return{id:n0,diagram:e}},"loader"),Hv={id:n0,detector:Wv,loader:zv},jv=Hv,l0="requirement",Yv=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),Uv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./Cw06MTgV.js");return{diagram:t}},__vite__mapDeps([35,14,15]));return{id:l0,diagram:e}},"loader"),Gv={id:l0,detector:Yv,loader:Uv},Xv=Gv,h0="sequence",Vv=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Kv=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./D58fjdpI.js");return{diagram:t}},__vite__mapDeps([36,22,11,16]));return{id:h0,diagram:e}}
309,"loader"),Zv={id:h0,detector:Vv,loader:Kv},Qv=Zv,c0="classDiagram",Jv=p(e=>/^\s*classDiagram/.test(e),"detector"),tL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CJ09F9dJ.js");return{diagram:t}},__vite__mapDeps([37,13,14,15,11]));return{id:c0,diagram:e}},"loader"),eL={id:c0,detector:Jv,loader:tL},rL=eL,u0="stateDiagram",iL=p(e=>/^\s*stateDiagram/.test(e),"detector"),sL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BaNi5xNN.js");return{diagram:t}},__vite__mapDeps([38,14,15,11]));return{id:u0,diagram:e}},"loader"),aL={id:u0,detector:iL,loader:sL},oL=aL,d0="journey",nL=p(e=>/^\s*journey/.test(e),"detector"),lL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./XFjqbu2L.js");return{diagram:t}},__vite__mapDeps([39,13,11,31]));return{id:d0,diagram:e}},"loader"),hL={id:d0,detector:nL,loader:lL},cL=hL,uL=p((e,t,r)=>{J.debug(`rendering svg for syntax error
310`);const i=RB(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),lg(i,100,512,!0),s.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"),s.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"),s.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"),s.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.
310164-16,16v32c0,8.836 7.156,16 16,16z"),s.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"),s.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"),s.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"),s.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"),f0={draw:uL},dL=f0,fL={db:{},renderer:f0,parser:{parse:p(()=>{},"parse")}},gL=fL,g0="flowchart-elk",pL=p((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),mL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./Bvmn2D4F.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([12,13,14,15,11,16,17]));return{id:g0,diagram:e}},"loader"),yL={id:g0,detector:pL,loader:mL}
310,CL=yL,p0="timeline",xL=p(e=>/^\s*timeline/.test(e),"detector"),bL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./C4Ehfrc_.js");return{diagram:t}},__vite__mapDeps([40,31]));return{id:p0,diagram:e}},"loader"),kL={id:p0,detector:xL,loader:bL},wL=kL,m0="mindmap",TL=p(e=>/^\s*mindmap/.test(e),"detector"),SL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./-1udqLO1.js");return{diagram:t}},__vite__mapDeps([41,14,15,8,9]));return{id:m0,diagram:e}},"loader"),_L={id:m0,detector:TL,loader:SL},BL=_L,y0="kanban",vL=p(e=>/^\s*kanban/.test(e),"detector"),LL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BBxIFj5N.js");return{diagram:t}},__vite__mapDeps([42,13]));return{id:y0,diagram:e}},"loader"),FL={id:y0,detector:vL,loader:LL},AL=FL,C0="sankey",EL=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),ML=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./V-2g10fG.js");return{diagram:t}},__vite__mapDeps([43,32,27]));return{id:C0,diagram:e}},"loader"),$L={id:C0,detector:EL,loader:ML},OL=$L,x0="packet",IL=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),DL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./D_bKlyT_.js");return{diagram:t}},__vite__mapDeps([44,23,24,3]));return{id:x0,diagram:e}},"loader"),PL={id:x0,detector:IL,loader:DL},b0="radar",RL=p(e=>/^\s*radar-beta/.test(e),"detector"),qL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./zb3mNWnD.js");return{diagram:t}},__vite__mapDeps([45,23,24,3]));return{id:b0,diagram:e}},"loader"),NL={id:b0,detector:RL,loader:qL},k0="block",WL=p(e=>/^\s*block(-beta)?/.test(e),"detector"),zL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BSquQnjc.js");return{diagram:t}},__vite__mapDeps([46,13,4,17]));return{id:k0,diagram:e}},"loader"),HL={id:k0,detector:WL,loader:zL},jL=HL,w0="treeView",YL=p(e=>/^\s*treeView-beta/.test(e),"detector"),UL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./D3XoOS_9.js");return{diagram:t}},__vite__mapDeps([47,22,23,24,3]));return{id:w0,diagram:e}},"loader"),GL={id:w0,detector:YL,loader:UL},XL=GL,T0="architecture",VL=p(e=>/^\s*architecture/.test(e),"detector"),KL=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./i4qWY-5W.js");return{diagram:t}},__vite__mapDeps([48,23,24,3,8]));return{id:T0,diagram:e}},"loader"),ZL={id:T0,detector:VL,loader:KL},QL=ZL,S0="eventmodeling",JL=p(e=>/^\s*eventmodeling/.test(e),"detector"),tF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./C1Bu0sCJ.js");return{diagram:t}},__vite__mapDeps([49,23,24,3]));return{id:S0,diagram:e}},"loader"),eF={id:S0,detector:JL,loader:tF},rF=eF,_0="ishikawa",iF=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),sF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./DzpUj41U.js");return{diagram:t}},[]);return{id:_0,diagram:e}},"loader"),aF={id:_0,detector:iF,loader:sF},B0="venn",oF=p(e=>/^\s*venn-beta/.test(e),"detector"),nF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./ByYivHSI.js");return{diagram:t}},[]);return{id:B0,diagram:e}},"loader"),lF={id:B0,detector:oF,loader:nF},hF=lF,v0="treemap",cF=p(e=>/^\s*treemap/.test(e),"detector"),uF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CIlIG_8K.js");return{diagram:t}},__vite__mapDeps([50,15,23,24,3,28,32,27]));return{id:v0,diagram:e}},"loader"),dF={id:v0,detector:cF,loader:uF},L0="usecase",fF=p(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),gF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./BtvZFUuC.js");return{diagram:t}},__vite__mapDeps([51,14,15]));return{id:L0,diagram:e}},"loader"),pF={id:L0,detector:fF,loader:gF},F0="wardley",mF=p(e=>/^\s*wardley-beta/i.test(e),"detector"),yF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./DZKf3rI9.js");return{diagram:t}},__vite__mapDeps([52,23,24,3]));return{id:F0,diagram:e}},"loader"),CF={id:F0,detector:mF,loader:yF},xF=CF,A0="cynefin",bF=p(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),kF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}
310=await import("./D20CiN05.js");return{diagram:t}},__vite__mapDeps([53,23,24,3]));return{id:A0,diagram:e}},"loader"),wF={id:A0,detector:bF,loader:kF},E0="railroad",TF=p(e=>/^\s*railroad-beta/i.test(e),"detector"),SF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./49N_1tCk.js");return{diagram:t}},__vite__mapDeps([54,55,23,24,3]));return{id:E0,diagram:e}},"loader"),_F={id:E0,detector:TF,loader:SF},M0="railroadEbnf",BF=p(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),vF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./CVHy0ZLt.js");return{diagram:t}},__vite__mapDeps([56,55,23,24,3]));return{id:M0,diagram:e}},"loader"),LF={id:M0,detector:BF,loader:vF},$0="railroadAbnf",FF=p(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),AF=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./DWfnq_jb.js");return{diagram:t}},__vite__mapDeps([57,55,23,24,3]));return{id:$0,diagram:e}},"loader"),EF={id:$0,detector:FF,loader:AF},O0="railroadPeg",MF=p(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),$F=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./DxgUO8P7.js");return{diagram:t}},__vite__mapDeps([58,55,23,24,3]));return{id:O0,diagram:e}},"loader"),OF={id:O0,detector:MF,loader:$F},nf=!1,cn=p(()=>{nf||(nf=!0,wo("error",gL,e=>e.toLowerCase().trim()==="error"),wo("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Sl(CL,BL,QL),Sl(gv,ov,AL,rL,wv,Av,$v,Dv,Xv,Qv,Cv,cv,wL,Bv,oL,cL,Nv,OL,PL,jv,jL,rF,XL,NL,aF,dF,_F,LF,EF,OF,hF,xF,wF,pF))},"addDiagrams"),IF=p(async()=>{J.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Qe).map(async([r,{detector:i,loader:s}])=>{if(s)try{Fl(r)}catch{try{const{diagram:a,id:o}=await s();wo(o,a,i)}catch(a){throw J.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Qe[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){J.error(`Failed to load ${t.length} external diagrams`);for(const r of t)J.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),DF="graphics-document document";function I0(e,t){e.attr("role",DF),t!==""&&e.attr("aria-roledescription",t)}p(I0,"setA11yDiagramInfo");function D0(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}p(D0,"addSVGa11yTitleDescription");var gi,Ho=(gi=class{constructor(t,r,i,s,a){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(t,r={}){var x,y,b,w,T;const i=typeof t=="string"?{raw:t,cleaned:t}:t,s=Qt(),a=Xo(i.cleaned,s);try{Fl(a)}catch{const _=yx(a);if(!_)throw new Gf(`Diagram ${a} not found.`);const{id:B,diagram:v}=await _();wo(B,v)}const{db:o,parser:n,renderer:c,init:l,getParser:h}=Fl(a),u=a.replace(/-v2$/,""),d=(x=s[u])==null?void 0:x.parser,f=(d&&(h==null?void 0:h(d)))??n;f.parser&&(f.parser.yy=o),(y=o.clear)==null||y.call(o),l==null||l(s),r.title&&((b=o.setDiagramTitle)==null||b.call(o,r.title));let g=i.cleaned;if((w=f.features)!=null&&w.processRawText)g=i.raw;else if(o.preserveCommentsWhenParsing&&i.withComments){const _=s.maxTextSize??Oh.maxTextSize;i.withComments.length>_?J.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${_}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):g=i.withComments}const C=OT(g)+`
311`;return i.frontmatterLineOffset&&((T=o.setFrontmatterLineOffset)==null||T.call(o,i.frontmatterLineOffset)),await f.parse(C),new gi(a,C,o,f,c)}async render(t,r,i){if(Qt().securityLevel==="parseOnly"){J.warn("Cannot render diagram in parseOnly mode");return}await this.renderer.draw(this.text,t,r,this,i)}getParser(){return this.parser}getType(){return this.type}},p(gi,"Diagram"),gi),lf=[],PF=p(()=>
311{lf.forEach(e=>{e()}),lf=[]},"attachFunctions"),RF=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function P0(e){const t=e.match(mo);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
312`).map(o=>o.startsWith(r)?o.slice(r.length):o).join(`
313`):t[2];let s=rx(i,{schema:ex})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const a={};return s.displayMode&&(a.displayMode=s.displayMode.toString()),s.title&&(a.title=s.title.toString()),s.config&&(a.config=s.config),{text:e.slice(t[0].length),metadata:a}}p(P0,"extractFrontMatter");var qF=p(e=>e.replace(/\r\n?/g,`
314`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),NF=p(e=>{const{text:t,metadata:r}=P0(e),{displayMode:i,title:s,config:a={}}=r;return i&&(a.gantt??(a.gantt={}),a.gantt.displayMode=i),{title:s,config:a,text:t}},"processFrontmatter"),WF=p(e=>{const t=tr.detectInit(e)??{},r=tr.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:kT(e),directive:t}},"processDirectives");function Ac(e){const t=e,r=qF(e),i=NF(r),s=WF(i.text),a=lc(i.config,s.directive),o=s.text,n=RF(o),c=r.length>i.text.length?(r.substring(0,r.length-i.text.length).match(/\n/g)??[]).length:0;return{code:{raw:t,cleaned:n,withComments:o,frontmatterLineOffset:c},title:i.title,config:a}}p(Ac,"preprocessDiagram");function R0(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(R0,"toBase64");var zF=1e5,HF="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",jF="sandbox",YF="loose",UF="http://www.w3.org/2000/svg",GF="http://www.w3.org/1999/xlink",XF="http://www.w3.org/1999/xhtml",VF="100%",KF="100%",ZF="border:0;margin:0;",QF="margin:0",JF="allow-top-navigation-by-user-activation allow-popups",tA='The "iframe" tag is not supported by your browser.',eA=["foreignobject"],rA=["dominant-baseline"];function Ec(e){const t=Ac(e);bo();let r;try{r=Xo(t.code.cleaned,Qt())}catch{r=void 0}return Ih(r),eb(t.config??{}),t}p(Ec,"processAndSetConfigs");async function q0(e,t){cn();try{const{code:r,config:i,title:s}=Ec(e);return J.debug("code",r),{diagram:await Ho.fromText(r,{title:s}),code:r.cleaned,config:i,title:s,success:!0}}catch(r){if(t!=null&&t.suppressErrors)return{code:"",config:{},success:!1,error:r};throw r}finally{Ih(void 0)}}p(q0,"parse");var hf=p((e,t,r=[])=>{const i=Qf(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),iA=p((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=me(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(c=>{dd(c.styles)||n.forEach(l=>{r.insertRule(hf(c.id,l,c.styles),r.cssRules.length)}),dd(c.textStyles)||r.insertRule(hf(c.id,"tspan",((c==null?void 0:c.textStyles)||[]).map(l=>l.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const s=new CSSStyleSheet;s.replaceSync(e.themeCSS),i=Ll(s)+`
315`}else i+=`${e.themeCSS}
316`;return i+Ll(r)},"createCssStyles"),sA=p((e,t)=>oh(JB(`${e}{${t}}`),rv([p(function(i,s,a,o){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===sh)return;i.props=i.props.map(n=>n===e&&Array.isArray(i.children)&&i.children.every(l=>l.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(l.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[qB,WB,Uy,HB,"@container","@starting-style"],sh].includes(i.type)||(J.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=vc))},"addNamespace"),ev])),"compileCSS"),aA=p((e,t,r,i)=>{const s=iA(e,r),a=Fb(t,s,{...e.themeVariables,theme:e.theme,look:e.look},i);return sA(i,a)},"createUserStyles"),oA=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Zr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),nA=p((e="",t)=>{var s,a;const r=(a=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":KF,i=R0(`<body style="${QF}">${e}</body>`);return`<iframe style="width:${VF};height:${r};${ZF}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${JF}">
317  ${tA}
318</iframe>`},"putIntoIFrame"),cf=p((e,t,r,i,s)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",UF);return s&&o.attr("xmlns:xlink",s),o.append("g"),e},"appendDivSvgG");function nh(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(nh,"sandboxedIframe");var lA=p((e,t,r,i)=>{var s,a,o;
318(s=e.getElementById(t))==null||s.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),hA=p(async function(e,t,r,i){var A,j,U,X,et,at;cn();const s=Ec(t);let a=s.code,o=a.cleaned;const n=Qt();if(J.debug(n),n.securityLevel==="parseOnly")return J.warn("Cannot render diagram in parseOnly mode"),{svg:"<!-- security level is parseOnly -->",diagramType:"unknown"};o.length>((n==null?void 0:n.maxTextSize)??zF)&&(o=HF,a={raw:o,cleaned:o});const c=`#${e}`,l="i"+e,h="#"+l,u="d"+e,d="#"+u,f=p(()=>{const it=$t(C?h:d).node();it&&"remove"in it&&it.remove()},"removeTempElements");let g=$t(document.body);const C=n.securityLevel===jF,x=n.securityLevel===YF,y=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),C){const ct=nh($t(r),l);g=$t(ct.nodes()[0].contentDocument.body),g.node().style.margin="0"}else g=$t(r);cf(g,e,u,`font-family: ${y}`,GF)}else{if(lA(document,e,u,l),C){const ct=nh($t(document.body),l);g=$t(ct.nodes()[0].contentDocument.body),g.node().style.margin="0"}else g=$t("body");cf(g,e,u)}let b,w;try{b=await Ho.fromText(a,{title:s.title})}catch(ct){if(n.suppressErrorRendering)throw f(),ct;b=await Ho.fromText("error"),w=ct}
318const T=g.select(d).node(),_=b.type,B=T.firstChild,v=B.firstChild,F=(j=(A=b.renderer).getClasses)==null?void 0:j.call(A,o,b),q=aA(n,_,F,c),I=document.createElement("style");I.innerHTML=q,B.insertBefore(I,v);try{await b.renderer.draw(o,e,"12.0.0-a.2",b,i)}catch(ct){throw n.suppressErrorRendering?f():dL.draw(o,e,"12.0.0-a.2"),ct}const P=g.select(`${d} svg`),tt=(X=(U=b.db).getAccTitle)==null?void 0:X.call(U),Y=(at=(et=b.db).getAccDescription)==null?void 0:at.call(et);W0(_,P,tt,Y);const M=p(()=>{g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",XF);let ct=g.select(d).node().innerHTML;if(J.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),ct=oA(ct,C,pr(n.arrowMarkerAbsolute)),C){const it=g.select(d+" svg").node();ct=nA(ct,it)}else x||(ct=cs.sanitize(ct,{ADD_TAGS:eA,ADD_ATTR:rA,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return PF(),ct},"serializeSvg")();if(w)throw w;return f(),{diagramType:_,svg:M,bindFunctions:b.db.bindFunctions}},"renderDiagram"),cA=p(async function(e,t,r,i){try{return await hA(e,t,r,i)}finally{Ih(void 0)}},"render");function N0(e={}){var s;const t=he({},e);t!=null&&t.fontFamily&&!((s=t.themeVariables)!=null&&s.fontFamily)&&(t.themeVariables??(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Jx(t);const r=Vr.theme;t!=null&&t.theme&&Object.hasOwn(Er,t.theme)?t.themeVariables=Er[t.theme].getThemeVariables(t.themeVariables):t&&(t.theme!=null&&t.theme!=="null"&&(t.theme=r),t.themeVariables=Er[r].getThemeVariables(t.themeVariables));const i=typeof t=="object"?Qx(t):Jf();$h(i.logLevel),cn()}p(N0,"initialize");var uA=p((e,t={})=>{const{code:r}=Ac(e);return Ho.fromText(r,t)},"getDiagramFromText");function W0(e,t,r,i){I0(t,e),D0(t,r,i,t.attr("id"))}p(W0,"addA11yInfo");var Ci=Object.freeze({render:cA,parse:q0,getDiagramFromText:uA,initialize:N0,getConfig:Qt,setConfig:tg,getSiteConfig:Jf,updateSiteConfig:tb,reset:p(()=>{bo()},"reset"),globalReset:p(()=>{bo(Vr)},"globalReset"),defaultConfig:Vr});$h(Qt().logLevel);bo(Qt());var dA=p((e,t,r)=>{J.warn(e),nc(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"),z0=p(async function(e={querySelector:".mermaid"}){try{await fA(e)}catch(t){if(nc(t)&&J.error(t.str),Oe.parseError&&Oe.parseError(t),!e.suppressErrors)throw J.error("Use the suppressErrors option to suppress these errors"),t}},"run"),fA=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Ci.getConfig();J.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");J.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(J.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Ci.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new tr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const n=[];for(const c of Array.from(s)){if(J.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const l=`mermaid-${a.next()}`;o=c.innerHTML,o=Dp(tr.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=tr.detectInit(o);h&&J.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await U0(l,o,c,void 0);c.innerHTML=u,e&&await e(l),d&&d(c)}catch(u){dA(u,n,Oe.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),H0=p(function(e){Ci.initialize(e)},"initialize"),gA=p(async function(e,t,r){J.warn("mermaid.init is deprecated. Please use run instead."),e&&H0(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await z0(i)},"init"),pA=p(async(e,{lazyLoad:t=!0}={})=>{cn(),Sl(...e),t===!1&&await IF()},"registerExternalDiagrams"),j0=p(function(){if(Oe.startOnLoad){const{startOnLoad:e}=Ci.getConfig();e&&Oe.run().catch(t=>J.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",j0,!1);var mA=p(function(e){Oe.parseError=e},"setParseErrorHandler"),jo=[],kl=!1,Y0=p(async()=>
318{if(!kl){for(kl=!0;jo.length>0;){const e=jo.shift();if(e)try{await e()}catch(t){J.error("Error executing queue",t)}}kl=!1}},"executeQueue"),yA=p(async(e,t)=>new Promise((r,i)=>{const s=p(()=>new Promise((a,o)=>{Ci.parse(e,t).then(n=>{a(n),r(n)},n=>{var c;J.error("Error parsing",n),(c=Oe.parseError)==null||c.call(Oe,n),o(n),i(n)})}),"performCall");jo.push(s),Y0().catch(i)}),"parse"),U0=p((e,t,r,i)=>new Promise((s,a)=>{const o=p(()=>new Promise((n,c)=>{Ci.render(e,t,r,i).then(l=>{n(l),s(l)},l=>{var h;J.error("Error parsing",l),(h=Oe.parseError)==null||h.call(Oe,l),c(l),a(l)})}),"performCall");jo.push(o),Y0().catch(a)}),"render"),CA=p(()=>Object.keys(Qe).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Oe={startOnLoad:!0,mermaidAPI:Ci,parse:yA,render:U0,init:gA,run:z0,registerExternalDiagrams:pA,registerLayoutLoaders:Hy,initialize:H0,parseError:void 0,contentLoaded:j0,setParseErrorHandler:mA,detectType:Xo,registerIconPacks:ok,getRegisteredDiagramsMetadata:CA},lh=Oe;/*! Check if previously processed *//*!
319 * Wait for document loaded before starting the execution
320 */var G0=typeof global=="object"&&global&&global.Object===Object&&global,xA=typeof self=="object"&&self&&self.Object===Object&&self,Cr=G0||xA||Function("return this")(),ps=Cr.Symbol,X0=Object.prototype,bA=X0.hasOwnProperty,kA=X0.toString,Ps=ps?ps.toStringTag:void 0;function wA(e){var t=bA.call(e,Ps),r=e[Ps];try{e[Ps]=void 0;var i=!0}catch{}var s=kA.call(e);return i&&(t?e[Ps]=r:delete e[Ps]),s}var TA=Object.prototype,SA=TA.toString;function _A(e){return SA.call(e)}var BA="[object Null]",vA="[object Undefined]",uf=ps?ps.toStringTag:void 0;function Ta(e){return e==null?e===void 0?vA:BA:uf&&uf in Object(e)?wA(e):_A(e)}function Sa(e){return e!=null&&typeof e=="object"}var Mc=Array.isArray;function un(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var LA="[object AsyncFunction]",FA="[object Function]",AA="[object GeneratorFunction]",EA="[object Proxy]";function V0(e){if(!un(e))return!1;var t=Ta(e);return t==FA||t==AA||t==LA||t==EA}var wl=Cr["__core-js_shared__"],df=function(){var e=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MA(e){return!!df&&df in e}var $A=Function.prototype,OA=$A.toString;function ki(e){if(e!=null){try{return OA.call(e)}catch{}try{return e+""}catch{}}return""}var IA=/[\\^$.*+?()[\]{}|]/g,DA=/^\[object .+?Constructor\]$/,PA=Function.prototype,RA=Object.prototype,qA=PA.toString,NA=RA.hasOwnProperty,WA=RegExp("^"+qA.call(NA).replace(IA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zA(e){if(!un(e)||MA(e))return!1;var t=V0(e)?WA:DA;return t.test(ki(e))}function HA(e,t){return e==null?void 0:e[t]}function wi(e,t){var r=HA(e,t);return zA(r)?r:void 0}var hh=wi(Cr,"WeakMap"),ff=Object.create,jA=function(){function e(){}return function(t){if(!un(t))return{};if(ff)return ff(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),gf=function(){try{var e=wi(Object,"defineProperty");return e({},"",{}),e}catch{}}();function YA(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var UA=9007199254740991,GA=/^(?:0|[1-9]\d*)$/;function XA(e,t){var r=typeof e;return t=t??UA,!!t&&(r=="number"||r!="symbol"&&GA.test(e))&&e>-1&&e%1==0&&e<t}function VA(e,t,r){t=="__proto__"&&gf?gf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function K0(e,t){return e===t||e!==e&&t!==t}var KA=Object.prototype,ZA=KA.hasOwnProperty;function QA(e,t,r){var i=e[t];(!(ZA.call(e,t)&&K0(i,r))||r===void 0&&!(t in e))&&VA(e,t,r)}var JA=9007199254740991;function Z0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JA}function tE(e){return e!=null&&Z0(e.length)&&!V0(e)}var eE=Object.prototype;function Q0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||eE;return e===r}function rE(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var iE="[object Arguments]";function pf(e){return Sa(e)&&Ta(e)==iE}var J0=Object.prototype,sE=J0.hasOwnProperty,aE=J0.propertyIsEnumerable,oE=pf(function(){return arguments}())?pf:function(e){return Sa(e)&&sE.call(e,"callee")&&!aE.call(e,"callee")};function nE(){return!1}var tC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mf=tC&&typeof module=="object"&&module&&!module.nodeType&&module,lE=mf&&mf.exports===tC,yf=lE?Cr.Buffer:void 0,hE=yf?yf.isBuffer:void 0,eC=hE||nE,cE="[object Arguments]",uE="[object Array]",dE="[object Boolean]",fE="[object Date]",gE="[object Error]",pE="[object Function]",mE="[object Map]",yE="[object Number]",CE="[object Object]",xE="[object RegExp]",bE="[object Set]",kE="[object String]",wE="[object WeakMap]",TE="[object ArrayBuffer]",SE="[object DataView]",_E="[object Float32Array]",BE="[object Float64Array
320]",vE="[object Int8Array]",LE="[object Int16Array]",FE="[object Int32Array]",AE="[object Uint8Array]",EE="[object Uint8ClampedArray]",ME="[object Uint16Array]",$E="[object Uint32Array]",Jt={};Jt[_E]=Jt[BE]=Jt[vE]=Jt[LE]=Jt[FE]=Jt[AE]=Jt[EE]=Jt[ME]=Jt[$E]=!0;Jt[cE]=Jt[uE]=Jt[TE]=Jt[dE]=Jt[SE]=Jt[fE]=Jt[gE]=Jt[pE]=Jt[mE]=Jt[yE]=Jt[CE]=Jt[xE]=Jt[bE]=Jt[kE]=Jt[wE]=!1;function OE(e){return Sa(e)&&Z0(e.length)&&!!Jt[Ta(e)]}function $c(e){return function(t){return e(t)}}var rC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qs=rC&&typeof module=="object"&&module&&!module.nodeType&&module,IE=Qs&&Qs.exports===rC,Tl=IE&&G0.process,ms=function(){try{var e=Qs&&Qs.require&&Qs.require("util").types;return e||Tl&&Tl.binding&&Tl.binding("util")}catch{}}(),Cf=ms&&ms.isTypedArray,DE=Cf?$c(Cf):OE,PE=Object.prototype,RE=PE.hasOwnProperty;function qE(e,t){var r=Mc(e),i=!r&&oE(e),s=!r&&!i&&eC(e),a=!r&&!i&&!s&&DE(e),o=r||i||s||a,n=o?rE(e.length,String):[],c=n.length;for(var l in e)RE.call(e,l)&&!(o&&(l=="length"||s&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||XA(l,c)))&&n.push(l);return n}function iC(e,t){return function(r){return e(t(r))}}var NE=iC(Object.keys,Object),WE=Object.prototype,zE=WE.hasOwnProperty;function HE(e){if(!Q0(e))return NE(e);var t=[];for(var r in Object(e))zE.call(e,r)&&r!="constructor"&&t.push(r);return t}function jE(e){return tE(e)?qE(e):HE(e)}var na=wi(Object,"create");function YE(){this.__data__=na?na(null):{},this.size=0}function UE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GE="__lodash_hash_undefined__",XE=Object.prototype,VE=XE.hasOwnProperty;function KE(e){var t=this.__data__;if(na){var r=t[e];return r===GE?void 0:r}return VE.call(t,e)?t[e]:void 0}var ZE=Object.prototype,QE=ZE.hasOwnProperty;function JE(e){var t=this.__data__;return na?t[e]!==void 0:QE.call(t,e)}var tM="__lodash_hash_undefined__";function eM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=na&&t===void 0?tM:t,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}xi.prototype.clear=YE;xi.prototype.delete=UE;xi.prototype.get=KE;xi.prototype.has=JE;xi.prototype.set=eM;function rM(){this.__data__=[],this.size=0}function dn(e,t){for(var r=e.length;r--;)if(K0(e[r][0],t))return r;return-1}var iM=Array.prototype,sM=iM.splice;function aM(e){var t=this.__data__,r=dn(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():sM.call(t,r,1),--this.size,!0}function oM(e){var t=this.__data__,r=dn(t,e);return r<0?void 0:t[r][1]}function nM(e){return dn(this.__data__,e)>-1}function lM(e,t){var r=this.__data__,i=dn(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Dr.prototype.clear=rM;Dr.prototype.delete=aM;Dr.prototype.get=oM;Dr.prototype.has=nM;Dr.prototype.set=lM;var la=wi(Cr,"Map");function hM(){this.size=0,this.__data__={hash:new xi,map:new(la||Dr),string:new xi}}function cM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fn(e,t){var r=e.__data__;return cM(t)?r[typeof t=="string"?"string":"hash"]:r.map}function uM(e){var t=fn(this,e).delete(e);return this.size-=t?1:0,t}function dM(e){return fn(this,e).get(e)}function fM(e){return fn(this,e).has(e)}function gM(e,t){var r=fn(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ws.prototype.clear=hM;ws.prototype.delete=uM;ws.prototype.get=dM;ws.prototype.has=fM;ws.prototype.set=gM;function pM(e,t){for(var r=-1,i=t.length,s=e.length;++r<i;)e[s+r]=t[r];return e}var mM=iC(Object.getPrototypeOf,Object);function yM(){this.__data__=new Dr,this.size=0}function CM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xM(e){return this.__data__.get(e)}function bM(e){return this.__data__.has(e)}var kM=200;function wM(e,t){var r=this.__data__;if(r instanceof Dr){var i=r.__data__;if(!la||i.length<kM-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ws(i)}return r.set(e,t),this.size=r.size,this}function Ts(e){var t=this.__data__=new Dr(e);this.size=t.size}Ts.prototype.clear=yM;Ts.prototype.delete=CM;Ts.prototype.get=xM;Ts.prototype.has=bM;Ts.prototype.set=wM;var sC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xf=sC&&typeof module=="object"&&module&&!module.nodeType&&module,TM=xf&&xf.exports===sC,bf=TM?Cr.Buffer:void 0;bf&&bf.allocUnsafe;function SM(e,t){return e.slice()}function _M(e,t){for(var r=-1,i=e==null?0:e.length,s=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[s++]=o)}return a}function BM(){return[]}var vM=Object.prototype,LM=vM.propertyIsEnumerable,kf=Object.getOwnPropertySymbols,FM=kf?function(e){return e==null?[]:(e=Object(e),_M(kf(e),function(t){return LM.call(e,t)}))}:BM;function AM(e,t,r){var i=t(e);return Mc(e)?i:pM(i,r(e))}function EM(e){return AM(e,jE,FM)}var ch=wi(Cr,"DataView"),uh=wi(Cr,"Promise"),dh=wi(Cr,"Set"),wf="[object Map]",MM="[object Object]",Tf="[object Promise]",Sf="[object Set]",_f="[object WeakMap]",Bf="[object DataView]",$M=ki(ch),OM=ki(la),IM=ki(uh),DM=ki(dh),PM=ki(hh),Br=Ta;(ch&&Br(new ch(new ArrayBuffer(1)))!=Bf||la&&Br(new la)!=wf||uh&&Br(uh.resolve())!=Tf||dh&&Br(new dh)!=Sf||hh&&Br(new hh)!=_f)&&(Br=function(e){var t=Ta(e),r=t==MM?e.constructor:void 0,i=r?ki(r):"";if(i)switch(i){case $M:return Bf;case OM:return wf;case IM:return Tf;
320case DM:return Sf;case PM:return _f}return t});var RM=Object.prototype,qM=RM.hasOwnProperty;function NM(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&qM.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var vf=Cr.Uint8Array;function Oc(e){var t=new e.constructor(e.byteLength);return new vf(t).set(new vf(e)),t}function WM(e,t){var r=Oc(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var zM=/\w*$/;function HM(e){var t=new e.constructor(e.source,zM.exec(e));return t.lastIndex=e.lastIndex,t}var Lf=ps?ps.prototype:void 0,Ff=Lf?Lf.valueOf:void 0;function jM(e){return Ff?Object(Ff.call(e)):{}}function YM(e,t){var r=Oc(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var UM="[object Boolean]",GM="[object Date]",XM="[object Map]",VM="[object Number]",KM="[object RegExp]",ZM="[object Set]",QM="[object String]",JM="[object Symbol]",t5="[object ArrayBuffer]",e5="[object DataView]",r5="[object Float32Array]",i5="[object Float64Array]",s5="[object Int8Array]",a5="[object Int16Array]",o5="[object Int32Array]",n5="[object Uint8Array]",l5="[object Uint8ClampedArray]",h5="[object Uint16Array]",c5="[object Uint32Array]";function u5(e,t,r){var i=e.constructor;switch(t){case t5:return Oc(e);case UM:case GM:return new i(+e);case e5:return WM(e);case r5:case i5:case s5:case a5:case o5:case n5:case l5:case h5:case c5:return YM(e);case XM:return new i;case VM:case QM:return new i(e);case KM:return HM(e);case ZM:return new i;case JM:return jM(e)}}function d5(e){return typeof e.constructor=="function"&&!Q0(e)?jA(mM(e)):{}}var f5="[object Map]";function g5(e){return Sa(e)&&Br(e)==f5}var Af=ms&&ms.isMap,p5=Af?$c(Af):g5,m5="[object Set]";function y5(e){return Sa(e)&&Br(e)==m5}var Ef=ms&&ms.isSet,C5=Ef?$c(Ef):y5,aC="[object Arguments]",x5="[object Array]",b5="[object Boolean]",k5="[object Date]",w5="[object Error]",oC="[object Function]",T5="[object GeneratorFunction]",S5="[object Map]",_5="[object Number]",nC="[object Object]",B5="[object RegExp]",v5="[object Set]",L5="[object String]",F5="[object Symbol]",A5="[object WeakMap]",E5="[object ArrayBuffer]",M5="[object DataView]",$5="[object Float32Array]",O5="[object Float64Array]",I5="[object Int8Array]",D5="[object Int16Array]",P5="[object Int32Array]",R5="[object Uint8Array]",q5="[object Uint8ClampedArray]",N5="[object Uint16Array]",W5="[object Uint32Array]",Zt={};Zt[aC]=Zt[x5]=Zt[E5]=Zt[M5]=Zt[b5]=Zt[k5]=Zt[$5]=Zt[O5]=Zt[I5]=Zt[D5]=Zt[P5]=Zt[S5]=Zt[_5]=Zt[nC]=Zt[B5]=Zt[v5]=Zt[L5]=Zt[F5]=Zt[R5]=Zt[q5]=Zt[N5]=Zt[W5]=!0;Zt[w5]=Zt[oC]=Zt[A5]=!1;function uo(e,t,r,i,s,a){var o;if(o!==void 0)return o;if(!un(e))return e;var n=Mc(e);if(n)o=NM(e);else{var c=Br(e),l=c==oC||c==T5;if(eC(e))return SM(e);if(c==nC||c==aC||l&&!s)o=l?{}:d5(e);else{if(!Zt[c])return s?e:{};o=u5(e,c)}}a||(a=new Ts);var h=a.get(e);if(h)return h;a.set(e,o),C5(e)?e.forEach(function(f){o.add(uo(f,t,r,f,e,a))}):p5(e)&&e.forEach(function(f,g){o.set(g,uo(f,t,r,g,e,a))});var u=EM,d=n?void 0:u(e);return YA(d||e,function(f,g){d&&(g=f,f=e[g]),QA(o,g,uo(f,t,r,g,e,a))}),o}var z5=1,H5=4;function j5(e){return uo(e,z5|H5)}var lC={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function s(c,l,h){this.fn=c,this.context=l,this.once=h||!1}function a(c,l,h,u,d){if(typeof h!="function")throw new TypeError("The listener must be a function");var f=new s(h,u||c,d),g=r?r+l:l;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],f]:c._events[g].push(f):(c._events[g]=f,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new i:delete c._events[l]}function n(){this._events=new i,this._eventsCount=0}n.prototype.eventNames=function(){var l=[],h,u;if(this._eventsCount===0)return l;for(u in h=this._events)t.call(h,u)&&l.push(r?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(h)):l},n.prototype.listeners=function(l){var h=r?r+l:l,u=this._events[h];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,f=u.length,g=new Array(f);d<f;d++)g[d]=u[d].fn;return g},n.prototype.listenerCount=function(l){var h=r?r+l:l,u=this._events[h];return u?u.fn?1:u.length:0}
320,n.prototype.emit=function(l,h,u,d,f,g){var C=r?r+l:l;if(!this._events[C])return!1;var x=this._events[C],y=arguments.length,b,w;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,u),!0;case 4:return x.fn.call(x.context,h,u,d),!0;case 5:return x.fn.call(x.context,h,u,d,f),!0;case 6:return x.fn.call(x.context,h,u,d,f,g),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];x.fn.apply(x.context,b)}else{var T=x.length,_;for(w=0;w<T;w++)switch(x[w].once&&this.removeListener(l,x[w].fn,void 0,!0),y){case 1:x[w].fn.call(x[w].context);break;case 2:x[w].fn.call(x[w].context,h);break;case 3:x[w].fn.call(x[w].context,h,u);break;case 4:x[w].fn.call(x[w].context,h,u,d);break;default:if(!b)for(_=1,b=new Array(y-1);_<y;_++)b[_-1]=arguments[_];x[w].fn.apply(x[w].context,b)}}return!0},n.prototype.on=function(l,h,u){return a(this,l,h,u,!1)},n.prototype.once=function(l,h,u){return a(this,l,h,u,!0)},n.prototype.removeListener=function(l,h,u,d){var f=r?r+l:l;if(!this._events[f])return this;if(!h)return o(this,f),this;var g=this._events[f];if(g.fn)g.fn===h&&(!d||g.once)&&(!u||g.context===u)&&o(this,f);else{for(var C=0,x=[],y=g.length;C<y;C++)(g[C].fn!==h||d&&!g[C].once||u&&g[C].context!==u)&&x.push(g[C]);x.length?this._events[f]=x.length===1?x[0]:x:o(this,f)}return this},n.prototype.removeAllListeners=function(l){var h;return l?(h=r?r+l:l,this._events[h]&&o(this,h)):(this._events=new i,this._eventsCount=0),this},n.prototype.off=n.prototype.removeListener,n.prototype.addListener=n.prototype.on,n.prefixed=r,n.EventEmitter=n,e.exports=n})(lC);var Y5=lC.exports;const U5=Mh(Y5);class hC extends Error{constructor(t){super(t),this.name="TimeoutError"}}class G5 extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const Mf=e=>globalThis.DOMException===void 0?new G5(e):new DOMException(e),$f=e=>{const t=e.reason===void 0?Mf("This operation was aborted."):e.reason;return t instanceof Error?t:Mf(t)};function X5(e,t){const{milliseconds:r,fallback:i,message:s,customTimers:a={setTimeout,clearTimeout}}=t;let o,n;const l=new Promise((h,u)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:f}=t;f.aborted&&u($f(f)),n=()=>{u($f(f))},f.addEventListener("abort",n,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(h,u);return}const d=new hC;o=a.setTimeout.call(void 0,()=>{if(i){try{h(i())}catch(f){u(f)}return}typeof e.cancel=="function"&&e.cancel(),s===!1?h():s instanceof Error?u(s):(d.message=s??`Promise timed out after ${r} milliseconds`,u(d))},r),(async()=>{try{h(await e)}catch(f){u(f)}})()}).finally(()=>{l.clear(),n&&t.signal&&t.signal.removeEventListener("abort",n)});return l.clear=()=>{a.clearTimeout.call(void 0,o),o=void 0},l}function V5(e,t,r){let i=0,s=e.length;for(;s>0;){const a=Math.trunc(s/2);let o=i+a;r(e[o],t)<=0?(i=++o,s-=a+1):s=a}return i}var We;class K5{constructor(){ge(this,We,[])}enqueue(t,r){r={priority:0,...r};const i={priority:r.priority,id:r.id,run:t};if(this.size===0||vt(this,We)[this.size-1].priority>=r.priority){vt(this,We).push(i);return}const s=V5(vt(this,We),i,(a,o)=>o.priority-a.priority);vt(this,We).splice(s,0,i)}setPriority(t,r){const i=vt(this,We).findIndex(a=>a.id===t);if(i===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[s]=vt(this,We).splice(i,1);this.enqueue(s.run,{priority:r,id:t})}dequeue(){const t=vt(this,We).shift();return t==null?void 0:t.run}filter(t){return vt(this,We).filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return vt(this,We).length}}We=new WeakMap;var as,os,Ur,ca,ns,ua,ze,ls,Be,da,He,hs,vr,fa,Yo,jt,cC,uC,dC,fC,gC,fo,fh,gh,go,pC,po;class Z5 extends U5{constructor(r){var i,s;super();ge(this,jt);ge(this,as);ge(this,os);ge(this,Ur,0);ge(this,ca);ge(this,ns);ge(this,ua,0);ge(this,ze);ge(this,ls);ge(this,Be);ge(this,da);ge(this,He,0);ge(this,hs);ge(this,vr);ge(this,fa);ge(this,Yo,1n);Ht(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:K5,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((i=r.intervalCap)==null?void 0:i.toString())??""}\` (${typeof r.intervalCap})`);
320if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((s=r.interval)==null?void 0:s.toString())??""}\` (${typeof r.interval})`);ee(this,as,r.carryoverConcurrencyCount),ee(this,os,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ee(this,ca,r.intervalCap),ee(this,ns,r.interval),ee(this,Be,new r.queueClass),ee(this,da,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ee(this,fa,r.throwOnTimeout===!0),ee(this,vr,r.autoStart===!1)}get concurrency(){return vt(this,hs)}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);ee(this,hs,r),ye(this,jt,go).call(this)}setPriority(r,i){vt(this,Be).setPriority(r,i)}async add(r,i={}){return i.id??(i.id=(Fs(this,Yo)._++).toString()),i={timeout:this.timeout,throwOnTimeout:vt(this,fa),...i},new Promise((s,a)=>{vt(this,Be).enqueue(async()=>{var o;Fs(this,He)._++;try{(o=i.signal)==null||o.throwIfAborted(),Fs(this,Ur)._++;let n=r({signal:i.signal});i.timeout&&(n=X5(Promise.resolve(n),{milliseconds:i.timeout})),i.signal&&(n=Promise.race([n,ye(this,jt,pC).call(this,i.signal)]));const c=await n;s(c),this.emit("completed",c)}catch(n){if(n instanceof hC&&!i.throwOnTimeout){s();return}a(n),this.emit("error",n)}finally{ye(this,jt,dC).call(this)}},i),this.emit("add"),ye(this,jt,fo).call(this)})}async addAll(r,i){return Promise.all(r.map(async s=>this.add(s,i)))}start(){return vt(this,vr)?(ee(this,vr,!1),ye(this,jt,go).call(this),this):this}pause(){ee(this,vr,!0)}clear(){ee(this,Be,new(vt(this,da)))}async onEmpty(){vt(this,Be).size!==0&&await ye(this,jt,po).call(this,"empty")}async onSizeLessThan(r){vt(this,Be).size<r||await ye(this,jt,po).call(this,"next",()=>vt(this,Be).size<r)}async onIdle(){vt(this,He)===0&&vt(this,Be).size===0||await ye(this,jt,po).call(this,"idle")}get size(){return vt(this,Be).size}sizeBy(r){return vt(this,Be).filter(r).length}get pending(){return vt(this,He)}get isPaused(){return vt(this,vr)}}as=new WeakMap,os=new WeakMap,Ur=new WeakMap,ca=new WeakMap,ns=new WeakMap,ua=new WeakMap,ze=new WeakMap,ls=new WeakMap,Be=new WeakMap,da=new WeakMap,He=new WeakMap,hs=new WeakMap,vr=new WeakMap,fa=new WeakMap,Yo=new WeakMap,jt=new WeakSet,cC=function(){return vt(this,os)||vt(this,Ur)<vt(this,ca)},uC=function(){return vt(this,He)<vt(this,hs)},dC=function(){Fs(this,He)._--,ye(this,jt,fo).call(this),this.emit("next")},fC=function(){ye(this,jt,gh).call(this),ye(this,jt,fh).call(this),ee(this,ls,void 0)},gC=function(){const r=Date.now();if(vt(this,ze)===void 0){const i=vt(this,ua)-r;if(i<0)ee(this,Ur,vt(this,as)?vt(this,He):0);else return vt(this,ls)===void 0&&ee(this,ls,setTimeout(()=>{ye(this,jt,fC).call(this)},i)),!0}return!1},fo=function(){if(vt(this,Be).size===0)return vt(this,ze)&&clearInterval(vt(this,ze)),ee(this,ze,void 0),this.emit("empty"),vt(this,He)===0&&this.emit("idle"),!1;if(!vt(this,vr)){const r=!vt(this,jt,gC);if(vt(this,jt,cC)&&vt(this,jt,uC)){const i=vt(this,Be).dequeue();return i?(this.emit("active"),i(),r&&ye(this,jt,fh).call(this),!0):!1}}return!1},fh=function(){vt(this,os)||vt(this,ze)!==void 0||(ee(this,ze,setInterval(()=>{ye(this,jt,gh).call(this)},vt(this,ns))),ee(this,ua,Date.now()+vt(this,ns)))},gh=function(){vt(this,Ur)===0&&vt(this,He)===0&&vt(this,ze)&&(clearInterval(vt(this,ze)),ee(this,ze,void 0)),ee(this,Ur,vt(this,as)?vt(this,He):0),ye(this,jt,go).call(this)},go=function(){for(;ye(this,jt,fo).call(this););},pC=async function(r){return new Promise((i,s)=>{r.addEventListener("abort",()=>{s(r.reason)},{once:!0})})},po=async function(r,i){return new Promise(s=>{const a=()=>{i&&!i()||(this.off(r,a),s())};this.on(r,a)})};class ha extends Error{constructor(...t){super(...t),this.name="MermaidError"}}class mC extends ha{constructor(r){super(r.message,r instanceof Error?{cause:r}:void 0);Ht(this,"str");Ht(this,"hash");Ht(this,"error");this.name="MermaidDetailedError",this.str=r.str,this.hash=r.hash,this.error=r.error}}function yC(e){return typeof e=="object"&&e!==null&&"hash"in e}function Q5(e){return/fa[blrs]?:fa-[\w-]+/g.test(e)}const J5=async(e,t,r,i)=>{const s=j5(e);lh.initialize(s),Q5(t)&&await i();try{return await lh.render(r,t)}catch(a){const o=document.querySelector(`#d${r}`),n=(o==null?void 0:o.innerHTML)??"";o==null||o.remove();let c;if(yC(a))c=new mC(a);else if(a instanceof Error)c=new ha(a.message,{cause:a});else{const l=new Error(`mermaid.parse threw a non-Error non-DetailedError: ${JSON.stringify(a)}`);throw new ha(`${a}`,{cause:l})}throw c.svg=n,c}},CC=new Z5({concurrency:1}),t3=async(e,t,r,i,s)=>await CC.add(()=>J5(e,t,r,i),{throwOnTimeout:!0,signal:s}),e3=async(e,{suppressErrors:t=!1}={})=>{const r=await CC.add(()=>lh.parse(e||"info",{suppressErrors:t}).catch(a=>{if(yC(a))throw new mC(a);if(a instanceof Error)throw new ha(a.message,{cause:a});const o=new Error(`mermaid.parse threw a non-Error non-DetailedError: ${JSON.stringify(a)}`);throw new ha(`${a}`,{cause:o})}),{throwOnTimeout:!0}),{diagram:i={},...s}=r;return{...i,...s}};var r3=Pf('<div class="relative flex h-full w-full justify-center overflow-hidden bg-background"></div>'),i3=Pf('<div class="text-sm text-red-500"> </div>');function a$(e,t){zC(t,!1);let r=Na(t,"code",8),i=Na(t,"id",8),s=Na(t,"title",8,""),a=Na(t,"description",8,""),o=$n(""),n=$n(""),c=$n(!1);HC(()=>{As(c,!0)});async function l(){return new Promise(y=>setTimeout(y,100))}function h(y,b,w){if(!b&&!w)return y;const T=b?`<title>${u(b)}</title>`:"",_=w?`<desc>${u(w)}</desc>`:"",B=`${T}${_}`;return y.replace(/(<svg[^>]*>)/,`$1${B}`)}function u(y){return y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}async function d(y,b,w){try{const{config:T}=await e3(y);T.theme="redux-color";const{svg:_}=await t3(T,y,b,w);As(o,h(_,s(),a()))}catch(T){As(n,T instanceof Error&&T.message?T.message:"Failed to render diagram."),console.error("Diagram render error:",T)}}jC(()=>
320(Ai(c),au(r()),au(i())),()=>{Ai(c)&&r()&&i()&&(As(o,""),As(n,""),d(r(),i(),l))}),YC(),WC();var f=RC(),g=UC(f);{var C=y=>{var b=r3();ZC(b,()=>Ai(o),!0),XC(b),Mn(y,b)},x=y=>{var b=i3(),w=VC(b,!0);KC(()=>NC(w,Ai(n))),Mn(y,b)};qC(g,y=>{Ai(o)?y(C):Ai(n)&&y(x,1)})}Mn(e,f),GC()}export{M3 as $,P3 as A,yb as B,gr as C,cs as D,_3 as E,vS as F,G3 as G,xc as H,X3 as I,ex as J,Xr as K,SS as L,Kp as M,QC as N,Qt as O,Eb as P,lc as Q,Oh as R,BT as S,RB as T,Mt as U,Fw as V,ad as W,sd as X,O3 as Y,F3 as Z,p as _,xb as a,oT as a$,E3 as a0,v3 as a1,Ei as a2,Xh as a3,$3 as a4,L3 as a5,D3 as a6,I3 as a7,A3 as a8,Tx as a9,nB as aA,zo as aB,Tt as aC,wa as aD,xe as aE,t$ as aF,eB as aG,a$ as aH,TS as aI,$w as aJ,ec as aK,Jh as aL,so as aM,eT as aN,tT as aO,Jw as aP,Qw as aQ,jw as aR,up as aS,Gw as aT,Hw as aU,Kw as aV,dp as aW,Uw as aX,sT as aY,iT as aZ,rT as a_,Js as aa,T3 as ab,tn as ac,yT as ad,ub as ae,og as af,Iu as ag,Se as ah,z as ai,W as aj,Bb as ak,ng as al,X_ as am,Ry as an,Z3 as ao,Ue as ap,ok as aq,oc as ar,gt as as,Te as at,$B as au,K3 as av,e$ as aw,J3 as ax,r$ as ay,tB as az,Cb as b,aT as b0,Yw as b1,fp as b2,Zw as b3,Vw as b4,Xw as b5,gp as b6,ix as b7,kp as b8,Ge as b9,V3 as bA,qp as bB,Uf as ba,Aw as bb,Mh as bc,sx as bd,Ks as be,Q3 as bf,tf as bg,w3 as bh,De as bi,sk as bj,jh as bk,Yr as bl,Qu as bm,h2 as bn,ra as bo,Ct as bp,hg as bq,Ae as br,r2 as bs,Hh as bt,Lg as bu,ya as bv,Eg as bw,B3 as bx,ox as by,mt as bz,Ot as c,lg as d,he as e,Or as f,kb as g,Py as h,ut as i,je as j,$t as k,J as l,pa as m,Tp as n,ga as o,nk as p,S3 as q,s$ as r,bb as s,i$ as t,tr as u,wb as v,FT as w,Tb as x,rx as y,I_ as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.