1/*! For license information please see 2279.75de1932.js.LICENSE.txt */ 2(self.webpackChunkphpvms_docs=self.webpackChunkphpvms_docs||[]).push([[2279],{69119(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},16750(t,e,r){"use strict";e.J=function(t){if(!t)return i.BLANK_URL;var e,r=a(t.trim());do{e=(r=a(r=o(r).replace(i.htmlCtrlEntityRegex,"").replace(i.ctrlCharactersRegex,"").replace(i.whitespaceEscapeCharsRegex,"").trim())).match(i.ctrlCharactersRegex)||r.match(i.htmlEntitiesRegex)||r.match(i.htmlCtrlEntityRegex)||r.match(i.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var s=r;if(!s)return i.BLANK_URL;if(function(t){return i.relativeFirstCharacters.indexOf(t[0])>-1}(s))return s;var n=s.trimStart(),l=n.match(i.urlSchemeRegex);if(!l)return s;var h=l[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(h))return i.BLANK_URL;var c=n.replace(/\\/g,"/");if("mailto:"===h||h.includes("://"))return c;if("http:"===h||"https:"===h){if(!function(t){return URL.canParse(t)}(c))return i.BLANK_URL;var d=new URL(c);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return c};var i=r(69119);function o(t){return t.replace(i.ctrlCharactersRegex,"").replace(i.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)})}function a(t){try{return decodeURIComponent(t)}catch(e){return t}}},74353(t){t.exports=function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",a="minute",s="hour",n="day",l="week",h="month",c="quarter",d="year",u="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},C={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+m(i,2,"0")+":"+m(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(i,h),a=r-o<0,s=e.clone().add(i+(a?-1:1),h);return+(-(i+(r-o)/(a?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:d,w:l,d:n,D:u,h:s,m:a,s:o,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},x="en",b={};b[x]=y;var k="$isDayjsObject",T=function(t){return t instanceof A||!(!t||!t[k])},S=function t(e,r,i){var o;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(o=a),r&&(b[a]=r,o=a);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var n=e.name;b[n]=e,o=n}return!i&&o&&(x=o),o||!i&&x},B=function(t,e){if(T(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new A(r)},w=C;w.l=S,w.i=T,w.w=function(t,e){return B(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var o=i[2]-1||0,a=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var r=B(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return B(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<B(t)},m.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,i=!!w.u(e)||e,c=w.p(t),p=function(t,e){var o=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return i?o:o.endOf(n)},g=function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},f=this.$W,y=this.$M,m=this.$D,C="set"+(this.$u?"UTC":"");switch(c){case d:return i?p(1,0):p(31,11);case h:return i?p(1,y):p(0,y+1);case l:var x=this.$locale().weekStart||0,b=(f<x?f+7:f)-x;return p(i?m-b:m+(6-b),y);case n:case u:return g(C+"Hours",0);case s:return g(C+"Minutes",1);case a:return g(C+"Seconds",2);case o:return g(C+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,l=w.p(t),c="set"+(this.$u?"UTC":""),p=(r={},r[n]=c+"Date",r[u]=c+"Date",r[h]=c+"Month",r[d]=c+"FullYear",r[s]=c+"Hours",r[a]=c+"Minutes",r[o]=c+"Seconds",r[i]=c+"Milliseconds",r)[l],g=l===n?this.$D+(e-this.$W):e;if(l===h||l===d){var f=this.clone().set(u,1);f.$d[p](g),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[w.p(t)]()},m.add=function(i,c){var u,p=this;i=Number(i);var g=w.p(c),f=function(t){var e=B(p);return w.w(e.date(e.date()+Math.round(t*i)),p)};if(g===h)return this.set(h,this.$M+i);if(g===d)return this.set(d,this.$y+i);if(g===n)return f(1);if(g===l)return f(7);var y=(u={},u[a]=e,u[s]=r,u[o]=t,u)[g]||1,m=this.$d.getTime()+i*y;return w.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),a=this.$H,s=this.$m,n=this.$M,l=r.weekdays,h=r.months,c=r.meridiem,d=function(t,r,o,a){return t&&(t[r]||t(e,i))||o[r].slice(0,a)},u=function(t){return w.s(a%12||12,t,"0")},g=c||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(f,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return n+1;case"MM":return w.s(n+1,2,"0");case"MMM":return d(r.monthsShort,n,h,3);case"MMMM":return d(h,n);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return w.s(a,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return g(a,s,!0);case"A":return g(a,s,!1);case"m":return String(s);case"mm":return w.s(s,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})}
vendor: 5,185 bytes, line 2
2,m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,u,p){var g,f=this,y=w.p(u),m=B(i),C=(m.utcOffset()-this.utcOffset())*e,x=this-m,b=function(){return w.m(f,m)};switch(y){case d:g=b()/12;break;case h:g=b();break;case c:g=b()/3;break;case l:g=(x-C)/6048e5;break;case n:g=(x-C)/864e5;break;case s:g=x/r;break;case a:g=x/e;break;case o:g=x/t;break;default:g=x}return p?g:w.a(g)},m.daysInMonth=function(){return this.endOf(h).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=S(t,e,!0);return i&&(r.$L=i),r},m.clone=function(){return w.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()},y}(),L=A.prototype;return B.prototype=L,[["$ms",i],["$s",o],["$m",a],["$H",s],["$W",n],["$M",h],["$y",d],["$D",u]].forEach(function(t){L[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),B.extend=function(t,e){return t.$i||(t(e,A,B),t.$i=!0),B},B.locale=S,B.isDayjs=T,B.unix=function(t){return B(1e3*t)},B.en=b[x],B.Ls=b,B.p={},B}()},29893(t,e,r){"use strict";function i(t,e,r){if(t&&t.length){const[i,o]=e,a=Math.PI/180*r,s=Math.cos(a),n=Math.sin(a);for(const e of t){const[t,r]=e;e[0]=(t-i)*s-(r-o)*n+i,e[1]=(t-i)*n+(r-o)*s+o}}}function o(t,e){return t[0]===e[0]&&t[1]===e[1]}function a(t,e,r,a=1){const s=r,n=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,h=[0,0];if(s)for(const o of l)i(o,h,s);const c=function(t,e,r){const i=[];for(const c of t){const t=[...c];o(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const a=[];e=Math.max(e,.1);const s=[];for(const o of i)for(let t=0;t<o.length-1;t++){const e=o[t],r=o[t+1];if(e[1]!==r[1]){const t=Math.min(e[1],r[1]);s.push({ymin:t,ymax:Math.max(e[1],r[1]),x:t===e[1]?e[0]:r[0],islope:(r[0]-e[0])/(r[1]-e[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return a;let n=[],l=s[0].ymin,h=0;for(;n.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>l);e++)t=e;s.splice(0,t+1).forEach(t=>{n.push({s:l,edge:t})})}if(n=n.filter(t=>!(t.edge.ymax<=l)),n.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||h%e==0)&&n.length>1)for(let t=0;t<n.length;t+=2){const e=t+1;if(e>=n.length)break;const r=n[t].edge,i=n[e].edge;a.push([[Math.round(r.x),l],[Math.round(i.x),l]])}l+=r,n.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),h++}return a}(l,n,a);if(s){for(const t of l)i(t,h,-s);!function(t,e,r){const o=[];t.forEach(t=>o.push(...t)),i(o,e,r)}(c,h,-s)}return c}function s(t,e){var r;const i=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,.1));let s=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(s=o),a(t,o,i,s||1)}r.d(e,{A:()=>ot});class n{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=s(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function l(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class h extends n{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=s(t,Object.assign({},e,{hachureGap:r})),o=Math.PI/180*e.hachureAngle,a=[],n=.5*r*Math.cos(o),h=.5*r*Math.sin(o);for(const[s,c]of i)l([s,c])&&a.push([[s[0]-n,s[1]+h],[...c]],[[s[0]+n,s[1]-h],[...c]]);return{type:"fillSketch",ops:this.renderLines(a,e)}}}class c extends n{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),o=this._fillPolygons(t,i);return r.ops=r.ops.concat(o.ops),r}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const r=s(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let o=e.fillWeight;o<0&&(o=e.strokeWidth/2);const a=i/4;for(const s of t){const t=l(s),n=t/i,h=Math.ceil(n)-1,c=t-h*i,d=(s[0][0]+s[1][0])/2-i/4,u=Math.min(s[0][1],s[1][1]);for(let s=0;s<h;s++){const t=u+c+s*i,n=d-a+2*Math.random()*a,l=t-a+2*Math.random()*a,h=this.helper.ellipse(n,l,o,o,e);r.push(...h.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){const r=s(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){const r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return t.forEach(t=>{const a=l(t),s=Math.floor(a/(r+i)),n=(a+i-s*(r+i))/2;let h=t[0],c=t[1];h[0]>c[0]&&(h=t[1],c=t[0]);const d=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let l=0;l<s;l++){const t=l*(r+i),a=t+r,s=[h[0]+t*Math.cos(d)+n*Math.cos(d),h[1]+t*Math.sin(d)+n*Math.sin(d)],c=[h[0]+a*Math.cos(d)+n*Math.cos(d),h[1]+a*Math.sin(d)+n*Math.sin(d)];
2o.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),o}}class p{constructor(t){this.helper=t}fillPolygons(t,e){const r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,o=s(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,e)}}zigzagLines(t,e,r){const i=[];return t.forEach(t=>{const o=l(t),a=Math.round(o/(2*e));let s=t[0],n=t[1];s[0]>n[0]&&(s=t[1],n=t[0]);const h=Math.atan((n[1]-s[1])/(n[0]-s[0]));for(let l=0;l<a;l++){const t=2*l*e,o=2*(l+1)*e,a=Math.sqrt(2*Math.pow(e,2)),n=[s[0]+t*Math.cos(h),s[1]+t*Math.sin(h)],c=[s[0]+o*Math.cos(h),s[1]+o*Math.sin(h)],d=[n[0]+a*Math.cos(h+Math.PI/4),n[1]+a*Math.sin(h+Math.PI/4)];i.push(...this.helper.doubleLineOps(n[0],n[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[1],r))}}),i}}const g={};class f{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const y={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 m(t,e){return t.type===e}function C(t){const e=[],r=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",o=0,a=r[o];for(;!m(a,2);){let s=0;const n=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return C("M0,0"+t);o++,s=y[a.text],i=a.text}else m(a,1)?s=y[i]:(o++,s=y[a.text],i=a.text);if(!(o+s<r.length))throw new Error("Path data ended short");for(let t=o;t<o+s;t++){const e=r[t];if(!m(e,1))throw new Error("Param not a number: "+i+","+e.text);n[n.length]=+e.text}if("number"!=typeof y[i])throw new Error("Bad segment: "+i);{const t={key:i,data:n};e.push(t),o+=s,a=r[o],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function x(t){let e=0,r=0,i=0,o=0;const a=[];for(const{key:s,data:n}of t)switch(s){case"M":a.push({key:"M",data:[...n]}),[e,r]=n,[i,o]=n;break;case"m":e+=n[0],r+=n[1],a.push({key:"M",data:[e,r]}),i=e,o=r;break;case"L":a.push({key:"L",data:[...n]}),[e,r]=n;break;case"l":e+=n[0],r+=n[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...n]}),e=n[4],r=n[5];break;case"c":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...n]}),e=n[2],r=n[3];break;case"q":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...n]}),e=n[5],r=n[6];break;case"a":e+=n[5],r+=n[6],a.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],e,r]});break;case"H":a.push({key:"H",data:[...n]}),e=n[0];break;case"h":e+=n[0],a.push({key:"H",data:[e]});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]}),e=n[2],r=n[3];break;case"s":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...n]}),e=n[0],r=n[1];break;case"t":e+=n[0],r+=n[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=o}return a}function b(t){const e=[];let r="",i=0,o=0,a=0,s=0,n=0,l=0;for(const{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,o]=c,[a,s]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],o=c[5],n=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,o]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,o]});break;case"V":o=c[0],e.push({key:"L",data:[i,o]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=i+(i-n),a=o+(o-l)):(t=i,a=o),e.push({key:"C",data:[t,a,...c]}),n=c[0],l=c[1],i=c[2],o=c[3];break}case"T":{const[t,a]=c;let s=0,h=0;"Q"===r||"T"===r?(s=i+(i-n),h=o+(o-l)):(s=i,h=o);const d=i+2*(s-i)/3,u=o+2*(h-o)/3,p=t+2*(s-t)/3,g=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,g,t,a]}),n=s,l=h,i=t,o=a;break}case"Q":{const[t,r,a,s]=c,h=i+2*(t-i)/3,d=o+2*(r-o)/3,u=a+2*(t-a)/3,p=s+2*(r-s)/3;e.push({key:"C",data:[h,d,u,p,a,s]}),n=t,l=r,i=a,o=s;break}case"A":{const t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],s=c[3],n=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,o,l,h,l,h]}
vendor: 11,503 bytes, line 2
2),i=l,o=h):i===l&&o===h||(T(i,o,l,h,t,r,a,s,n).forEach(function(t){e.push({key:"C",data:t})}),i=l,o=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,o=s}r=h}return e}function k(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function T(t,e,r,i,o,a,s,n,l,h){const c=(d=s,Math.PI*d/180);var d;let u=[],p=0,g=0,f=0,y=0;if(h)[p,g,f,y]=h;else{[t,e]=k(t,e,-c),[r,i]=k(r,i,-c);const s=(t-r)/2,h=(e-i)/2;let d=s*s/(o*o)+h*h/(a*a);d>1&&(d=Math.sqrt(d),o*=d,a*=d);const u=o*o,m=a*a,C=u*m-u*h*h-m*s*s,x=u*h*h+m*s*s,b=(n===l?-1:1)*Math.sqrt(Math.abs(C/x));f=b*o*h/a+(t+r)/2,y=b*-a*s/o+(e+i)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),g=Math.asin(parseFloat(((i-y)/a).toFixed(9))),t<f&&(p=Math.PI-p),r<f&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let m=g-p;if(Math.abs(m)>120*Math.PI/180){const t=g,e=r,n=i;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=T(r=f+o*Math.cos(g),i=y+a*Math.sin(g),e,n,o,a,s,0,l,[g,t,f,y])}m=g-p;const C=Math.cos(p),x=Math.sin(p),b=Math.cos(g),S=Math.sin(g),B=Math.tan(m/4),w=4/3*o*B,A=4/3*a*B,L=[t,e],v=[t+w*x,e-A*C],F=[r+w*S,i-A*b],M=[r,i];if(v[0]=2*L[0]-v[0],v[1]=2*L[1]-v[1],h)return[v,F,M].concat(u);{u=[v,F,M].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const r=k(u[e][0],u[e][1],c),i=k(u[e+1][0],u[e+1][1],c),o=k(u[e+2][0],u[e+2][1],c);t.push([r[0],r[1],i[0],i[1],o[0],o[1]])}return t}}const S={randOffset:function(t,e){return D(t,e)},randOffsetWithRange:function(t,e,r){return I(t,e,r)},ellipse:function(t,e,r,i,o){return v(t,e,o,L(r,i,o)).opset},doubleLineOps:function(t,e,r,i,o){return q(t,e,r,i,o,!0)}};function B(t,e,r,i,o){return{type:"path",ops:q(t,e,r,i,o)}}function w(t,e,r){const i=(t||[]).length;if(i>2){const o=[];for(let e=0;e<i-1;e++)o.push(...q(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&o.push(...q(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:o}}return 2===i?B(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function A(t,e){if(t.length){const r="number"==typeof t[0][0]?[t]:t,i=K(r[0],1*(1+.2*e.roughness),e),o=e.disableMultiStroke?[]:K(r[0],1.5*(1+.22*e.roughness),$(e));for(let t=1;t<r.length;t++){const a=r[t];if(a.length){const t=K(a,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:K(a,1.5*(1+.22*e.roughness),$(e));for(const e of t)"move"!==e.op&&i.push(e);for(const e of r)"move"!==e.op&&o.push(e)}}return{type:"path",ops:i.concat(o)}}return{type:"path",ops:[]}}function L(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/o;let s=Math.abs(t/2),n=Math.abs(e/2);const l=1-r.curveFitting;return s+=D(s*l,r),n+=D(n*l,r),{increment:a,rx:s,ry:n}}function v(t,e,r,i){const[o,a]=P(i.increment,t,e,i.rx,i.ry,1,i.increment*I(.1,I(.4,1,r),r),r);let s=z(o,null,r);if(!r.disableMultiStroke&&0!==r.roughness){const[o]=P(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=z(o,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function F(t,e,r,i,o,a,s,n,l){const h=t,c=e;let d=Math.abs(r/2),u=Math.abs(i/2);d+=D(.01*d,l),u+=D(.01*u,l);let p=o,g=a;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const f=2*Math.PI/l.curveStepCount,y=Math.min(f/2,(g-p)/2),m=W(y,h,c,d,u,p,g,1,l);if(!l.disableMultiStroke){const t=W(y,h,c,d,u,p,g,1.5,l);m.push(...t)}return s&&(n?m.push(...q(h,c,h+d*Math.cos(p),c+u*Math.sin(p),l),...q(h,c,h+d*Math.cos(g),c+u*Math.sin(g),l)):m.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+d*Math.cos(p),c+u*Math.sin(p)]})),{type:"path",ops:m}}function M(t,e){const r=b(x(C(t))),i=[];let o=[0,0],a=[0,0];for(const{key:s,data:n}of r)switch(s){case"M":a=[n[0],n[1]],o=[n[0],n[1]];break;case"L":i.push(...q(a[0],a[1],n[0],n[1],e)),a=[n[0],n[1]];break;case"C":{const[t,r,o,s,l,h]=n;i.push(...N(t,r,o,s,l,h,a,e)),a=[l,h];break}case"Z":i.push(...q(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]]}return{type:"path",ops:i}}function _(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+D(t,e),i[0][1]+D(t,e)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+D(t,e),i[a][1]+D(t,e)]})}}return{type:"fillPath",ops:r}}function E(t,e){return function(t,e){let r=t.fillStyle||"hachure";if(!g[r])switch(r){case"zigzag":g[r]||(g[r]=new h(e));break;case"cross-hatch":g[r]||(g[r]=new c(e));break;case"dots":g[r]||(g[r]=new d(e));break;case"dashed":g[r]||(g[r]=new u(e));break;case"zigzag-line":g[r]||(g[r]=new p(e));break;default:r="hachure",g[r]||(g[r]=new n(e))}return g[r]}(e,S).fillPolygons(t,e)}function $(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function O(t){return t.randomizer||(t.randomizer=new f(t.seed||0)),t.randomizer.next()}function I(t,e,r,i=1){return r.roughness*i*(O(r)*(e-t)+t)}function D(t,e,r=1){return I(-t,t,e,r)}function q(t,e,r,i,o,a=!1){const s=a?o.disableMultiStrokeFill:o.disableMultiStroke,n=R(t,e,r,i,o,!0,!1);if(s)return n;const l=R(t,e,r,i,o,!0,!0);return n.concat(l)}function R(t,e,r,i,o,a,s){const n=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(n);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>n&&(c=l/10);const d=c/2,u=.2+.2*O(o);let p=o.bowing*o.maxRandomnessOffset*(i-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-r)/200;p=D(p,o,h),g=D(g,o,h);const f=[],y=()=>D(d,o,h),m=()=>D(c,o,h),C=o.preserveVertices;return a&&(s?f.push({op:"move",data:[t+(C?0:y()),e+(C?0:y())]}):f.push({op:"move",data:[t+(C?0:D(c,o,h)),e+(C?0:D(c,o,h))]})),s?f.push({op:"bcurveTo",data:[p+t+(r-t)*u+y(),g+e+(i-e)*u+y(),p+t+2*(r-t)*u+y(),g+e+2*(i-e)*u+y(),r+(C?0:y()),i+(C?0:y())]}):f.push({op:"bcurveTo",data:[p+t+(r-t)*u+m(),g+e+(i-e)*u+m(),p+t+2*(r-t)*u+m(),g+e+2*(i-e)*u+m(),r+(C?0:m()),i+(C?0:m())]}),f}function K(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+D(e,r),t[0][1]+D(e,r)]),i.push([t[0][0]+D(e,r),t[0][1]+D(e,r)]);for(let o=1;o<t.length;o++)i.push([t[o][0]+D(e,r),t[o][1]+D(e,r)]),o===t.length-1&&i.push([t[o][0]+D(e,r),t[o][1]+D(e,r)]);return z(i,null,r)}function z(t,e,r){const i=t.length,o=[];if(i>3){const a=[],s=1-r.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){const r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(s*t[e+1][0]-s*t[e-1][0])/6,r[1]+(s*t[e+1][1]-s*t[e-1][1])/6],a[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],o.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){const t=r.maxRandomnessOffset;o.push({op:"lineTo",data:[e[0]+D(t,r),e[1]+D(t,r)]})}}else 3===i?(o.push({op:"move",data:[t[1][0],t[1][1]]}),o.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&o.push(...R(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return o}function P(t,e,r,i,o,a,s,n){const l=[],h=[];if(0===n.roughness){t/=4,h.push([e+i*Math.cos(-t),r+o*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){const t=[e+i*Math.cos(a),r+o*Math.sin(a)];l.push(t),h.push(t)}h.push([e+i*Math.cos(0),r+o*Math.sin(0)]),h.push([e+i*Math.cos(t),r+o*Math.sin(t)])}else{const c=D(.5,n)-Math.PI/2;h.push([D(a,n)+e+.9*i*Math.cos(c-t),D(a,n)+r+.9*o*Math.sin(c-t)]);const d=2*Math.PI+c-.01;for(let s=c;s<d;s+=t){const t=[D(a,n)+e+i*Math.cos(s),D(a,n)+r+o*Math.sin(s)];l.push(t),h.push(t)}h.push([D(a,n)+e+i*Math.cos(c+2*Math.PI+.5*s),D(a,n)+r+o*Math.sin(c+2*Math.PI+.5*s)]),h.push([D(a,n)+e+.98*i*Math.cos(c+s),D(a,n)+r+.98*o*Math.sin(c+s)]),h.push([D(a,n)+e+.9*i*Math.cos(c+.5*s),D(a,n)+r+.9*o*Math.sin(c+.5*s)])}return[h,l]}function W(t,e,r,i,o,a,s,n,l){const h=a+D(.1,l),c=[];c.push([D(n,l)+e+.9*i*Math.cos(h-t),D(n,l)+r+.9*o*Math.sin(h-t)]);for(let d=h;d<=s;d+=t)c.push([D(n,l)+e+i*Math.cos(d),D(n,l)+r+o*Math.sin(d)]);return c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),z(c,null,l)}function N(t,e,r,i,o,a,s,n){const l=[],h=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let c=[0,0];const d=n.disableMultiStroke?1:2,u=n.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(u?0:D(h[0],n)),s[1]+(u?0:D(h[0],n))]}),c=u?[o,a]:[o+D(h[p],n),a+D(h[p],n)],l.push({op:"bcurveTo",data:[t+D(h[p],n),e+D(h[p],n),r+D(h[p],n),i+D(h[p],n),c[0],c[1]]});return l}function j(t){return[...t]}function H(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(3===r)i.push(j(t[0]),j(t[1]),j(t[2]),j(t[2]));else{const r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);const o=[],a=1-e;i.push(j(r[0]));for(let t=1;t+2<r.length;t++){const e=r[t];o[0]=[e[0],e[1]],o[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],o[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],o[3]=[r[t+1][0],r[t+1][1]],i.push(o[1],o[2],o[3])}}return i}function G(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function U(t,e,r){const i=G(e,r);if(0===i)return G(t,e);let o=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return o=Math.max(0,Math.min(1,o)),G(t,Y(e,r,o))}function Y(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function X(t,e,r,i){const o=i||[];if(function(t,e){const r=t[e+0],i=t[e+1],o=t[e+2],a=t[e+3];let s=3*i[0]-2*r[0]-a[0];s*=s;let n=3*i[1]-2*r[1]-a[1];n*=n;let l=3*o[0]-2*a[0]-r[0];l*=l;let h=3*o[1]-2*a[1]-r[1];return h*=h,s<l&&(s=l),n<h&&(n=h),s+n}(t,e)<r){const r=t[e+0];o.length?(a=o[o.length-1],s=r,Math.sqrt(G(a,s))>1&&o.push(r)):o.push(r),o.push(t[e+3])}else{const i=.5,a=t[e+0],s=t[e+1],n=t[e+2],l=t[e+3],h=Y(a,s,i),c=Y(s,n,i),d=Y(n,l,i),u=Y(h,c,i),p=Y(c,d,i),g=Y(u,p,i);X([a,h,u,g],0,r,o),X([g,p,d,l],0,r,o)}var a,s;return o}function V(t,e){return Z(t,0,t.length,e)}function Z(t,e,r,i,o){const a=o||[],s=t[e],n=t[r-1];let l=0,h=1;for(let c=e+1;c<r-1;++c){const e=U(t[c],s,n);e>l&&(l=e,h=c)}return Math.sqrt(l)>i?(Z(t,e,h+1,i,a),Z(t,h,r,i,a)):(a.length||a.push(s),a.push(n)),a}function Q(t,e=.15,r){const i=[],o=(t.length-1)/3;for(let a=0;a<o;a++)X(t,3*a,e,i);return r&&r>0?Z(i,0,i.length,r):i}const J="none";class tt{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,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,o){const a=this._o(o);return this._d("line",[B(t,e,r,i,a)],a)}rectangle(t,e,r,i,o){const a=this._o(o),s=[],n=function(t,e,r,i,o){return function(t,e){return w(t,!0,e)}([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],o)}(t,e,r,i,a);if(a.fill){const o=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===a.fillStyle?s.push(_([o],a)):s.push(E([o],a))}return a.stroke!==J&&s.push(n),this._d("rectangle",s,a)}ellipse(t,e,r,i,o){const a=this._o(o),s=[],n=L(r,i,a),l=v(t,e,a,n);if(a.fill)if("solid"===a.fillStyle){const r=v(t,e,a,n).opset;r.type="fillPath",s.push(r)}else s.push(E([l.estimatedPoints],a));return a.stroke!==J&&s.push(l.opset),this._d("ellipse",s,a)}circle(t,e,r,i){const o=this.ellipse(t,e,r,r,i);return o.shape="circle",o}linearPath(t,e){const r=this._o(e);
2return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,i,o,a,s=!1,n){const l=this._o(n),h=[],c=F(t,e,r,i,o,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const n=F(t,e,r,i,o,a,!0,!1,s);n.type="fillPath",h.push(n)}else h.push(function(t,e,r,i,o,a,s){const n=t,l=e;let h=Math.abs(r/2),c=Math.abs(i/2);h+=D(.01*h,s),c+=D(.01*c,s);let d=o,u=a;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const p=(u-d)/s.curveStepCount,g=[];for(let f=d;f<=u;f+=p)g.push([n+h*Math.cos(f),l+c*Math.sin(f)]);return g.push([n+h*Math.cos(u),l+c*Math.sin(u)]),g.push([n,l]),E([g],s)}(t,e,r,i,o,a,l));return l.stroke!==J&&h.push(c),this._d("arc",h,l)}curve(t,e){const r=this._o(e),i=[],o=A(t,r);if(r.fill&&r.fill!==J)if("solid"===r.fillStyle){const e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],o=t;if(o.length){const t="number"==typeof o[0][0]?[o]:o;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...Q(H([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...Q(H(i),10,(1+r.roughness)/2))}e.length&&i.push(E([e],r))}return r.stroke!==J&&i.push(o),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],o=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(_([t],r)):i.push(E([t],r))),r.stroke!==J&&i.push(o),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&"transparent"!==r.fill&&r.fill!==J,a=r.stroke!==J,s=!!(r.simplification&&r.simplification<1),n=function(t,e,r){const i=b(x(C(t))),o=[];let a=[],s=[0,0],n=[];const l=()=>{n.length>=4&&a.push(...Q(n,1)),n=[]},h=()=>{l(),a.length&&(o.push(a),a=[])};for(const{key:d,data:u}of i)switch(d){case"M":h(),s=[u[0],u[1]],a.push(s);break;case"L":l(),a.push([u[0],u[1]]);break;case"C":if(!n.length){const t=a.length?a[a.length-1]:s;n.push([t[0],t[1]])}n.push([u[0],u[1]]),n.push([u[2],u[3]]),n.push([u[4],u[5]]);break;case"Z":l(),a.push([s[0],s[1]])}if(h(),!r)return o;const c=[];for(const d of o){const t=V(d,r);t.length&&c.push(t)}return c}(t,0,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=M(t,r);if(o)if("solid"===r.fillStyle)if(1===n.length){const e=M(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(_(n,r));else i.push(E(n,r));return a&&(s?n.forEach(t=>{i.push(w(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const o of e){let t=null;switch(o.type){case"path":t={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:J};break;case"fillPath":t={d:this.opsToPath(o),stroke:J,strokeWidth:0,fill:r.fill||J};break;case"fillSketch":t=this.fillSketch(o,r)}t&&i.push(t)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||J,strokeWidth:r,fill:J}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class et{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new tt(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const a of e)switch(a.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,a,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";
2this._drawToContext(i,a,o,e),i.restore();break}case"fillSketch":this.fillSketch(i,a,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){t.beginPath();for(const o of e.ops){const e="number"==typeof r&&r>=0?o.data.map(t=>+t.toFixed(r)):o.data;switch(o.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,o){const a=this.gen.line(t,e,r,i,o);return this.draw(a),a}rectangle(t,e,r,i,o){const a=this.gen.rectangle(t,e,r,i,o);return this.draw(a),a}ellipse(t,e,r,i,o){const a=this.gen.ellipse(t,e,r,i,o);return this.draw(a),a}circle(t,e,r,i){const o=this.gen.circle(t,e,r,i);return this.draw(o),o}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,o,a,s=!1,n){const l=this.gen.arc(t,e,r,i,o,a,s,n);return this.draw(l),l}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){const r=this.gen.path(t,e);return this.draw(r),r}}const rt="http://www.w3.org/2000/svg";class it{constructor(t,e){this.svg=t,this.gen=new tt(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(rt,"g"),a=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=i.createElementNS(rt,"path"),e.setAttribute("d",this.opsToPath(s,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(rt,"path"),e.setAttribute("d",this.opsToPath(s,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,s,r)}e&&o.appendChild(e)}return o}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=t.createElementNS(rt,"path");return o.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,o){const a=this.gen.line(t,e,r,i,o);return this.draw(a)}rectangle(t,e,r,i,o){const a=this.gen.rectangle(t,e,r,i,o);return this.draw(a)}ellipse(t,e,r,i,o){const a=this.gen.ellipse(t,e,r,i,o);return this.draw(a)}circle(t,e,r,i){const o=this.gen.circle(t,e,r,i);return this.draw(o)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,o,a,s=!1,n){const l=this.gen.arc(t,e,r,i,o,a,s,n);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var ot={canvas:(t,e)=>new et(t,e),svg:(t,e)=>new it(t,e),generator:t=>new tt(t),newSeed:()=>tt.newSeed()}},60513(t,e,r){"use strict";function i(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0})):t},[]);if(o.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,o)+"}","g");i=i.map(function(t){return t.replace(a,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return e.forEach(function(t,e){var r=s.match(/(?:^|\n)( *)$/),o=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:""+o+t}).join("\n")),s+=a+i[e+1]}),s}r.d(e,{T:()=>i})},99418(t,e,r){"use strict";r.d(e,{A:()=>pt});const{entries:i,setPrototypeOf:o,isFrozen:a,getPrototypeOf:s,getOwnPropertyDescriptor:n}=Object;let{freeze:l,seal:h,create:c}=Object,{apply:d,construct:u}="undefined"!=typeof Reflect&&Reflect;l||(l=function(t){return t}),h||(h=function(t){return t}),d||(d=function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(e,i)}),u||(u=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});const p=O(Array.prototype.forEach),g=O(Array.prototype.lastIndexOf),f=O(Array.prototype.pop),y=O(Array.prototype.push),m=O(Array.prototype.splice),C=Array.isArray,x=O(String.prototype.toLowerCase),b=O(String.prototype.toString),k=O(String.prototype.match),T=O(String.prototype.replace),S=O(String.prototype.indexOf),B=O(String.prototype.trim),w=O(Number.prototype.toString),A=O(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:O(BigInt.prototype.toString),v="undefined"==typeof Symbol?null:O(Symbol.prototype.toString),F=O(Object.prototype.hasOwnProperty),M=O(Object.prototype.toString),_=O(Reg
vendor: 4,321 bytes, line 2
2Exp.prototype.test),E=($=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u($,e)});var $;function O(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return d(t,e,i)}}function I(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;if(o&&o(t,null),!C(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=r(o);t!==o&&(a(e)||(e[i]=t),o=t)}t[o]=!0}return t}function D(t){for(let e=0;e<t.length;e++){F(t,e)||(t[e]=null)}return t}function q(t){const e=c(null);for(const[r,o]of i(t)){F(t,r)&&(C(o)?e[r]=D(o):o&&"object"==typeof o&&o.constructor===Object?e[r]=q(o):e[r]=o)}return e}function R(t,e){for(;null!==t;){const r=n(t,e);if(r){if(r.get)return O(r.get);if("function"==typeof r.value)return O(r.value)}t=s(t)}return function(){return null}}const K=l(["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"]),z=l(["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"]),P=l(["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"]),W=l(["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"]),N=l(["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"]),j=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=l(["#text"]),G=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),U=l(["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"]),Y=l(["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"]),X=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Z=h(/<%[\w\W]*|[\w\W]*%>/gm),Q=h(/\$\{[\w\W]*/gm),J=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=h(/^aria-[\-\w]+$/),et=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rt=h(/^(?:\w+script|data):/i),it=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ot=h(/^html$/i),at=h(/^[a-z][.\w]*(-[.\w]+)+$/i);var st=Object.freeze({__proto__:null,ARIA_ATTR:tt,ATTR_WHITESPACE:it,CUSTOM_ELEMENT:at,DATA_ATTR:J,DOCTYPE_NAME:ot,ERB_EXPR:Z,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:rt,MUSTACHE_EXPR:V,TMPLIT_EXPR:Q});const nt=1,lt=3,ht=7,ct=8,dt=9,ut=function(){return"undefined"==typeof window?null:window};var pt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut();const r=e=>t(e);if(r.version="3.4.2",r.removed=[],!e||!e.document||e.document.nodeType!==dt||!e.Element)return r.isSupported=!1,r;let{document:o}=e;const a=o,s=a.currentScript,{DocumentFragment:n,HTMLTemplateElement:h,Node:d,Element:u,NodeFilter:$,NamedNodeMap:O=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:D,DOMParser:V,trustedTypes:Z}=e,Q=u.prototype,J=R(Q,"cloneNode"),tt=R(Q,"remove"),rt=R(Q,"nextSibling"),it=R(Q,"childNodes"),at=R(Q,"parentNode");if("function"==typeof h){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let pt,gt="";
vendor: 14,606 bytes, line 2
2const{implementation:ft,createNodeIterator:yt,createDocumentFragment:mt,getElementsByTagName:Ct}=o,{importNode:xt}=a;let bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof i&&"function"==typeof at&&ft&&void 0!==ft.createHTMLDocument;const{MUSTACHE_EXPR:kt,ERB_EXPR:Tt,TMPLIT_EXPR:St,DATA_ATTR:Bt,ARIA_ATTR:wt,IS_SCRIPT_OR_DATA:At,ATTR_WHITESPACE:Lt,CUSTOM_ELEMENT:vt}=st;let{IS_ALLOWED_URI:Ft}=st,Mt=null;const _t=I({},[...K,...z,...P,...N,...H]);let Et=null;const $t=I({},[...G,...U,...Y,...X]);let Ot=Object.seal(c(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}})),It=null,Dt=null;const qt=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,Kt=!0,zt=!1,Pt=!0,Wt=!1,Nt=!0,jt=!1,Ht=!1,Gt=!1,Ut=!1,Yt=!1,Xt=!1,Vt=!0,Zt=!1;const Qt="user-content-";let Jt=!0,te=!1,ee={},re=null;const ie=I({},["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 oe=null;const ae=I({},["audio","video","img","source","image","track"]);let se=null;const ne=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml";let de=ce,ue=!1,pe=null;const ge=I({},[le,he,ce],b);let fe=I({},["mi","mo","mn","ms","mtext"]),ye=I({},["annotation-xml"]);const me=I({},["title","style","font","a","script"]);let Ce=null;const xe=["application/xhtml+xml","text/html"];let be=null,ke=null;const Te=o.createElement("form"),Se=function(t){return t instanceof RegExp||t instanceof Function},Be=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ke&&ke===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ce=-1===xe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===Ce?b:x,Mt=F(t,"ALLOWED_TAGS")&&C(t.ALLOWED_TAGS)?I({},t.ALLOWED_TAGS,be):_t,Et=F(t,"ALLOWED_ATTR")&&C(t.ALLOWED_ATTR)?I({},t.ALLOWED_ATTR,be):$t,pe=F(t,"ALLOWED_NAMESPACES")&&C(t.ALLOWED_NAMESPACES)?I({},t.ALLOWED_NAMESPACES,b):ge,se=F(t,"ADD_URI_SAFE_ATTR")&&C(t.ADD_URI_SAFE_ATTR)?I(q(ne),t.ADD_URI_SAFE_ATTR,be):ne,oe=F(t,"ADD_DATA_URI_TAGS")&&C(t.ADD_DATA_URI_TAGS)?I(q(ae),t.ADD_DATA_URI_TAGS,be):ae,re=F(t,"FORBID_CONTENTS")&&C(t.FORBID_CONTENTS)?I({},t.FORBID_CONTENTS,be):ie,It=F(t,"FORBID_TAGS")&&C(t.FORBID_TAGS)?I({},t.FORBID_TAGS,be):q({}),Dt=F(t,"FORBID_ATTR")&&C(t.FORBID_ATTR)?I({},t.FORBID_ATTR,be):q({}),ee=!!F(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),Rt=!1!==t.ALLOW_ARIA_ATTR,Kt=!1!==t.ALLOW_DATA_ATTR,zt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Wt=t.SAFE_FOR_TEMPLATES||!1,Nt=!1!==t.SAFE_FOR_XML,jt=t.WHOLE_DOCUMENT||!1,Ut=t.RETURN_DOM||!1,Yt=t.RETURN_DOM_FRAGMENT||!1,Xt=t.RETURN_TRUSTED_TYPE||!1,Gt=t.FORCE_BODY||!1,Vt=!1!==t.SANITIZE_DOM,Zt=t.SANITIZE_NAMED_PROPS||!1,Jt=!1!==t.KEEP_CONTENT,te=t.IN_PLACE||!1,Ft=function(t){try{return _(t,""),!0}catch(e){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:et,de="string"==typeof t.NAMESPACE?t.NAMESPACE:ce,fe=F(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?q(t.MATHML_TEXT_INTEGRATION_POINTS):I({},["mi","mo","mn","ms","mtext"]),ye=F(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?q(t.HTML_INTEGRATION_POINTS):I({},["annotation-xml"]);const e=F(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?q(t.CUSTOM_ELEMENT_HANDLING):c(null);if(Ot=c(null),F(e,"tagNameCheck")&&Se(e.tagNameCheck)&&(Ot.tagNameCheck=e.tagNameCheck),F(e,"attributeNameCheck")&&Se(e.attributeNameCheck)&&(Ot.attributeNameCheck=e.attributeNameCheck),F(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(Ot.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),Wt&&(Kt=!1),Yt&&(Ut=!0),ee&&(Mt=I({},H),Et=c(null),!0===ee.html&&(I(Mt,K),I(Et,G)),!0===ee.svg&&(I(Mt,z),I(Et,U),I(Et,X)),!0===ee.svgFilters&&(I(Mt,P),I(Et,U),I(Et,X)),!0===ee.mathMl&&(I(Mt,N),I(Et,Y),I(Et,X))),qt.tagCheck=null,qt.attributeCheck=null,F(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?qt.tagCheck=t.ADD_TAGS:C(t.ADD_TAGS)&&(Mt===_t&&(Mt=q(Mt)),I(Mt,t.ADD_TAGS,be))),F(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?qt.attributeCheck=t.ADD_ATTR:C(t.ADD_ATTR)&&(Et===$t&&(Et=q(Et)),I(Et,t.ADD_ATTR,be))),F(t,"ADD_URI_SAFE_ATTR")&&C(t.ADD_URI_SAFE_ATTR)&&I(se,t.ADD_URI_SAFE_ATTR,be),F(t,"FORBID_CONTENTS")&&C(t.FORBID_CONTENTS)&&(re===ie&&(re=q(re)),I(re,t.FORBID_CONTENTS,be)),F(t,"ADD_FORBID_CONTENTS")&&C(t.ADD_FORBID_CONTENTS)&&(re===ie&&(re=q(re)),I(re,t.ADD_FORBID_CONTENTS,be)),Jt&&(Mt["#text"]=!0),jt&&I(Mt,["html","head","body"]),Mt.table&&(I(Mt,["tbody"]),delete It.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=t.TRUSTED_TYPES_POLICY,gt=pt.createHTML("")}else void 0===pt&&(pt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(Z,s)),null!==pt&&"string"==typeof gt&&(gt=pt.createHTML(""));l&&l(t),ke=t},we=I({},[...z,...P,...W]),Ae=I({},[...N,...j]),Le=function(t){y(r.removed,{element:t});try{at(t).removeChild(t)}catch(e){tt(t)}},ve=function(t,e){try{y(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(i){y(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Ut||Yt)try{Le(e)}catch(i){}else try{e.setAttribute(t,"")}catch(i){}},Fe=function(t){let e=null,r=null;if(Gt)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===Ce&&de===ce&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=pt?pt.createHTML(t):t;if(de===ce)try{e=(new V).parseFromString(i,Ce)}catch(s){}if(!e||!e.documentElement){e=ft.createDocument(de,"template",null);try{e.documentElement.innerHTML=ue?gt:i}catch(s){}}const a=e.body||e.documentElement;return t&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),de===ce?Ct.call(e,jt?"html":"body")[0]:jt?e.documentElement:a},Me=function(t){return yt.call(t.ownerDocument||t,t,$.SHOW_ELEMENT|$.SHOW_COMMENT|$.SHOW_TEXT|$.SHOW_PROCESSING_INSTRUCTION|$.SHOW_CDATA_SECTION,null)},_e=function(t){return t instanceof D&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof O)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ee=function(t){return"function"==typeof d&&t instanceof d};function $e(t,e,i){p(t,t=>{t.call(r,e,i,ke)})}const Oe=function(t){let e=null;if($e(bt.beforeSanitizeElements,t,null),_e(t))return Le(t),!0;const i=be(t.nodeName);if($e(bt.uponSanitizeElement,t,{tagName:i,allowedTags:Mt}),Nt&&t.hasChildNodes()&&!Ee(t.firstElementChild)&&_(/<[/\w!]/g,t.innerHTML)&&_(/<[/\w!]/g,t.textContent))return Le(t),!0;if(Nt&&t.namespaceURI===ce&&"style"===i&&Ee(t.firstElementChild))return Le(t),!0;if(t.nodeType===ht)return Le(t),!0;if(Nt&&t.nodeType===ct&&_(/<[/\w]/g,t.data))return Le(t),!0;if(It[i]||!(qt.tagCheck instanceof Function&&qt.tagCheck(i))&&!Mt[i]){if(!It[i]&&qe(i)){if(Ot.tagNameCheck instanceof RegExp&&_(Ot.tagNameCheck,i))return!1;if(Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(i))return!1}if(Jt&&!re[i]){const e=at(t)||t.parentNode,r=it(t)||t.childNodes;if(r&&e){for(let i=r.length-1;i>=0;--i){const o=J(r[i],!0);e.insertBefore(o,rt(t))}}}return Le(t),!0}return t instanceof u&&!function(t){let e=at(t);e&&e.tagName||(e={namespaceURI:de,tagName:"template"});const r=x(t.tagName),i=x(e.tagName);return!!pe[t.namespaceURI]&&(t.namespaceURI===he?e.namespaceURI===ce?"svg"===r:e.namespaceURI===le?"svg"===r&&("annotation-xml"===i||fe[i]):Boolean(we[r]):t.namespaceURI===le?e.namespaceURI===ce?"math"===r:e.namespaceURI===he?"math"===r&&ye[i]:Boolean(Ae[r]):t.namespaceURI===ce?!(e.namespaceURI===he&&!ye[i])&&!(e.namespaceURI===le&&!fe[i])&&!Ae[r]&&(me[r]||!we[r]):!("application/xhtml+xml"!==Ce||!pe[t.namespaceURI]))}(t)?(Le(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!_(/<\/no(script|embed|frames)/i,t.innerHTML)?(Wt&&t.nodeType===lt&&(e=t.textContent,p([kt,Tt,St],t=>{e=T(e,t," ")}),t.textContent!==e&&(y(r.removed,{element:t.cloneNode()}),t.textContent=e)),$e(bt.afterSanitizeElements,t,null),!1):(Le(t),!0)},Ie=function(t,e,r){if(Dt[e])return!1;if(Vt&&("id"===e||"name"===e)&&(r in o||r in Te))return!1;const i=Et[e]||qt.attributeCheck instanceof Function&&qt.attributeCheck(e,t);if(Kt&&!Dt[e]&&_(Bt,e));else if(Rt&&_(wt,e));else if(!i||Dt[e]){if(!(qe(t)&&(Ot.tagNameCheck instanceof RegExp&&_(Ot.tagNameCheck,t)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(t))&&(Ot.attributeNameCheck instanceof RegExp&&_(Ot.attributeNameCheck,e)||Ot.attributeNameCheck instanceof Function&&Ot.attributeNameCheck(e,t))||"is"===e&&Ot.allowCustomizedBuiltInElements&&(Ot.tagNameCheck instanceof RegExp&&_(Ot.tagNameCheck,r)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(r))))return!1}else if(se[e]);else if(_(Ft,T(r,Lt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==S(r,"data:")||!oe[t]){if(zt&&!_(At,T(r,Lt,"")));else if(r)return!1}else;return!0},De=I({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),qe=function(t){return!De[x(t)]&&_(vt,t)},Re=function(t){$e(bt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||_e(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et,forceKeepAttr:void 0};let o=e.length;for(;o--;){const s=e[o],{name:n,namespaceURI:l,value:h}=s,c=be(n),d=h;let u="value"===n?d:B(d);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,$e(bt.uponSanitizeAttribute,t,i),u=i.attrValue,!Zt||"id"!==c&&"name"!==c||0===S(u,Qt)||(ve(n,t),u=Qt+u),Nt&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){ve(n,t);continue}if("attributename"===c&&k(u,"href")){ve(n,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){ve(n,t);continue}if(!Pt&&_(/\/>/i,u)){ve(n,t);continue}Wt&&p([kt,Tt,St],t=>{u=T(u,t," ")});const g=be(t.nodeName);if(Ie(g,c,u)){if(pt&&"object"==typeof Z&&"function"==typeof Z.getAttributeType)if(l);else switch(Z.getAttributeType(g,c)){case"TrustedHTML":u=pt.createHTML(u);break;case"TrustedScriptURL":u=pt.createScriptURL(u)}if(u!==d)try{l?t.setAttributeNS(l,n,u):t.setAttribute(n,u),_e(t)?Le(t):f(r.removed)}catch(a){ve(n,t)}}else ve(n,t)}$e(bt.afterSanitizeAttributes,t,null)},Ke=function(t){let e=null;const r=Me(t);for($e(bt.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)$e(bt.uponSanitizeShadowNode,e,null),Oe(e),Re(e),e.content instanceof n&&Ke(e.content);$e(bt.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,l=null;if(ue=!t,ue&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ee(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return w(t);case"boolean":return A(t);case"bigint":return L?L(t):"0";case"symbol":return v?v(t):"Symbol()";case"undefined":default:return M(t);case"function":case"object":{if(null===t)return M(t);const e=t,r=R(e,"toString");if("function"==typeof r){const t=r(e);return"string"==typeof t?t:M(t)}return M(t)}}}(t)))throw E("dirty is not a string, aborting");if(!r.isSupported)return t;if(Ht||Be(e),r.removed=[],"string"==typeof t&&(te=!1),te){const e=t.nodeName;if("string"==typeof e){const t=be(e);if(!Mt[t]||It[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof d)i=Fe("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),o.nodeType===nt&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Ut&&!Wt&&!jt&&-1===t.indexOf("<"))return pt&&Xt?pt.createHTML(t):t;if(i=Fe(t),!i)return Ut?null:Xt?gt:""}i&&Gt&&Le(i.firstChild);const h=Me(te?t:i);for(;s=h.nextNode();)Oe(s),Re(s),s.content instanceof n&&Ke(s.content);if(te)return t;if(Ut){if(Wt){i.normalize();let t=i.innerHTML;p([kt,Tt,St],e=>{t=T(t,e," ")}),i.innerHTML=t}if(Yt)for(l=mt.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(Et.shadowroot||Et.shadowrootmode)&&(l=xt.call(a,l,!0)),l}let c=jt?i.outerHTML:i.innerHTML;return jt&&Mt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_(ot,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Wt&&p([kt,Tt,St],t=>{c=T(c,t," ")}),pt&&Xt?pt.createHTML(c):c},r.setConfig=function(){Be(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ht=!0},r.clearConfig=function(){ke=null,Ht=!1},r.isValidAttribute=function(t,e,r){ke||Be({});const i=be(t),o=be(e);return Ie(i,o,r)},r.addHook=function(t,e){"function"==typeof e&&y(bt[t],e)},r.removeHook=function(t,e){if(void 0!==e){const r=g(bt[t],e);return-1===r?void 0:m(bt[t],r,1)[0]}return f(bt[t])},r.removeHooks=function(t){bt[t]=[]},r.removeAllHooks=function(){bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()},93539(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(72453),o=r(63122);const a=class{constructor(){this.type=o.Z.ALL}get(){return this.type}
2set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=o.Z.ALL}is(t){return this.type===t}};const s=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=o.Z.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:o}=t;void 0===e&&(t.h=i.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=i.A.channel.rgb2hsl(t,"s")),void 0===o&&(t.l=i.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:o}=t;void 0===e&&(t.r=i.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=i.A.channel.hsl2rgb(t,"g")),void 0===o&&(t.b=i.A.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(o.Z.HSL)||void 0===e?(this._ensureHSL(),i.A.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(o.Z.RGB)||void 0===e?(this._ensureRGB(),i.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(o.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(o.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},74886(t,e,r){"use strict";r.d(e,{A:()=>f});var i=r(93539),o=r(63122);const a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(a.re);if(!e)return;const r=e[1],o=parseInt(r,16),s=r.length,n=s%4==0,l=s>4,h=l?1:17,c=l?8:4,d=n?0:-1,u=l?255:15;return i.A.set({r:(o>>c*(d+3)&u)*h,g:(o>>c*(d+2)&u)*h,b:(o>>c*(d+1)&u)*h,a:n?(o&u)*h/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:a}=t;return a<1?`#${o.Y[Math.round(e)]}${o.Y[Math.round(r)]}${o.Y[Math.round(i)]}${o.Y[Math.round(255*a)]}`:`#${o.Y[Math.round(e)]}${o.Y[Math.round(r)]}${o.Y[Math.round(i)]}`}},s=a;var n=r(72453);const l={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:t=>{const e=t.match(l.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return n.A.channel.clamp.h(.9*parseFloat(t));case"rad":return n.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return n.A.channel.clamp.h(360*parseFloat(t))}}return n.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(l.re);if(!r)return;const[,o,a,s,h,c]=r;return i.A.set({h:l._hue2deg(o),s:n.A.channel.clamp.s(parseFloat(a)),l:n.A.channel.clamp.l(parseFloat(s)),a:h?n.A.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${n.A.lang.round(e)}, ${n.A.lang.round(r)}%, ${n.A.lang.round(i)}%, ${o})`:`hsl(${n.A.lang.round(e)}, ${n.A.lang.round(r)}%, ${n.A.lang.round(i)}%)`}},h=l,c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
2almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=c.colors[t];if(e)return s.parse(e)},stringify:t=>{const e=s.stringify(t);for(const r in c.colors)if(c.colors[r]===e)return r}},d=c,u={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:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const r=t.match(u.re);if(!r)return;const[,o,a,s,l,h,c,d,p]=r;return i.A.set({r:n.A.channel.clamp.r(a?2.55*parseFloat(o):parseFloat(o)),g:n.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:n.A.channel.clamp.b(c?2.55*parseFloat(h):parseFloat(h)),a:d?n.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${n.A.lang.round(e)}, ${n.A.lang.round(r)}, ${n.A.lang.round(i)}, ${n.A.lang.round(o)})`:`rgb(${n.A.lang.round(e)}, ${n.A.lang.round(r)}, ${n.A.lang.round(i)})`}},p=u,g={format:{keyword:c,hex:s,rgb:u,rgba:u,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=s.parse(t)||p.parse(t)||h.parse(t)||d.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(o.Z.HSL)||void 0===t.data.r?h.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?p.stringify(t):s.stringify(t)},f=g},63122(t,e,r){"use strict";r.d(e,{Y:()=>o,Z:()=>a});var i=r(72453);const o={};for(let s=0;s<=255;s++)o[s]=i.A.unit.dec2hex(s);const a={ALL:0,RGB:1,HSL:2}},95635(t,e,r){"use strict";r.d(e,{A:()=>a});
2var i=r(72453),o=r(74886);const a=(t,e,r)=>{const a=o.A.parse(t),s=a[e],n=i.A.channel.clamp[e](s+r);return s!==n&&(a[e]=n),o.A.stringify(a)}},8232(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(72453),o=r(74886);const a=(t,e)=>{const r=o.A.parse(t);for(const o in e)r[o]=i.A.channel.clamp[o](e[o]);return o.A.stringify(r)}},75263(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(95635);const o=(t,e)=>(0,i.A)(t,"l",-e)},3219(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(72453),o=r(74886);const a=t=>{const{r:e,g:r,b:a}=o.A.parse(t),s=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(a);return i.A.lang.round(s)},s=t=>a(t)>=.5,n=t=>!s(t)},78041(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(95635);const o=(t,e)=>(0,i.A)(t,"l",e)},25582(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(72453),o=r(93539),a=r(74886),s=r(8232);const n=(t,e,r=0,n=1)=>{if("number"!=typeof t)return(0,s.A)(t,{a:e});const l=o.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(n)});return a.A.stringify(l)}},72453(t,e,r){"use strict";r.d(e,{A:()=>o});const i={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},o)=>{if(!e)return 2.55*r;t/=360,e/=100;const a=(r/=100)<.5?r*(1+e):r+e-r*e,s=2*r-a;switch(o){case"r":return 255*i.hue2rgb(s,a,t+1/3);case"g":return 255*i.hue2rgb(s,a,t);case"b":return 255*i.hue2rgb(s,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const o=Math.max(t,e,r),a=Math.min(t,e,r),s=(o+a)/2;if("l"===i)return 100*s;if(o===a)return 0;const n=o-a;if("s"===i)return 100*(s>.5?n/(2-o-a):n/(o+a));switch(o){case t:return 60*((e-r)/n+(e<r?6:0));case e:return 60*((r-t)/n+2);case r:return 60*((t-e)/n+4);default:return-1}}},o={channel:i,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},80127(t,e,r){"use strict";r.d(e,{A:()=>u});const i=function(){this.__data__=[],this.size=0};var o=r(66984);const a=function(t,e){for(var r=t.length;r--;)if((0,o.A)(t[r][0],e))return r;return-1};var s=Array.prototype.splice;const n=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)};const l=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]};const h=function(t){return a(this.__data__,t)>-1};const c=function(t,e){var r=this.__data__,i=a(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};function d(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}d.prototype.clear=i,d.prototype.delete=n,d.prototype.get=l,d.prototype.has=h,d.prototype.set=c;const u=d},68335(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(18744),o=r(41917);const a=(0,i.A)(o.A,"Map")},29471(t,e,r){"use strict";r.d(e,{A:()=>S});const i=(0,r(18744).A)(Object,"create");const o=function(){this.__data__=i?i(null):{},this.size=0};const a=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var s=Object.prototype.hasOwnProperty;const n=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0};var l=Object.prototype.hasOwnProperty;const h=function(t){var e=this.__data__;return i?void 0!==e[t]:l.call(e,t)};const c=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function d(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}d.prototype.clear=o,d.prototype.delete=a,d.prototype.get=n,d.prototype.has=h,d.prototype.set=c;const u=d;var p=r(80127),g=r(68335);const f=function(){this.size=0,this.__data__={hash:new u,map:new(g.A||p.A),string:new u}};const y=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const m=function(t,e){var r=t.__data__;return y(e)?r["string"==typeof e?"string":"hash"]:r.map};const C=function(t){var e=m(this,t).delete(t);return this.size-=e?1:0,e};const x=function(t){return m(this,t).get(t)};const b=function(t){return m(this,t).has(t)};const k=function(t,e){var r=m(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this};function T(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}T.prototype.clear=f,T.prototype.delete=C,T.prototype.get=x,T.prototype.has=b,T.prototype.set=k;const S=T},39857(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(18744),o=r(41917);const a=(0,i.A)(o.A,"Set")},11754(t,e,r){"use strict";r.d(e,{A:()=>u});var i=r(80127);const o=function(){this.__data__=new i.A,this.size=0};const a=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const s=function(t){return this.__data__.get(t)};const n=function(t){return this.__data__.has(t)};var l=r(68335),h=r(29471);const c=function(t,e){var r=this.__data__;if(r instanceof i.A){var o=r.__data__;if(!l.A||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new h.A(o)}return r.set(t,e),this.size=r.size,this};function d(t){var e=this.__data__=new i.A(t);this.size=e.size}d.prototype.clear=o,d.prototype.delete=a,d.prototype.get=s,d.prototype.has=n,d.prototype.set=c;const u=d},241(t,e,r){"use strict";r.d(e,{A:()=>i});const i=r(41917).A.Symbol},43988(t,e,r){"use strict";r.d(e,{A:()=>i});const i=r(41917).A.Uint8Array},83607(t,e,r){"use strict";r.d(e,{A:()=>c});const i=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i};var o=r(52274),a=r(92049),s=r(99912),n=r(25353),l=r(33858),h=Object.prototype.hasOwnProperty;const c=function(t,e){var r=(0,a.A)(t),c=!r&&(0,o.A)(t),d=!r&&!c&&(0,s.A)(t),u=!r&&!c&&!d&&(0,l.A)(t),p=r||c||d||u,g=p?i(t.length,String):[],f=g.length;for(var y in t)!e&&!h.call(t,y)||p&&("length"==y||d&&("offset"==y||"parent"==y)||u&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,n.A)(y,f))||g.push(y);return g}},52851(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(52528),o=r(66984),a=Object.prototype.hasOwnProperty;const s=function(t,e,r){var s=t[e];a.call(t,e)&&(0,o.A)(s,r)&&(void 0!==r||e in t)||(0,i.A)(t,e,r)}},52528(t,e,r){"use strict";r.d(e,{A:()=>
2o});var i=r(84171);const o=function(t,e,r){"__proto__"==e&&i.A?(0,i.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},4574(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return function(e,r,i){for(var o=-1,a=Object(e),s=i(e),n=s.length;n--;){var l=s[t?n:++o];if(!1===r(a[l],l,a))break}return e}}()},66115(t,e,r){"use strict";r.d(e,{A:()=>u});var i=r(241),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,n=i.A?i.A.toStringTag:void 0;const l=function(t){var e=a.call(t,n),r=t[n];try{t[n]=void 0;var i=!0}catch(l){}var o=s.call(t);return i&&(e?t[n]=r:delete t[n]),o};var h=Object.prototype.toString;const c=function(t){return h.call(t)};var d=i.A?i.A.toStringTag:void 0;const u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?l(t):c(t)}},69471(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(97271);const o=(0,r(40367).A)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,i.A)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},24326(t,e,r){"use strict";r.d(e,{A:()=>s});var i=r(29008),o=r(76875),a=r(67525);const s=function(t,e){return(0,a.A)((0,o.A)(t,e,i.A),t+"")}},52789(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return function(e){return t(e)}}},90565(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(43988);const o=function(t){var e=new t.constructor(t.byteLength);return new i.A(e).set(new i.A(t)),e}},80154(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(41917),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o?i.A.Buffer:void 0,n=s?s.allocUnsafe:void 0;const l=function(t,e){if(e)return t.slice();var r=t.length,i=n?n(r):new t.constructor(r);return t.copy(i),i}},1801(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(90565);const o=function(t,e){var r=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},39759(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}},22031(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(52851),o=r(52528);const a=function(t,e,r,a){var s=!r;r||(r={});for(var n=-1,l=e.length;++n<l;){var h=e[n],c=a?a(r[h],t[h],h,r,t):void 0;void 0===c&&(c=t[h]),s?(0,o.A)(r,h,c):(0,i.A)(r,h,c)}return r}},84171(t,e,r){"use strict";r.d(e,{A:()=>o});var i=r(18744);const o=function(){try{var t=(0,i.A)(Object,"defineProperty");return t({},"",{}),t}catch(e){}}()},72136(t,e,r){"use strict";r.d(e,{A:()=>i});const i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},18744(t,e,r){"use strict";r.d(e,{A:()=>C});var i=r(89610);const o=r(41917).A["__core-js_shared__"];var a,s=(a=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";const n=function(t){return!!s&&s in t};var l=r(23149),h=r(81121),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,g=u.hasOwnProperty,f=RegExp("^"+p.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y=function(t){return!(!(0,l.A)(t)||n(t))&&((0,i.A)(t)?f:c).test((0,h.A)(t))};const m=function(t,e){return null==t?void 0:t[e]};const C=function(t,e){var r=m(t,e);return y(r)?r:void 0}},15647(t,e,r){"use strict";r.d(e,{A:()=>i});const i=(0,r(40367).A)(Object.getPrototypeOf,Object)},9779(t,e,r){"use strict";r.d(e,{A:()=>S});var i=r(18744),o=r(41917);const a=(0,i.A)(o.A,"DataView");var s=r(68335);const n=(0,i.A)(o.A,"Promise");var l=r(39857);const h=(0,i.A)(o.A,"WeakMap");var c=r(66115),d=r(81121),u="[object Map]",p="[object Promise]",g="[object Set]",f="[object WeakMap]",y="[object DataView]",m=(0,d.A)(a),C=(0,d.A)(s.A),x=(0,d.A)(n),b=(0,d.A)(l.A),k=(0,d.A)(h),T=c.A;(a&&T(new a(new ArrayBuffer(1)))!=y||s.A&&T(new s.A)!=u||n&&T(n.resolve())!=p||l.A&&T(new l.A)!=g||h&&T(new h)!=f)&&(T=function(t){var e=(0,c.A)(t),r="[object Object]"==e?t.constructor:void 0,i=r?(0,d.A)(r):"";if(i)switch(i){case m:return y;case C:return u;case x:return p;case b:return g;case k:return f}return e});const S=T},18598(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(23149),o=Object.create;const a=function(){function t(){}return function(e){if(!(0,i.A)(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var s=r(15647),n=r(97271);const l=function(t){return"function"!=typeof t.constructor||(0,n.A)(t)?{}:a((0,s.A)(t))}},25353(t,e,r){"use strict";r.d(e,{A:()=>
2o});var i=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},6832(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(66984),o=r(38446),a=r(25353),s=r(23149);const n=function(t,e,r){if(!(0,s.A)(r))return!1;var n=typeof e;return!!("number"==n?(0,o.A)(r)&&(0,a.A)(e,r.length):"string"==n&&e in r)&&(0,i.A)(r[e],t)}},97271(t,e,r){"use strict";r.d(e,{A:()=>o});var i=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},64841(t,e,r){"use strict";r.d(e,{A:()=>n});var i=r(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o&&i.A.process;const n=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}()},40367(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t,e){return function(r){return t(e(r))}}},76875(t,e,r){"use strict";r.d(e,{A:()=>a});const i=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var o=Math.max;const a=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var a=arguments,s=-1,n=o(a.length-e,0),l=Array(n);++s<n;)l[s]=a[e+s];s=-1;for(var h=Array(e+1);++s<e;)h[s]=a[s];return h[e]=r(l),i(t,this,h)}}},41917(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(72136),o="object"==typeof self&&self&&self.Object===Object&&self;const a=i.A||o||Function("return this")()},67525(t,e,r){"use strict";r.d(e,{A:()=>h});var i=r(39142),o=r(84171),a=r(29008);const s=o.A?function(t,e){return(0,o.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,i.A)(e),writable:!0})}:a.A;var n=Date.now;const l=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const h=l(s)},81121(t,e,r){"use strict";r.d(e,{A:()=>o});var i=Function.prototype.toString;const o=function(t){if(null!=t){try{return i.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},39142(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return function(){return t}}},66984(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t,e){return t===e||t!=t&&e!=e}},29008(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return t}},52274(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(66115),o=r(53098);const a=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,i.A)(t)};var s=Object.prototype,n=s.hasOwnProperty,l=s.propertyIsEnumerable,h=a(function(){return arguments}())?a:function(t){return(0,o.A)(t)&&n.call(t,"callee")&&!l.call(t,"callee")};const c=h},92049(t,e,r){"use strict";r.d(e,{A:()=>i});const i=Array.isArray},38446(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(89610),o=r(5254);const a=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,i.A)(t)}},53533(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(38446),o=r(53098);const a=function(t){return(0,o.A)(t)&&(0,i.A)(t)}},99912(t,e,r){"use strict";r.d(e,{A:()=>l});var i=r(41917);const o=function(){return!1};var a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,n=s&&s.exports===a?i.A.Buffer:void 0;const l=(n?n.isBuffer:void 0)||o},66401(t,e,r){"use strict";r.d(e,{A:()=>u});var i=r(69471),o=r(9779),a=r(52274),s=r(92049),n=r(38446),l=r(99912),h=r(97271),c=r(33858),d=Object.prototype.hasOwnProperty;const u=function(t){if(null==t)return!0;if((0,n.A)(t)&&((0,s.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,c.A)(t)||(0,a.A)(t)))return!t.length;var e=(0,o.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,h.A)(t))return!(0,i.A)(t).length;for(var r in t)if(d.call(t,r))return!1;return!0}},89610(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(66115),o=r(23149);const a=function(t){if(!(0,o.A)(t))return!1;var e=(0,i.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5254(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},23149(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},53098(t,e,r){"use strict";r.d(e,{A:()=>i});const i=function(t){return null!=t&&"object"==typeof t}},33858(t,e,r){"use strict";r.d(e,{A:()=>d});
2var i=r(66115),o=r(5254),a=r(53098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const n=function(t){return(0,a.A)(t)&&(0,o.A)(t.length)&&!!s[(0,i.A)(t)]};var l=r(52789),h=r(64841),c=h.A&&h.A.isTypedArray;const d=c?(0,l.A)(c):n},55615(t,e,r){"use strict";r.d(e,{A:()=>c});var i=r(83607),o=r(23149),a=r(97271);const s=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var n=Object.prototype.hasOwnProperty;const l=function(t){if(!(0,o.A)(t))return s(t);var e=(0,a.A)(t),r=[];for(var i in t)("constructor"!=i||!e&&n.call(t,i))&&r.push(i);return r};var h=r(38446);const c=function(t){return(0,h.A)(t)?(0,i.A)(t,!0):l(t)}},46632(t,e,r){"use strict";r.d(e,{A:()=>a});var i=r(29471);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var i=arguments,o=e?e.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return r.cache=a.set(o,s)||a,s};return r.cache=new(o.Cache||i.A),r}o.Cache=i.A;const a=o},49918(t,e,r){"use strict";r.d(e,{A:()=>D});var i=r(11754),o=r(52528),a=r(66984);const s=function(t,e,r){(void 0!==r&&!(0,a.A)(t[e],r)||void 0===r&&!(e in t))&&(0,o.A)(t,e,r)};var n=r(4574),l=r(80154),h=r(1801),c=r(39759),d=r(18598),u=r(52274),p=r(92049),g=r(53533),f=r(99912),y=r(89610),m=r(23149),C=r(66115),x=r(15647),b=r(53098),k=Function.prototype,T=Object.prototype,S=k.toString,B=T.hasOwnProperty,w=S.call(Object);const A=function(t){if(!(0,b.A)(t)||"[object Object]"!=(0,C.A)(t))return!1;var e=(0,x.A)(t);if(null===e)return!0;var r=B.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&S.call(r)==w};var L=r(33858);const v=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var F=r(22031),M=r(55615);const _=function(t){return(0,F.A)(t,(0,M.A)(t))};const E=function(t,e,r,i,o,a,n){var C=v(t,r),x=v(e,r),b=n.get(x);if(b)s(t,r,b);else{var k=a?a(C,x,r+"",t,e,n):void 0,T=void 0===k;if(T){var S=(0,p.A)(x),B=!S&&(0,f.A)(x),w=!S&&!B&&(0,L.A)(x);k=x,S||B||w?(0,p.A)(C)?k=C:(0,g.A)(C)?k=(0,c.A)(C):B?(T=!1,k=(0,l.A)(x,!0)):w?(T=!1,k=(0,h.A)(x,!0)):k=[]:A(x)||(0,u.A)(x)?(k=C,(0,u.A)(C)?k=_(C):(0,m.A)(C)&&!(0,y.A)(C)||(k=(0,d.A)(x))):T=!1}T&&(n.set(x,k),o(k,x,i,a,n),n.delete(x)),s(t,r,k)}};const $=function t(e,r,o,a,l){e!==r&&(0,n.A)(r,function(n,h){if(l||(l=new i.A),(0,m.A)(n))E(e,r,h,o,t,a,l);else{var c=a?a(v(e,h),n,h+"",e,r,l):void 0;void 0===c&&(c=n),s(e,h,c)}},M.A)};var O=r(24326),I=r(6832);const D=function(t){return(0,O.A)(function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&(0,I.A)(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var n=r[i];n&&t(e,n,i,a)}return e})}(function(t,e,r){$(t,e,r)})},29444(t,e,r){"use strict";r.d(e,{XX:()=>d,q7:()=>u,sO:()=>c});var i=r(73353),o=r(29092),a=r(28718),s=r(17726),n=r(40797),l={common:s.Y2,getConfig:s.zj,insertCluster:o.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:o.on,interpolateToCurve:a.Ib,labelHelper:o.Zk,log:n.Rm,positionEdgeLabel:i.T_},h={},c=(0,n.K2)(t=>{for(const e of t)h[e.name]=e},"registerLayoutLoaders");(0,n.K2)(()=>{c([{name:"dagre",loader:(0,n.K2)(async()=>await Promise.all([r.e(4801),r.e(1169),r.e(9051),r.e(8029)]).then(r.bind(r,48029)),"loader")},{name:"cose-bilkent",loader:(0,n.K2)(async()=>await Promise.all([r.e(165),r.e(7928)]).then(r.bind(r,77928)),"loader")}])},"registerDefaultLayoutLoaders")();var d=(0,n.K2)(async(t,e)=>{if(!(t.layoutAlgorithm in h))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const l of t.nodes){const e=l.domId||l.id;l.domId=`${t.diagramId}-${e}`}const r=h[t.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:a}=t.config,{useGradient:s,gradientStart:n,gradientStop:c}=a,d=e.attr("id");if(e.append("defs").append("filter").attr("id",`${d}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+(o?.includes("dark")?"#FFFFFF":"#000000")),e.append("defs").append("filter").attr("id",`${d}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+(o?.includes("dark")?"#FFFFFF":"#000000")),s){const t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)}return i.render(t,e,l,{algorithm:r.algorithm})},"render"),u=(0,n.K2)((t="",{fallback:e="dagre"}={})=>
2{if(t in h)return t;if(e in h)return n.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},38342(t,e,r){"use strict";r.d(e,{D:()=>s});var i=r(17726),o=r(40797),a=r(70451),s=(0,o.K2)(t=>{const{securityLevel:e}=(0,i.D7)();let r=(0,a.Ltv)("body");if("sandbox"===e){const e=(0,a.Ltv)(`#i${t}`),i=e.node()?.contentDocument??document;r=(0,a.Ltv)(i.body)}return r.select(`#${t}`)},"selectSvgElement")},29092(t,e,r){"use strict";r.d(e,{DA:()=>b,IU:()=>F,U:()=>v,U7:()=>Me,U_:()=>Ee,Zk:()=>d,aP:()=>Le,gh:()=>_e,lC:()=>p,on:()=>Fe});var i=r(97963),o=r(38278),a=r(35183),s=r(28718),n=r(17726),l=r(40797),h=r(70451),c=r(29893),d=(0,l.K2)(async(t,e,r)=>{let o;const l=e.useHtmlLabels||(0,n._3)((0,n.D7)()?.htmlLabels);o=r||"node default";const c=t.insert("g").attr("class",o).attr("id",e.domId||e.id),d=c.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));let u;u=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const p=!!e.icon||!!e.img,g="markdown"===e.labelType,f=await(0,a.GZ)(d,(0,n.jZ)((0,s.Sm)(u),(0,n.D7)()),{useHtmlLabels:l,width:e.width||(0,n.D7)().flowchart?.wrappingWidth,classes:g?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:p,markdown:g},(0,n.D7)());let y=f.getBBox();const m=(e?.padding??0)/2;if(l){const t=f.children[0],e=(0,h.Ltv)(f);await(0,i.X)(t,u),y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return l?d.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):d.attr("transform","translate(0, "+-y.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:c,bbox:y,halfPadding:m,label:d}},"labelHelper"),u=(0,l.K2)(async(t,e,r)=>{const i=r.useHtmlLabels??(0,n.E)((0,n.D7)()),o=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),l=await(0,a.GZ)(o,(0,n.jZ)((0,s.Sm)(e),(0,n.D7)()),{useHtmlLabels:i,width:r.width||(0,n.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let c=l.getBBox();const d=r.padding/2;if((0,n.E)((0,n.D7)())){const t=l.children[0],e=(0,h.Ltv)(l);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return i?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:c,halfPadding:d,label:o}},"insertLabel"),p=(0,l.K2)((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),g=(0,l.K2)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function f(t){const e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function y(t,e,r,i,o,a){const s=[],n=r-t,l=i-e,h=n/a,c=2*Math.PI/h,d=e+l/2;for(let u=0;u<=50;u++){const e=t+u/50*n,r=d+o*Math.sin(c*(e-t));s.push({x:e,y:r})}return s}function m(t,e,r,i,o,a){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let h=0;h<i;h++){const i=n+h*l,o=t+r*Math.cos(i),a=e+r*Math.sin(i);s.push({x:-o,y:-a})}return s}function C(t){const e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");r.setAttribute("d",i);const o=e.find(t=>"none"!==t.getAttribute("fill")),a=e.find(t=>"none"!==t.getAttribute("stroke")),s=(0,l.K2)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");if(o){const t={fill:s(o,"fill"),"fill-opacity":s(o,"fill-opacity")??"1"};Object.entries(t).forEach(([t,e])=>{e&&r.setAttribute(t,e)})}if(a){const t={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(t).forEach(([t,e])=>{e&&r.setAttribute(t,e)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}(0,l.K2)(f,"createPathFromPoints"),(0,l.K2)(y,"generateFullSineWavePoints"),(0,l.K2)(m,"generateCirclePoints"),(0,l.K2)(C,"mergePaths");var x=(0,l.K2)((t,e)=>{var r,i,o=t.x,a=t.y,s=e.x-o,n=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(n)*l>Math.abs(s)*h?(n<0&&(h=-h),r=0===n?0:h*s/n,i=h):(s<0&&(l=-l),r=l,i=0===s?0:l*n/s),{x:o+r,y:a+i}},"intersectRect"),b=(0,l.K2)(async(t,e,r,i=!1,o=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);const l=(0,n.D7)(),h=(0,n.E)(l);return await(0,a.GZ)(t,s,{style:r,isTitle:i,useHtmlLabels:h,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},l)},"createLabel"),k=(0,l.K2)((t,e,r,i,o)=>["M",t+o,e,"H",t+r-o,"A",o,o,0,0,1,t+r,e+o,"V",e+i-o,"A",o,o,0,0,1,t+r-o,e+i,"H",t+o,"A",o,o,0,0,1,t,e+i-o,"V",e+o,"A",o,o,0,0,1,t+o,e,"Z"].join(" "),"createRoundedRectPathD"),T=(0,l.K2)(async(t,e)=>{l.Rm.info("Creating subgraph rect for ",e.id,e);
2const r=(0,n.D7)(),{themeVariables:s,handDrawnSeed:d}=r,{clusterBkg:u,clusterBorder:p}=s,{labelStyles:g,nodeStyles:f,borderStyles:y,backgroundStyles:m}=(0,o.GX)(e),C=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),T=(0,n.E)(r),S=C.insert("g").attr("class","cluster-label ");let B;B="markdown"===e.labelType?await(0,a.GZ)(S,e.label,{style:e.labelStyle,useHtmlLabels:T,isNode:!0,width:e.width}):await b(S,e.label,e.labelStyle||"",!1,!0);let w=B.getBBox();if((0,n.E)(r)){const t=B.children[0],e=(0,h.Ltv)(B);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}const A=e.width<=w.width+e.padding?w.width+e.padding:e.width;e.width<=w.width+e.padding?e.diff=(A-e.width)/2-e.padding:e.diff=-e.padding;const L=e.height,v=e.x-A/2,F=e.y-L/2;let M;if(l.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(C),r=(0,o.Fr)(e,{roughness:.7,fill:u,stroke:p,fillWeight:3,seed:d}),i=t.path(k(v,F,A,L,0),r);M=C.insert(()=>(l.Rm.debug("Rough node insert CXC",i),i),":first-child"),M.select("path:nth-child(2)").attr("style",y.join(";")),M.select("path").attr("style",m.join(";").replace("fill","stroke"))}else M=C.insert("rect",":first-child"),M.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",v).attr("y",F).attr("width",A).attr("height",L);const{subGraphTitleTopMargin:_}=(0,i.O)(r);if(S.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+_})`),g){const t=S.select("span");t&&t.attr("style",g)}const E=M.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=w.height-e.padding/2,e.intersect=function(t){return x(e,t)},{cluster:C,labelBBox:w}},"rect"),S=(0,l.K2)((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),o=0*e.padding,a=o/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+o).attr("height",e.height+o).attr("fill","none");const s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return x(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),B=(0,l.K2)(async(t,e)=>{const r=(0,n.D7)(),{themeVariables:i,handDrawnSeed:o}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:l,nodeBorder:d}=i,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),p=u.insert("g",":first-child"),g=u.insert("g").attr("class","cluster-label");let f=u.append("rect");const y=await b(g,e.label,e.labelStyle,void 0,!0);let m=y.getBBox();if((0,n.E)(r)){const t=y.children[0],e=(0,h.Ltv)(y);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}const C=0*e.padding,T=C/2,S=(e.width<=m.width+e.padding?m.width+e.padding:e.width)+C;e.width<=m.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;const B=e.height+C,w=e.height+C-m.height-6,A=e.x-S/2,L=e.y-B/2;e.width=S;const v=e.y-e.height/2-T+m.height+2;let F;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),r=c.A.svg(u),i=e.rx||e.ry?r.path(k(A,L,S,B,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:d,seed:o}):r.rectangle(A,L,S,B,{seed:o});F=u.insert(()=>i,":first-child");const n=r.rectangle(A,v,S,w,{fill:t?a:s,fillStyle:t?"hachure":"solid",stroke:d,seed:o});F=u.insert(()=>i,":first-child"),f=u.insert(()=>n)}else{F=p.insert("rect",":first-child");const t="outer";F.attr("class",t).attr("x",A).attr("y",L).attr("width",S).attr("height",B).attr("data-look",e.look),f.attr("class","inner").attr("x",A).attr("y",v).attr("width",S).attr("height",w)}g.attr("transform",`translate(${e.x-m.width/2}, ${L+1-((0,n.E)(r)?0:3)})`);const M=F.node().getBBox();return e.height=M.height,e.offsetX=0,e.offsetY=m.height-e.padding/2,e.labelBBox=m,e.intersect=function(t){return x(e,t)},{cluster:u,labelBBox:m}},"roundedWithTitle"),w=(0,l.K2)(async(t,e)=>{l.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,n.D7)(),{themeVariables:s,handDrawnSeed:d}=r,{clusterBkg:u,clusterBorder:p}=s,{labelStyles:g,nodeStyles:f,borderStyles:y,backgroundStyles:m}=(0,o.GX)(e),C=t.insert("g").attr("class","cluster "+e.cssClasse
2s).attr("id",e.domId).attr("data-look",e.look),b=(0,n.E)(r),T=C.insert("g").attr("class","cluster-label "),S=await(0,a.GZ)(T,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0,width:e.width});let B=S.getBBox();if((0,n.E)(r)){const t=S.children[0],e=(0,h.Ltv)(S);B=t.getBoundingClientRect(),e.attr("width",B.width),e.attr("height",B.height)}const w=e.width<=B.width+e.padding?B.width+e.padding:e.width;e.width<=B.width+e.padding?e.diff=(w-e.width)/2-e.padding:e.diff=-e.padding;const A=e.height,L=e.x-w/2,v=e.y-A/2;let F;if(l.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(C),r=(0,o.Fr)(e,{roughness:.7,fill:u,stroke:p,fillWeight:4,seed:d}),i=t.path(k(L,v,w,A,e.rx),r);F=C.insert(()=>(l.Rm.debug("Rough node insert CXC",i),i),":first-child"),F.select("path:nth-child(2)").attr("style",y.join(";")),F.select("path").attr("style",m.join(";").replace("fill","stroke"))}else F=C.insert("rect",":first-child"),F.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",L).attr("y",v).attr("width",w).attr("height",A);const{subGraphTitleTopMargin:M}=(0,i.O)(r);if(T.attr("transform",`translate(${e.x-B.width/2}, ${e.y-e.height/2+M})`),g){const t=T.select("span");t&&t.attr("style",g)}const _=F.node().getBBox();return e.offsetX=0,e.width=_.width,e.height=_.height,e.offsetY=B.height-e.padding/2,e.intersect=function(t){return x(e,t)},{cluster:C,labelBBox:B}},"kanbanSection"),A={rect:T,squareRect:T,roundedWithTitle:B,noteGroup:S,divider:(0,l.K2)((t,e)=>{const r=(0,n.D7)(),{themeVariables:i,handDrawnSeed:o}=r,{nodeBorder:a}=i,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),l=s.insert("g",":first-child"),h=0*e.padding,d=e.width+h;e.diff=-e.padding;const u=e.height+h,p=e.x-d/2,g=e.y-u/2;let f;if(e.width=d,"handDrawn"===e.look){const t=c.A.svg(s).rectangle(p,g,d,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:o});f=s.insert(()=>t,":first-child")}else{f=l.insert("rect",":first-child");let t="outer";t=(e.look,"divider"),f.attr("class",t).attr("x",p).attr("y",g).attr("width",d).attr("height",u).attr("data-look",e.look)}const y=f.node().getBBox();return e.height=y.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return x(e,t)},{cluster:s,labelBBox:{}}}
2,"divider"),kanbanSection:w},L=new Map,v=(0,l.K2)(async(t,e)=>{const r=e.shape||"rect",i=await A[r](t,e);return L.set(e.id,i),i},"insertCluster"),F=(0,l.K2)(()=>{L=new Map},"clear");function M(t,e){return t.intersect(e)}(0,l.K2)(M,"intersectNode");var _=M;function E(t,e,r,i){var o=t.x,a=t.y,s=o-i.x,n=a-i.y,l=Math.sqrt(e*e*n*n+r*r*s*s),h=Math.abs(e*r*s/l);i.x<o&&(h=-h);var c=Math.abs(e*r*n/l);return i.y<a&&(c=-c),{x:o+h,y:a+c}}(0,l.K2)(E,"intersectEllipse");var $=E;function O(t,e,r){return $(t,e,e,r)}(0,l.K2)(O,"intersectCircle");var I=O;function D(t,e,r,i){{const o=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,n=o*r.x+a*r.y+s,l=o*i.x+a*i.y+s,h=1e-6;if(0!==n&&0!==l&&q(n,l))return;const c=i.y-r.y,d=r.x-i.x,u=i.x*r.y-r.x*i.y,p=c*t.x+d*t.y+u,g=c*e.x+d*e.y+u;if(Math.abs(p)<h&&Math.abs(g)<h&&q(p,g))return;const f=o*d-c*a;if(0===f)return;const y=Math.abs(f/2);let m=a*u-d*s;const C=m<0?(m-y)/f:(m+y)/f;m=c*s-o*u;return{x:C,y:m<0?(m-y)/f:(m+y)/f}}}function q(t,e){return t*e>0}(0,l.K2)(D,"intersectLine"),(0,l.K2)(q,"sameSign");var R=D;function K(t,e,r){let i=t.x,o=t.y,a=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){s=Math.min(s,t.x),n=Math.min(n,t.y)}):(s=Math.min(s,e.x),n=Math.min(n,e.y));let l=i-t.width/2-s,h=o-t.height/2-n;for(let c=0;c<e.length;c++){let i=e[c],o=e[c<e.length-1?c+1:0],s=R(t,r,{x:l+i.x,y:h+i.y},{x:l+o.x,y:h+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(t,e){let i=t.x-r.x,o=t.y-r.y,a=Math.sqrt(i*i+o*o),s=e.x-r.x,n=e.y-r.y,l=Math.sqrt(s*s+n*n);return a<l?-1:a===l?0:1}),a[0]):t}(0,l.K2)(K,"intersectPolygon");var z={node:_,circle:I,ellipse:$,polygon:K,rect:x};function P(t,e){const{labelStyles:r}=(0,o.GX)(e);e.labelStyle=r;const i=g(e);let a=i;i||(a="anchor");const n=t.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:h}=e,d=c.A.svg(n),u=(0,o.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);const f=d.circle(0,0,2,u),y=n.insert(()=>f,":first-child");return y.attr("class","anchor").attr("style",(0,s.KL)(h)),p(e,y),e.intersect=function(t){return l.Rm.info("Circle intersect",e,1,t),z.circle(e,1,t)},n}function W(t,e,r,i,o,a,s){const n=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),c=(r-t)/2/o,d=(i-e)/2/a,u=Math.sqrt(c**2+d**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-u**2),g=n+p*a*Math.sin(h)*(s?-1:1),f=l-p*o*Math.cos(h)*(s?-1:1),y=Math.atan2((e-f)/a,(t-g)/o);let m=Math.atan2((i-f)/a,(r-g)/o)-y;s&&m<0&&(m+=2*Math.PI),!s&&m>0&&(m-=2*Math.PI);const C=[];for(let x=0;x<20;x++){const t=y+x/19*m,e=g+o*Math.cos(t),r=f+a*Math.sin(t);C.push({x:e,y:r})}return C}function N(t,e,r){const[i,o]=[e,r].sort((t,e)=>e-t);return o*(1-Math.sqrt(1-(t/i/2)**2))}async function j(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,h=(0,l.K2)(t=>t+n,"calcTotalHeight"),u=(0,l.K2)(t=>{const e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:y,bbox:m}=await d(t,e,g(e)),C=h(e?.height?e?.height:m.height),[x,b]=u(C),k=N(C,x,b),T=(e?.width?e?.width:m.width)+2*s+k-k,S=C,{cssStyles:B}=e,w=[{x:T/2,y:-S/2},{x:-T/2,y:-S/2},...W(-T/2,-S/2,-T/2,S/2,x,b,!1),{x:T/2,y:S/2},...W(T/2,S/2,T/2,-S/2,x,b,!0)],A=c.A.svg(y),L=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");const v=f(w),F=A.path(v,L),M=y.insert(()=>F,":first-child");return M.attr("class","basic label-container outer-path"),B&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",B),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${x/2}, 0)`),p(e,M),e.intersect=function(t){return z.polygon(e,w,t)},y}function H(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,l.K2)(P,"anchor"),(0,l.K2)(W,"generateArcPoints"),(0,l.K2)(N,"calculateArcSagitta"),(0,l.K2)(j,"bowTieRect"),(0,l.K2)(H,"insertPolygonShape");async function G(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?28:a,n="neo"===e.look?24:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.width??h.width)+("neo"===e.look?2*s:s+12),y=(e?.height??h.height)+("neo"===e.look?2*n:n),m=-y,C=[{x:12,y:m},{x:u,y:m},{x:u,y:0},{x:0,y:0},{x:0,y:m+12},{x:12,y:m}];let x;const{cssStyles:b}=e;
2if("handDrawn"===e.look){const t=c.A.svg(l),r=(0,o.Fr)(e,{}),i=f(C),a=t.path(i,r);x=l.insert(()=>a,":first-child").attr("transform",`translate(${-u/2}, ${y/2})`),b&&x.attr("style",b)}else x=H(l,u,y,C);return i&&x.attr("style",i),p(e,x),e.intersect=function(t){return z.polygon(e,C,t)},l}function U(t,e){const{nodeStyles:r}=(0,o.GX)(e);e.label="";const i=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(28,e.width??0),n=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=c.A.svg(i),h=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const d=f(n),u=l.path(d,h),p=i.insert(()=>u,":first-child");return a&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",a),r&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return z.polygon(e,n,t)},i}async function Y(t,e,r){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.labelStyle=i;const{shapeSvg:n,bbox:h,halfPadding:u}=await d(t,e,g(e)),f=r?.padding??u,y="neo"===e.look?h.width/2+32:h.width/2+f;let m;const{cssStyles:C}=e;if("handDrawn"===e.look){const t=c.A.svg(n),r=(0,o.Fr)(e,{}),i=t.circle(0,0,2*y,r);m=n.insert(()=>i,":first-child"),m.attr("class","basic label-container").attr("style",(0,s.KL)(C))}else m=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",y).attr("cx",0).attr("cy",0);return p(e,m),e.calcIntersect=function(t,e){const r=t.width/2;return z.circle(t,r,e)},e.intersect=function(t){return l.Rm.info("Circle intersect",e,y,t),z.circle(e,y,t)},n}function X(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t;return`M ${-i/2*e},${i/2*r} L ${i/2*e},${-i/2*r}\n M ${i/2*e},${i/2*r} L ${-i/2*e},${-i/2*r}`}function V(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r,e.label="";const a=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),s=Math.max(30,e?.width??0),{cssStyles:n}=e,h=c.A.svg(a),d=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=h.circle(0,0,2*s,d),f=X(s),y=h.path(f,d),m=a.insert(()=>u,":first-child");return m.insert(()=>y),m.attr("class","outer-path"),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),p(e,m),e.intersect=function(t){l.Rm.info("crossedCircle intersect",e,{radius:s,point:t});return z.circle(e,s,t)},a}function Z(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let h=0;h<i;h++){const i=n+h*l,o=t+r*Math.cos(i),a=e+r*Math.sin(i);s.push({x:-o,y:-a})}return s}async function Q(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,label:n}=await d(t,e,g(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,u=s.width+l,y=s.height+h,m=Math.max(5,.1*y),{cssStyles:C}=e,x=[...Z(u/2,-y/2,m,30,-90,0),{x:-u/2-m,y:m},...Z(u/2+2*m,-m,m,20,-180,-270),...Z(u/2+2*m,m,m,20,-90,-180),{x:-u/2-m,y:-y/2},...Z(u/2,y/2,m,20,0,90)],b=[{x:u/2,y:-y/2-m},{x:-u/2,y:-y/2-m},...Z(u/2,-y/2,m,20,-90,0),{x:-u/2-m,y:-m},...Z(u/2+.1*u,-m,m,20,-180,-270),...Z(u/2+.1*u,m,m,20,-90,-180),{x:-u/2-m,y:y/2},...Z(u/2,y/2,m,20,0,90),{x:-u/2,y:y/2+m},{x:u/2,y:y/2+m}],k=c.A.svg(a),T=(0,o.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=f(x).replace("Z",""),B=k.path(S,T),w=f(b),A=k.path(w,{...T}),L=a.insert("g",":first-child");return L.insert(()=>A,":first-child").attr("stroke-opacity",0),L.insert(()=>B,":first-child"),L.attr("class","text"),C&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",C),i&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${m}, 0)`),n.attr("transform",`translate(${-u/2+m-(s.x-(s.left??0))},${-y/2+(e.padding??0)/2-(s.y-(s.top??0))})`),p(e,L),e.intersect=function(t){return z.polygon(e,b,t)},a}function J(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let h=0;h<i;h++){const i=n+h*l,o=t+r*Math.cos(i),a=e+r*Math.sin(i);s.push({x:o,y:a})}return s}async function tt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,label:n}=await d(t,e,g(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,u=s.width+("neo"===e.look?2*l:l),y=s.height+("neo"===e.look?2*h:h),m=Math.max(5,.1*y),{cssStyles:C}
2=e,x=[...J(u/2,-y/2,m,20,-90,0),{x:u/2+m,y:-m},...J(u/2+2*m,-m,m,20,-180,-270),...J(u/2+2*m,m,m,20,-90,-180),{x:u/2+m,y:y/2},...J(u/2,y/2,m,20,0,90)],b=[{x:-u/2,y:-y/2-m},{x:u/2,y:-y/2-m},...J(u/2,-y/2,m,20,-90,0),{x:u/2+m,y:-m},...J(u/2+2*m,-m,m,20,-180,-270),...J(u/2+2*m,m,m,20,-90,-180),{x:u/2+m,y:y/2},...J(u/2,y/2,m,20,0,90),{x:u/2,y:y/2+m},{x:-u/2,y:y/2+m}],k=c.A.svg(a),T=(0,o.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=f(x).replace("Z",""),B=k.path(S,T),w=f(b),A=k.path(w,{...T}),L=a.insert("g",":first-child");return L.insert(()=>A,":first-child").attr("stroke-opacity",0),L.insert(()=>B,":first-child"),L.attr("class","text"),C&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",C),i&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-m}, 0)`),n.attr("transform",`translate(${-u/2+(e.padding??0)/2-(s.x-(s.left??0))},${-y/2+(e.padding??0)/2-(s.y-(s.top??0))})`),p(e,L),e.intersect=function(t){return z.polygon(e,b,t)},a}function et(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let h=0;h<i;h++){const i=n+h*l,o=t+r*Math.cos(i),a=e+r*Math.sin(i);s.push({x:-o,y:-a})}return s}async function rt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,label:n}=await d(t,e,g(e)),l="neo"===e.look?18:e.padding??0,h="neo"===e.look?12:e.padding??0,u=s.width+("neo"===e.look?2*l:l),y=s.height+("neo"===e.look?2*h:h),m=Math.max(5,.1*y),{cssStyles:C}=e,x=[...et(u/2,-y/2,m,30,-90,0),{x:-u/2-m,y:m},...et(u/2+2*m,-m,m,20,-180,-270),...et(u/2+2*m,m,m,20,-90,-180),{x:-u/2-m,y:-y/2},...et(u/2,y/2,m,20,0,90)],b=[...et(-u/2+m+m/2,-y/2,m,20,-90,-180),{x:u/2-m/2,y:m},...et(-u/2-m/2,-m,m,20,0,90),...et(-u/2-m/2,m,m,20,-90,0),{x:u/2-m/2,y:-m},...et(-u/2+m+m/2,y/2,m,30,-180,-270)],k=[{x:u/2,y:-y/2-m},{x:-u/2,y:-y/2-m},...et(u/2,-y/2,m,20,-90,0),{x:-u/2-m,y:-m},...et(u/2+2*m,-m,m,20,-180,-270),...et(u/2+2*m,m,m,20,-90,-180),{x:-u/2-m,y:y/2},...et(u/2,y/2,m,20,0,90),{x:-u/2,y:y/2+m},{x:u/2-m-m/2,y:y/2+m},...et(-u/2+m+m/2,-y/2,m,20,-90,-180),{x:u/2-m/2,y:m},...et(-u/2-m/2,-m,m,20,0,90),...et(-u/2-m/2,m,m,20,-90,0),{x:u/2-m/2,y:-m},...et(-u/2+m+m/2,y/2,m,30,-180,-270)],T=c.A.svg(a),S=(0,o.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const B=f(x).replace("Z",""),w=T.path(B,S),A=f(b).replace("Z",""),L=T.path(A,S),v=f(k),F=T.path(v,{...S}),M=a.insert("g",":first-child");return M.insert(()=>F,":first-child").attr("stroke-opacity",0),M.insert(()=>w,":first-child"),M.insert(()=>L,":first-child"),M.attr("class","text"),C&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",C),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${m-m/4}, 0)`),n.attr("transform",`translate(${-u/2+(e.padding??0)/2-(s.x-(s.left??0))},${-y/2+(e.padding??0)/2-(s.y-(s.top??0))})`),p(e,M),e.intersect=function(t){return z.polygon(e,k,t)},a}async function it(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=Math.max(20,1.25*(h.width+2*s),e?.width??0),y=Math.max(5,h.height+2*n,e?.height??0),C=y/2,{cssStyles:x}=e,b=c.A.svg(l),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=u-C,S=y/4,B=[{x:T,y:0},{x:S,y:0},{x:0,y:y/2},{x:S,y:y},{x:T,y:y},...m(-T,-y/2,C,50,270,90)],w=f(B),A=b.path(w,k),L=l.insert(()=>A,":first-child");return L.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&L.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&L.selectChildren("path").attr("style",i),L.attr("transform",`translate(${-u/2}, ${-y/2})`),p(e,L),e.intersect=function(t){return z.polygon(e,B,t)},l}(0,l.K2)(G,"card"),(0,l.K2)(U,"choice"),(0,l.K2)(Y,"circle"),(0,l.K2)(X,"createLine"),(0,l.K2)(V,"crossedCircle"),(0,l.K2)(Z,"generateCirclePoints"),(0,l.K2)(Q,"curlyBraceLeft"),(0,l.K2)(J,"generateCirclePoints"),(0,l.K2)(tt,"curlyBraceRight"),(0,l.K2)(et,"generateCirclePoints"),(0,l.K2)(rt,"curlyBraces"),(0,l.K2)(it,"curvedTrapezoid");var ot=(0,l.K2)((t,e,r,i,o,a)=>[`M${t},${e+a}`,`a${o},${a} 0,0,0 ${r},0`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createCylinderPathD"),at=(0,l.K2)((t,e,r,i,o,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createOuterCylinderPathD"),st=(0,l.K2)((t,e,r,i,o,a)=>[`M${t-r/2},${-i/2}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function nt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,n="neo"===e.look?24:a,l="neo"===e.look?24:a;if(e.width||e.height){const t=e.width??0;e.width=(e.width??0)-l,e.width<8&&(e.width=8);const r=t/2/(2.5+t/50);e.height=(e.height??0)-n-3*r,e.height<8&&(e.height=8)}const{shapeSvg:h,bbox:u,label:f}=await d(t,e,g(e)),y=(e.width?e.width:u.width)+l,m=y/2,C=m/(2.5+y/50),x=(e.he
2ight?e.height:u.height)+n+C;let b;const{cssStyles:k}=e;if("handDrawn"===e.look){const t=c.A.svg(h),r=at(0,0,y,x,m,C),i=st(0,C,y,x,m,C),a=(0,o.Fr)(e,{}),s=t.path(r,a),n=t.path(i,(0,o.Fr)(e,{fill:"none"}));b=h.insert(()=>n,":first-child"),b=h.insert(()=>s,":first-child"),b.attr("class","basic label-container"),k&&b.attr("style",k)}else{const t=ot(0,0,y,x,m,C);b=h.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",i)}return b.attr("label-offset-y",C),b.attr("transform",`translate(${-y/2}, ${-(x/2+C)})`),p(e,b),f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${-u.height/2+(e.padding??0)/1.5-(u.y-(u.top??0))})`),e.intersect=function(t){const r=z.rect(e,t),i=r.x-(e.x??0);if(0!=m&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-C)){let o=C*C*(1-i*i/(m*m));o>0&&(o=Math.sqrt(o)),o=C-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},h}async function lt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a="neo"===e.look?16:e.padding??0,s="neo"===e.look?16:e.padding??0,{shapeSvg:n,bbox:l,label:h}=await d(t,e,g(e)),u=l.width+a,f=l.height+s,y=.2*f,m=-u/2,C=-f/2-y/2,{cssStyles:x}=e,b=c.A.svg(n),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=[{x:m,y:C+y},{x:-m,y:C+y},{x:-m,y:-C},{x:m,y:-C},{x:m,y:C},{x:-m,y:C},{x:-m,y:C+y}],S=b.polygon(T.map(t=>[t.x,t.y]),k),B=n.insert(()=>S,":first-child");return B.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",x),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),h.attr("transform",`translate(${m+(e.padding??0)/2-(l.x-(l.left??0))}, ${C+y+(e.padding??0)/2-(l.y-(l.top??0))})`),p(e,B),e.intersect=function(t){return z.rect(e,t)},n}async function ht(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e),a="neo"===e.look?12:5;e.labelStyle=r;const n=e.padding??0,h="neo"===e.look?16:n,{shapeSvg:u,bbox:f}=await d(t,e,g(e)),y=(e?.width?e?.width/2:f.width/2)+(h??0),m=y-a;let C;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(u),r=(0,o.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,o.Fr)(e,{roughness:.2,strokeWidth:1.5}),a=t.circle(0,0,2*y,r),n=t.circle(0,0,2*m,i);C=u.insert("g",":first-child"),C.attr("class",(0,s.KL)(e.cssClasses)).attr("style",(0,s.KL)(x)),C.node()?.appendChild(a),C.node()?.appendChild(n)}else{C=u.insert("g",":first-child");const t=C.insert("circle",":first-child"),e=C.insert("circle");C.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",y).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",m).attr("cx",0).attr("cy",0)}return p(e,C),e.intersect=function(t){return l.Rm.info("DoubleCircle intersect",e,y,t),z.circle(e,y,t)},u}function ct(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.label="",e.labelStyle=i;const s=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,h=c.A.svg(s),{nodeBorder:d}=r,u=(0,o.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);const f=h.circle(0,0,14,u),y=s.insert(()=>f,":first-child");return y.selectAll("path").attr("style",`fill: ${d} !important;`),n&&n.length>0&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",n),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),p(e,y),e.intersect=function(t){l.Rm.info("filledCircle intersect",e,{radius:7,point:t});return z.circle(e,7,t)},s}(0,l.K2)(nt,"cylinder"),(0,l.K2)(lt,"dividedRectangle"),(0,l.K2)(ht,"doublecircle"),(0,l.K2)(ct,"filledCircle");async function dt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?2*a:a;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-s-s/2,e.width<10&&(e.width=10));const{shapeSvg:n,bbox:h,label:u}=await d(t,e,g(e)),y=(e?.width?e?.width:h.width)+(s??0),m=e?.height?e?.height:y+h.height,C=[{x:0,y:-m},{x:m,y:-m},{x:m/2,y:0}],{cssStyles:x}=e,b=c.A.svg(n),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=f(C),S=b.path(T,k),B=n.insert(()=>S,":first-child").attr("transform",`translate(${-m/2}, ${m/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&B.selectChildren("path").attr("style",i),e.width=y,e.height=m,p(e,B),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}
2, ${-m/2+(e.padding??0)/2+(h.y-(h.top??0))})`),e.intersect=function(t){return l.Rm.info("Triangle intersect",e,C,t),z.polygon(e,C,t)},n}function ut(t,e,{dir:r,config:{state:i,themeVariables:a}}){const{nodeStyles:s}=(0,o.GX)(e);e.label="";const n=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:l}=e;let h=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===r&&(h=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));const u=-1*h/2,f=-1*d/2,y=c.A.svg(n),m=(0,o.Fr)(e,{stroke:a.lineColor,fill:a.lineColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const C=y.rectangle(u,f,h,d,m),x=n.insert(()=>C,":first-child");l&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",l),s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),p(e,x);const b=i?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(t){return z.rect(e,t)},n}async function pt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*a,e.width<15&&(e.width=15));const{shapeSvg:n,bbox:h}=await d(t,e,g(e)),u=(e?.width?e?.width:Math.max(15,h.width))+2*a,y=(e?.height?e?.height:Math.max(10,h.height))+2*s,C=y/2,{cssStyles:x}=e,b=c.A.svg(n),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=[{x:-u/2,y:-y/2},{x:u/2-C,y:-y/2},...m(-u/2+C,0,C,50,90,270),{x:u/2-C,y:y/2},{x:-u/2,y:y/2}],S=f(T),B=b.path(S,k),w=n.insert(()=>B,":first-child");return w.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),p(e,w),e.intersect=function(t){l.Rm.info("Pill intersect",e,{radius:C,point:t});return z.polygon(e,T,t)},n}(0,l.K2)(dt,"flippedTriangle"),(0,l.K2)(ut,"forkJoin"),(0,l.K2)(pt,"halfRoundedRectangle");var gt=(0,l.K2)((t,e,r,i,o)=>[`M${t+o},${e}`,`L${t+r-o},${e}`,`L${t+r},${e-i/2}`,`L${t+r-o},${e-i}`,`L${t+o},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD");async function ft(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e),a="neo"===e.look?3.5:4;e.labelStyle=r;const s=e.padding??0,n="neo"===e.look?70:s,l="neo"===e.look?32:s;if(e.width||e.height){const t=(e.height??0)/a;e.width=(e?.width??0)-2*t-l,e.height=(e.height??0)-n}const{shapeSvg:h,bbox:u}=await d(t,e,g(e)),f=(e?.height?e?.height:u.height)+n,y=f/a,m=(e?.width?e?.width:u.width)+2*y+l,C=[{x:y,y:0},{x:m-y,y:0},{x:m,y:-f/2},{x:m-y,y:-f},{x:y,y:-f},{x:0,y:-f/2}];let x;const{cssStyles:b}=e;
2if("handDrawn"===e.look){const t=c.A.svg(h),r=(0,o.Fr)(e,{}),i=gt(0,0,m,f,y),a=t.path(i,r);x=h.insert(()=>a,":first-child").attr("transform",`translate(${-m/2}, ${f/2})`),b&&x.attr("style",b)}else x=H(h,m,f,C);return i&&x.attr("style",i),e.width=m,e.height=f,p(e,x),e.intersect=function(t){return z.polygon(e,C,t)},h}async function yt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.label="",e.labelStyle=r;const{shapeSvg:a}=await d(t,e,g(e)),s=Math.max(30,e?.width??0),n=Math.max(30,e?.height??0),{cssStyles:h}=e,u=c.A.svg(a),y=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=[{x:0,y:0},{x:s,y:0},{x:0,y:n},{x:s,y:n}],C=f(m),x=u.path(C,y),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),h&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),b.attr("transform",`translate(${-s/2}, ${-n/2})`),p(e,b),e.intersect=function(t){l.Rm.info("Pill intersect",e,{points:m});return z.polygon(e,m,t)},a}async function mt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=(0,o.GX)(e);e.labelStyle=s;const n=e.assetHeight??48,h=e.assetWidth??48,u=Math.max(n,h),g=i?.wrappingWidth;e.width=Math.max(u,g??0);const{shapeSvg:f,bbox:y,label:m}=await d(t,e,"icon-shape default"),C="t"===e.pos,x=u,b=u,{nodeBorder:k}=r,{stylesMap:T}=(0,o.WW)(e),S=-b/2,B=-x/2,w=e.label?8:0,A=c.A.svg(f),L=(0,o.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");const v=A.rectangle(S,B,b,x,L),F=Math.max(b,y.width),M=x+y.height+w,_=A.rectangle(-F/2,-M/2,F,M,{...L,fill:"transparent",stroke:"none"}),E=f.insert(()=>v,":first-child"),$=f.insert(()=>_);if(e.icon){const t=f.append("g");t.html(`<g>${await(0,a.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,o=r.height,s=r.x,n=r.y;t.attr("transform",`translate(${-i/2-s},${C?y.height/2+w/2-o/2-n:-y.height/2-w/2-o/2-n})`),t.attr("style",`color: ${T.get("stroke")??k};`)}return m.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${C?-M/2:M/2-y.height})`),E.attr("transform",`translate(0,${C?y.height/2+w/2:-y.height/2-w/2})`),p(e,$),e.intersect=function(t){if(l.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=C?[{x:r-y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2+y.height+w},{x:r+b/2,y:i-o/2+y.height+w},{x:r+b/2,y:i+o/2},{x:r-b/2,y:i+o/2},{x:r-b/2,y:i-o/2+y.height+w},{x:r-y.width/2,y:i-o/2+y.height+w}]:[{x:r-b/2,y:i-o/2},{x:r+b/2,y:i-o/2},{x:r+b/2,y:i-o/2+x},{x:r+y.width/2,y:i-o/2+x},{x:r+y.width/2/2,y:i+o/2},{x:r-y.width/2,y:i+o/2},{x:r-y.width/2,y:i-o/2+x},{x:r-b/2,y:i-o/2+x}];return z.polygon(e,a,t)},f}async function Ct(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=(0,o.GX)(e);e.labelStyle=s;const n=e.assetHeight??48,h=e.assetWidth??48,u=Math.max(n,h),g=i?.wrappingWidth;e.width=Math.max(u,g??0);const{shapeSvg:f,bbox:y,label:m}=await d(t,e,"icon-shape default"),C=e.label?8:0,x="t"===e.pos,{nodeBorder:b,mainBkg:k}=r,{stylesMap:T}=(0,o.WW)(e),S=c.A.svg(f),B=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const w=T.get("fill");B.stroke=w??k;const A=f.append("g");e.icon&&A.html(`<g>${await(0,a.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const L=A.node().getBBox(),v=L.width,F=L.height,M=L.x,_=L.y,E=Math.max(v,F)*Math.SQRT2+40,$=S.circle(0,0,E,B),O=Math.max(E,y.width),I=E+y.height+C,D=S.rectangle(-O/2,-I/2,O,I,{...B,fill:"transparent",stroke:"none"}),q=f.insert(()=>$,":first-child"),R=f.insert(()=>D);return A.attr("transform",`translate(${-v/2-M},${x?y.height/2+C/2-F/2-_:-y.height/2-C/2-F/2-_})`),A.attr("style",`color: ${T.get("stroke")??b};`),m.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-I/2:I/2-y.height})`),q.attr("transform",`translate(0,${x?y.height/2+C/2:-y.height/2-C/2})`),p(e,R),e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);return z.rect(e,t)},f}async function xt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=(0,o.GX)(e);e.labelStyle=s;const n=e.assetHeight??48,h=e.assetWidth??48,u=Math.max(n,h),g=i?.wrappingWidth;e.width=Math.max(u,g??0);const{shapeSvg:f,bbox:y,halfPadding:m,label:C}=await d(t,e,"icon-shape default"),x="t"===e.pos,b=u+2*m,T=u+2*m,{nodeBorder:S,mainBkg:B}=r,{stylesMap:w}=(0,o.WW)(e),A=-T/2,L=-b/2,v=e.label?8:0,F=c.A.svg(f),M=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");const _=w.get("fill");M.stroke=_??B;const E=F.path(k(A,L,T,b,5),M),$=Math.max(T,y.width),O=b+y.height+v,I=F.rectangle(-$/2,-O/2,$,O,{...M,fill:"transparent",stroke:"none"}),D=f.insert(()=>E,":first-child").attr("class","icon-shape2"),q=f.insert(()=>I);if(e.icon){const t=f.append("g");t.html(`<g>${await(0,a.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);
2const r=t.node().getBBox(),i=r.width,o=r.height,s=r.x,n=r.y;t.attr("transform",`translate(${-i/2-s},${x?y.height/2+v/2-o/2-n:-y.height/2-v/2-o/2-n})`),t.attr("style",`color: ${w.get("stroke")??S};`)}return C.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-O/2:O/2-y.height})`),D.attr("transform",`translate(0,${x?y.height/2+v/2:-y.height/2-v/2})`),p(e,q),e.intersect=function(t){if(l.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=x?[{x:r-y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2+y.height+v},{x:r+T/2,y:i-o/2+y.height+v},{x:r+T/2,y:i+o/2},{x:r-T/2,y:i+o/2},{x:r-T/2,y:i-o/2+y.height+v},{x:r-y.width/2,y:i-o/2+y.height+v}]:[{x:r-T/2,y:i-o/2},{x:r+T/2,y:i-o/2},{x:r+T/2,y:i-o/2+b},{x:r+y.width/2,y:i-o/2+b},{x:r+y.width/2/2,y:i+o/2},{x:r-y.width/2,y:i+o/2},{x:r-y.width/2,y:i-o/2+b},{x:r-T/2,y:i-o/2+b}];return z.polygon(e,a,t)},f}async function bt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=(0,o.GX)(e);e.labelStyle=s;const n=e.assetHeight??48,h=e.assetWidth??48,u=Math.max(n,h),g=i?.wrappingWidth;e.width=Math.max(u,g??0);const{shapeSvg:f,bbox:y,halfPadding:m,label:C}=await d(t,e,"icon-shape default"),x="t"===e.pos,b=u+2*m,T=u+2*m,{nodeBorder:S,mainBkg:B}=r,{stylesMap:w}=(0,o.WW)(e),A=-T/2,L=-b/2,v=e.label?8:0,F=c.A.svg(f),M=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");const _=w.get("fill");M.stroke=_??B;const E=F.path(k(A,L,T,b,.1),M),$=Math.max(T,y.width),O=b+y.height+v,I=F.rectangle(-$/2,-O/2,$,O,{...M,fill:"transparent",stroke:"none"}),D=f.insert(()=>E,":first-child"),q=f.insert(()=>I);if(e.icon){const t=f.append("g");t.html(`<g>${await(0,a.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,o=r.height,s=r.x,n=r.y;t.attr("transform",`translate(${-i/2-s},${x?y.height/2+v/2-o/2-n:-y.height/2-v/2-o/2-n})`),t.attr("style",`color: ${w.get("stroke")??S};`)}return C.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-O/2:O/2-y.height})`),D.attr("transform",`translate(0,${x?y.height/2+v/2:-y.height/2-v/2})`),p(e,q),e.intersect=function(t){if(l.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=x?[{x:r-y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2},{x:r+y.width/2,y:i-o/2+y.height+v},{x:r+T/2,y:i-o/2+y.height+v},{x:r+T/2,y:i+o/2},{x:r-T/2,y:i+o/2},{x:r-T/2,y:i-o/2+y.height+v},{x:r-y.width/2,y:i-o/2+y.height+v}]:[{x:r-T/2,y:i-o/2},{x:r+T/2,y:i-o/2},{x:r+T/2,y:i-o/2+b},{x:r+y.width/2,y:i-o/2+b},{x:r+y.width/2/2,y:i+o/2},{x:r-y.width/2,y:i+o/2},{x:r-y.width/2,y:i-o/2+b},{x:r-T/2,y:i-o/2+b}];return z.polygon(e,a,t)},f}async function kt(t,e,{config:{flowchart:r}}){const i=new Image;i.src=e?.img??"",await i.decode();const a=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/s;const{labelStyles:n}=(0,o.GX)(e);e.labelStyle=n;const h=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const u=Math.max(e.label?h??0:0,e?.assetWidth??a),g="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:u,f="on"===e.constraint?g/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(g,h??0);const{shapeSvg:y,bbox:m,label:C}=await d(t,e,"image-shape default"),x="t"===e.pos,b=-g/2,k=-f/2,T=e.label?8:0,S=c.A.svg(y),B=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const w=S.rectangle(b,k,g,f,B),A=Math.max(g,m.width),L=f+m.height+T,v=S.rectangle(-A/2,-L/2,A,L,{...B,fill:"none",stroke:"none"}),F=y.insert(()=>w,":first-child"),M=y.insert(()=>v);if(e.img){const t=y.append("image");t.attr("href",e.img),t.attr("width",g),t.attr("height",f),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${x?L/2-f:-L/2})`)}return C.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-f/2-m.height/2-T/2:f/2-m.height/2+T/2})`),F.attr("transform",`translate(0,${x?m.height/2+T/2:-m.height/2-T/2})`),p(e,M),e.intersect=function(t){if(l.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=x?[{x:r-m.width/2,y:i-o/2},{x:r+m.width/2,y:i-o/2},{x:r+m.width/2,y:i-o/2+m.height+T},{x:r+g/2,y:i-o/2+m.height+T},{x:r+g/2,y:i+o/2},{x:r-g/2,y:i+o/2},{x:r-g/2,y:i-o/2+m.height+T},{x:r-m.width/2,y:i-o/2+m.height+T}]:[{x:r-g/2,y:i-o/2},{x:r+g/2,y:i-o/2},{x:r+g/2,y:i-o/2+f},{x:r+m.width/2,y:i-o/2+f},{x:r+m.width/2/2,y:i+o/2},{x:r-m.width/2,y:i+o/2},{x:r-m.width/2,y:i-o/2+f},{x:r-g/2,y:i-o/2+f}];return z.polygon(e,a,t)},y}async function Tt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s=a,n="neo"===e.look?2*a:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=Math.max(h.width+2*(n??0),e?.width??0),y=Math.max(h.height+2*(s??0),e?.height??0),m=[{x:0,y:0},{x:u,y:0},{x:u+3*y/6,y:-y},{x:-3*y/6,y:-y}];let C;const{cssStyles:x}=e;
2if("handDrawn"===e.look){const t=c.A.svg(l),r=(0,o.Fr)(e,{}),i=f(m),a=t.path(i,r);C=l.insert(()=>a,":first-child").attr("transform",`translate(${-u/2}, ${y/2})`),x&&C.attr("style",x)}else C=H(l,u,y,m);return i&&C.attr("style",i),e.width=u,e.height=y,p(e,C),e.intersect=function(t){return z.polygon(e,m,t)},l}async function St(t,e,r){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.labelStyle=i;const{shapeSvg:n,bbox:l}=await d(t,e,g(e)),h=Math.max(l.width+2*r.labelPaddingX,e?.width||0),u=Math.max(l.height+2*r.labelPaddingY,e?.height||0),f=-h/2,y=-u/2;let m,{rx:C,ry:x}=e;const{cssStyles:b}=e;if(r?.rx&&r.ry&&(C=r.rx,x=r.ry),"handDrawn"===e.look){const t=c.A.svg(n),r=(0,o.Fr)(e,{}),i=C||x?t.path(k(f,y,h,u,C||0),r):t.rectangle(f,y,h,u,r);m=n.insert(()=>i,":first-child"),m.attr("class","basic label-container").attr("style",(0,s.KL)(b))}else m=n.insert("rect",":first-child"),m.attr("class","basic label-container").attr("style",a).attr("rx",(0,s.KL)(C)).attr("ry",(0,s.KL)(x)).attr("x",f).attr("y",y).attr("width",h).attr("height",u);return p(e,m),e.calcIntersect=function(t,e){return z.rect(t,e)},e.intersect=function(t){return z.rect(e,t)},n}async function Bt(t,e){const{shapeSvg:r,bbox:i,label:o}=await d(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-i.height/2-(i.y-(i.top??0))})`),p(e,a),e.intersect=function(t){return z.rect(e,t)},r}async function wt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s=a,n="neo"===e.look?2*a:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.height??h.height)+s,y=(e?.width??h.width)+n,m=[{x:0,y:0},{x:y+3*u/6,y:0},{x:y,y:-u},{x:-3*u/6,y:-u}];let C;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(l),r=(0,o.Fr)(e,{}),i=f(m),a=t.path(i,r);C=l.insert(()=>a,":first-child").attr("transform",`translate(${-y/2}, ${u/2})`),x&&C.attr("style",x)}else C=H(l,y,u,m);return i&&C.attr("style",i),e.width=y,e.height=u,p(e,C),e.intersect=function(t){return z.polygon(e,m,t)},l}async function At(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s=a,n="neo"===e.look?2*a:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.height??h.height)+s,y=(e?.width??h.width)+n,m=[{x:-3*u/6,y:0},{x:y,y:0},{x:y+3*u/6,y:-u},{x:0,y:-u}];let C;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(l),r=(0,o.Fr)(e,{}),i=f(m),a=t.path(i,r);C=l.insert(()=>a,":first-child").attr("transform",`translate(${-y/2}, ${u/2})`),x&&C.attr("style",x)}else C=H(l,y,u,m);return i&&C.attr("style",i),e.width=y,e.height=u,p(e,C),e.intersect=function(t){return z.polygon(e,m,t)},l}function Lt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.label="",e.labelStyle=r;const a=t.insert("g").attr("class",g(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=Math.max(35,e?.width??0),h=Math.max(35,e?.height??0),d=[{x:n,y:0},{x:0,y:h+3.5},{x:n-14,y:h+3.5},{x:0,y:2*h},{x:n,y:h-3.5},{x:14,y:h-3.5}],u=c.A.svg(a),y=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=f(d),C=u.path(m,y),x=a.insert(()=>C,":first-child");return x.attr("class","outer-path"),s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${n/2},${-h})`),p(e,x),e.intersect=function(t){l.Rm.info("lightningBolt intersect",e,t);return z.polygon(e,d,t)},a}(0,l.K2)(ft,"hexagon"),(0,l.K2)(yt,"hourglass"),(0,l.K2)(mt,"icon"),(0,l.K2)(Ct,"iconCircle"),(0,l.K2)(xt,"iconRounded"),(0,l.K2)(bt,"iconSquare"),(0,l.K2)(kt,"imageSquare"),(0,l.K2)(Tt,"inv_trapezoid"),(0,l.K2)(St,"drawRect"),(0,l.K2)(Bt,"labelRect"),(0,l.K2)(wt,"lean_left"),(0,l.K2)(At,"lean_right"),(0,l.K2)(Lt,"lightningBolt");var vt=(0,l.K2)((t,e,r,i,o,a,s)=>[`M${t},${e+a}`,`a${o},${a} 0,0,0 ${r},0`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+s}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Ft=(0,l.K2)((t,e,r,i,o,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+s}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Mt=(0,l.K2)((t,e,r,i,o,a)=>[`M${t-r/2},${-i/2}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function _t(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,n="neo"===e.look?16:a,l="neo"===e.look?24:a;if(e.width||e.height){const t=e.width??0;e.width=(e.width??0)-n,e.width<10&&(e.width=10);const r=t/2/(2.5+t/50);e.height=(e.height??0)-l-3*r,e.height<10&&(e.height=10)}const{shapeSvg:h,bbox:u,label:f}=await d(t,e,g(e)),y=(e?.width?e?.width:u.width)+2*n,m=y/2,C=m/(2.5+y/50),x=(e?.height?e?.height:u.height)+C+2*l,b=.1*x;let k;const{cssStyles:T}=e;
2if("handDrawn"===e.look){const t=c.A.svg(h),r=Ft(0,0,y,x,m,C,b),i=Mt(0,C,y,x,m,C),a=(0,o.Fr)(e,{}),s=t.path(r,a),n=t.path(i,a);h.insert(()=>n,":first-child").attr("class","line"),k=h.insert(()=>s,":first-child"),k.attr("class","basic label-container"),T&&k.attr("style",T)}else{const t=vt(0,0,y,x,m,C,b);k=h.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(T)).attr("style",i)}return k.attr("label-offset-y",C),k.attr("transform",`translate(${-y/2}, ${-(x/2+C)})`),p(e,k),f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${-u.height/2+C-(u.y-(u.top??0))})`),e.intersect=function(t){const r=z.rect(e,t),i=r.x-(e.x??0);if(0!=m&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-C)){let o=C*C*(1-i*i/(m*m));o>0&&(o=Math.sqrt(o)),o=C-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},h}async function Et(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;if(e.width||e.height){const t=e.width;e.width=10*(t??0)/11-2*s,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10)}const{shapeSvg:l,bbox:h,label:u}=await d(t,e,g(e)),f=(e?.width?e?.width:h.width)+2*(s??0),m=(e?.height?e?.height:h.height)+2*(n??0),C="neo"===e.look?m/4:m/8,x=m+C,{cssStyles:b}=e,k=c.A.svg(l),T=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=[{x:-f/2-f/2*.1,y:-x/2},{x:-f/2-f/2*.1,y:x/2},...y(-f/2-f/2*.1,x/2,f/2+f/2*.1,x/2,C,.8),{x:f/2+f/2*.1,y:-x/2},{x:-f/2-f/2*.1,y:-x/2},{x:-f/2,y:-x/2},{x:-f/2,y:x/2*1.1},{x:-f/2,y:-x/2}],B=k.polygon(S.map(t=>[t.x,t.y]),T),w=l.insert(()=>B,":first-child");return w.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(0,${-C/2})`),u.attr("transform",`translate(${-f/2+(e.padding??0)+f/2*.1/2-(h.x-(h.left??0))},${-m/2+(e.padding??0)-C/2-(h.y-(h.top??0))})`),p(e,w),e.intersect=function(t){return z.polygon(e,S,t)},l}async function $t(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a,l="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*s-2*l,10),e.height=Math.max((e?.height??0)-2*n-2*l,10));const{shapeSvg:h,bbox:u,label:y}=await d(t,e,g(e)),m=(e?.width?e?.width:u.width)+2*s+2*l-2*l,x=(e?.height?e?.height:u.height)+2*n+2*l-2*l,b=-m/2,k=-x/2,{cssStyles:T}=e,S=c.A.svg(h),B=(0,o.Fr)(e,{}),w=[{x:b-l,y:k+l},{x:b-l,y:k+x+l},{x:b+m-l,y:k+x+l},{x:b+m-l,y:k+x},{x:b+m,y:k+x},{x:b+m,y:k+x-l},{x:b+m+l,y:k+x-l},{x:b+m+l,y:k-l},{x:b+l,y:k-l},{x:b+l,y:k},{x:b,y:k},{x:b,y:k+l}],A=[{x:b,y:k+l},{x:b+m-l,y:k+l},{x:b+m-l,y:k+x},{x:b+m,y:k+x},{x:b+m,y:k},{x:b,y:k}];"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const L=f(w);let v=S.path(L,B);const F=f(A);let M=S.path(F,B);"handDrawn"!==e.look&&(v=C(v),M=C(M));const _=h.insert("g",":first-child");return _.insert(()=>v),_.insert(()=>M),_.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",T),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),y.attr("transform",`translate(${-u.width/2-l-(u.x-(u.left??0))}, ${-u.height/2+l-(u.y-(u.top??0))})`),p(e,_),e.intersect=function(t){return z.polygon(e,w,t)},h}async function Ot(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,label:n}=await d(t,e,g(e)),l=e.padding??0,h="neo"===e.look?16:l,u="neo"===e.look?12:l;let m=!0;(e.width||e.height)&&(m=!1,e.width=(e?.width??0)-2*h,e.height=(e?.height??0)-3*u);const C=Math.max(s.width,e?.width??0)+2*h,x=Math.max(s.height,e?.height??0)+3*u,b="neo"===e.look?x/4:x/8,k=x+(m?b/2:-b/2),T=-C/2,S=-k/2,B=10,{cssStyles:w}=e,A=y(T-B,S+k+B,T+C-B,S+k+B,b,.8),L=A?.[A.length-1],v=[{x:T-B,y:S+B},{x:T-B,y:S+k+B},...A,{x:T+C-B,y:L.y-B},{x:T+C,y:L.y-B},{x:T+C,y:L.y-20},{x:T+C+B,y:L.y-20},{x:T+C+B,y:S-B},{x:T+B,y:S-B},{x:T+B,y:S},{x:T,y:S},{x:T,y:S+B}],F=[{x:T,y:S+B},{x:T+C-B,y:S+B},{x:T+C-B,y:L.y-B},{x:T+C,y:L.y-B},{x:T+C,y:S},{x:T,y:S}],M=c.A.svg(a),_=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");const E=f(v),$=M.path(E,_),O=f(F),I=M.path(O,_),D=a.insert(()=>$,":first-child");return D.insert(()=>I),D.attr("class","basic label-container outer-path"),w&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",w),i&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-b/2})`),n.attr("transform",`translate(${-s.width/2-B-(s.x-(s.left??0))}, ${-s.height/2+B-b/2-(s.y-(s.top??0))})`),p(e,D),e.intersect=function(t){return z.polygon(e,v,t)},a}async function It(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.labelStyle=i;e.useHtmlLabels||(0,n.E)((0,n.zj)())||(e.centerLabel=!0);const{shapeSvg:s,bbox:l,label:h}=await d(t,e,g(e)),u=Math.max(l.width+2*(e.padding??0),e?.width??0),f=Math.max(l.height+2*(e.padding??0),e?.height??0),y=-u/2,m=-f/2,{cssStyles:C}=e,x=c.A.svg(s),b=(0,o.Fr)(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=x.rectangle(y,m,u,f,b),T=s.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),C&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",C),a&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",a),h.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),p(e,T),e.intersect=function(t){return z.rect(e,t)},s}(0,l.K2)(_t,"linedCylinder"),(0,l.K2)(Et,"linedWaveEdgedRect"),(0,l.K2)($t,"multiRect"),(0,l.K2)(Ot,"multiWaveEdgedRectangle"),(0,l.K2)(It,"note");var Dt=(0,l.K2)((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function qt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s}=await d(t,e,g(e)),n=s.width+(e.padding??0)+(s.height+(e.padding??0)),l=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];let h;const{cssStyles:u}=e;
2if("handDrawn"===e.look){const t=c.A.svg(a),r=(0,o.Fr)(e,{}),i=Dt(0,0,n),s=t.path(i,r);h=a.insert(()=>s,":first-child").attr("transform",`translate(${-n/2+.5}, ${n/2})`),u&&h.attr("style",u)}else h=H(a,n,n,l),h.attr("transform",`translate(${-n/2+.5}, ${n/2})`);return i&&h.attr("style",i),p(e,h),e.calcIntersect=function(t,e){const r=t.width,i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],o=z.polygon(t,i,e);return{x:o.x-.5,y:o.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},a}async function Rt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?21:a??0,n="neo"===e.look?12:a??0,{shapeSvg:l,bbox:h,label:u}=await d(t,e,g(e)),y=-((e?.width??h.width)+("neo"===e.look?2*s:s))/2,m=-((e?.height??h.height)+("neo"===e.look?2*n:n))/2,C=m/2,x=[{x:y+C,y:m},{x:y,y:0},{x:y+C,y:-m},{x:-y,y:-m},{x:-y,y:m}],{cssStyles:b}=e,k=c.A.svg(l),T=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=f(x),B=k.path(S,T),w=l.insert(()=>B,":first-child");return w.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-C/2},0)`),u.attr("transform",`translate(${-C/2-h.width/2-(h.x-(h.left??0))}, ${-h.height/2-(h.y-(h.top??0))})`),p(e,w),e.intersect=function(t){return z.polygon(e,x,t)},l}async function Kt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);let a;e.labelStyle=r,a=e.cssClasses?"node "+e.cssClasses:"node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),d=s.insert("g"),u=s.insert("g").attr("class","label").attr("style",i),g=e.description,f=e.label,y=await b(u,f,e.labelStyle,!0,!0);let m={width:0,height:0};if((0,n.E)((0,n.D7)())){const t=y.children[0],e=(0,h.Ltv)(y);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}l.Rm.info("Text 2",g);const C=g||[],x=y.getBBox(),T=await b(u,Array.isArray(C)?C.join("<br/>"):C,e.labelStyle,!0,!0),S=T.children[0],B=(0,h.Ltv)(T);m=S.getBoundingClientRect(),B.attr("width",m.width),B.attr("height",m.height);const w=(e.padding||0)/2;(0,h.Ltv)(T).attr("transform","translate( "+(m.width>x.width?0:(x.width-m.width)/2)+", "+(x.height+w+5)+")"),(0,h.Ltv)(y).attr("transform","translate( "+(m.width<x.width?0:-(x.width-m.width)/2)+", 0)"),m=u.node().getBBox(),u.attr("transform","translate("+-m.width/2+", "+(-m.height/2-w+3)+")");const A=m.width+(e.padding||0),L=m.height+(e.padding||0),v=-m.width/2-w,F=-m.height/2-w;let M,_;if("handDrawn"===e.look){const t=c.A.svg(s),r=(0,o.Fr)(e,{}),i=t.path(k(v,F,A,L,e.rx||0),r),a=t.line(-m.width/2-w,-m.height/2-w+x.height+w,m.width/2+w,-m.height/2-w+x.height+w,r);_=s.insert(()=>(l.Rm.debug("Rough node insert CXC",i),a),":first-child"),M=s.insert(()=>(l.Rm.debug("Rough node insert CXC",i),i),":first-child")}else M=d.insert("rect",":first-child"),_=d.insert("line"),M.attr("class","outer title-state").attr("style",i).attr("x",-m.width/2-w).attr("y",-m.height/2-w).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),_.attr("class","divider").attr("x1",-m.width/2-w).attr("x2",m.width/2+w).attr("y1",-m.height/2-w+x.height+w).attr("y2",-m.height/2-w+x.height+w);return p(e,M),e.intersect=function(t){return z.rect(e,t)},s}async function zt(t,e,{config:{themeVariables:r}}){const i=r?.radius??5;return St(t,e,{rx:i,ry:i,classes:"",labelPaddingX:1*(e?.padding??0),labelPaddingY:1*(e?.padding??0)})}(0,l.K2)(qt,"question"),(0,l.K2)(Rt,"rect_left_inv_arrow"),(0,l.K2)(Kt,"rectWithTitle"),(0,l.K2)(zt,"roundedRect");async function Pt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0,{shapeSvg:l,bbox:h,label:u}=await d(t,e,g(e)),f=(e?.width??h.width)+2*a+("neo"===e.look?8:16),y=(e?.height??h.height)+2*n,m=f-8,C=y,x=8-f/2,b=-y/2,{cssStyles:k}=e,T=c.A.svg(l),S=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const B=[{x:x,y:b},{x:x+m,y:b},{x:x+m,y:b+C},{x:x-8,y:b+C},{x:x-8,y:b},{x:x,y:b},{x:x,y:b+C}],w=T.polygon(B.map(t=>[t.x,t.y]),S),A=l.insert(()=>w,":first-child");return A.attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),k&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),u.attr("transform",`translate(${4-h.width/2-(h.x-(h.left??0))}, ${-h.height/2-(h.y-(h.top??0))})`),p(e,A),e.intersect=function(t){return z.rect(e,t)},l}async function Wt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*s,10),e.height=Math.max((e?.height??0)/1.5-2*n,10));const{shapeSvg:l,bbox:h,label:u}=await d(t,e,g(e)),y=(e?.width?e?.width:h.width)+2*s,m=1.5*((e?.height?e?.height:h.height)+2*n)/1.5,C=-y/2,x=-m/2,{cssStyles:b}=e,k=c.A.svg(l),T=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=[{x:C,y:x},{x:C,y:x+m},{x:C+y,y:x+m},{x:C+y,y:x-m/2}],B=f(S),w=k.path(B,T),A=l.insert(()=>w,":first-child");return A.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",b),i&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(0, ${m/4})`),u.attr("transform",`translate(${-y/2+(e.padding??0)-(h.x-(h.left??0))}, ${-m/4+(e.padding??0)-(h.y-(h.top??0))})`),p(e,A),e.intersect=function(t){return z.polygon(e,S,t)},l}async function Nt(t,e){const r=e.padding??0,i="neo"===e.look?16:2*r,o="neo"===e.look?12:r;return St(t,e,{rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??i,labelPaddingY:o})}async function jt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?20:a,n="neo"===e.look?12:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=h.height+("neo"===e.look?2*n:n),y=h.width+u/4+("neo"===e.look?2*s:s),C=u/2,{cssStyles:x}=e,b=c.A.svg(l),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=[{x:-y/2+C,y:-u/2},{x:y/2-C,y:-u/2}
2,...m(-y/2+C,0,C,50,90,270),{x:y/2-C,y:u/2},...m(y/2-C,0,C,50,270,450)],S=f(T),B=b.path(S,k),w=l.insert(()=>B,":first-child");return w.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),p(e,w),e.intersect=function(t){return z.polygon(e,T,t)},l}async function Ht(t,e){return St(t,e,{rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"})}function Gt(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.labelStyle=i;const{cssStyles:s}=e,{lineColor:n,stateBorder:l,nodeBorder:h,nodeShadow:d}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const u=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),g=c.A.svg(u),f=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const y=g.circle(0,0,e.width,{...f,stroke:n,strokeWidth:2}),m=l??h,C=5*(e.width??0)/14,x=g.circle(0,0,C,{...f,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),b=u.insert(()=>y,":first-child");if(b.insert(()=>x),"handDrawn"!==e.look&&b.attr("class","outer-path"),s&&b.selectAll("path").attr("style",s),a&&b.selectAll("path").attr("style",a),e.width<25&&d&&"handDrawn"!==e.look){const e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";b.attr("style",`filter:url(#${r})`)}return p(e,b),e.intersect=function(t){return z.circle(e,(e.width??0)/2,t)},u}function Ut(t,e,{config:{themeVariables:r}}){const{lineColor:i,nodeShadow:a}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.
2width||(e.width=14),e.height||(e.height=14);const s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let n;if("handDrawn"===e.look){const t=c.A.svg(s).circle(0,0,e.width,(0,o.ue)(i));n=s.insert(()=>t),n.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else n=s.insert("circle",":first-child"),n.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&a&&"handDrawn"!==e.look){const e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";n.attr("style",`filter:url(#${r})`)}return p(e,n),e.intersect=function(t){return z.circle(e,(e.width??7)/2,t)},s}(0,l.K2)(Pt,"shadedProcess"),(0,l.K2)(Wt,"slopedRect"),(0,l.K2)(Nt,"squareRect"),(0,l.K2)(jt,"stadium"),(0,l.K2)(Ht,"state"),(0,l.K2)(Gt,"stateEnd"),(0,l.K2)(Ut,"stateStart");async function Yt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e?.padding??8,n="neo"===e.look?28:a,l="neo"===e.look?12:a,{shapeSvg:h,bbox:u}=await d(t,e,g(e)),f=(e?.width??u.width)+16+n,y=(e?.height??u.height)+l,m=f-16,C=y,x=-f/2,b=-y/2,k=[{x:0,y:0},{x:m,y:0},{x:m,y:-C},{x:0,y:-C},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-C},{x:-8,y:-C},{x:-8,y:0}];if("handDrawn"===e.look){const t=c.A.svg(h),r=(0,o.Fr)(e,{}),i=t.rectangle(x,b,m+16,C,r),a=t.line(x+8,b,x+8,b+C,r),n=t.line(x+8+m,b,x+8+m,b+C,r);h.insert(()=>a,":first-child"),h.insert(()=>n,":first-child");const l=h.insert(()=>i,":first-child"),{cssStyles:d}=e;l.attr("class","basic label-container").attr("style",(0,s.KL)(d)),p(e,l)}else{const t=H(h,m,C,k);i&&t.attr("style",i),p(e,t)}return e.intersect=function(t){return z.polygon(e,k,t)},h}(0,l.K2)(Yt,"subroutine");async function Xt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*n,10),e.width=Math.max((e?.width??0)-2*s-.2*(e.height+2*n),10));const{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.height?e?.height:h.height)+2*n,y=.2*u,m=.2*u,C=(e?.width?e?.width:h.width)+2*s+y-y,x=u,b=-C/2,k=-x/2,{cssStyles:T}=e,S=c.A.svg(l),B=(0,o.Fr)(e,{}),w=[{x:b-y/2,y:k},{x:b+C+y/2,y:k},{x:b+C+y/2,y:k+x},{x:b-y/2,y:k+x}],A=[{x:b+C-y/2,y:k+x},{x:b+C+y/2,y:k+x},{x:b+C+y/2,y:k+x-m}];"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const L=f(w),v=S.path(L,B),F=f(A),M=S.path(F,{...B,fillStyle:"solid"}),_=l.insert(()=>M,":first-child");return _.insert(()=>v,":first-child"),_.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",T),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),p(e,_),e.intersect=function(t){return z.polygon(e,w,t)},l}async function Vt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,label:n}=await d(t,e,g(e)),l=Math.max(s.width+2*(e.padding??0),e?.width??0),h=Math.max(s.height+2*(e.padding??0),e?.height??0),u=h/8,m=.2*l,C=.2*h,x=h+u,{cssStyles:b}=e,k=c.A.svg(a),T=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=[{x:-l/2-l/2*.1,y:x/2},...y(-l/2-l/2*.1,x/2,l/2+l/2*.1,x/2,u,.8),{x:l/2+l/2*.1,y:-x/2},{x:-l/2-l/2*.1,y:-x/2}],B=-l/2+l/2*.1,w=-x/2-.4*C,A=[{x:B+l-m,y:1.3*(w+h)},{x:B+l,y:w+h-C},{x:B+l,y:.9*(w+h)},...y(B+l,1.25*(w+h),B+l-m,1.3*(w+h),.02*-h,.5)],L=f(S),v=k.path(L,T),F=f(A),M=k.path(F,{...T,fillStyle:"solid"}),_=a.insert(()=>M,":first-child");return _.insert(()=>v,":first-child"),_.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-u/2})`),n.attr("transform",`translate(${-l/2+(e.padding??0)-(s.x-(s.left??0))},${-h/2+(e.padding??0)-u/2-(s.y-(s.top??0))})`),p(e,_),e.intersect=function(t){return z.polygon(e,S,t)},a}async function Zt(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s}=await d(t,e,g(e)),n=Math.max(s.width+(e.padding??0),e?.width||0),l=Math.max(s.height+(e.padding??0),e?.height||0),h=-n/2,c=-l/2,u=a.insert("rect",":first-child");return u.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",c).attr("width",n).attr("height",l),p(e,u),e.intersect=function(t){return z.rect(e,t)},a}(0,l.K2)(Xt,"taggedRect"),(0,l.K2)(Vt,"taggedWaveEdgedRectangle"),(0,l.K2)(Zt,"text");var Qt=(0,l.K2)((t,e,r,i,o,a)=>`M${t},${e}\n a${o},${a} 0,0,1 0,${-i}\n l${r},0\n a${o},${a} 0,0,1 0,${i}\n M${r},${-i}\n a${o},${a} 0,0,0 0,${i}\n l${-r},0`,"createCylinderPathD"),Jt=(0,l.K2)((t,e,r,i,o,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${o},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${o},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),te=(0,l.K2)((t,e,r,i,o,a)=>[`M${t+r/2},${-i/2}`,`a${o},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function ee(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,n="neo"===e.look?12:a/2;if(e.width||e.height){const t=e.height??0;e.height=(e.height??0)-n,e.height<5&&(e.height=5);const r=t/2/(2.5+t/50);e.width=(e.width??0)-n-3*r,e.width<10&&(e.width=10)}const{shapeSvg:l,bbox:h,label:u}=await d(t,e,g(e)),f=(e.height?e.height:h.height)+n,y=f/2,m=y/(2.5+f/50),C=(e.width?e.width:h.width)+m+n,{cssStyles:x}=e;let b;
2if("handDrawn"===e.look){const t=c.A.svg(l),r=Jt(0,0,C,f,m,y),i=te(0,0,C,f,m,y),a=t.path(r,(0,o.Fr)(e,{})),s=t.path(i,(0,o.Fr)(e,{fill:"none"}));b=l.insert(()=>s,":first-child"),b=l.insert(()=>a,":first-child"),b.attr("class","basic label-container"),x&&b.attr("style",x)}else{const t=Qt(0,0,C,f,m,y);b=l.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,s.KL)(x)).attr("style",i),b.attr("class","basic label-container outer-path"),x&&b.selectAll("path").attr("style",x),i&&b.selectAll("path").attr("style",i)}return b.attr("label-offset-x",m),b.attr("transform",`translate(${-C/2}, ${f/2} )`),u.attr("transform",`translate(${-h.width/2-m-(h.x-(h.left??0))}, ${-h.height/2-(h.y-(h.top??0))})`),p(e,b),e.intersect=function(t){const r=z.rect(e,t),i=r.y-(e.y??0);if(0!=y&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-m)){let o=m*m*(1-i*i/(y*y));0!=o&&(o=Math.sqrt(Math.abs(o))),o=m-o,t.x-(e.x??0)>0&&(o=-o),r.x+=o}return r},l}async function re(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s=(e.look,a),n="neo"===e.look?2*a:a,{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.height??h.height)+s,y=(e?.width??h.width)+n,m=[{x:-3*u/6,y:0},{x:y+3*u/6,y:0},{x:y,y:-u},{x:0,y:-u}];let C;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(l),r=(0,o.Fr)(e,{}),i=f(m),a=t.path(i,r);C=l.insert(()=>a,":first-child").attr("transform",`translate(${-y/2}, ${u/2})`),x&&C.attr("style",x)}else C=H(l,y,u,m);return i&&C.attr("style",i),e.width=y,e.height=u,p(e,C),e.intersect=function(t){return z.polygon(e,m,t)},l}async function ie(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;(e.width||e.height)&&(e.height=(e.height??0)-2*n,e.height<5&&(e.height=5),e.width=(e.width??0)-2*s,e.width<15&&(e.width=15));const{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.width?e?.width:h.width)+2*s,y=(e?.height?e?.height:h.height)+2*n,{cssStyles:m}=e,C=c.A.svg(l),x=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-u/2*.8,y:-y/2},{x:u/2*.8,y:-y/2},{x:u/2,y:-y/2*.6},{x:u/2,y:y/2},{x:-u/2,y:y/2},{x:-u/2,y:-y/2*.6}],k=f(b),T=C.path(k,x),S=l.insert(()=>T,":first-child");return S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),p(e,S),e.intersect=function(t){return z.polygon(e,b,t)},l}(0,l.K2)(ee,"tiltedCylinder"),(0,l.K2)(re,"trapezoid"),(0,l.K2)(ie,"trapezoidalPentagon");async function oe(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?2*a:a;(e.width||e.height)&&(e.width=((e?.width??0)-s)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));const{shapeSvg:h,bbox:u,label:y}=await d(t,e,g(e)),m=(0,n._3)((0,n.D7)().flowchart?.htmlLabels),C=(e?.width?e?.width:u.width)+s,x=e?.height?e?.height:C+u.height,b=[{x:0,y:0},{x:x,y:0},{x:x/2,y:-x}],{cssStyles:k}=e,T=c.A.svg(h),S=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const B=f(b),w=T.path(B,S),A=h.insert(()=>w,":first-child").attr("transform",`translate(${-x/2}, ${x/2})`).attr("class","outer-path");return k&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",k),i&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",i),e.width=C,e.height=x,p(e,A),y.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))}, ${x/2-(u.height+(e.padding??0)/(m?2:1)-(u.y-(u.top??0)))})`),e.intersect=function(t){return l.Rm.info("Triangle intersect",e,b,t),z.polygon(e,b,t)},h}async function ae(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?12:a;let l=!0;(e.width||e.height)&&(l=!1,e.width=(e?.width??0)-2*s,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10));const{shapeSvg:h,bbox:u,label:m}=await d(t,e,g(e)),C=(e?.width?e?.width:u.width)+2*(s??0),x=(e?.height?e?.height:u.height)+2*(n??0),b="neo"===e.look?x/4:x/8,k=x+(l?b:-b),{cssStyles:T}=e,S=14-C,B=S>0?S/2:0,w=c.A.svg(h),A=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const L=[{x:-C/2-B,y:k/2},...y(-C/2-B,k/2,C/2+B,k/2,b,.8),{x:C/2+B,y:-k/2},{x:-C/2-B,y:-k/2}],v=f(L),F=w.path(v,A),M=h.insert(()=>F,":first-child");return M.attr("class","basic label-container outer-path"),T&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",T),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(0,${-b/2})`),m.attr("transform",`translate(${-C/2+(e.padding??0)-(u.x-(u.left??0))},${-x/2+(e.padding??0)-b-(u.y-(u.top??0))})`),p(e,M),e.intersect=function(t){return z.polygon(e,L,t)},h}async function se(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,n="neo"===e.look?20:a;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);const t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-n-t*(20/9)),e.width=e.width-2*s}const{shapeSvg:l,bbox:h}=await d(t,e,g(e)),u=(e?.width?e?.width:h.width)+2*s,m=(e?.height?e?.height:h.height)+n,C=m/8,x=m+2*C,{cssStyles:b}=e,k=c.A.svg(l),T=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const S=[{x:-u/2,y:x/2}
2,...y(-u/2,x/2,u/2,x/2,C,1),{x:u/2,y:-x/2},...y(u/2,-x/2,-u/2,-x/2,C,-1)],B=f(S),w=k.path(B,T),A=l.insert(()=>w,":first-child");return A.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),p(e,A),e.intersect=function(t){return z.polygon(e,S,t)},l}(0,l.K2)(oe,"triangle"),(0,l.K2)(ae,"waveEdgedRectangle"),(0,l.K2)(se,"waveRectangle");var ne=10;async function le(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*a-ne,10),e.height=Math.max((e?.height??0)-2*s-ne,10));const{shapeSvg:n,bbox:l,label:h}=await d(t,e,g(e)),u=(e?.width?e?.width:l.width)+2*a+ne,f=(e?.height?e?.height:l.height)+2*s+ne,y=u-ne,m=f-ne,C=-y/2,x=-m/2,{cssStyles:b}=e,k=c.A.svg(n),T=(0,o.Fr)(e,{}),S=[{x:C-ne,y:x-ne},{x:C-ne,y:x+m},{x:C+y,y:x+m},{x:C+y,y:x-ne}],B=`M${C-ne},${x-ne} L${C+y},${x-ne} L${C+y},${x+m} L${C-ne},${x+m} L${C-ne},${x-ne}\n M${C-ne},${x} L${C+y},${x}\n M${C},${x-ne} L${C},${x+m}`;"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const w=k.path(B,T),A=n.insert(()=>w,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),i&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",i),h.attr("transform",`translate(${-l.width/2+5-(l.x-(l.left??0))}, ${-l.height/2+5-(l.y-(l.top??0))})`),p(e,A),e.intersect=function(t){return z.polygon(e,S,t)},n}(0,l.K2)(le,"windowPane");var he=new Set(["redux-color","redux-dark-color"]),ce=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function de(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:i,themeVariables:a}=(0,n.zj)(),{rowEven:l,rowOdd:d,nodeBorder:u,borderColorArray:f}=a;if("handDrawn"===e.look){const{themeVariables:r}=(0,n.zj)(),{background:i}=r,o={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await de(t,o)}const y=(0,n.zj)();e.useHtmlLabels=y.htmlLabels;let m=y.er?.diagramPadding??10,C=y.er?.entityPadding??6;const{cssStyles:x}=e,{labelStyles:b,nodeStyles:k}=(0,o.GX)(e);if(0===r.attributes.length&&e.label){const o={rx:0,ry:0,labelPaddingX:m,labelPaddingY:1.5*m,classes:""};(0,s.Un)(e.label,y)+2*o.labelPaddingX<y.er.minEntityWidth&&(e.width=y.er.minEntityWidth);const a=await St(t,e,o);if(null!=i&&he.has(i)){const t=r.colorIndex??0;a.attr("data-color-id","color-"+t%f.length)}if(!(0,n._3)(y.htmlLabels)){const t=a.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return a}y.htmlLabels||(m*=1.25,C*=1.25);let T=g(e);T||(T="node default");const S=t.insert("g").attr("class",T).attr("id",e.domId||e.id),B=await ue(S,e.label??"",y,0,0,["name"],b);B.height+=C;let w=0;const A=[],L=[];let v=0,F=0,M=0,_=0,E=!0,$=!0;for(const o of r.attributes){const t=await ue(S,o.type,y,0,w,["attribute-type"],b);v=Math.max(v,t.width+m);const e=await ue(S,o.name,y,0,w,["attribute-name"],b);F=Math.max(F,e.width+m);const r=await ue(S,o.keys.join(),y,0,w,["attribute-keys"],b);M=Math.max(M,r.width+m);const i=await ue(S,o.comment,y,0,w,["attribute-comment"],b);_=Math.max(_,i.width+m);const a=Math.max(t.height,e.height,r.height,i.height)+C;L.push({yOffset:w,rowHeight:a}),w+=a}let O=4;M<=m&&(E=!1,M=0,O--),_<=m&&($=!1,_=0,O--);const I=S.node().getBBox();if(B.width+2*m-(v+F+M+_)>0){const t=B.width+2*m-(v+F+M+_);v+=t/O,F+=t/O,M>0&&(M+=t/O),_>0&&(_+=t/O)}const D=v+F+M+_,q=c.A.svg(S),R=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(R.roughness=0,R.fillStyle="solid");let K=0;L.length>0&&(K=L.reduce((t,e)=>t+(e?.rowHeight??0),0));const P=Math.max(I.width+2*m,e?.width||0,D),W=Math.max((K??0)+B.height,e?.height||0),N=-P/2,j=-W/2;if(S.selectAll("g:not(:first-child)").each((t,e,r)=>{const i=(0,h.Ltv)(r[e]),o=i.attr("transform");let a=0,s=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),s=parseFloat(t[2]),i.attr("class").includes("attribute-name")?a+=v:i.attr("class").includes("attribute-keys")?a+=v+F:i.attr("class").includes("attribute-comment")&&(a+=v+F+M))}i.attr("transform",`translate(${N+m/2+a}, ${s+j+B.height+C/2})`)}),S.select(".name").attr("transform","translate("+-B.width/2+", "+(j+C/2)+")"),null!=i&&he.has(i)){const t=r.colorIndex??0;S.attr("data-color-id","color-"+t%f.length)}const H=q.rectangle(N,j,P,W,R),G=S.insert(()=>H,":first-child").attr("class","outer-path").attr("style",x.join(""));A.push(0);for(const[o,s]of L.entries()){const t=(o+1)%2==0&&0!==s.yOffset,e=q.rectangle(N,B.height+j+s?.yOffset,P,s?.rowHeight,{...R,fill:t?l:d,stroke:u});S.insert(()=>e,"g.label").attr("style",x.join("")).attr("class","row-rect-"+(t?"even":"odd"))}const U=1e-4;let Y=pe(N,B.height+j,P+N,B.height+j,U),X=q.polygon(Y.map(t=>[t.x,t.y]),R);if(S.insert(()=>X).attr("class","divider"),Y=pe(v+N,B.height+j,v+N,W+j,U),X=q.polygon(Y.map(t=>[t.x,t.y]),R),S.insert(()=>X).attr("class","divider"),E){const t=v+F+N;Y=pe(t,B.height+j,t,W+j,U),X=q.polygon(Y.map(t=>[t.x,t.y]),R),S.insert(()=>X).attr("class","divider")}if($){const t=v+F+M+N;Y=pe(t,B.height+j,t,W+j,U),X=q.polygon(Y.map(t=>[t.x,t.y]),R),S.insert(()=>X).attr("class","divider")}for(const o of A){const t=B.height+j+o;Y=pe(N,t,P+N,t,U),X=q.polygon(Y.map(t=>[t.x,t.y]),R),S.insert(()=>X).attr("class","divider")}if(p(e,G),k&&"handDrawn"!==e.look)if(null!=i&&ce.has(i))S.selectAll("path").attr("style",k);else{const t=k.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");S.selectAll("path").attr("style",e??""),S.selectAll(".row-rect-even path").attr("style",k)}return e.intersect=function(t){return z.rect(e,t)},S}async function ue(t,e,r,i=0,o=0,l=[],c=""){const d=t.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${i}, ${o})`).attr("style",c);e!==(0,n.QO)(e)&&(e=(e=(0,n.QO)(e)).replaceAll("<","<").replaceAll(">",">"));const u=d.node().appendChild(await(0,a.GZ)(d,e,{width:(0,s.Un)(e,r)+100,style:c,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let t=u.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let p=u.getBBox();
2if((0,n._3)(r.htmlLabels)){const t=u.children[0];t.style.textAlign="start";const e=(0,h.Ltv)(u);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return p}function pe(t,e,r,i,o){return t===r?[{x:t-o/2,y:e},{x:t+o/2,y:e},{x:r+o/2,y:i},{x:r-o/2,y:i}]:[{x:t,y:e-o/2},{x:t,y:e+o/2},{x:r,y:i+o/2},{x:r,y:i-o/2}]}async function ge(t,e,r,i,o=r.class.padding??12){const a=i?0:3,s=t.insert("g").attr("class",g(e)).attr("id",e.domId||e.id);let n=null,l=null,h=null,c=null,d=0,u=0,p=0;if(n=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await fe(n,{text:`\xab${t}\xbb`},0);d=n.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await fe(l,e,0,["font-weight: bolder"]);const f=l.node().getBBox();u=f.height,h=s.insert("g").attr("class","members-group text");let y=0;for(const g of e.members){y+=await fe(h,g,y,[g.parseClassifier()])+a}p=h.node().getBBox().height,p<=0&&(p=o/2),c=s.insert("g").attr("class","methods-group text");let m=0;for(const g of e.methods){m+=await fe(c,g,m,[g.parseClassifier()])+a}let C=s.node().getBBox();if(null!==n){const t=n.node().getBBox();n.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-f.width/2}, ${d})`),C=s.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*o})`),C=s.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(p?p+4*o:2*o)})`),C=s.node().getBBox(),{shapeSvg:s,bbox:C}}async function fe(t,e,r,i=[]){const o=t.insert("g").attr("class","label").attr("style",i.join("; ")),c=(0,n.zj)();let d="useHtmlLabels"in e?e.useHtmlLabels:(0,n._3)(c.htmlLabels)??!0,u="";u="text"in e?e.text:e.label,!d&&u.startsWith("\\")&&(u=u.substring(1)),(0,n.Wi)(u)&&(d=!0);const p=await(0,a.GZ)(o,(0,n.oB)((0,s.Sm)(u)),{width:(0,s.Un)(u,c)+50,classes:"markdown-node-label",useHtmlLabels:d},c);let g,f=1;if(d){const t=p.children[0],e=(0,h.Ltv)(p);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1);const r=t.getElementsByTagName("img");if(r){const t=""===u.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,r=5,i=parseInt(t,10)*r+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";r(e)}(0,l.K2)(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}else{i.includes("font-weight: bolder")&&(0,h.Ltv)(p).selectAll("tspan").attr("font-weight",""),f=p.children.length;const t=p.children[0];if(""===p.textContent||p.textContent.includes(">")){t.textContent=u[0]+u.substring(1).replaceAll(">",">").replaceAll("<","<").trim();" "===u[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))}"undefined"===t.textContent&&(t.textContent=""),g=p.getBBox()}return o.attr("transform","translate(0,"+(-g.height/(2*f)+r)+")"),g.height}async function ye(t,e){const r=(0,n.D7)(),{themeVariables:i}=r,{useGradient:a}=i,s=r.class.padding??12,l=s,d=e.useHtmlLabels??(0,n._3)(r.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:g,bbox:f}=await ge(t,e,r,d,l),{labelStyles:y,nodeStyles:m}=(0,o.GX)(e);e.labelStyle=y,e.cssStyles=u.styles||"";const C=u.styles?.join(";")||m||"";e.cssStyles||(e.cssStyles=C.replaceAll("!important","").split(";"));const x=0===u.members.length&&0===u.methods.length&&!r.class?.hideEmptyMembersBox,b=c.A.svg(g),k=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const T=Math.max(e.width??0,f.width);let S=Math.max(e.height??0,f.height);const B=(e.height??0)>f.height;0===u.members.length&&0===u.methods.length?S+=l:u.members.length>0&&0===u.methods.length&&(S+=2*l);const w=-T/2,A=-S/2;let L=x?2*s:0===u.members.length&&0===u.methods.length?-s:0;B&&(L=2*s);const v=b.rectangle(w-s,A-s-(x?s:0===u.members.length&&0===u.methods.length?-s/2:0),T+2*s,S+2*s+L,k
2),F=g.insert(()=>v,":first-child");F.attr("class","basic label-container outer-path");const M=F.node().getBBox(),_=g.select(".annotation-group").node().getBBox().height-(x?s/2:0)||0,E=g.select(".label-group").node().getBBox().height-(x?s/2:0)||0,$=g.select(".members-group").node().getBBox().height-(x?s/2:0)||0,O=(_+E+A+s-(A-s-(x?s:0===u.members.length&&0===u.methods.length?-s/2:0)))/2;if(g.selectAll(".text").each((t,e,i)=>{const o=(0,h.Ltv)(i[e]),a=o.attr("transform");let n=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);t&&(n=parseFloat(t[2]))}let c=n+A+s-(x?s:0===u.members.length&&0===u.methods.length?-s/2:0);if(o.attr("class").includes("methods-group")){const t=Math.max($,l/2);c=B?Math.max(O,_+E+t+A+2*l+s)+2*l:_+E+t+A+4*l+s}0===u.members.length&&0===u.methods.length&&r.class?.hideEmptyMembersBox&&(c=u.annotations.length>0?n-l:n),d||(c-=4);let p=w;(o.attr("class").includes("label-group")||o.attr("class").includes("annotation-group"))&&(p=-o.node()?.getBBox().width/2||0,g.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(p=0)})),o.attr("transform",`translate(${p}, ${c})`)}),u.members.length>0||u.methods.length>0||x){const t=_+E+A+s,r=b.line(M.x,t,M.x+M.width,t+.001,k);g.insert(()=>r).attr("class","divider"+("neo"!==e.look||a?"":" neo-line")).attr("style",C)}if(x||u.members.length>0||u.methods.length>0){const t=_+E+$+A+2*l+s,r=b.line(M.x,B?Math.max(O,t):t,M.x+M.width,(B?Math.max(O,t):t)+.001,k);g.insert(()=>r).attr("class","divider"+("neo"!==e.look||a?"":" neo-line")).attr("style",C)}if("handDrawn"!==u.look&&g.selectAll("path").attr("style",C),F.select(":nth-child(2)").attr("style",C),g.selectAll(".divider").select("path").attr("style",C),e.labelStyle?g.selectAll("span").attr("style",e.labelStyle):g.selectAll("span").attr("style",C),!d){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(C);if(e){const t=e[0].replace("color","fill");g.selectAll("tspan").attr("style",t)}else if(y){const e=t.exec(y);if(e){const t=e[0].replace("color","fill");g.selectAll("tspan").attr("style",t)}}}return p(e,F),e.intersect=function(t){return z.rect(e,t)},g}async function me(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const a=e,s=e,l="verifyMethod"in e,d=g(e),{themeVariables:u}=(0,n.D7)(),{borderColorArray:f,requirementEdgeLabelBackground:y}=u,m=t.insert("g").attr("class",d).attr("id",e.domId??e.id);let C;C=l?await Ce(m,`<<${a.type}>>`,0,e.labelStyle):await Ce(m,"<<Element>>",0,e.labelStyle);let x=C;const b=await Ce(m,a.name,x,e.labelStyle+"; font-weight: bold;");if(x+=b+20,l){x+=await Ce(m,""+(a.requirementId?`ID: ${a.requirementId}`:""),x,e.labelStyle);x+=await Ce(m,""+(a.text?`Text: ${a.text}`:""),x,e.labelStyle);x+=await Ce(m,""+(a.risk?`Risk: ${a.risk}`:""),x,e.labelStyle),await Ce(m,""+(a.verifyMethod?`Verification: ${a.verifyMethod}`:""),x,e.labelStyle)}else{x+=await Ce(m,""+(s.type?`Type: ${s.type}`:""),x,e.labelStyle),await Ce(m,""+(s.docRef?`Doc Ref: ${s.docRef}`:""),x,e.labelStyle)}const k=(m.node()?.getBBox().width??200)+20,T=(m.node()?.getBBox().height??200)+20,S=-k/2,B=-T/2,w=c.A.svg(m),A=(0,o.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const L=w.rectangle(S,B,k,T,A),v=m.insert(()=>L,":first-child");if(v.attr("class","basic label-container outer-path").attr("style",i),f?.length){const t=e.colorIndex??0;m.attr("data-color-id","color-"+t%f.length)}if(m.selectAll(".label").each((t,e,r)=>{const i=(0,h.Ltv)(r[e]),o=i.attr("transform");let a=0,s=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),s=parseFloat(t[2]))}const n=s-T/2;let l=S+10;0!==e&&1!==e||(l=a),i.attr("transform",`translate(${l}, ${n+20})`)}),x>C+b+20){const t=B+C+b+20;let r;if("neo"===e.look){const e=.001,i=[[S,t],[S+k,t],[S+k,t+e],[S,t+e]];r=w.polygon(i,A)}else r=w.line(S,t,S+k,t,A);m.insert(()=>r).attr("class","divider")}return p(e,v),e.intersect=function(t){return z.rect(e,t)},i&&"handDrawn"!==e.look&&(y||f?.length)&&m.selectAll("path").attr("style",i),m}async function Ce(t,e,r,i=""){if(""===e)return 0;const o=t.insert("g").attr("class","label").attr("style",i),l=(0,n.D7)(),c=l.htmlLabels??!0,d=await(0,a.GZ)(o,(0,n.oB)((0,s.Sm)(e)),{width:(0,s.Un)(e,l)+50,classes:"markdown-node-label",useHtmlLabels:c,style:i},l);let u;if(c){const t=d.children[0],e=(0,h.Ltv)(d);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}else{const t=d.children[0];for(const e of t.children)i&&e.setAttribute("style",i);u=d.getBBox(),u.height+=6}return o.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}(0,l.K2)(de,"erBox"),(0,l.K2)(ue,"addText"),(0,l.K2)(pe,"lineToPolygon"),(0,l.K2)(ge,"textHelper"),(0,l.K2)(fe,"addText"),(0,l.K2)(ye,"classBox"),(0,l.K2)(me,"requirementBox"),(0,l.K2)(Ce,"addText");var xe=(0,l.K2)(t=>{switch(t){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 be(t,e,{config:r}){const{labelStyles:i,nodeStyles:a}=(0,o.GX)(e);e.labelStyle=i||"";const s=e.width;e.width=(e.width??200)-10;const{shapeSvg:n,bbox:l,label:h}=await d(t,e,g(e)),f=e.padding||10;let y,m="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(m=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),y=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank"));const C={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let x,b;({label:x,bbox:b}=y?await u(y,"ticket"in e&&e.ticket||"",C):await u(n,"ticket"in e&&e.ticket||"",C));const{label:T,bbox:S}=await u(n,"assigned"in e&&e.assigned||"",C);e.width=s;const B=e?.width||0,w=Math.max(b.height,S.height)/2,A=Math.max(l.height+20,e?.height||0)+w,L=-B/2,v=-A/2;let F;h.attr("transform","translate("+(f-B/2)+", "+(-w-l.height/2)+")"),x.attr("transform","translate("+(f-B/2)+", "+(-w+l.height/2)+")"),T.attr("transform","translate("+(f+B/2-S.width-20)+", "+(-w+l.height/2)+")");const{rx:M,ry:_}=e,{cssStyles:E}=e;
2if("handDrawn"===e.look){const t=c.A.svg(n),r=(0,o.Fr)(e,{}),i=M||_?t.path(k(L,v,B,A,M||0),r):t.rectangle(L,v,B,A,r);F=n.insert(()=>i,":first-child"),F.attr("class","basic label-container").attr("style",E||null)}else{F=n.insert("rect",":first-child"),F.attr("class","basic label-container __APA__").attr("style",a).attr("rx",M??5).attr("ry",_??5).attr("x",L).attr("y",v).attr("width",B).attr("height",A);const t="priority"in e&&e.priority;if(t){const e=n.append("line"),r=L+2,i=v+Math.floor((M??0)/2),o=v+A-Math.floor((M??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",o).attr("stroke-width","4").attr("stroke",xe(t))}}return p(e,F),e.height=A,e.intersect=function(t){return z.rect(e,t)},n}async function ke(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:h,label:u}=await d(t,e,g(e)),f=n.width+10*h,y=n.height+8*h,m=.15*f,{cssStyles:C}=e,x=n.width+20,b=n.height+20,k=Math.max(f,x),T=Math.max(y,b);let S;u.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);const B=`M0 0 \n a${m},${m} 1 0,0 ${.25*k},${-1*T*.1}\n a${m},${m} 1 0,0 ${.25*k},0\n a${m},${m} 1 0,0 ${.25*k},0\n a${m},${m} 1 0,0 ${.25*k},${.1*T}\n\n a${m},${m} 1 0,0 ${.15*k},${.33*T}\n a${.8*m},${.8*m} 1 0,0 0,${.34*T}\n a${m},${m} 1 0,0 ${-1*k*.15},${.33*T}\n\n a${m},${m} 1 0,0 ${-1*k*.25},${.15*T}\n a${m},${m} 1 0,0 ${-1*k*.25},0\n a${m},${m} 1 0,0 ${-1*k*.25},0\n a${m},${m} 1 0,0 ${-1*k*.25},${-1*T*.15}\n\n a${m},${m} 1 0,0 ${-1*k*.1},${-1*T*.33}\n a${.8*m},${.8*m} 1 0,0 0,${-1*T*.34}\n a${m},${m} 1 0,0 ${.1*k},${-1*T*.33}\n H0 V0 Z`;if("handDrawn"===e.look){const t=c.A.svg(a),r=(0,o.Fr)(e,{}),i=t.path(B,r);S=a.insert(()=>i,":first-child"),S.attr("class","basic label-container").attr("style",(0,s.KL)(C))}else S=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",B);return S.attr("transform",`translate(${-k/2}, ${-T/2})`),p(e,S),e.calcIntersect=function(t,e){return z.rect(t,e)},e.intersect=function(t){return l.Rm.info("Bang intersect",e,t),z.rect(e,t)},a}async function Te(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:h,label:u}=await d(t,e,g(e)),f=n.width+2*h,y=n.height+2*h,m=.15*f,C=.25*f,x=.35*f,b=.2*f,{cssStyles:k}=e;let T;const S=`M0 0 \n a${m},${m} 0 0,1 ${.25*f},${-1*f*.1}\n a${x},${x} 1 0,1 ${.4*f},${-1*f*.1}\n a${C},${C} 1 0,1 ${.35*f},${.2*f}\n\n a${m},${m} 1 0,1 ${.15*f},${.35*y}\n a${b},${b} 1 0,1 ${-1*f*.15},${.65*y}\n\n a${C},${m} 1 0,1 ${-1*f*.25},${.15*f}\n a${x},${x} 1 0,1 ${-1*f*.5},0\n a${m},${m} 1 0,1 ${-1*f*.25},${-1*f*.15}\n\n a${m},${m} 1 0,1 ${-1*f*.1},${-1*y*.35}\n a${b},${b} 1 0,1 ${.1*f},${-1*y*.65}\n H0 V0 Z`;if("handDrawn"===e.look){const t=c.A.svg(a),r=(0,o.Fr)(e,{}),i=t.path(S,r);T=a.insert(()=>i,":first-child"),T.attr("class","basic label-container").attr("style",(0,s.KL)(k))}else T=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S);return u.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),T.attr("transform",`translate(${-f/2}, ${-y/2})`),p(e,T),e.calcIntersect=function(t,e){return z.rect(t,e)},e.intersect=function(t){return l.Rm.info("Cloud intersect",e,t),z.rect(e,t)},a}async function Se(t,e){const{labelStyles:r,nodeStyles:i}=(0,o.GX)(e);e.labelStyle=r;const{shapeSvg:a,bbox:s,halfPadding:n,label:l}=await d(t,e,g(e)),h=s.width+8*n,c=s.height+2*n,u="neo"===e.look?`\n M${-h/2} ${c/2-5}\n v${10-c}\n q0,-5 5,-5\n h${h-10}\n q5,0 5,5\n v${c-5}\n H${-h/2}\n Z\n `:`\n M${-h/2} ${c/2-5}\n v${10-c}\n q0,-5 5,-5\n h${h-10}\n q5,0 5,5\n v${c-10}\n q0,5 -5,5\n h${-(h-10)}\n q-5,0 -5,-5\n Z\n `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);const f=a.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",u);return a.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",c/2).attr("x2",h/2).attr("y2",c/2),l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),a.append(()=>l.node()),p(e,f),e.calcIntersect=function(t,e){return z.rect(t,e)},e.intersect=function(t){return z.rect(e,t)},a}async function Be(t,e){return Y(t,e,{padding:e.padding??0})}(0,l.K2)(be,"kanbanItem"),(0,l.K2)(ke,"bang"),(0,l.K2)(Te,"cloud"),(0,l.K2)(Se,"defaultMindmapNode"),(0,l.K2)(Be,"mindmapCircle");var we=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Nt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:zt},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:jt},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
2subproc","framed-rectangle","subroutine"],handler:Yt},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:nt},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Y},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ke},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Te},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:qt},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ft},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:At},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:wt},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:re},{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:Tt},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:ht},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Zt}
2,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:G},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Pt},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ut},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Gt},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ut},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:yt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Q},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:rt},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Lt}
2,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ae},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:pt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ee},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:_t},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:it},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:lt},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:oe},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:le},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ct},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ie},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:dt},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Wt},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Ot},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:$t},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:j},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:V},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Vt},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Xt},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:se},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Rt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Et}],Ae=(0,l.K2)(()=>{const t={state:Ht,choice:U,note:It,rectWithTitle:Kt,labelRect:Bt,iconSquare:bt,iconCircle:Ct,icon:mt,iconRounded:xt,imageSquare:kt,anchor:P,kanbanItem:be,mindmapCircle:Be,defaultMindmapNode:Se,classBox:ye,erBox:de,requirementBox:me},e=[...Object.entries(t),...we.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))];return Object.fromEntries(e)},"generateShapeMap")();function Le(t){return t in Ae}(0,l.K2)(Le,"isValidShape");var ve=new Map;async function Fe(t,e,r){let i,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?Ae[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===r.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),o=await a(i,e,r)}else o=await a(t,e,r),i=o;return i.attr("data-look",(0,s.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),ve.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
2(0,l.K2)(Fe,"insertNode");var Me=(0,l.K2)((t,e)=>{ve.set(e.id,t)},"setNodeElem"),_e=(0,l.K2)(()=>{ve.clear()},"clear"),Ee=(0,l.K2)(t=>{const e=ve.get(t.id);l.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},28718(t,e,r){"use strict";r.d(e,{$C:()=>v,$t:()=>j,C4:()=>G,I5:()=>N,Ib:()=>y,KL:()=>X,Sm:()=>U,Un:()=>D,_K:()=>H,bH:()=>$,dq:()=>P,pe:()=>h,rY:()=>Y,ru:()=>I,sM:()=>A,vU:()=>g,yT:()=>M});var i=r(17726),o=r(40797),a=r(16750),s=r(70451),n=r(46632),l=r(49918),h="\u200b",c={curveBasis:s.qrM,curveBasisClosed:s.Yu4,curveBasisOpen:s.IA3,curveBumpX:s.Wi0,curveBumpY:s.PGM,curveBundle:s.OEq,curveCardinalClosed:s.olC,curveCardinalOpen:s.IrU,curveCardinal:s.y8u,curveCatmullRomClosed:s.Q7f,curveCatmullRomOpen:s.cVp,curveCatmullRom:s.oDi,curveLinear:s.lUB,curveLinearClosed:s.Lx9,curveMonotoneX:s.nVG,curveMonotoneY:s.uxU,curveNatural:s.Xf2,curveStep:s.GZz,curveStepAfter:s.UPb,curveStepBefore:s.dyv},d=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,u=(0,o.K2)(function(t,e){const r=p(t,/(?:init\b)|(?:initialize\b)/);let o={};if(Array.isArray(r)){const t=r.map(t=>t.args);(0,i.$i)(t),o=(0,i.hH)(o,[...t])}else o=r.args;if(!o)return;let a=(0,i.Ch)(t,e);const s="config";return void 0!==o[s]&&("flowchart-v2"===a&&(a="flowchart"),o[a]=o[s],delete o[s]),o},"detectInit"),p=(0,o.K2)(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${d.source})(?=[}][%]{2}).*\n`,"ig");let a;t=t.trim().replace(r,"").replace(/'/gm,'"'),o.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const s=[];for(;null!==(a=i.DB.exec(t));)if(a.index===i.DB.lastIndex&&i.DB.lastIndex++,a&&!e||e&&a[1]?.match(e)||e&&a[2]?.match(e)){const t=a[1]?a[1]:a[2],e=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:t,args:e})}return 0===s.length?{type:t,args:null}:1===s.length?s[0]:s}catch(r){return o.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),g=(0,o.K2)(function(t){return t.replace(i.DB,"")},"removeDirectives"),f=(0,o.K2)(function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");function y(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return c[r]??e}function m(t,e){const r=t.trim();if(r)return"loose"!==e.securityLevel?(0,a.J)(r):r}(0,o.K2)(y,"interpolateToCurve"),(0,o.K2)(m,"formatUrl");var C=(0,o.K2)((t,...e)=>{const r=t.split("."),i=r.length-1,a=r[i];let s=window;for(let n=0;n<i;n++)if(s=s[r[n]],!s)return void o.Rm.error(`Function name: ${t} not found in window`);s[a](...e)},"runFunc");function x(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function b(t){let e,r=0;t.forEach(t=>{r+=x(t,e),e=t});return S(t,r/2)}function k(t){return 1===t.length?t[0]:b(t)}(0,o.K2)(x,"distance"),(0,o.K2)(b,"traverseEdge"),(0,o.K2)(k,"calcLabelPosition");var T=(0,o.K2)((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),S=(0,o.K2)((t,e)=>{let r,i=e;for(const o of t){if(r){const t=x(o,r);if(0===t)return r;if(t<i)i-=t;else{const e=i/t;if(e<=0)return r;if(e>=1)return{x:o.x,y:o.y};if(e>0&&e<1)return{x:T((1-e)*r.x+e*o.x,5),y:T((1-e)*r.y+e*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),B=(0,o.K2)((t,e,r)=>{o.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=S(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),n={x:0,y:0};return n.x=Math.sin(s)*a+(e[0].x+i.x)/2,n.y=-Math.cos(s)*a+(e[0].y+i.y)/2,n},"calcCardinalityPosition");function w(t,e,r){const i=structuredClone(r);o.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const a=S(i,25+t),s=10+.5*t,n=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(n+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(n+Math.PI)*s+(i[0].y+a.y)/2):"end_right"===e?(l.x=Math.sin(n-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(n-Math.PI)*s+(i[0].y+a.y)/2-5):"end_left"===e?(l.x=Math.sin(n)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(n)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(n)*s+(i[0].x+a.x)/2,l.y=-Math.cos(n)*s+(i[0].y+a.y)/2),l}function A(t){let e="",r="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}(0,o.K2)(w,"calcTerminalLabelPosition"),(0,o.K2)(A,"getStylesFromArray");var L=0,v=(0,o.K2)(()=>(L++,"id-"+Math.random().toString(36).substr(2,12)+"-"+L),"generateId");function F(t){let e="";const r="0123456789abcdef";for(let i=0;i<t;i++)e+=r.charAt(Math.floor(16*Math.random()));return e}(0,o.K2)(F,"makeRandomHex");var M=(0,o.K2)(t=>F(t.length),"random"),_=(0,o.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}
2,"getTextObj"),E=(0,o.K2)(function(t,e){const r=e.text.replace(i.Y2.lineBreakRegex," "),[,o]=N(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",o),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);const s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),a},"drawSimpleText"),$=(0,n.A)((t,e,r)=>{if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),i.Y2.lineBreakRegex.test(t))return t;const o=t.split(" ").filter(Boolean),a=[];let s="";return o.forEach((t,i)=>{const n=D(`${t} `,r),l=D(s,r);if(n>e){const{hyphenatedStrings:i,remainingWord:o}=O(t,e,"-",r);a.push(s,...i),s=o}else l+n>=e?(a.push(s),s=t):s=[s,t].filter(Boolean).join(" ");i+1===o.length&&a.push(s)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),O=(0,n.A)((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const o=[...t],a=[];let s="";return o.forEach((t,n)=>{const l=`${s}${t}`;if(D(l,i)>=e){const t=n+1,e=o.length===t,i=`${l}${r}`;a.push(e?l:i),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function I(t,e){return R(t,e).height}function D(t,e){return R(t,e).width}(0,o.K2)(I,"calculateTextHeight"),(0,o.K2)(D,"calculateTextWidth");var q,R=(0,n.A)((t,e)=>{const{fontSize:r=12,fontFamily:o="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,n]=N(r),l=["sans-serif",o],c=t.split(i.Y2.lineBreakRegex),d=[],u=(0,s.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const p=u.append("svg");for(const i of l){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of c){const o=_();o.text=r||h;const s=E(p,o).style("font-size",n).style("font-weight",a).style("font-family",i),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw new Error("svg element not in render tree");e.width=Math.round(Math.max(e.width,l.width)),t=Math.round(l.height),e.height+=t,e.lineHeight=Math.round(Math.max(e.lineHeight,t))}d.push(e)}p.remove();return d[isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),K=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K2)(this,"InitIDGenerator")}},z=(0,o.K2)(function(t){return q=q||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),q.innerHTML=t,unescape(q.textContent)},"entityDecode");function P(t){return"str"in t}(0,o.K2)(P,"isDetailedError");var W=(0,o.K2)((t,e,r,i)=>{if(!i)return;const o=t.node()?.getBBox();o&&t.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)},"insertTitle"),N=(0,o.K2)(t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function j(t,e){return(0,l.A)({},t,e)}(0,o.K2)(j,"cleanAndMerge");var H={assignWithDepth:i.hH,wrapLabel:$,calculateTextHeight:I,calculateTextWidth:D,calculateTextDimensions:R,cleanAndMerge:j,detectInit:u,detectDirective:p,isSubstringInArray:f,interpolateToCurve:y,calcLabelPosition:k,calcCardinalityPosition:B,calcTerminalLabelPosition:w,formatUrl:m,getStylesFromArray:A,generateId:v,random:M,runFunc:C,entityDecode:z,insertTitle:W,isLabelCoordinateInPath:V,parseFontSize:N,InitIDGenerator:K},G=(0,o.K2)(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/#\w+;/g,function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\ufb02\xb0\xb0"+e+"\xb6\xdf":"\ufb02\xb0"+e+"\xb6\xdf"}),e},"encodeEntities"),U=(0,o.K2)(function(t){return t.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")},"decodeEntities"),Y=(0,o.K2)((t,e,{counter:r=0,prefix:i,suffix:o},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${o?`_${o}`:""}`,"getEdgeId");function X(t){return t??null}function V(t,e){const r=Math.round(t.x),i=Math.round(t.y),o=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return o.includes(r.toString())||o.includes(i.toString())}(0,o.K2)(X,"handleUndefinedAttr"),(0,o.K2)(V,"isLabelCoordinateInPath")},40797(t,e,r){"use strict";r.d(e,{He:()=>h,K2:()=>a,Rm:()=>l,VA:()=>s});var i=r(74353),o=Object.defineProperty,a=(t,e)=>o(t,"name",{value:e,configurable:!0}),s=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},n={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},l={trace:a((...t)=>{},"trace"),debug:a((...t)=>{},"debug"),info:a((...t)=>{},"info"),warn:a((...t)=>{},"warn"),error:a((...t)=>{},"error"),fatal:a((...t)=>{},"fatal")},h=a(function(t="fatal"){let e=n.fatal;"string"==typeof t?t.toLowerCase()in n&&(e=n[t]):"number"==typeof t&&(e=t),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},e<=n.fatal&&(l.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",c("FATAL"))),e<=n.error&&(l.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",c("ERROR"))),e<=n.warn&&(l.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",c("WARN"))),e<=n.info&&(l.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",c("INFO"))),e<=n.debug&&(l.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",c("DEBUG"))),e<=n.trace&&(l.trace=console.debug?console.debug.bind(console,c("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",c("TRACE")))},"setLogLevel"),c=a(t=>`%c${i().format("ss.SSS")} : ${t} : `,"format")},11334(t,e,r){"use strict";r.d(e,{Nq:()=>s,RI:()=>h,Wg:()=>o,hq:()=>a});var i=r(40797),o=(0,i.K2)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,i=t.y??0;return"translate("+-(r+t.width/2)+", "+-(i+t.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function n(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);const[r,i]=[t.x,t.y],[o,a]=[e.x,e.y],s=o-r,n=a-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}(0,i.K2)(n,"calculateDeltaAndAngle");var l=(0,i.K2)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),h=(0,i.K2)(t=>({x:(0,i.K2)(function(e,r,i){let o=0;const s=l(i[0]).x<l(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){const{angle:e,deltaX:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaX:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const h=Math.abs(l(e).x-l(i[i.length-1]).x),c=Math.abs(l(e).y-l(i[i.length-1]).y),d=Math.abs(l(e).x-l(i[0]).x),u=Math.abs(l(e).y-l(i[0]).y),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="right"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="right"===s?-1:1,o+=t}return l(e).x+o},"x"),y:(0,i.K2)(function(e,r,i){let o=0;const s=l(i[0]).y<l(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){const{angle:e,deltaY:r}=n(i[0],i[1]);o=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaY:r}=n(i[i.length-1],i[i.length-2]);o=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const h=Math.abs(l(e).y-l(i[i.length-1]).y),c=Math.abs(l(e).x-l(i[i.length-1]).x),d=Math.abs(l(e).y-l(i[0]).y),u=Math.abs(l(e).x-l(i[0]).x),p=a[t.arrowTypeStart],g=a[t.arrowTypeEnd];if(h<g&&h>0&&c<g){let t=g+1-h;t*="up"===s?-1:1,o-=t}if(d<p&&d>0&&u<p){let t=p+1-d;t*="up"===s?-1:1,o+=t}return l(e).y+o},"y")}),"getLineFunctionsWithOffset")},73353(t,e,r){"use strict";r.d(e,{IU:()=>b,Jo:()=>E,T_:()=>B,g0:()=>ot,jP:()=>T});var i=r(11334),o=r(29092),a=r(97963),s=r(38278),n=r(35183),l=r(28718),h=r(17726),c=r(40797),d=r(70451),u=r(29893),p=(0,c.K2)((t,e,r,i,o,a=!1,s)=>{e.arrowTypeStart&&y(t,"start",e.arrowTypeStart,r,i,o,a,s),e.arrowTypeEnd&&y(t,"end",e.arrowTypeEnd,r,i,o,a,s)},"addEdgeMarkers"),g={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1}
2,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}},f=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],y=(0,c.K2)((t,e,r,i,o,a,s=!1,n)=>{const l=g[r],h=l&&f.includes(l.type);if(!l)return void c.Rm.warn(`Unknown arrow type: ${r}`);const d=`${o}_${a}-${l.type}${"start"===e?"Start":"End"}${s&&h?"-margin":""}`;if(n&&""!==n.trim()){const r=`${d}_${n.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(r)){const t=document.getElementById(d);if(t){const e=t.cloneNode(!0);e.id=r;e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",n),l.fill&&t.setAttribute("fill",n)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${r})`)}else t.attr(`marker-${e}`,`url(${i}#${d})`)},"addEdgeMarker"),m=(0,c.K2)(t=>"string"==typeof t?t:(0,h.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),C=new Map,x=new Map,b=(0,c.K2)(()=>{C.clear(),x.clear()},"clear"),k=(0,c.K2)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),T=(0,c.K2)(async(t,e)=>{const r=(0,h.D7)();let a=(0,h.E)(r);const{labelStyles:l}=(0,s.GX)(e);e.labelStyle=l;const u=t.insert("g").attr("class","edgeLabel"),p=u.insert("g").attr("class","label").attr("data-id",e.id),g="markdown"===e.labelType,f=await(0,n.GZ)(t,e.label,{style:k(e.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},r);p.node().appendChild(f),c.Rm.info("abc82",e,e.labelType);let y,m=f.getBBox(),b=m;if(a){const t=f.children[0],e=(0,d.Ltv)(f);m=t.getBoundingClientRect(),b=m,e.attr("width",m.width),e.attr("height",m.height)}else{const t=(0,d.Ltv)(f).select("text").node();t&&"function"==typeof t.getBBox&&(b=t.getBBox())}if(p.attr("transform",(0,i.Wg)(b,a)),C.set(e.id,u),e.width=m.width,e.height=m.height,e.startLabelLeft){const r=t.insert("g").attr("class","edgeTerminals"),s=r.insert("g").attr("class","inner"),n=await(0,o.DA)(s,e.startLabelLeft,k(e.labelStyle)||"",!1,!1);y=n;let l=n.getBBox();if(a){const t=n.children[0],e=(0,d.Ltv)(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}s.attr("transform",(0,i.Wg)(l,a)),x.get(e.id)||x.set(e.id,{}),x.get(e.id).startLeft=r,S(y,e.startLabelLeft)}if(e.startLabelRight){const r=t.insert("g").attr("class","edgeTerminals"),s=r.insert("g").attr("class","inner"),n=await(0,o.DA)(s,e.startLabelRight,k(e.labelStyle)||"",!1,!1);y=n,s.node().appendChild(n);let l=n.getBBox();if(a){const t=n.children[0],e=(0,d.Ltv)(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}s.attr("transform",(0,i.Wg)(l,a)),x.get(e.id)||x.set(e.id,{}),x.get(e.id).startRight=r,S(y,e.startLabelRight)}if(e.endLabelLeft){const r=t.insert("g").attr("class","edgeTerminals"),s=r.insert("g").attr("class","inner"),n=await(0,o.DA)(s,e.endLabelLeft,k(e.labelStyle)||"",!1,!1);y=n;let l=n.getBBox();if(a){const t=n.children[0],e=(0,d.Ltv)(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}s.attr("transform",(0,i.Wg)(l,a)),r.node().appendChild(n),x.get(e.id)||x.set(e.id,{}),x.get(e.id).endLeft=r,S(y,e.endLabelLeft)}if(e.endLabelRight){const r=t.insert("g").attr("class","edgeTerminals"),s=r.insert("g").attr("class","inner"),n=await(0,o.DA)(s,e.endLabelRight,k(e.labelStyle)||"",!1,!1);y=n;let l=n.getBBox();if(a){const t=n.children[0],e=(0,d.Ltv)(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}s.attr("transform",(0,i.Wg)(l,a)),r.node().appendChild(n),x.get(e.id)||x.set(e.id,{}),x.get(e.id).endRight=r,S(y,e.endLabelRight)}return f},"insertEdgeLabel");function S(t,e){(0,h.E)((0,h.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,c.K2)(S,"setTerminalWidth");var B=(0,c.K2)((t,e)=>{c.Rm.debug("Moving label abc88 ",t.id,t.label,C.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=(0,h.D7)(),{subGraphTitleTotalMargin:o}=(0,a.O)(i);if(t.label){const i=C.get(t.id);let a=t.x,s=t.y;if(r){const i=l._K.calcLabelPosition(r);c.Rm.debug("Moving label "+t.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(a=i.x,s=i.y)}i.attr("transform",`translate(${a}, ${s+o/2})`)}if(t.startLabelLeft){const e=x.get(t.id).startLeft;let i=t.x,o=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.startLabelRight){const e=x.get(t.id).startRight;let i=t.x,o=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.endLabelLeft){const e=x.get(t.id).endLeft;let i=t.x,o=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}if(t.endLabelRight){const e=x.get(t.id).endRight;let i=t.x,o=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x,o=e.y}e.attr("transform",`translate(${i}, ${o})`)}},"positionEdgeLabel"),w=(0,c.K2)((t,e)=>{const r=t.x,i=t.y,o=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,n=t.height/2;return o>=s||a>=n},"outsideNode"),A=(0,c.K2)((t,e,r)=>{c.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,o=t.y,a=Math.abs(i-r.x),s=t.width/2;let n=r.x<e.x?s-a:s+a;const l=t.height/2,h=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);
2if(Math.abs(o-e.y)*s>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-o:o-l-e.y;n=d*t/h;const i={x:r.x<e.x?r.x+n:r.x-d+n,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===n&&(i.x=e.x,i.y=e.y),0===d&&(i.x=e.x),0===h&&(i.y=e.y),c.Rm.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${d}, r ${n}`,i),i}{n=r.x<e.x?e.x-s-i:i-s-e.x;let t=h*n/d,o=r.x<e.x?r.x+d-n:r.x-d+n,a=r.y<e.y?r.y+t:r.y-t;return c.Rm.debug(`sides calc abc89, Q ${h}, q ${t}, R ${d}, r ${n}`,{_x:o,_y:a}),0===n&&(o=e.x,a=e.y),0===d&&(o=e.x),0===h&&(a=e.y),{x:o,y:a}}},"intersection"),L=(0,c.K2)((t,e)=>{c.Rm.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],o=!1;return t.forEach(t=>{if(c.Rm.info("abc88 checking point",t,e),w(e,t)||o)c.Rm.warn("abc88 outside",t,i),i=t,o||r.push(t);else{const a=A(e,i,t);c.Rm.debug("abc88 inside",t,i,a),c.Rm.debug("abc88 intersection",a,e);let s=!1;r.forEach(t=>{s=s||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.Rm.warn("abc88 no intersect",a,r):r.push(a),o=!0}}),c.Rm.debug("returning points",r),r},"cutPathAtIntersect");function v(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const o=t[i-1],a=t[i],s=t[i+1];(o.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5||o.y===a.y&&a.x===s.x&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,c.K2)(v,"extractCornerPoints");var F=(0,c.K2)(function(t,e,r){const i=e.x-t.x,o=e.y-t.y,a=r/Math.sqrt(i*i+o*o);return{x:e.x-a*i,y:e.y-a*o}},"findAdjacentPoint"),M=(0,c.K2)(function(t){const{cornerPointPositions:e}=v(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const e=t[i-1],o=t[i+1],a=t[i],s=F(e,a,5),n=F(o,a,5),l=n.x-s.x,h=n.y-s.y;r.push(s);const d=2*Math.sqrt(2);let u={x:a.x,y:a.y};if(Math.abs(o.x-e.x)>10&&Math.abs(o.y-e.y)>=10){c.Rm.debug("Corner point fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y));const t=5;u=a.x===s.x?{x:l<0?s.x-t+d:s.x+t-d,y:h<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:h<0?s.y-t+d:s.y+t-d}}else c.Rm.debug("Corner point skipping fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y));r.push(u,n)}else r.push(t[i]);return r},"fixCorners"),_=(0,c.K2)((t,e,r)=>{const i=t-e-r,o=Math.floor(i/4);return`0 ${e} ${Array(o).fill("2 2").join(" ")} ${r}`},"generateDashArray"),E=(0,c.K2)(function(t,e,r,o,a,n,g,f=!1){if(!g)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:y}=(0,h.D7)();let C=e.points,x=!1;const b=a;var k=n;const T=[];for(const i in e.cssCompiledStyles)(0,s.KX)(i)||T.push(e.cssCompiledStyles[i]);c.Rm.debug("UIO intersect check",e.points,k.x,b.x),k.intersect&&b.intersect&&!f&&(C=C.slice(1,e.points.length-1),C.unshift(b.intersect(C[0])),c.Rm.debug("Last point UIO",e.start,"--\x3e",e.end,C[C.length-1],k,k.intersect(C[C.length-1])),C.push(k.intersect(C[C.length-1])));const S=btoa(JSON.stringify(C));e.toCluster&&(c.Rm.info("to cluster abc88",r.get(e.toCluster)),C=L(e.points,r.get(e.toCluster).node),x=!0),e.fromCluster&&(c.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(C,null,2)),C=L(C.reverse(),r.get(e.fromCluster).node).reverse(),x=!0);let B=C.filter(t=>!Number.isNaN(t.y));const w=m(e.curve);"rounded"!==w&&(B=M(B));let A=d.lUB;switch(w){case"linear":case"rounded":A=d.lUB;break;case"basis":default:A=d.qrM;break;case"cardinal":A=d.y8u;break;case"bumpX":A=d.Wi0;break;case"bumpY":A=d.PGM;break;case"catmullRom":A=d.oDi;break;case"monotoneX":A=d.nVG;break;case"monotoneY":A=d.uxU;break;case"natural":A=d.Xf2;break;case"step":A=d.GZz;break;case"stepAfter":A=d.UPb;break;case"stepBefore":A=d.dyv}const{x:v,y:F}=(0,i.RI)(e),E=(0,d.n8j)().x(v).y(F).curve(A);let O,D;switch(e.thickness){case"normal":default:O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible"}switch(e.pattern){case"solid":default:O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed"}let q="rounded"===w?$(I(B,e),5):E(B);const R=Array.isArray(e.style)?e.style:[e.style];let K=R.find(t=>t?.startsWith("stroke:")),z="";e.animate&&(z="edge-animation-fast"),e.animation&&(z="edge-animation-"+e.animation);let P=!1;
2if("handDrawn"===e.look){const r=u.A.svg(t);Object.assign([],B);const i=r.path(q,{roughness:.3,seed:y});O+=" transition",D=(0,d.Ltv)(i).select("path").attr("id",`${g}-${e.id}`).attr("class"," "+O+(e.classes?" "+e.classes:"")+(z?" "+z:"")).attr("style",R?R.reduce((t,e)=>t+";"+e,""):"");let o=D.attr("d");D.attr("d",o),t.node().appendChild(D.node())}else{const r=T.join(";"),o=R?R.reduce((t,e)=>t+e+";",""):"",a=(r?r+";"+o+";":o)+";"+(R?R.reduce((t,e)=>t+";"+e,""):"");D=t.append("path").attr("d",q).attr("id",`${g}-${e.id}`).attr("class"," "+O+(e.classes?" "+e.classes:"")+(z?" "+z:"")).attr("style",a),K=a.match(/stroke:([^;]+)/)?.[1],P=!0===e.animate||!!e.animation||r.includes("animation");const s=D.node(),n="function"==typeof s.getTotalLength?s.getTotalLength():0,l=i.Nq[e.arrowTypeStart]||0,h=i.Nq[e.arrowTypeEnd]||0;if("neo"===e.look&&!P){const t=`stroke-dasharray: ${"dotted"===e.pattern||"dashed"===e.pattern?_(n,l,h):`0 ${l} ${n-l-h} ${h}`}; stroke-dashoffset: 0;`;D.attr("style",t+D.attr("style"))}}D.attr("data-edge",!0),D.attr("data-et","edge"),D.attr("data-id",e.id),D.attr("data-points",S),D.attr("data-look",(0,l.KL)(e.look)),e.showPoints&&B.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let W="";((0,h.D7)().flowchart.arrowMarkerAbsolute||(0,h.D7)().state.arrowMarkerAbsolute)&&(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,W=W.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.Rm.info("arrowTypeStart",e.arrowTypeStart),c.Rm.info("arrowTypeEnd",e.arrowTypeEnd);p(D,e,W,g,o,!P&&"neo"===e?.look,K);const N=C[Math.floor(C.length/2)];l._K.isLabelCoordinateInPath(N,D.attr("d"))||(x=!0);let j={};return x&&(j.updatedPath=C),j.originalPath=e.points,j},"insertEdge");function $(t,e){if(t.length<2)return"";let r="";const i=t.length,o=1e-5;for(let a=0;a<i;a++){const s=t[a],n=t[a-1],l=t[a+1];if(0===a)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const t=s.x-n.x,i=s.y-n.y,a=l.x-s.x,h=l.y-s.y,c=Math.hypot(t,i),d=Math.hypot(a,h);if(c<o||d<o){r+=`L${s.x},${s.y}`;continue}
2const u=t/c,p=i/c,g=a/d,f=h/d,y=u*g+p*f,m=Math.max(-1,Math.min(1,y)),C=Math.acos(m);if(C<o||Math.abs(Math.PI-C)<o){r+=`L${s.x},${s.y}`;continue}const x=Math.min(e/Math.sin(C/2),c/2,d/2),b=s.x-u*x,k=s.y-p*x,T=s.x+g*x,S=s.y+f*x;r+=`L${b},${k}`,r+=`Q${s.x},${s.y} ${T},${S}`}}return r}function O(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function I(t,e){const r=t.map(t=>({...t}));if(t.length>=2&&i.hq[e.arrowTypeStart]){const o=i.hq[e.arrowTypeStart],a=t[0],s=t[1],{angle:n}=O(a,s),l=o*Math.cos(n),h=o*Math.sin(n);r[0].x=a.x+l,r[0].y=a.y+h}const o=t.length;if(o>=2&&i.hq[e.arrowTypeEnd]){const a=i.hq[e.arrowTypeEnd],s=t[o-1],n=t[o-2],{angle:l}=O(n,s),h=a*Math.cos(l),c=a*Math.sin(l);r[o-1].x=s.x-h,r[o-1].y=s.y-c}return r}(0,c.K2)($,"generateRoundedPath"),(0,c.K2)(O,"calculateDeltaAndAngle"),(0,c.K2)(I,"applyMarkerOffsetsToPoints");var D=(0,c.K2)((t,e,r,i)=>{e.forEach(e=>{it[e](t,r,i)})},"insertMarkers"),q=(0,c.K2)((t,e,r)=>{c.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).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"),R=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),K=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).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"),z=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).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"),P=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).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"),W=(0,c.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
2ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),N=(0,c.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).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"),j=(0,c.K2)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).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),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).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"),H=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),G=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{transitionColor:a}=o;t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),U=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),Y=(0,c.K2)((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).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 o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),X=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),V=(0,c.K2)((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).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 o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Z=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a}=o;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),Q=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a,mainBkg:s}=o,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),J=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a}=o;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),tt=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a,mainBkg:s}=o,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),et=(0,c.K2)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),rt=(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a}=o;t.append("defs").append("marker").attr("id",r+"_"+e+"-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\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin","miter")}
2,"requirement_arrow_neo"),it={extension:q,composition:R,aggregation:K,dependency:z,lollipop:P,point:W,circle:N,cross:j,barb:H,barbNeo:G,only_one:U,zero_or_one:Y,one_or_more:X,zero_or_more:V,only_one_neo:Z,zero_or_one_neo:Q,one_or_more_neo:J,zero_or_more_neo:tt,requirement_arrow:et,requirement_contains:(0,c.K2)((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:rt,requirement_contains_neo:(0,c.K2)((t,e,r)=>{const i=(0,h.zj)(),{themeVariables:o}=i,{strokeWidth:a}=o,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo")},ot=D},17726(t,e,r){"use strict";r.d(e,{C0:()=>C,xA:()=>mt,hH:()=>w,Dl:()=>Ut,IU:()=>ce,Wt:()=>ae,Y2:()=>Vt,a$:()=>Jt,sb:()=>ot,ME:()=>ke,UI:()=>et,Ch:()=>b,mW:()=>x,DB:()=>y,_3:()=>at,EJ:()=>f,m7:()=>ge,iN:()=>ue,zj:()=>ft,D7:()=>xe,Gs:()=>Le,J$:()=>S,ab:()=>ye,E:()=>Bt,Q2:()=>pt,P$:()=>O,ID:()=>qt,TM:()=>St,Wi:()=>Gt,H1:()=>wt,QO:()=>zt,Js:()=>Ae,Xd:()=>k,dj:()=>Xt,cL:()=>Ct,$i:()=>rt,jZ:()=>_t,oB:()=>Te,wZ:()=>dt,EI:()=>pe,SV:()=>de,Nk:()=>gt,XV:()=>be,ke:()=>fe,UU:()=>ct,ot:()=>te,mj:()=>Se,tM:()=>oe,H$:()=>V,B6:()=>ut});var i=r(40797),o=r(74886),a=r(8232);const s=(t,e)=>{const r=o.A.parse(t),i={};for(const o in e)e[o]&&(i[o]=r[o]+e[o]);return(0,a.A)(t,i)};var n=r(25582);const l=(t,e,r=50)=>{const{r:i,g:a,b:s,a:l}=o.A.parse(t),{r:h,g:c,b:d,a:u}=o.A.parse(e),p=r/100,g=2*p-1,f=l-u,y=((g*f===-1?g:(g+f)/(1+g*f))+1)/2,m=1-y,C=i*y+h*m,x=a*y+c*m,b=s*y+d*m,k=l*p+u*(1-p);return(0,n.A)(C,x,b,k)},h=(t,e=100)=>{const r=o.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,l(r,t,e)};var c,d=r(75263),u=r(78041),p=r(3219),g=r(99418),f=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,y=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,m=/\s*%%.*\n/gm,C=class extends Error{static{(0,i.K2)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},x={},b=(0,i.K2)(function(t,e){t=t.replace(f,"").replace(y,"").replace(m,"\n");for(const[r,{detector:i}]of Object.entries(x)){if(i(t,e))return r}throw new C(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),k=(0,i.K2)((...t)=>{for(const{id:e,detector:r,loader:i}of t)T(e,r,i)},"registerLazyLoadedDiagrams"),T=(0,i.K2)((t,e,r)=>{x[t]&&i.Rm.warn(`Detector with key ${t} already exists. Overwriting.`),x[t]={detector:e,loader:r},i.Rm.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),S=(0,i.K2)(t=>x[t].loader,"getDiagramLoader"),B=(0,i.K2)((t,e,{depth:r=2,clobber:i=!1}={})=>{const o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(e=>B(t,e,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach(o=>{"object"!=typeof e[o]||null===e[o]||void 0!==t[o]&&"object"!=typeof t[o]?(i||"object"!=typeof t[o]&&"object"!=typeof e[o])&&(t[o]=e[o]):(void 0===t[o]&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=B(t[o],e[o],{depth:r-1,clobber:i}))}),t)},"assignWithDepth"),w=B,A="#ffffff",L="#f2f2f2",v=(0,i.K2)((t,e)=>s(t,e?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),F=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(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
2d=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(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||(0,u.A)(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||(0,d.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(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||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||h(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,d.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||s(this.primaryColor,{h:64}),this.fillType3=this.fillType3||s(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||s(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||s(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||s(this.primaryColor,{h:128}),this.fillType7=this.fillType7||s(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||s(this.primaryColor,{l:-10}),this.pie5=this.pie5||s(this.secondaryColor,{l:-10}),this.pie6=this.pie6||s(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||s(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||s(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??s(this.primaryColor,{l:-30}),this.venn2=this.venn2??s(this.secondaryColor,{l:-30}),this.venn3=this.venn3??s(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??s(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??s(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??s(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??s(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??s(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(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||s(this.primaryColor,{h:-30}),this.git4=this.git4||s(this.primaryColor,{h:-60}),this.git5=this.git5||s(this.primaryColor,{h:-90}),this.git6=this.git6||s(this.primaryColor,{h:60}),this.git7=this.git7||s(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(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||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);
2e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},M=(0,i.K2)(t=>{const e=new F;return e.calculate(t),e},"getThemeVariables"),_=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,u.A)(this.primaryColor,16),this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,u.A)(h("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,n.A)(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=(0,d.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,d.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,n.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,n.A)(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||(0,u.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=(0,u.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,u.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,u.A)(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=h(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.labelBackgroun
2dColor=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=s(this.primaryColor,{h:64}),this.fillType3=s(this.secondaryColor,{h:64}),this.fillType4=s(this.primaryColor,{h:-64}),this.fillType5=s(this.secondaryColor,{h:-64}),this.fillType6=s(this.primaryColor,{h:128}),this.fillType7=s(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||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||h(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||s(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||s(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??(0,u.A)(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.secondaryColor,20),this.git1=(0,u.A)(this.pie2||this.secondaryColor,20),this.git2=(0,u.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,u.A)(this.pie4||s(this.primaryColor,{h:-30}),20),this.git4=(0,u.A)(this.pie5||s(this.primaryColor,{h:-60}),20),this.git5=(0,u.A)(this.pie6||s(this.primaryColor,{h:-90}),10),this.git6=(0,u.A)(this.pie7||s(this.primaryColor,{h:60}),10),this.git7=(0,u.A)(this.pie8||s(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||h(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||h(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroun
2dColorOdd||(0,u.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,u.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},E=(0,i.K2)(t=>{const e=new _;return e.calculate(t),e},"getThemeVariables"),$=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=s(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.primaryColor,this.darkMode),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=v(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=(0,n.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||s(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||s(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||s(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||h(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||h(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
2d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,u.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(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=s(this.primaryColor,{h:64}),this.fillType3=s(this.secondaryColor,{h:64}),this.fillType4=s(this.primaryColor,{h:-64}),this.fillType5=s(this.secondaryColor,{h:-64}),this.fillType6=s(this.primaryColor,{h:128}),this.fillType7=s(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||s(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||s(this.primaryColor,{l:-10}),this.pie5=this.pie5||s(this.secondaryColor,{l:-30}),this.pie6=this.pie6||s(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||s(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||s(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??s(this.primaryColor,{l:-30}),this.venn2=this.venn2??s(this.secondaryColor,{l:-30}),this.venn3=this.venn3??s(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??s(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??s(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??s(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??s(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??s(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||s(this.primaryColor,{h:-30}),this.git4=this.git4||s(this.primaryColor,{h:-60}),this.git5=this.git5||s(this.primaryColor,{h:-90}),this.git6=this.git6||s(this.primaryColor,{h:60}),this.git7=this.git7||s(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,d.A)(h(this.git0),25),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||h(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||h(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.commitLabelBackgroun
2d=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},O=(0,i.K2)(t=>{const e=new $;return e.calculate(t),e},"getThemeVariables"),I=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,u.A)("#cde498",10),this.primaryBorderColor=v(this.primaryColor,this.darkMode),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.primaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=(0,d.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||s(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||s(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||s(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(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
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.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=s(this.primaryColor,{h:64}),this.fillType3=s(this.secondaryColor,{h:64}),this.fillType4=s(this.primaryColor,{h:-64}),this.fillType5=s(this.secondaryColor,{h:-64}),this.fillType6=s(this.primaryColor,{h:128}),this.fillType7=s(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||s(this.primaryColor,{l:-30}),this.pie5=this.pie5||s(this.secondaryColor,{l:-30}),this.pie6=this.pie6||s(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||s(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||s(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??s(this.primaryColor,{l:-30}),this.venn2=this.venn2??s(this.secondaryColor,{l:-30}),this.venn3=this.venn3??s(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??s(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??s(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??s(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??s(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??s(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillC
2olor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||s(this.primaryColor,{h:-30}),this.git4=this.git4||s(this.primaryColor,{h:-60}),this.git5=this.git5||s(this.primaryColor,{h:-90}),this.git6=this.git6||s(this.primaryColor,{h:60}),this.git7=this.git7||s(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||h(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||h(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroun
2dColorOdd||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},D=(0,i.K2)(t=>{const e=new I;return e.calculate(t),e},"getThemeVariables"),q=class{static{(0,i.K2)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,u.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.primaryColor,this.darkMode),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(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||(0,u.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=(0,u.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,u.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||h(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||s(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||s(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,u.A)(this.contrast,30),this.sectionBkgColor2=(0,u.A)(this.contrast,30),this.taskBorderColor=(0,d.A)(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=(0,u.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,d.A)(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
2dColor=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=s(this.primaryColor,{h:64}),this.fillType3=s(this.secondaryColor,{h:64}),this.fillType4=s(this.primaryColor,{h:-64}),this.fillType5=s(this.secondaryColor,{h:-64}),this.fillType6=s(this.primaryColor,{h:128}),this.fillType7=s(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12}
2,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=(0,d.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||s(this.primaryColor,{h:-30}),this.git4=this.pie5||s(this.primaryColor,{h:-60}),this.git5=this.pie6||s(this.primaryColor,{h:-90}),this.git6=this.pie7||s(this.primaryColor,{h:60}),this.git7=this.pie8||s(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},R=(0,i.K2)(t=>{const e=new q;return e.calculate(t),e},"getThemeVariables"),K=class{static{(0,i.K2)(this,"Theme")}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=v(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(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
2d=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor);const t="#ECECFE",e="#E9E9F1",r=s(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,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||(0,u.A)(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||e,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||s(t,{h:30}),this.cScale4=this.cScale4||s(t,{h:60}),this.cScale5=this.cScale5||s(t,{h:90}),this.cScale6=this.cScale6||s(t,{h:120}),this.cScale7=this.cScale7||s(t,{h:150}),this.cScale8=this.cScale8||s(t,{h:210,l:150}),this.cScale9=this.cScale9||s(t,{h:270}),this.cScale10=this.cScale10||s(t,{h:300}),this.cScale11=this.cScale11||s(t,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=(0,d.A)(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=(0,d.A)(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||h(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||(0,u.A)(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||(0,d.A)(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(5+3*o)}),this["surfacePeer"+o]=this["surfacePeer"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(8+3*o)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||s(t,{h:64}),this.fillType3=this.fillType3||s(e,{h:64}),this.fillType4=this.fillType4||s(t,{h:-64}),this.fillType5=this.fillType5||s(e,{h:-64}),this.fillType6=this.fillType6||s(t,{h:128}),this.fillType7=this.fillType7||s(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||s(t,{l:-10}),this.pie5=this.pie5||s(e,{l:-10}),this.pie6=this.pie6||s(r,{l:-10}),this.pie7=this.pie7||s(t,{h:60,l:-10}),this.pie8=this.pie8||s(t,{h:-60,l:-10}),this.pie9=this.pie9||s(t,{h:120,l:0}),this.pie10=this.pie10||s(t,{h:60,l:-20}),this.pie11=this.pie11||s(t,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||s(t,{h:-30}),this.git4=this.git4||s(t,{h:-60}),this.git5=this.git5||s(t,{h:-90}),this.git6=this.git6||s(t,{h:60}),this.git7=this.git7||s(t,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(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||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},z=(0,i.K2)(t=>{const e=new K;return e.calculate(t),e},"getThemeVariables"),P=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,u.A)(this.primaryColor,16),this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,u.A)(h("#323D47"),10),this.border1="#ccc",this.border2=(0,n.A)(255,255,255,.25),this.arrowheadColor=h(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackgroun
2d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(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||(0,u.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||h(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,d.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||s(this.primaryColor,{h:64}),this.fillType3=this.fillType3||s(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||s(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||s(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||s(this.primaryColor,{h:128}),this.fillType7=this.fillType7||s(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||s(this.primaryColor,{l:-10}),this.pie5=this.pie5||s(this.secondaryColor,{l:-10}),this.pie6=this.pie6||s(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||s(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(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=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(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||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},W=(0,i.K2)(t=>{const e=new P;return e.calculate(t),e},"getThemeVariables"),N=class{static{(0,i.K2)(this,"Theme")}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=v("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(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
2d=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor);const t="#ECECFE",e="#E9E9F1",r=s(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,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||(0,u.A)(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=this.mainBkg;if(this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=(0,d.A)(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=(0,d.A)(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||h(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||(0,u.A)(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||(0,d.A)(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(5+3*o)}),this["surfacePeer"+o]=this["surfacePeer"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(8+3*o)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||s(t,{h:64}),this.fillType3=this.fillType3||s(e,{h:64}),this.fillType4=this.fillType4||s(t,{h:-64}),this.fillType5=this.fillType5||s(e,{h:-64}),this.fillType6=this.fillType6||s(t,{h:128}),this.fillType7=this.fillType7||s(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||s(t,{l:-10}),this.pie5=this.pie5||s(e,{l:-10}),this.pie6=this.pie6||s(r,{l:-10}),this.pie7=this.pie7||s(t,{h:60,l:-10}),this.pie8=this.pie8||s(t,{h:-60,l:-10}),this.pie9=this.pie9||s(t,{h:120,l:0}),this.pie10=this.pie10||s(t,{h:60,l:-20}),this.pie11=this.pie11||s(t,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||s(t,{h:-30}),this.git4=this.git4||s(t,{h:-60}),this.git5=this.git5||s(t,{h:-90}),this.git6=this.git6||s(t,{h:60}),this.git7=this.git7||s(t,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(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||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},j=(0,i.K2)(t=>{const e=new N;return e.calculate(t),e},"getThemeVariables"),H=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,u.A)(this.primaryColor,16),this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,u.A)(h("#323D47"),10),this.border1="#ccc",this.border2=(0,n.A)(255,255,255,.25),this.arrowheadColor=h(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
2d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(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||(0,u.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
2d="#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||s(this.primaryColor,{h:30}),this.cScale4=this.cScale4||s(this.primaryColor,{h:60}),this.cScale5=this.cScale5||s(this.primaryColor,{h:90}),this.cScale6=this.cScale6||s(this.primaryColor,{h:120}),this.cScale7=this.cScale7||s(this.primaryColor,{h:150}),this.cScale8=this.cScale8||s(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||s(this.primaryColor,{h:270}),this.cScale10=this.cScale10||s(this.primaryColor,{h:300}),this.cScale11=this.cScale11||s(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,d.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||h(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,d.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||s(this.primaryColor,{h:64}),this.fillType3=this.fillType3||s(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||s(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||s(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||s(this.primaryColor,{h:128}),this.fillType7=this.fillType7||s(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||s(this.primaryColor,{l:-10}),this.pie5=this.pie5||s(this.secondaryColor,{l:-10}),this.pie6=this.pie6||s(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||s(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(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||s(this.primaryColor,{h:-30}),this.git4=this.git4||s(this.primaryColor,{h:-60}),this.git5=this.git5||s(this.primaryColor,{h:-90}),this.git6=this.git6||s(this.primaryColor,{h:60}),this.git7=this.git7||s(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);
2e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},G=(0,i.K2)(t=>{const e=new H;return e.calculate(t),e},"getThemeVariables"),U=class{static{(0,i.K2)(this,"Theme")}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=v(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(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?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor);const t="#ECECFE",e="#E9E9F1",r=s(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,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||(0,u.A)(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||h(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||(0,u.A)(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||(0,d.A)(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(5+3*o)}),this["surfacePeer"+o]=this["surfacePeer"+o]||s(this.mainBkg,{h:180,s:-15,l:i*(8+3*o)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||s(t,{h:64}),this.fillType3=this.fillType3||s(e,{h:64}),this.fillType4=this.fillType4||s(t,{h:-64}),this.fillType5=this.fillType5||s(e,{h:-64}),this.fillType6=this.fillType6||s(t,{h:128}),this.fillType7=this.fillType7||s(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||s(t,{l:-10}),this.pie5=this.pie5||s(e,{l:-10}),this.pie6=this.pie6||s(r,{l:-10}),this.pie7=this.pie7||s(t,{h:60,l:-10}),this.pie8=this.pie8||s(t,{h:-60,l:-10}),this.pie9=this.pie9||s(t,{h:120,l:0}),this.pie10=this.pie10||s(t,{h:60,l:-20}),this.pie11=this.pie11||s(t,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||s(t,{h:-30}),this.git4=this.git4||s(t,{h:-60}),this.git5=this.git5||s(t,{h:-90}),this.git6=this.git6||s(t,{h:60}),this.git7=this.git7||s(t,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(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||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},Y=(0,i.K2)(t=>{const e=new U;return e.calculate(t),e},"getThemeVariables"),X=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,u.A)(this.primaryColor,16),this.tertiaryColor=s(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=v(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,u.A)(h("#323D47"),10),this.border1="#ccc",this.border2=(0,n.A)(255,255,255,.25),this.arrowheadColor=h(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
2d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||v(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||v(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||v(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||v(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,d.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,u.A)(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
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||h(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,d.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=(0,d.A)(this["cScale"+e],75);const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||s(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||s(this.primaryColor,{h:64}),this.fillType3=this.fillType3||s(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||s(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||s(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||s(this.primaryColor,{h:128}),this.fillType7=this.fillType7||s(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||s(this.primaryColor,{l:-10}),this.pie5=this.pie5||s(this.secondaryColor,{l:-10}),this.pie6=this.pie6||s(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||s(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||s(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||s(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||s(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||s(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||s(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||s(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||s(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||s(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||s(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||s(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||s(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,u.A)(this.quadrant1Fill):(0,d.A)(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
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.A)(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||s(this.primaryColor,{h:-30}),this.git4=this.git4||s(this.primaryColor,{h:-60}),this.git5=this.git5||s(this.primaryColor,{h:-90}),this.git6=this.git6||s(this.primaryColor,{h:60}),this.git7=this.git7||s(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)):(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)),this.gitInv0=this.gitInv0||h(this.git0),this.gitInv1=this.gitInv1||h(this.git1),this.gitInv2=this.gitInv2||h(this.git2),this.gitInv3=this.gitInv3||h(this.git3),this.gitInv4=this.gitInv4||h(this.git4),this.gitInv5=this.gitInv5||h(this.git5),this.gitInv6=this.gitInv6||h(this.git6),this.gitInv7=this.gitInv7||h(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||A,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);
2e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},V={base:{getThemeVariables:M},dark:{getThemeVariables:E},default:{getThemeVariables:O},forest:{getThemeVariables:D},neutral:{getThemeVariables:R},neo:{getThemeVariables:z},"neo-dark":{getThemeVariables:W},redux:{getThemeVariables:j},"redux-dark":{getThemeVariables:G},"redux-color":{getThemeVariables:Y},"redux-dark-color":{getThemeVariables:(0,i.K2)(t=>{const e=new X;return e.calculate(t),e},"getThemeVariables")}},Z={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
217},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Q={...Z,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:V.default.getThemeVariables(),sequence:{...Z.sequence,messageFont:(0,i.K2)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:(0,i.K2)(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:(0,i.K2)(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Z.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Z.c4,useWidth:void 0,personFont:(0,i.K2)(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Z.flowchart,inheritDir:!1},external_personFont:(0,i.K2)(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:(0,i.K2)(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:(0,i.K2)(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:(0,i.K2)(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:(0,i.K2)(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:(0,i.K2)(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:(0,i.K2)(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:(0,i.K2)(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:(0,i.K2)(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:(0,i.K2)(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:(0,i.K2)(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:(0,i.K2)(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:(0,i.K2)(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:(0,i.K2)(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:(0,i.K2)(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:(0,i.K2)(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:(0,i.K2)(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:(0,i.K2)(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:(0,i.K2)(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:(0,i.K2)(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:(0,i.K2)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Z.pie,useWidth:984}
2,xyChart:{...Z.xyChart,useWidth:void 0},requirement:{...Z.requirement,useWidth:void 0},packet:{...Z.packet},treeView:{...Z.treeView,useWidth:void 0},radar:{...Z.radar},ishikawa:{...Z.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Z.venn}},J=(0,i.K2)((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...J(t[i],"")]:[...r,e+i],[]),"keyify"),tt=new Set(J(Q,"")),et=Q,rt=(0,i.K2)(t=>{if(i.Rm.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach(t=>rt(t));else{for(const e of Object.keys(t)){if(i.Rm.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!tt.has(e)||null==t[e]){i.Rm.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){i.Rm.debug("sanitizing object",e),rt(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const o of r)e.includes(o)&&(i.Rm.debug("sanitizing css option",e),t[e]=it(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}i.Rm.debug("After sanitization",t)}},"sanitizeDirective"),it=(0,i.K2)(t=>{let e=0,r=0;for(const i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),ot=Object.freeze(et),at=(0,i.K2)(t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),"evaluate"),st=w({},ot),nt=[],lt=w({},ot),ht=(0,i.K2)((t,e)=>{let r=w({},t),i={};for(const o of e)yt(o),i=w(i,o);if(r=w(r,i),i.theme&&i.theme in V){const t=w({},c),e=w(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in V&&(r.themeVariables=V[r.theme].getThemeVariables(e))}return Tt(lt=r),lt},"updateCurrentConfig"),ct=(0,i.K2)(t=>(st=w({},ot),st=w(st,t),t.theme&&V[t.theme]&&(st.themeVariables=V[t.theme].getThemeVariables(t.themeVariables)),ht(st,nt),st),"setSiteConfig"),dt=(0,i.K2)(t=>{c=w({},t)},"saveConfigFromInitialize"),ut=(0,i.K2)(t=>(st=w(st,t),ht(st,nt),st),"updateSiteConfig"),pt=(0,i.K2)(()=>w({},st),"getSiteConfig"),gt=(0,i.K2)(t=>(Tt(t),w(lt,t),ft()),"setConfig"),ft=(0,i.K2)(()=>w({},lt),"getConfig"),yt=(0,i.K2)(t=>{t&&(["secure",...st.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(i.Rm.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&yt(t[e])}))},"sanitize"),mt=(0,i.K2)(t=>{rt(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),nt.push(t),ht(st,nt)},"addDirective"),Ct=(0,i.K2)((t=st)=>{ht(t,nt=[])},"reset"),xt={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."},bt={},kt=(0,i.K2)(t=>{bt[t]||(i.Rm.warn(xt[t]),bt[t]=!0)},"issueWarning"),Tt=(0,i.K2)(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&kt("LAZY_LOAD_DEPRECATED")},"checkConfig"),St=(0,i.K2)(()=>{let t={};c&&(t=w(t,c));for(const e of nt)t=w(t,e);return t},"getUserDefinedConfig"),Bt=(0,i.K2)(t=>(null!=t.flowchart?.htmlLabels&&kt("FLOWCHART_HTML_LABELS_DEPRECATED"),at(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),wt=/<br\s*\/?>/gi,At=(0,i.K2)(t=>{if(!t)return[""];
2return Dt(t).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Lt=(()=>{let t=!1;return()=>{t||(vt(),t=!0)}})();function vt(){const t="data-temp-href-target";g.A.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),g.A.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}(0,i.K2)(vt,"setupDompurifyHooks");var Ft=(0,i.K2)(t=>{Lt();return g.A.sanitize(t)},"removeScript"),Mt=(0,i.K2)((t,e)=>{if(Bt(e)){const r=e.securityLevel;"antiscript"===r||"strict"===r||"sandbox"===r?t=Ft(t):"loose"!==r&&(t=(t=(t=Dt(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),t=It(t))}return t},"sanitizeMore"),_t=(0,i.K2)((t,e)=>t?t=e.dompurifyConfig?g.A.sanitize(Mt(t,e),e.dompurifyConfig).toString():g.A.sanitize(Mt(t,e),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),Et=(0,i.K2)((t,e)=>"string"==typeof t?_t(t,e):t.flat().map(t=>_t(t,e)),"sanitizeTextOrArray"),$t=(0,i.K2)(t=>wt.test(t),"hasBreaks"),Ot=(0,i.K2)(t=>t.split(wt),"splitBreaks"),It=(0,i.K2)(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Dt=(0,i.K2)(t=>t.replace(wt,"#br#"),"breakToPlaceholder"),qt=(0,i.K2)(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Rt=(0,i.K2)(function(...t){const e=t.filter(t=>!isNaN(t));return Math.max(...e)},"getMax"),Kt=(0,i.K2)(function(...t){const e=t.filter(t=>!isNaN(t));return Math.min(...e)},"getMin"),zt=(0,i.K2)(function(t){const e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let t=e[i];if(","===t&&i>0&&i+1<e.length){const o=e[i-1],a=e[i+1];Wt(o,a)&&(t=o+","+a,i++,r.pop())}r.push(Nt(t))}return r.join("")},"parseGenericTypes"),Pt=(0,i.K2)((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),Wt=(0,i.K2)((t,e)=>{const r=Pt(t,"~"),i=Pt(e,"~");return 1===r&&1===i},"shouldCombineSets"),Nt=(0,i.K2)(t=>{const e=Pt(t,"~");let r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let o=i.indexOf("~"),a=i.lastIndexOf("~");for(;-1!==o&&-1!==a&&o!==a;)i[o]="<",i[a]=">",o=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),jt=(0,i.K2)(()=>void 0!==window.MathMLElement,"isMathMLSupported"),Ht=/\$\$(.*)\$\$/g,Gt=(0,i.K2)(t=>(t.match(Ht)?.length??0)>0,"hasKatex"),Ut=(0,i.K2)(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Xt(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);const o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),Yt=(0,i.K2)(async(t,e)=>{if(!Gt(t))return t;if(!(jt()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Ht,"MathML is unsupported in this environment.");{const{default:i}=await r.e(2130).then(r.bind(r,22130)),o=e.forceLegacyMathML||!jt()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(wt).map(t=>Gt(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(Ht,(t,e)=>i.renderToString(e,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Xt=(0,i.K2)(async(t,e)=>_t(await Yt(t,e),e),"renderKatexSanitized"),Vt={getRows:At,sanitizeText:_t,sanitizeTextOrArray:Et,hasBreaks:$t,splitBreaks:Ot,lineBreakRegex:wt,removeScript:Ft,getUrl:qt,evaluate:at,getMax:Rt,getMin:Kt},Zt=(0,i.K2)(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Qt=(0,i.K2)(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),Jt=(0,i.K2)(function(t,e,r,i){const o=Qt(e,r,i);Zt(t,o)},"configureSvgSize"),te=(0,i.K2)(function(t,e,r,o){const a=e.node().getBBox(),s=a.width,n=a.height;i.Rm.info(`SVG bounds: ${s}x${n}`,a);let l=0,h=0;i.Rm.info(`Graph bounds: ${l}x${h}`,t),l=s+2*r,h=n+2*r,i.Rm.info(`Calculated bounds: ${l}x${h}`),Jt(e,h,l,o);const c=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",c)},"setupGraphViewbox"),ee={},re=(0,i.K2)((t,e,r,o)=>{let a="";return t in ee&&ee[t]?a=ee[t]({...r,svgId:o}):i.Rm.warn(`No theme found for ${t}`),` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: ${r.strokeWidth??1}px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${a}\n .node .neo-node {\n stroke: ${r.nodeBorder};\n }\n\n [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {\n stroke: ${r.useGradient?"url("+o+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none"};\n }\n\n\n [data-look="neo"].node path {\n stroke: ${r.useGradient?"url("+o+"-gradient)":r.nodeBorder};\n stroke-width: ${r.strokeWidth??1}px;\n }\n\n [data-look="neo"].node .outer-path {\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node .neo-line path {\n stroke: ${r.nodeBorder};\n filter: none;\n }\n\n [data-look="neo"].node circle{\n stroke: ${r.useGradient?"url("+o+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node circle .state-start{\n fill: #000000;\n }\n\n [data-look="neo"].icon-shape .icon {\n fill: ${r.useGradient?"url("+o+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].icon-shape .icon-neo path {\n stroke: ${r.useGradient?"url("+o+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none"};\n }\n\n ${e}\n`},"getStyles"),ie=(0,i.K2)((t,e)=>{void 0!==e&&(ee[t]=e)},"addStylesForDiagram"),oe=re,ae={};(0,i.VA)(ae,{clear:()=>ce,getAccDescription:()=>ge,getAccTitle:()=>ue,getDiagramTitle:()=>ye,setAccDescription:()=>pe,setAccTitle:()=>de,setDiagramTitle:()=>fe});var se="",ne="",le="",he=(0,i.K2)(t=>_t(t,ft()),"sanitizeText"),ce=(0,i.K2)(()=>{se="",le="",ne=""},"clear"),de=(0,i.K2)(t=>{se=he(t).replace(/^\s+/g,"")},"setAccTitle"),ue=(0,i.K2)(()=>se,"getAccTitle"),pe=(0,i.K2)(t=>{le=he(t).replace(/\n\s+/g,"\n")},"setAccDescription"),ge=(0,i.K2)(()=>le,"getAccDescription"),fe=(0,i.K2)(t=>{ne=he(t)},"setDiagramTitle"),ye=(0,i.K2)(()=>ne,"getDiagramTitle"),me=i.Rm,Ce=i.He,xe=ft,be=gt,ke=ot,Te=(0,i.K2)(t=>_t(t,xe()),"sanitizeText"),Se=te,Be=(0,i.K2)(()=>ae,"getCommonDb"),we={},Ae=(0,i.K2)((t,e,r)=>
2{we[t]&&me.warn(`Diagram with id ${t} already registered. Overwriting.`),we[t]=e,r&&T(t,r),ie(t,e.styles),e.injectUtils?.(me,Ce,xe,Te,Se,Be(),()=>{})},"registerDiagram"),Le=(0,i.K2)(t=>{if(t in we)return we[t];throw new ve(t)},"getDiagram"),ve=class extends Error{static{(0,i.K2)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},35183(t,e,r){"use strict";r.d(e,{W6:()=>ae,GZ:()=>ce,WY:()=>jt,pC:()=>Pt,Gc:()=>Rt});var i=r(28718),o=r(17726),a=r(40797);const s=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),n=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),h=Object.freeze({...n,...l}),c=Object.freeze({...h,body:"",hidden:!1});function d(t,e){const r=function(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}(t,e);for(const i in c)i in l?i in t&&!(i in r)&&(r[i]=l[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function u(t,e,r){const i=t.icons,o=t.aliases||Object.create(null);let a={};function s(t){a=d(i[t]||o[t],a)}return s(e),r.forEach(s),d(t,a)}function p(t,e){if(t.icons[e])return u(t,e,[]);const r=function(t,e){const r=t.icons,i=t.aliases||Object.create(null),o=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach(function t(e){if(r[e])return o[e]=[];if(!(e in o)){o[e]=null;const r=i[e]&&i[e].parent,a=r&&t(r);a&&(o[e]=[r].concat(a))}return o[e]}),o}(t,[e])[e];return r?u(t,e,r):null}const g=Object.freeze({width:null,height:null}),f=Object.freeze({...g,...l}),y=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function C(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;const i=t.split(y);if(null===i||!i.length)return t;const o=[];let a=i.shift(),s=m.test(a);for(;;){if(s){const t=parseFloat(a);isNaN(t)?o.push(a):o.push(Math.ceil(t*e*r)/r)}else o.push(a);if(a=i.shift(),void 0===a)return o.join("");s=!s}}const x=/\sid="(\S+)"/g,b=new Map;function k(t){const e=[];let r;for(;r=x.exec(t);)e.push(r[1]);if(!e.length)return t;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return e.forEach(e=>{const r=function(t){t=t.replace(/[0-9]+$/,"")||"a";const e=b.get(t)||0;return b.set(t,e+1),e?`${t}${e}`:t}(e),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),t=t.replace(new RegExp(i,"g"),"")}var T=r(70451);function S(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var B={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function w(t){B=t}var A={exec:()=>null};function L(t,e=""){let r="string"==typeof t?t:t.source,i={replace:(t,e)=>{let o="string"==typeof e?e:e.source;return o=o.replace(F.caret,"$1"),r=r.replace(t,o),i},getRegex:()=>new RegExp(r,e)};return i}var v=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),F={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},M=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_=/(?:[*+-]|\d{1,9}[.)])/,E=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$=L(E).replace(/bull/g,_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),O=L(E).replace(/bull/g,_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),I=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,D=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,q=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",D).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R=L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_).getRegex(),K="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",z=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,P=L("^ {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|/?>
2)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",z).replace("tag",K).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W=L(I).replace("hr",M).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",K).getRegex(),N={blockquote:L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",W).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:q,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:M,html:P,lheading:$,list:R,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:W,table:A,text:/^[^\n]+/},j=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",M).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\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",K).getRegex(),H={...N,lheading:O,table:j,paragraph:L(I).replace("hr",M).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",j).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",K).getRegex()},G={...N,html:L("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z).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:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(I).replace("hr",M).replace("heading"," *#{1,6} *[^\n]").replace("lheading",$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U=/^( {2,}|\\)\n(?!\s*$)/,Y=/[\p{P}\p{S}]/u,X=/[\s\p{P}\p{S}]/u,V=/[^\s\p{P}\p{S}]/u,Z=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,X).getRegex(),Q=/(?!~)[\p{P}\p{S}]/u,J=L(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",v?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),tt=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,et=L(tt,"u").replace(/punct/g,Y).getRegex(),rt=L(tt,"u").replace(/punct/g,Q).getRegex(),it="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ot=L(it,"gu").replace(/notPunctSpace/g,V).replace(/punctSpace/g,X).replace(/punct/g,Y).getRegex(),at=L(it,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Q).getRegex(),st=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,V).replace(/punctSpace/g,X).replace(/punct/g,Y).getRegex(),nt=L(/\\(punct)/,"gu").replace(/punct/g,Y).getRegex(),lt=L(/^<(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(),ht=L(z).replace("(?:--\x3e|$)","--\x3e").getRegex(),ct=L("^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",ht).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ut=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",dt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pt=L(/^!?\[(label)\]\[(ref)\]/).replace("label",dt).replace("ref",D).getRegex(),gt=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",D).getRegex(),ft=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yt={_backpedal:A,anyPunctuation:nt,autolink:lt,blockSkip:J,br:U,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:A,emStrongLDelim:et,emStrongRDelimAst:ot,emStrongRDelimUnd:st,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ut,nolink:gt,punctuation:Z,reflink:pt,reflinkSearch:L("reflink|nolink(?!\\()","g").replace("reflink",pt).replace("nolink",gt).getRegex(),tag:ct,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:A},mt={...yt,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",dt).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dt).getRegex()},Ct={...yt,emStrongRDelimAst:at,emStrongLDelim:rt,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ft).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:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ft).getRegex()},xt={...Ct,br:L(U).replace("{2,}","*").getRegex(),text:L(Ct.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bt={normal:N,gfm:H,pedantic:G},kt={normal:yt,gfm:Ct,breaks:xt,pedantic:mt},Tt={"&":"&","<":"<",">":">",'"':""","'":"'"},St=t=>Tt[t];function Bt(t,e){if(e){if(F.escapeTest.test(t))return t.replace(F.escapeReplace,St)}else if(F.escapeTestNoEncode.test(t))return t.replace(F.escapeReplaceNoEncode,St);return t}function wt(t){try{t=encodeURI(t).replace(F.percentDecode,"%")}catch{return null}return t}function At(t,e){let r=t.replace(F.findPipe,(t,e,r)=>{let i=!1,o=e;for(;--o>=0&&"\\"===r[o];)i=!i;return i?"|":" |"}).split(F.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(F.slashPipe,"|");return r}function Lt(t,e,r){let i=t.length;if(0===i)return"";let o=0;for(;o<i;){let a=t.charAt(i-o-1);if(a!==e||r){if(a===e||!r)break;o++}else o++}return t.slice(0,i-o)}function vt(t,e,r,i,o){let a=e.href,s=e.title||null,n=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:s,text:n,tokens:i.inl
2ineTokens(n)};return i.state.inLink=!1,l}var Ft=class{options;rules;lexer;constructor(t){this.options=t||B}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Lt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(null===i)return e;let o=i[1];return e.split("\n").map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[i]=e;return i.length>=o.length?t.slice(o.length):t}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=Lt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Lt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=Lt(e[0],"\n").split("\n"),r="",i="",o=[];for(;t.length>0;){let e,a=!1,s=[];for(e=0;e<t.length;e++)if(this.rules.other.blockquoteStart.test(t[e]))s.push(t[e]),a=!0;else{if(a)break;s.push(t[e])}t=t.slice(e);let n=s.join("\n"),l=n.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${n}`:n,i=i?`${i}\n${l}`:l;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=h,0===t.length)break;let c=o.at(-1);if("code"===c?.type)break;if("blockquote"===c?.type){let e=c,a=e.raw+"\n"+t.join("\n"),s=this.blockquote(a);o[o.length-1]=s,r=r.substring(0,r.length-e.raw.length)+s.raw,i=i.substring(0,i.length-e.text.length)+s.text;break}if("list"===c?.type){let e=c,a=e.raw+"\n"+t.join("\n"),s=this.list(a);o[o.length-1]=s,r=r.substring(0,r.length-c.raw.length)+s.raw,i=i.substring(0,i.length-e.raw.length)+s.raw,t=a.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let r=!1,i="",n="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),h=t.split("\n",1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,n=l.trimStart()):c?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,n=l.slice(d),d+=e[1].length),c&&this.rules.other.blankLine.test(h)&&(i+=h+"\n",t=t.substring(h.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;t;){let u,p=t.split("\n",1)[0];if(h=p,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),u=h):u=h.replace(this.rules.other.tabCharGlobal," "),o.test(h)||a.test(h)||s.test(h)||e.test(h)||r.test(h))break;if(u.search(this.rules.other.nonSpaceChar)>=d||!h.trim())n+="\n"+u.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(l)||a.test(l)||r.test(l))break;n+="\n"+h}!c&&!h.trim()&&(c=!0),i+=p+"\n",t=t.substring(p.length+1),l=u.slice(d)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(s=!0));let u,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(n),p&&(u="[ ] "!==p[0],n=n.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:i,task:!!p,checked:u,loose:!1,text:n,tokens:[]}),o.raw+=i}let n=o.items.at(-1);if(!n)return;n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd(),o.raw=o.raw.trimEnd();for(let t=0;t<o.items.length;t++)if(this.lexer.state.top=!1,o.items[t].tokens=this.lexer.blockTokens(o.items[t].text,[]),!o.loose){let e=o.items[t].tokens.filter(t=>
vendor: 6,744 bytes, line 2
2"space"===t.type),r=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));o.loose=r}if(o.loose)for(let t=0;t<o.items.length;t++)o.items[t].loose=!0;return o}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=At(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let t of i)this.rules.other.tableAlignRight.test(t)?a.align.push("right"):this.rules.other.tableAlignCenter.test(t)?a.align.push("center"):this.rules.other.tableAlignLeft.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(let t of o)a.rows.push(At(t,a.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=Lt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let r=0;for(let i=0;i<t.length;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&(r--,r<0))return i;return r>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),vt(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return vt(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!r||this.rules.inline.punctuation.exec(r))){let r,o,a=[...i[0]].length-1,s=a,n=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+a);null!=(i=l.exec(e));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&a%3&&!((a+o)%3)){n+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+n);let e=[...i[0]][0].length,l=t.slice(0,a+i.index+e+o);if(Math.min(a,o)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let h=l.slice(2,-2);return{type:"strong",raw:l,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return"@"===e[2]?(t=e[1],r="mailto:"+t):(t=e[1],r=t),{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])t=e[0],r="mailto:"+t;else{let i;do{i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(i!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Mt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||B,this.options.tokenizer=this.options.tokenizer||new Ft,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 e={other:F,block:bt.normal,inline:kt.normal};this.options.pedantic?(e.block=bt.pedantic,e.inline=kt.pedantic):this.options.gfm&&(e.block=bt.gfm,this.options.breaks?e.inline=kt.breaks:e.inline=kt.gfm),this.tokenizer.rules=e}static get rules(){return{block:bt,inline:kt}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(F.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let e=0;
2e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(F.tabCharGlobal," ").replace(F.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let r=e.at(-1);1===i.raw.length&&void 0!==r?r.raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let r=e.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let r=e.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}let o=t;if(this.options.extensions?.startBlock){let e,r=1/0,i=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},i),"number"==typeof e&&e>=0&&(r=Math.min(r,e))}),r<1/0&&r>=0&&(o=t.substring(0,r+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let a=e.at(-1);r&&"paragraph"===a?.type?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+i.raw,a.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(i),r=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let r=e.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i=t,o=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(i));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(i));)r=o[2]?o[2].length:0,i=i.slice(0,o.index+r)+"["+"a".repeat(o[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,s="";for(;t;){let r;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(i=>!!(r=i.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let i=e.at(-1);"text"===r.type&&"text"===i?.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,i,s)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let o=t;if(this.options.extensions?.startInline){let e,r=1/0,i=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},i),"number"==typeof e&&e>=0&&(r=Math.min(r,e))}),r<1/0&&r>=0&&(o=t.substring(0,r+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!0;let i=e.at(-1);"text"===i?.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},_t=class{options;parser;constructor(t){this.options=t||B}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(F.notSpaceStart)?.[0],o=t.replace(F.endingNewline,"")+"\n";return i?'<pre><code class="language-'+Bt(i)+'">'+(r?o:Bt(o,!0))+"</code></pre>\n":"<pre><code>"+(r?o:Bt(o,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,r=t.start,i="";for(let a=0;a<t.items.length;a++){let e=t.items[a];i+=this.listitem(e)}let o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+i+"</"+o+">\n"}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+Bt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",r="";for(let o=0;o<t.header.length;o++)r+=this.tablecell(t.header[o]);e+=this.tablerow({text:r});let i="";for(let o=0;o<t.rows.length;o++){let e=t.rows[o];r="";for(let t=0;t<e.length;t++)r+=this.tablecell(e[t]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+i+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}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>${Bt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),o=wt(t);if(null===o)return i;let a='<a href="'+(t=o)+'"';return e&&(a+=' title="'+Bt(e)+'"'),a+=">"+i+"</a>",a}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=wt(t);if(null===o)return Bt(r);let a=`<img src="${t=o}" alt="${r}"`;return e&&(a+=` title="${Bt(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Bt(t.text)}},Et=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""}},$t=class t{options;renderer;textRenderer;constructor(t){this.options=t||B,this.options.renderer=this.options.renderer||new _t,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Et}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let i=0;i<t.length;i++){let o=t[i];
vendor: 8,105 bytes, line 2
2if(this.options.extensions?.renderers?.[o.type]){let t=o,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){r+=e||"";continue}}let a=o;switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"def":r+=this.renderer.def(a);continue;case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let o=a,s=this.renderer.text(o);for(;i+1<t.length&&"text"===t[i+1].type;)o=t[++i],s+="\n"+this.renderer.text(o);r+=e?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=t||"";continue}}let a=o;switch(a.type){case"escape":case"text":r+=e.text(a);break;case"html":r+=e.html(a);break;case"link":r+=e.link(a);break;case"image":r+=e.image(a);break;case"strong":r+=e.strong(a);break;case"em":r+=e.em(a);break;case"codespan":r+=e.codespan(a);break;case"br":r+=e.br(a);break;case"del":r+=e.del(a);break;default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}},Ot=class{options;block;constructor(t){this.options=t||B}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Mt.lex:Mt.lexInline}provideParser(){return this.block?$t.parse:$t.parseInline}},It=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=$t;Renderer=_t;TextRenderer=Et;Lexer=Mt;Tokenizer=Ft;Hooks=Ot;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":{let t=i;for(let i of t.header)r=r.concat(this.walkTokens(i.tokens,e));for(let i of t.rows)for(let t of i)r=r.concat(this.walkTokens(t.tokens,e));break}case"list":{let t=i;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let o=t[i].flat(1/0);r=r.concat(this.walkTokens(o,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];e.renderers[t.name]=r?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=r.apply(this,e)),i}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new _t(this.defaults);for(let r in t.renderer){if(!(r in e))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=r,o=t.renderer[i],a=e[i];e[i]=(...t)=>{let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new Ft(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=r,o=t.tokenizer[i],a=e[i];e[i]=(...t)=>{let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new Ot;for(let r in t.hooks){if(!(r in e))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=r,o=t.hooks[i],a=e[i];Ot.passThroughHooks.has(r)?e[i]=t=>{if(this.defaults.async&&Ot.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await o.call(e,t);return a.call(e,r)})();let i=o.call(e,t);return a.call(e,i)}:e[i]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await o.apply(e,t);return!1===r&&(r=await a.apply(e,t)),r})();let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(i.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Mt.lex(t,e??this.defaults)}parser(t,e){return $t.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===i.async)return a(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 e>"u"||null===e)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let r=o.hooks?await o.hooks.preprocess(e):e,i=await(o.hooks?await o.hooks.provideLexer():t?Mt.lex:Mt.lexInline)(r,o),a=o.hooks?await o.hooks.processAllTokens(i):i;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let s=await(o.hooks?await o.hooks.provideParser():t?$t.parse:$t.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(s):s})().catch(a);try{o.hooks&&(e=o.hooks.preprocess(e));let r=(o.hooks?o.hooks.provideLexer():t?Mt.lex:Mt.lexInline)(e,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let i=(o.hooks?o.hooks.provideParser():t?$t.parse:$t.parseInline)(r,o);return o.hooks&&(i=o.hooks.postprocess(i)),i}catch(s){return a(s)}}}onError(t,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+Bt(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function Dt(t,e){return It.parse(t,e)}Dt.options=Dt.setOptions=function(t){return It.setOptions(t),Dt.defaults=It.defaults,w(Dt.defaults),Dt},Dt.getDefaults=S,Dt.defaults=B,Dt.use=function(...t){return It.use(...t),Dt.defaults=It.defaults,w(Dt.defaults),Dt},Dt.walkTokens=function(t,e){return It.walkTokens(t,e)},Dt.parseInline=It.parseInline,Dt.Parser=$t,Dt.parser=$t.parse,Dt.Renderer=_t,Dt.TextRenderer=Et,Dt.Lexer=Mt,Dt.lexer=Mt.lex,Dt.Tokenizer=Ft,Dt.Hooks=Ot,Dt.parse=Dt;Dt.options,Dt.setOptions,Dt.use,Dt.walkTokens,Dt.parseInline,$t.parse,Mt.lex;var qt=r(60513),Rt={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}
2,Kt=new Map,zt=new Map,Pt=(0,a.K2)(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(a.Rm.debug("Registering icon pack:",e.name),"loader"in e)zt.set(e.name,e.loader);else{if(!("icons"in e))throw a.Rm.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');Kt.set(e.name,e.icons)}}},"registerIconPacks"),Wt=(0,a.K2)(async(t,e)=>{const r=((t,e,r,i="")=>{const o=t.split(":");if("@"===t.slice(0,1)){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const t=o.pop(),r=o.pop(),a={provider:o.length>0?o[0]:i,prefix:r,name:t};return e&&!s(a)?null:a}const a=o[0],n=a.split("-");if(n.length>1){const t={provider:i,prefix:n.shift(),name:n.join("-")};return e&&!s(t)?null:t}if(r&&""===i){const t={provider:i,prefix:"",name:a};return e&&!s(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw new Error(`Invalid icon name: ${t}`);const i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let o=Kt.get(i);if(!o){const t=zt.get(i);if(!t)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await t(),prefix:i},Kt.set(i,o)}catch(l){throw a.Rm.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const n=p(o,r.name);if(!n)throw new Error(`Icon not found: ${t}`);return n},"getRegisteredIconData"),Nt=(0,a.K2)(async t=>{try{return await Wt(t),!0}catch{return!1}},"isIconAvailable"),jt=(0,a.K2)(async(t,e,r)=>{let i;try{i=await Wt(t,e?.fallbackPrefix)}catch(l){a.Rm.error(l),i=Rt}const s=function(t,e){const r={...h,...t},i={...f,...e},o={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(t=>{const e=[],r=t.hFlip,i=t.vFlip;let s,n=t.rotate;switch(r?i?n+=2:(e.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),e.push("scale(-1 1)"),o.top=o.left=0):i&&(e.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),e.push("scale(1 -1)"),o.top=o.left=0),n<0&&(n-=4*Math.floor(n/4)),n%=4,n){case 1:s=o.height/2+o.top,e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:s=o.width/2+o.left,e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}n%2==1&&(o.left!==o.top&&(s=o.left,o.left=o.top,o.top=s),o.width!==o.height&&(s=o.width,o.width=o.height,o.height=s)),e.length&&(a=function(t,e,r){const i=function(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const o=t.indexOf(">",i),a=t.indexOf("</"+e);if(-1===o||-1===a)break;const s=t.indexOf(">",a);if(-1===s)break;r+=t.slice(o+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}(t);return o=i.defs,a=e+i.content+r,o?"<defs>"+o+"</defs>"+a:a;var o,a}(a,'<g transform="'+e.join(" ")+'">',"</g>"))});const s=i.width,n=i.height,l=o.width,c=o.height;let d,u;null===s?(u=null===n?"1em":"auto"===n?c:n,d=C(u,l/c)):(d="auto"===s?l:s,u=null===n?C(d,c/l):"auto"===n?c:n);const p={},g=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(p[t]=e.toString())};g("width",d),g("height",u);const y=[o.left,o.top,l,c];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:a}}(i,e),n=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)r+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(k(s.body),{...s.attributes,...r});return(0,o.jZ)(n,(0,o.zj)())},"getIconSVG");function Ht(t,{markdownAutoWrap:e}){const r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,qt.T)(r)}function Gt(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function Ut(t,e={}){const r=Ht(t,e),i=Dt.lexer(r),o=[[]];let s=0;function n(t,e="normal"){if("text"===t.type){t.text.split("\n").forEach((t,r)=>{0!==r&&(s++,o.push([])),t.split(" ").forEach(t=>{(t=t.replace(/'/g,"'"))&&o[s].push({content:t,type:e})})})}
2else"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{n(e,t.type)}):"html"===t.type&&o[s].push({content:t.text,type:"normal"})}return(0,a.K2)(n,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{n(t)}):"html"===t.type?o[s].push({content:t.text,type:"normal"}):o[s].push({content:t.raw,type:"normal"})}),o}function Yt(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function Xt(t,{markdownAutoWrap:e}={}){const r=Dt.lexer(t);function i(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(i).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(i).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(i).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:(a.Rm.warn(`Unsupported markdown: ${t.type}`),t.raw)}return(0,a.K2)(i,"output"),r.map(i).join("")}function Vt(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map(t=>t.segment):[...t]}function Zt(t,e){return Qt(t,[],Vt(e.content),e.type)}function Qt(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[o,...a]=r,s=[...e,o];return t([{content:s.join(""),type:i}])?Qt(t,s,a,i):(0===e.length&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function Jt(t,e){if(t.some(({content:t})=>t.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return te(t,e)}function te(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let o="";" "===t[0].content&&(o=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...i];if(""!==o&&s.push({content:o,type:"normal"}),s.push(a),e(s))return te(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){const[i,o]=Zt(e,a);r.push([i]),o.content&&t.unshift(o)}return te(t,e,r)}function ee(t,e){e&&t.attr("style",e)}(0,a.K2)(Ht,"preprocessMarkdown"),(0,a.K2)(Gt,"nonMarkdownToLines"),(0,a.K2)(Ut,"markdownToLines"),(0,a.K2)(Yt,"nonMarkdownToHTML"),(0,a.K2)(Xt,"markdownToHTML"),(0,a.K2)(Vt,"splitTextToChars"),(0,a.K2)(Zt,"splitWordToFitWidth"),(0,a.K2)(Qt,"splitWordToFitWidthRecursion"),(0,a.K2)(Jt,"splitLineToFitWidth"),(0,a.K2)(te,"splitLineToFitWidthRecursion"),(0,a.K2)(ee,"applyStyle");async function re(t,e,r,i,a=!1,s=(0,o.zj)()){const n=t.append("foreignObject");n.attr("width",`${Math.min(10*r,16384)}px`),n.attr("height",`${Math.min(10*r,16384)}px`);const l=n.append("xhtml:div"),h=(0,o.Wi)(e.label)?await(0,o.dj)(e.label.replace(o.Y2.lineBreakRegex,"\n"),s):(0,o.jZ)(e.label,s),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),ee(d,e.labelStyle),d.attr("class",`${c} ${i}`),ee(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&l.attr("class","labelBkg");let u=l.node().getBoundingClientRect();return u.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),u=l.node().getBoundingClientRect()),n.node()}function ie(t,e,r,i=!1){const o=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&o.attr("text-anchor","middle"),o}function oe(t,e,r){const i=t.append("text"),o=ie(i,1,e);le(o,r);const a=o.node().getComputedTextLength();return i.remove(),a}function ae(t,e,r){const i=t.append("text"),o=ie(i,1,e);le(o,[{content:r,type:"normal"}]);const a=o.node()?.getBoundingClientRect();return a&&i.remove(),a}function se(t,e,r,i=!1,o=!1){const s=e.append("g"),n=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");o&&l.attr("text-anchor","middle");let h=0;for(const c of r){const e=(0,a.K2)(e=>oe(s,1.1,e)<=t,"checkWidth"),r=e(c)?[c]:Jt(c,e);for(const t of r){le(ie(l,h,1.1,o),t),h++}}if(i){const t=l.node().getBBox(),e=2;return n.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),s.node()}return l.node()}function ne(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function le(t,e){t.text(""),e.forEach((e,r)=>{const i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(ne(e.content)):i.text(" "+ne(e.content))})}async function he(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,a)=>(r.push((async()=>{const r=`${i}:${a}`;return await Nt(r)?await jt(r,void 0,{class:"label-icon"}):`<i class='${(0,o.jZ)(t,e).replace(":"," ")}'></i>`})()),t));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,a.K2)(re,"addHtmlSpan"),(0,a.K2)(ie,"createTspan"),(0,a.K2)(oe,"computeWidthOfText"),
2(0,a.K2)(ae,"computeDimensionOfText"),(0,a.K2)(se,"createFormattedText"),(0,a.K2)(ne,"decodeHTMLEntities"),(0,a.K2)(le,"updateTextContentAndStyles"),(0,a.K2)(he,"replaceIconSubstring");var ce=(0,a.K2)(async(t,e="",{style:r="",isTitle:s=!1,classes:n="",useHtmlLabels:l=!0,markdown:h=!0,isNode:c=!0,width:d=200,addSvgBackground:u=!1}={},p)=>{if(a.Rm.debug("XYZ createText",e,r,s,n,l,c,"addSvgBackground: ",u),l){const a=h?Xt(e,p):Yt(e),s=await he((0,i.Sm)(a),p),l=e.replace(/\\\\/g,"\\"),g={isNode:c,label:(0,o.Wi)(e)?l:s,labelStyle:r.replace("fill:","color:")};return await re(t,g,d,n,u,p)}{const o=(0,i.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),a=se(d,t,h?Ut(o.replace("<br>","<br/>"),p):Gt(o),!!e&&u,!c);if(c){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,T.Ltv)(a).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,T.Ltv)(a).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,T.Ltv)(a).select("text").attr("style",e)}return s?(0,T.Ltv)(a).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,T.Ltv)(a).selectAll("tspan.text-outer-tspan").classed("row",!0),a}},"createText")},38278(t,e,r){"use strict";r.d(e,{Fr:()=>c,GX:()=>h,KX:()=>l,WW:()=>s,ue:()=>a});var i=r(17726),o=r(40797),a=(0,o.K2)(t=>{const{handDrawnSeed:e}=(0,i.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),s=(0,o.K2)(t=>{const e=n([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),n=(0,o.K2)(t=>{const e=new Map;return t.forEach(t=>{const[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),l=(0,o.K2)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),h=(0,o.K2)(t=>{const{stylesArray:e}=s(t),r=[],i=[],o=[],a=[];return e.forEach(t=>{const e=t[0];l(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&o.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:a}},"styles2String"),c=(0,o.K2)((t,e)=>{const{themeVariables:r,handDrawnSeed:o}=(0,i.D7)(),{nodeBorder:a,mainBkg:n}=r,{stylesMap:l}=s(t);return Object.assign({roughness:.7,fill:l.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:o,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),d=(0,o.K2)(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(1===e.length){const t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},43283(t,e,r){"use strict";r.d(e,{H:()=>ir,r:()=>rr});var i=r(40797);function o(t){return null==t}function a(t){return"object"==typeof t&&null!==t}function s(t){return Array.isArray(t)?t:o(t)?[]:[t]}function n(t,e){var r,i,o,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[o=a[r]]=e[o];return t}function l(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function h(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,i.K2)(o,"isNothing"),(0,i.K2)(a,"isObject"),(0,i.K2)(s,"toArray"),(0,i.K2)(n,"extend"),(0,i.K2)(l,"repeat"),(0,i.K2)(h,"isNegativeZero");var c={isNothing:o,isObject:a,toArray:s,repeat:l,isNegativeZero:h,extend:n};function d(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function u(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=d(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,i.K2)(d,"formatError"),(0,i.K2)(u,"YAMLException$1"),u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=(0,i.K2)(function(t){return this.name+": "+d(this,t)},"toString");var p=u;function g(t,e,r,i,o){var a="",s="",n=Math.floor(o/2)-1;return i-e>n&&(e=i-n+(a=" ... ").length),r-i>n&&(r=i+n-(s=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+s,pos:i-e+a.length}}function f(t,e){return c.repeat(" ",e-t.length)+t}function y(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,o=[0],a=[],s=-1;r=i.exec(t.buffer);)a.push(r.index),o.push(r.index+r[0].length),t.position<=r.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var n,l,h="",d=Math.min(t.line+e.linesAfter,a.length).toString().length,u=e.maxLength-(e.indent+d+3);for(n=1;n<=e.linesBefore&&!(s-n<0);n++)l=g(t.buffer,o[s-n],a[s-n],t.position-(o[s]-o[s-n]),u),h=c.repeat(" ",e.indent)+f((t.line-n+1).toString(),d)+" | "+l.str+"\n"+h;for(l=g(t.buffer,o[s],a[s],t.position,u),h+=c.repeat(" ",e.indent)+f((t.line+1).toString(),d)+" | "+l.str+"\n",h+=c.repeat("-",e.indent+d+3+l.pos)+"^\n",n=1;n<=e.linesAfter&&!(s+n>=a.length);n++)l=g(t.buffer,o[s+n],a[s+n],t.position-(o[s]-o[s+n]),u),h+=c.repeat(" ",e.indent)+f((t.line+n+1).toString(),d)+" | "+l.str+"\n";return h.replace(/\n$/,"")}(0,i.K2)(g,"getLine"),(0,i.K2)(f,"padStart"),(0,i.K2)(y,"makeSnippet");var m=y,C=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function b(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function k(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===C.indexOf(e))throw new p('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=b(e.styleAliases||null),-1===x.indexOf(this.kind))throw new p('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,i.K2)(b,"compileStyleAliases"),(0,i.K2)(k,"Type$1");var T=k;function S(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function B(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,i.K2)(o,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(o);return r}function w(t){return this.extend(t)}(0,i.K2)(S,"compileList"),(0,i.K2)(B,"compileMap"),(0,i.K2)(w,"Schema$1"),w.prototype.extend=(0,i.K2)(function(t){var e=[],r=[];if(t instanceof T)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new p("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach(function(t){if(!(t instanceof T))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new p("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
2if(t.multi)throw new p("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof T))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(w.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=S(i,"implicit"),i.compiledExplicit=S(i,"explicit"),i.compiledTypeMap=B(i.compiledImplicit,i.compiledExplicit),i},"extend");var A=new w({explicit:[new T("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,i.K2)(function(t){return null!==t?t:""},"construct")}),new T("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,i.K2)(function(t){return null!==t?t:[]},"construct")}),new T("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,i.K2)(function(t){return null!==t?t:{}},"construct")})]});function L(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function v(){return null}function F(t){return null===t}(0,i.K2)(L,"resolveYamlNull"),(0,i.K2)(v,"constructYamlNull"),(0,i.K2)(F,"isNull");var M=new T("tag:yaml.org,2002:null",{kind:"scalar",resolve:L,construct:v,predicate:F,represent:{canonical:(0,i.K2)(function(){return"~"},"canonical"),lowercase:(0,i.K2)(function(){return"null"},"lowercase"),uppercase:(0,i.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,i.K2)(function(){return"Null"},"camelcase"),empty:(0,i.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function _(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function E(t){return"true"===t||"True"===t||"TRUE"===t}function $(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,i.K2)(_,"resolveYamlBoolean"),(0,i.K2)(E,"constructYamlBoolean"),(0,i.K2)($,"isBoolean");var O=new T("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_,construct:E,predicate:$,represent:{lowercase:(0,i.K2)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,i.K2)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,i.K2)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function I(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function D(t){return 48<=t&&t<=55}function q(t){return 48<=t&&t<=57}function R(t){if(null===t)return!1;var e,r=t.length,i=0,o=!1;if(!r)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!I(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!D(t.charCodeAt(i)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!q(t.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===e)}function K(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function z(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!c.isNegativeZero(t)}(0,i.K2)(I,"isHexCode"),(0,i.K2)(D,"isOctCode"),(0,i.K2)(q,"isDecCode"),(0,i.K2)(R,"resolveYamlInteger"),(0,i.K2)(K,"constructYamlInteger"),(0,i.K2)(z,"isInteger");var P=new T("tag:yaml.org,2002:int",{kind:"scalar",resolve:R,construct:K,predicate:z,represent:{binary:(0,i.K2)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,i.K2)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}
2,"octal"),decimal:(0,i.K2)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,i.K2)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),W=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function N(t){return null!==t&&!(!W.test(t)||"_"===t[t.length-1])}function j(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}(0,i.K2)(N,"resolveYamlFloat"),(0,i.K2)(j,"constructYamlFloat");var H=/^[-+]?[0-9]+e/;function G(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(t))return"-0.0";return r=t.toString(10),H.test(r)?r.replace("e",".e"):r}function U(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||c.isNegativeZero(t))}(0,i.K2)(G,"representYamlFloat"),(0,i.K2)(U,"isFloat");var Y=new T("tag:yaml.org,2002:float",{kind:"scalar",resolve:N,construct:j,predicate:U,represent:G,defaultStyle:"lowercase"}),X=A.extend({implicit:[M,O,P,Y]}),V=X,Z=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Q=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 J(t){return null!==t&&(null!==Z.exec(t)||null!==Q.exec(t))}function tt(t){var e,r,i,o,a,s,n,l,h=0,c=null;if(null===(e=Z.exec(t))&&(e=Q.exec(t)),null===e)throw new Error("Date resolve error");
2if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(a=+e[4],s=+e[5],n=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,o,a,s,n,h)),c&&l.setTime(l.getTime()-c),l}function et(t){return t.toISOString()}(0,i.K2)(J,"resolveYamlTimestamp"),(0,i.K2)(tt,"constructYamlTimestamp"),(0,i.K2)(et,"representYamlTimestamp");var rt=new T("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:J,construct:tt,instanceOf:Date,represent:et});function it(t){return"<<"===t||null===t}(0,i.K2)(it,"resolveYamlMerge");var ot=new T("tag:yaml.org,2002:merge",{kind:"scalar",resolve:it}),at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function st(t){if(null===t)return!1;var e,r,i=0,o=t.length,a=at;for(r=0;r<o;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function nt(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,a=at,s=0,n=[];for(e=0;e<o;e++)e%4==0&&e&&(n.push(s>>16&255),n.push(s>>8&255),n.push(255&s)),s=s<<6|a.indexOf(i.charAt(e));return 0===(r=o%4*6)?(n.push(s>>16&255),n.push(s>>8&255),n.push(255&s)):18===r?(n.push(s>>10&255),n.push(s>>2&255)):12===r&&n.push(s>>4&255),new Uint8Array(n)}function lt(t){var e,r,i="",o=0,a=t.length,s=at;for(e=0;e<a;e++)e%3==0&&e&&(i+=s[o>>18&63],i+=s[o>>12&63],i+=s[o>>6&63],i+=s[63&o]),o=(o<<8)+t[e];return 0===(r=a%3)?(i+=s[o>>18&63],i+=s[o>>12&63],i+=s[o>>6&63],i+=s[63&o]):2===r?(i+=s[o>>10&63],i+=s[o>>4&63],i+=s[o<<2&63],i+=s[64]):1===r&&(i+=s[o>>2&63],i+=s[o<<4&63],i+=s[64],i+=s[64]),i}function ht(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,i.K2)(st,"resolveYamlBinary"),(0,i.K2)(nt,"constructYamlBinary"),(0,i.K2)(lt,"representYamlBinary"),(0,i.K2)(ht,"isBinary");var ct=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:st,construct:nt,predicate:ht,represent:lt}),dt=Object.prototype.hasOwnProperty,ut=Object.prototype.toString;function pt(t){if(null===t)return!0;var e,r,i,o,a,s=[],n=t;for(e=0,r=n.length;e<r;e+=1){if(i=n[e],a=!1,"[object Object]"!==ut.call(i))return!1;for(o in i)if(dt.call(i,o)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==s.indexOf(o))return!1;s.push(o)}return!0}function gt(t){return null!==t?t:[]}(0,i.K2)(pt,"resolveYamlOmap"),(0,i.K2)(gt,"constructYamlOmap");var ft=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pt,construct:gt}),yt=Object.prototype.toString;function mt(t){if(null===t)return!0;var e,r,i,o,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(i=s[e],"[object Object]"!==yt.call(i))return!1;if(1!==(o=Object.keys(i)).length)return!1;a[e]=[o[0],i[o[0]]]}return!0}function Ct(t){if(null===t)return[];var e,r,i,o,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)i=s[e],o=Object.keys(i),a[e]=[o[0],i[o[0]]];return a}(0,i.K2)(mt,"resolveYamlPairs"),(0,i.K2)(Ct,"constructYamlPairs");var xt=new T("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mt,construct:Ct}),bt=Object.prototype.hasOwnProperty;function kt(t){if(null===t)return!0;var e,r=t;for(e in r)if(bt.call(r,e)&&null!==r[e])return!1;return!0}function Tt(t){return null!==t?t:{}}(0,i.K2)(kt,"resolveYamlSet"),(0,i.K2)(Tt,"constructYamlSet");var St=new T("tag:yaml.org,2002:set",{kind:"mapping",resolve:kt,construct:Tt}),Bt=V.extend({implicit:[rt,ot],explicit:[ct,ft,xt,St]}),wt=Object.prototype.hasOwnProperty,At=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Lt=/[\x85\u2028\u2029]/,vt=/[,\[\]\{\}]/,Ft=/^(?:!|!!|![a-z\-]+!)$/i,Mt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _t(t){return Object.prototype.toString.call(t)}function Et(t){return 10===t||13===t}function $t(t){return 9===t||32===t}function Ot(t){return 9===t||32===t||10===t||13===t}function It(t){return 44===t||91===t||93===t||123===t||125===t}function Dt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function qt(t){return 120===t?2:117===t?4:85===t?8:0}function Rt(t){return 48<=t&&t<=57?t-48:-1}function Kt(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function zt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function Pt(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,i.K2)(_t,"_class"),(0,i.K2)(Et,"is_EOL"),(0,i.K2)($t,"is_WHITE_SPACE"),(0,i.K2)(Ot,"is_WS_OR_EOL"),(0,i.K2)(It,"is_FLOW_INDICATOR"),(0,i.K2)(Dt,"fromHexCode"),(0,i.K2)(qt,"escapedHexLen"),(0,i.K2)(Rt,"fromDecimalCode"),(0,i.K2)(Kt,"
2simpleEscapeSequence"),(0,i.K2)(zt,"charFromCodepoint"),(0,i.K2)(Pt,"setProperty");var Wt,Nt=new Array(256),jt=new Array(256);for(Wt=0;Wt<256;Wt++)Nt[Wt]=Kt(Wt)?1:0,jt[Wt]=Kt(Wt);function Ht(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Bt,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Gt(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=m(r),new p(e,r)}function Ut(t,e){throw Gt(t,e)}function Yt(t,e){t.onWarning&&t.onWarning.call(null,Gt(t,e))}(0,i.K2)(Ht,"State$1"),(0,i.K2)(Gt,"generateError"),(0,i.K2)(Ut,"throwError"),(0,i.K2)(Yt,"throwWarning");var Xt={YAML:(0,i.K2)(function(t,e,r){var i,o,a;null!==t.version&&Ut(t,"duplication of %YAML directive"),1!==r.length&&Ut(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ut(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),1!==o&&Ut(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&Yt(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,i.K2)(function(t,e,r){var i,o;2!==r.length&&Ut(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],Ft.test(i)||Ut(t,"ill-formed tag handle (first argument) of the TAG directive"),wt.call(t.tagMap,i)&&Ut(t,'there is a previously declared suffix for "'+i+'" tag handle'),Mt.test(o)||Ut(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(a){Ut(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o},"handleTagDirective")};function Vt(t,e,r,i){var o,a,s,n;if(e<r){if(n=t.input.slice(e,r),i)for(o=0,a=n.length;o<a;o+=1)9===(s=n.charCodeAt(o))||32<=s&&s<=1114111||Ut(t,"expected valid JSON character");else At.test(n)&&Ut(t,"the stream contains non-printable characters");t.result+=n}}function Zt(t,e,r,i){var o,a,s,n;for(c.isObject(r)||Ut(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,n=(o=Object.keys(r)).length;s<n;s+=1)a=o[s],wt.call(e,a)||(Pt(e,a,r[a]),i[a]=!0)}function Qt(t,e,r,i,o,a,s,n,l){var h,c;if(Array.isArray(o))for(h=0,c=(o=Array.prototype.slice.call(o)).length;h<c;h+=1)Array.isArray(o[h])&&Ut(t,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===_t(o[h])&&(o[h]="[object Object]");if("object"==typeof o&&"[object Object]"===_t(o)&&(o="[object Object]"),o=String(o),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(h=0,c=a.length;h<c;h+=1)Zt(t,e,a[h],r);else Zt(t,e,a,r);else t.json||wt.call(r,o)||!wt.call(e,o)||(t.line=s||t.line,t.lineStart=n||t.lineStart,t.position=l||t.position,Ut(t,"duplicated mapping key")),Pt(e,o,a),delete r[o];return e}function Jt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Ut(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function te(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);0!==o;){for(;$t(o);)9===o&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&35===o)do{o=t.input.charCodeAt(++t.position)}while(10!==o&&13!==o&&0!==o);if(!Et(o))break;for(Jt(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&Yt(t,"deficient indentation"),i}function ee(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!Ot(e)))}function re(t,e){1===e?t.result+=" ":e>1&&(t.result+=c.repeat("\n",e-1))}function ie(t,e,r){var i,o,a,s,n,l,h,c,d=t.kind,u=t.result;if(Ot(c=t.input.charCodeAt(t.position))||It(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(Ot(i=t.input.charCodeAt(t.position+1))||r&&It(i)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;0!==c;){if(58===c){if(Ot(i=t.input.charCodeAt(t.position+1))||r&&It(i))break}else if(35===c){if(Ot(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&ee(t)||r&&It(c))break;if(Et(c)){if(n=t.line,l=t.lineStart,h=t.lineIndent,te(t,!1,-1),t.lineIndent>
vendor: 9,016 bytes, line 2
2=e){s=!0,c=t.input.charCodeAt(t.position);continue}t.position=a,t.line=n,t.lineStart=l,t.lineIndent=h;break}}s&&(Vt(t,o,a,!1),re(t,t.line-n),o=a=t.position,s=!1),$t(c)||(a=t.position+1),c=t.input.charCodeAt(++t.position)}return Vt(t,o,a,!1),!!t.result||(t.kind=d,t.result=u,!1)}function oe(t,e){var r,i,o;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(Vt(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,o=t.position}else Et(r)?(Vt(t,i,o,!0),re(t,te(t,!1,e)),i=o=t.position):t.position===t.lineStart&&ee(t)?Ut(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);Ut(t,"unexpected end of the stream within a single quoted scalar")}function ae(t,e){var r,i,o,a,s,n;if(34!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));){if(34===n)return Vt(t,r,t.position,!0),t.position++,!0;if(92===n){if(Vt(t,r,t.position,!0),Et(n=t.input.charCodeAt(++t.position)))te(t,!1,e);else if(n<256&&Nt[n])t.result+=jt[n],t.position++;else if((s=qt(n))>0){for(o=s,a=0;o>0;o--)(s=Dt(n=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+s:Ut(t,"expected hexadecimal character");t.result+=zt(a),t.position++}else Ut(t,"unknown escape sequence");r=i=t.position}else Et(n)?(Vt(t,r,i,!0),re(t,te(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ee(t)?Ut(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Ut(t,"unexpected end of the stream within a double quoted scalar")}function se(t,e){var r,i,o,a,s,n,l,h,c,d,u,p,g=!0,f=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))s=93,h=!1,a=[];else{if(123!==p)return!1;s=125,h=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(te(t,!0,e),(p=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=f,t.anchor=y,t.kind=h?"mapping":"sequence",t.result=a,!0;g?44===p&&Ut(t,"expected the node content, but found ','"):Ut(t,"missed comma between flow collection entries"),u=null,n=l=!1,63===p&&Ot(t.input.charCodeAt(t.position+1))&&(n=l=!0,t.position++,te(t,!0,e)),r=t.line,i=t.lineStart,o=t.position,pe(t,e,1,!1,!0),d=t.tag,c=t.result,te(t,!0,e),p=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==p||(n=!0,p=t.input.charCodeAt(++t.position),te(t,!0,e),pe(t,e,1,!1,!0),u=t.result),h?Qt(t,a,m,d,c,u,r,i,o):n?a.push(Qt(t,null,m,d,c,u,r,i,o)):a.push(c),te(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(g=!0,p=t.input.charCodeAt(++t.position)):g=!1}Ut(t,"unexpected end of the stream within a flow collection")}function ne(t,e){var r,i,o,a,s=1,n=!1,l=!1,h=e,d=0,u=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:Ut(t,"repeat of a chomping mode identifier");else{if(!((o=Rt(a))>=0))break;0===o?Ut(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ut(t,"repeat of an indentation width identifier"):(h=e+o-1,l=!0)}if($t(a)){do{a=t.input.charCodeAt(++t.position)}while($t(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!Et(a)&&0!==a)}for(;0!==a;){for(Jt(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),Et(a))d++;else{if(t.lineIndent<h){3===s?t.result+=c.repeat("\n",n?1+d:d):1===s&&n&&(t.result+="\n");break}for(i?$t(a)?(u=!0,t.result+=c.repeat("\n",n?1+d:d)):u?(u=!1,t.result+=c.repeat("\n",d+1)):0===d?n&&(t.result+=" "):t.result+=c.repeat("\n",d):t.result+=c.repeat("\n",n?1+d:d),n=!0,l=!0,d=0,r=t.position;!Et(a)&&0!==a;)a=t.input.charCodeAt(++t.position);Vt(t,r,t.position,!1)}}return!0}function le(t,e){var r,i,o=t.tag,a=t.anchor,s=[],n=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Ut(t,"tab characters must not be used in indentation")),45===i)&&Ot(t.input.charCodeAt(t.position+1));)if(n=!0,t.position++,te(t,!0,-1)&&t.lineIndent<=e)s.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,pe(t,e,3,!1,!0),s.push(t.result),te(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)Ut(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!n&&(t.tag=o,t.anchor=a,t.kind="sequence",t.result=s,!0)}function he(t,e,r){var i,o,a,s,n,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),g=null,f=null,y=null,m=!1,C=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Ut(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==h&&58!==h||!Ot(i)){if(s=t.line,n=t.lineStart,l=t.position,!pe(t,r,2,!1,!0))break;if(t.line===a){for(h=t.input.charCodeAt(t.position);$t(h);)h=t.input.charCodeAt(++t.position);if(58===h)Ot(h=t.input.charCodeAt(++t.position))||Ut(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Qt(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!1,o=!1,g=t.tag,f=t.result;else{if(!C)return t.tag=c,t.anchor=d,!0;Ut(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!C)return t.tag=c,t.anchor=d,!0;Ut(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===h?(m&&(Qt(t,u,p,g,f,null,s,n,l),g=f=y=null),C=!0,m=!0,o=!0):m?(m=!1,o=!0):Ut(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;if((t.line===a||t.lineIndent>e)&&(m&&(s=t.line,n=t.lineStart,l=t.position),pe(t,e,4,!0,o)&&(m?f=t.result:y=t.result),m||(Qt(t,u,p,g,f,y,s,n,l),g=f=y=null),te(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==h)Ut(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Qt(t,u,p,g,f,null,s,n,l),C&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),C}function ce(t){var e,r,i,o,a=!1,s=!1;if(33!==(o=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Ut(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(a=!0,o=t.input.charCodeAt(++t.position)):33===o?(s=!0,r="!!",o=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do{o=t.input.charCodeAt(++t.position)}while(0!==o&&62!==o);t.position<t.length?(i=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Ut(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!Ot(o);)33===o&&(s?Ut(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),Ft.test(r)||Ut(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),vt.test(i)&&Ut(t,"tag suffix cannot contain flow indicator characters")}i&&!Mt.test(i)&&Ut(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(n){Ut(t,"tag name is malformed: "+i)}return a?t.tag=i:wt.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:Ut(t,'undeclared tag handle "'+r+'"'),!0}function de(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Ut(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Ot(r)&&!It(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Ut(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function ue(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Ot(i)&&!It(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Ut(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),wt.call(t.anchorMap,r)||Ut(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],te(t,!0,-1),!0}function pe(t,e,r,i,o){var a,s,n,l,h,c,d,u,p,g=1,f=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=n=4===r||3===r,i&&te(t,!0,-1)&&(f=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;ce(t)||de(t);)te(t,!0,-1)?(f=!0,n=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):n=!1;if(n&&(n=f||o),1!==g&&4!==r||(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===g?n&&(le(t,p)||he(t,p,u))||se(t,u)?y=!0:(s&&ne(t,u)||oe(t,u)||ae(t,u)?y=!0:ue(t)?(y=!0,null===t.tag&&null===t.anchor||Ut(t,"alias node should not have any properties")):ie(t,u,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(y=n&&le(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);
vendor: 5,327 bytes, line 2
2else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Ut(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(wt.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,l=0,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||Ut(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&Ut(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Ut(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function ge(t){var e,r,i,o,a=t.position,s=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(o=t.input.charCodeAt(t.position))&&(te(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==o));){for(s=!0,o=t.input.charCodeAt(++t.position),e=t.position;0!==o&&!Ot(o);)o=t.input.charCodeAt(++t.position);for(i=[],(r=t.input.slice(e,t.position)).length<1&&Ut(t,"directive name must not be less than one character in length");0!==o;){for(;$t(o);)o=t.input.charCodeAt(++t.position);if(35===o){do{o=t.input.charCodeAt(++t.position)}while(0!==o&&!Et(o));break}if(Et(o))break;for(e=t.position;0!==o&&!Ot(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==o&&Jt(t),wt.call(Xt,r)?Xt[r](t,r,i):Yt(t,'unknown document directive "'+r+'"')}te(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,te(t,!0,-1)):s&&Ut(t,"directives end mark is expected"),pe(t,t.lineIndent-1,4,!1,!0),te(t,!0,-1),t.checkLineBreaks&&Lt.test(t.input.slice(a,t.position))&&Yt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ee(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,te(t,!0,-1)):t.position<t.length-1&&Ut(t,"end of the stream or a document separator is expected")}function fe(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Ht(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,Ut(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ge(r);return r.documents}function ye(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=fe(t,r);if("function"!=typeof e)return i;for(var o=0,a=i.length;o<a;o+=1)e(i[o])}function me(t,e){var r=fe(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new p("expected a single document in the stream, but found more")}}(0,i.K2)(Vt,"captureSegment"),(0,i.K2)(Zt,"mergeMappings"),(0,i.K2)(Qt,"storeMappingPair"),(0,i.K2)(Jt,"readLineBreak"),(0,i.K2)(te,"skipSeparationSpace"),(0,i.K2)(ee,"testDocumentSeparator"),(0,i.K2)(re,"writeFoldedLines"),(0,i.K2)(ie,"readPlainScalar"),(0,i.K2)(oe,"readSingleQuotedScalar"),(0,i.K2)(ae,"readDoubleQuotedScalar"),(0,i.K2)(se,"readFlowCollection"),(0,i.K2)(ne,"readBlockScalar"),(0,i.K2)(le,"readBlockSequence"),(0,i.K2)(he,"readBlockMapping"),(0,i.K2)(ce,"readTagProperty"),(0,i.K2)(de,"readAnchorProperty"),(0,i.K2)(ue,"readAlias"),(0,i.K2)(pe,"composeNode"),(0,i.K2)(ge,"readDocument"),(0,i.K2)(fe,"loadDocuments"),(0,i.K2)(ye,"loadAll$1"),(0,i.K2)(me,"load$1");var Ce={loadAll:ye,load:me},xe=Object.prototype.toString,be=Object.prototype.hasOwnProperty,ke=65279,Te={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Se=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Be=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function we(t,e){var r,i,o,a,s,n,l;if(null===e)return{};for(r={},o=0,a=(i=Object.keys(e)).length;o<a;o+=1)s=i[o],n=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&be.call(l.styleAliases,n)&&(n=l.styleAliases[n]),r[s]=n;return r}function Ae(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else{if(!(t<=4294967295))throw new p("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+c.repeat("0",i-e.length)+e}(0,i.K2)(we,"compileStyleMap"),(0,i.K2)(Ae,"encodeHex");function Le(t){this.schema=t.schema||Bt,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=c.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=we(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.impl
2icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ve(t,e){for(var r,i=c.repeat(" ",e),o=0,a=-1,s="",n=t.length;o<n;)-1===(a=t.indexOf("\n",o))?(r=t.slice(o),o=n):(r=t.slice(o,a+1),o=a+1),r.length&&"\n"!==r&&(s+=i),s+=r;return s}function Fe(t,e){return"\n"+c.repeat(" ",t.indent*e)}function Me(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function _e(t){return 32===t||9===t}function Ee(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==ke||65536<=t&&t<=1114111}function $e(t){return Ee(t)&&t!==ke&&13!==t&&10!==t}function Oe(t,e,r){var i=$e(t),o=i&&!_e(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||$e(e)&&!_e(e)&&35===t||58===e&&o}function Ie(t){return Ee(t)&&t!==ke&&!_e(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function De(t){return!_e(t)&&58!==t}function qe(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}function Re(t){return/^\n* /.test(t)}(0,i.K2)(Le,"State"),(0,i.K2)(ve,"indentString"),(0,i.K2)(Fe,"generateNextLine"),(0,i.K2)(Me,"testImplicitResolving"),(0,i.K2)(_e,"isWhitespace"),(0,i.K2)(Ee,"isPrintable"),(0,i.K2)($e,"isNsCharOrWhitespace"),(0,i.K2)(Oe,"isPlainSafe"),(0,i.K2)(Ie,"isPlainSafeFirst"),(0,i.K2)(De,"isPlainSafeLast"),
2(0,i.K2)(qe,"codePointAt"),(0,i.K2)(Re,"needIndentIndicator");function Ke(t,e,r,i,o,a,s,n){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,g=-1,f=Ie(qe(t,0))&&De(qe(t,t.length-1));if(e||s)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!Ee(h=qe(t,l)))return 5;f=f&&Oe(h,c,n),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=qe(t,l)))d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!Ee(h))return 5;f=f&&Oe(h,c,n),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>9&&Re(t)?5:s?2===a?5:2:u?4:3:!f||s||o(t)?2===a?5:2:1}function ze(t,e,r,o,a){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==Se.indexOf(e)||Be.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=o||t.flowLevel>-1&&r>=t.flowLevel;function h(e){return Me(t,e)}switch((0,i.K2)(h,"testAmbiguity"),Ke(e,l,t.indent,n,h,t.quotingType,t.forceQuotes&&!o,a)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+Pe(e,t.indent)+We(ve(e,s));case 4:return">"+Pe(e,t.indent)+We(ve(Ne(e,n),s));case 5:return'"'+He(e)+'"';default:throw new p("impossible error: invalid scalar style")}}()}function Pe(t,e){var r=Re(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function We(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Ne(t,e){for(var r,i,o,a=/(\n+)([^\n]*)/g,s=(r=-1!==(r=t.indexOf("\n"))?r:t.length,a.lastIndex=r,je(t.slice(0,r),e)),n="\n"===t[0]||" "===t[0];o=a.exec(t);){var l=o[1],h=o[2];i=" "===h[0],s+=l+(n||i||""===h?"":"\n")+je(h,e),n=i}return s}function je(t,e){if(""===t||" "===t[0])return t;for(var r,i,o=/ [^ ]/g,a=0,s=0,n=0,l="";r=o.exec(t);)(n=r.index)-a>e&&(i=s>a?s:n,l+="\n"+t.slice(a,i),a=i+1),s=n;return l+="\n",t.length-a>e&&s>a?l+=t.slice(a,s)+"\n"+t.slice(s+1):l+=t.slice(a),l.slice(1)}function He(t){for(var e,r="",i=0,o=0;o<t.length;i>=65536?o+=2:o++)i=qe(t,o),!(e=Te[i])&&Ee(i)?(r+=t[o],i>=65536&&(r+=t[o+1])):r+=e||Ae(i);return r}function Ge(t,e,r){var i,o,a,s="",n=t.tag;for(i=0,o=r.length;i<o;i+=1)a=r[i],t.replacer&&(a=t.replacer.call(r,String(i),a)),(Ze(t,e,a,!1,!1)||void 0===a&&Ze(t,e,null,!1,!1))&&(""!==s&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=n,t.dump="["+s+"]"}function Ue(t,e,r,i){var o,a,s,n="",l=t.tag;for(o=0,a=r.length;o<a;o+=1)s=r[o],t.replacer&&(s=t.replacer.call(r,String(o),s)),(Ze(t,e+1,s,!0,!0,!1,!0)||void 0===s&&Ze(t,e+1,null,!0,!0,!1,!0))&&(i&&""===n||(n+=Fe(t,e)),t.dump&&10===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=l,t.dump=n||"[]"}function Ye(t,e,r){var i,o,a,s,n,l="",h=t.tag,c=Object.keys(r);for(i=0,o=c.length;i<o;i+=1)n="",""!==l&&(n+=", "),t.condenseFlow&&(n+='"'),s=r[a=c[i]],t.replacer&&(s=t.replacer.call(r,a,s)),Ze(t,e,a,!1,!1)&&(t.dump.length>1024&&(n+="? "),n+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ze(t,e,s,!1,!1)&&(l+=n+=t.dump));t.tag=h,t.dump="{"+l+"}"}function Xe(t,e,r,i){var o,a,s,n,l,h,c="",d=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();
2else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new p("sortKeys must be a boolean or a function");for(o=0,a=u.length;o<a;o+=1)h="",i&&""===c||(h+=Fe(t,e)),n=r[s=u[o]],t.replacer&&(n=t.replacer.call(r,s,n)),Ze(t,e+1,s,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=Fe(t,e)),Ze(t,e+1,n,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",c+=h+=t.dump));t.tag=d,t.dump=c||"{}"}function Ve(t,e,r){var i,o,a,s,n,l;for(a=0,s=(o=r?t.explicitTypes:t.implicitTypes).length;a<s;a+=1)if(((n=o[a]).instanceOf||n.predicate)&&(!n.instanceOf||"object"==typeof e&&e instanceof n.instanceOf)&&(!n.predicate||n.predicate(e))){if(r?n.multi&&n.representName?t.tag=n.representName(e):t.tag=n.tag:t.tag="?",n.represent){if(l=t.styleMap[n.tag]||n.defaultStyle,"[object Function]"===xe.call(n.represent))i=n.represent(e,l);else{if(!be.call(n.represent,l))throw new p("!<"+n.tag+'> tag resolver accepts not "'+l+'" style');i=n.represent[l](e,l)}t.dump=i}return!0}return!1}function Ze(t,e,r,i,o,a,s){t.tag=null,t.dump=r,Ve(t,r,!1)||Ve(t,r,!0);var n,l=xe.call(t.dump),h=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var c,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&e>0)&&(o=!1),d&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(u&&d&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(Xe(t,e,t.dump,o),d&&(t.dump="&ref_"+c+t.dump)):(Ye(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?Ue(t,e-1,t.dump,o):Ue(t,e,t.dump,o),d&&(t.dump="&ref_"+c+t.dump)):(Ge(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new p("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&ze(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(n=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),n="!"===t.tag[0]?"!"+n:"tag:yaml.org,2002:"===n.slice(0,18)?"!!"+n.slice(18):"!<"+n+">",t.dump=n+" "+t.dump)}return!0}function Qe(t,e){var r,i,o=[],a=[];for(Je(t,o,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(o[a[r]]);e.usedDuplicates=new Array(i)}function Je(t,e,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=e.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)Je(t[o],e,r);else for(o=0,a=(i=Object.keys(t)).length;o<a;o+=1)Je(t[i[o]],e,r)}function tr(t,e){var r=new Le(e=e||{});r.noRefs||Qe(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Ze(r,0,i,!0,!0)?r.dump+"\n":""}(0,i.K2)(Ke,"chooseScalarStyle"),(0,i.K2)(ze,"writeScalar"),(0,i.K2)(Pe,"blockHeader"),(0,i.K2)(We,"dropEndingNewline"),(0,i.K2)(Ne,"foldString"),(0,i.K2)(je,"foldLine"),(0,i.K2)(He,"escapeString"),(0,i.K2)(Ge,"writeFlowSequence"),(0,i.K2)(Ue,"writeBlockSequence"),(0,i.K2)(Ye,"writeFlowMapping"),(0,i.K2)(Xe,"writeBlockMapping"),(0,i.K2)(Ve,"detectType"),(0,i.K2)(Ze,"writeNode"),(0,i.K2)(Qe,"getDuplicateReferences"),(0,i.K2)(Je,"inspectNode"),(0,i.K2)(tr,"dump$1");function er(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,i.K2)(er,"renamed");var rr=X,ir=Ce.load;er("safeLoad","load"),er("safeLoadAll","loadAll"),er("safeDump","dump")},97963(t,e,r){"use strict";r.d(e,{O:()=>s,X:()=>n});var i=r(28718),o=r(17726),a=r(40797),s=(0,a.K2)(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function n(t,e){const r=t.getElementsByTagName("img");if(!r||0===r.length)return;const s=""===e.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(e=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",s){const e=(0,o.D7)().fontSize?(0,o.D7)().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[a=o.UI.fontSize]=(0,i.I5)(e),s=a*r+"px";t.style.minWidth=s,t.style.maxWidth=s}else t.style.width="100%";e(t)}(0,a.K2)(r,"setupImage"),setTimeout(()=>{t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})))}(0,a.K2)(n,"configureLabelImages")},22279(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>tr});var i=r(38342),o=r(43283),a=r(29444),s=(r(73353),r(11334),r(29092),r(97963),r(38278),r(35183)),n=r(28718),l=r(17726),h=r(40797),c=r(60513),d=r(70451),u="comm",p="rule",g="decl",f=Math.abs,y=String.fromCharCode;Object.assign;function m(t){return t.trim()}function C(t,e,r){return t.replace(e,r)}function x(t,e){return 0|t.charCodeAt(e)}function b(t,e,r){return t.slice(e,r)}function k(t){return t.length}function T(t,e){return e.push(t),t}function S(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function B(t,e,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case g:return t.return=t.return||t.value;case u:return"";case"@keyframes":return t.return=t.value+"{"+S(t.children,i)+"}";case p:if(!k(t.value=t.props.join(",")))return""}return k(r=S(t.children,i))?t.return=t.value+"{"+r+"}":""}var w=1,A=1,L=0,v=0,F=0,M="";function _(t,e,r,i,o,a,s,n){return{value:t,root:e,parent:r,type:i,props:o,children:a,line:w,column:A,length:s,return:"",siblings:n}}function E(){return F=v>0?x(M,--v):0,A--,10===F&&(A=1,w--),F}function $(){return F=v<L?x(M,v++):0,A++,10===F&&(A=1,w++),F}function O(){return x(M,v)}function I(){return v}function D(t,e){return b(M,t,e)}function q(t){switch(t){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 R(t){return w=A=1,L=k(M=t),v=0,[]}function K(t){return M="",t}function z(t){return m(D(v-1,N(91===t?t+2:40===t?t+1:t)))}function P(t){for(;(F=O())&&F<33;)$();return q(t)>2||q(F)>3?"":" "}function W(t,e){for(;--e&&$()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return D(t,I()+(e<6&&32==O()&&32==$()))}function N(t){for(;$();)switch(F){case t:return v;case 34:case 39:34!==t&&39!==t&&N(F);break;case 40:41===t&&N(t);break;case 92:$()}return v}function j(t,e){for(;$()&&t+F!==57&&(t+F!==84||47!==O()););return"/*"+D(e,v-1)+"*"+y(47===t?t:$())}function H(t){for(;!q(O());)$();return D(t,v)}function G(t){return K(U("",null,null,null,[""],t=R(t),0,[0],t))}function U(t,e,r,i,o,a,s,n,l){for(var h=0,c=0,d=s,u=0,p=0,g=0,f=1,m=1,S=1,B=0,w=0,A="",L=o,v=a,F=i,M=A;m;)switch(g=w,w=$()){case 40:108!=g&&58==x(M,d-1)?(B++,M+="("):M+=z(w);break;case 41:B--,M+=")";break;case 34:case 39:case 91:M+=z(w);break;case 9:case 10:case 13:case 32:if(B>0){M+=y(w);break}M+=P(g);break;case 92:M+=W(I()-1,7);continue;case 47:switch(O()){case 42:case 47:T(X(j($(),I()),e,r,l),l),5!=q(g||1)&&5!=q(O()||1)||!k(M)||" "===b(M,-1,void 0)||(M+=" ");break;default:M+="/"}break;case 123*f:n[h++]=k(M)*S;case 125*f:case 59:case 0:if(B>0&&w){M+=y(w);break}switch(w){case 0:case 125:m=0;case 59+c:-1==S&&(M=C(M,/\f/g,"")),p>0&&(k(M)-d||0===f)&&T(p>32?V(M+";",i,r,d-1,l):V(C(M," ","")+";",i,r,d-2,l),l);break;case 59:M+=";";default:if(T(F=Y(M,e,r,h,c,o,n,A,L=[],v=[],d,a),a),123===w)if(0===c)U(M,e,F,F,L,a,d,n,v);else{switch(u){case 99:if(110===x(M,3))break;case 108:if(97===x(M,2))break;default:c=0;case 100:case 109:case 115:}c?U(t,F,F,i&&T(Y(t,F,F,0,0,o,n,A,o,L=[],d,v),v),o,v,d,n,i?L:v):U(M,F,F,F,[""],v,0,n,v)}}h=c=p=0,f=S=1,A=M="",d=s;break;case 58:d=1+k(M),p=g;default:if(f<1)if(123==w)--f;else if(125==w&&0==f++&&125==E())continue;switch(M+=y(w),w*f){case 38:S=c>0?1:(M+="\f",-1);break;case 44:if(B>0)break;n[h++]=(k(M)-1)*S,S=1;break;
2case 64:45===O()&&(M+=z($())),u=O(),c=d=k(A=M+=H(I())),w++;break;case 45:45===g&&2==k(M)&&(f=0)}}return a}function Y(t,e,r,i,o,a,s,n,l,h,c,d){for(var u=o-1,g=0===o?a:[""],y=function(t){return t.length}(g),x=0,k=0,T=0;x<i;++x)for(var S=0,B=b(t,u+1,u=f(k=s[x])),w=t;S<y;++S)(w=m(k>0?g[S]+" "+B:C(B,/&\f/g,g[S])))&&(l[T++]=w);return _(t,e,r,0===o?p:n,l,h,c,d)}function X(t,e,r,i){return _(t,e,r,u,y(F),b(t,2,-2),0,i)}function V(t,e,r,i,o){return _(t,e,r,g,b(t,0,i),b(t,i+1,-1),i,o)}var Z=r(99418),Q=r(66401),J={id:"c4",detector:(0,h.K2)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(4552).then(r.bind(r,4552));return{id:"c4",diagram:t}},"loader")},tt="flowchart",et={id:tt,detector:(0,h.K2)((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8484).then(r.bind(r,58484));return{id:tt,diagram:t}},"loader")},rt="flowchart-v2",it={id:rt,detector:(0,h.K2)((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&("elk"===e?.flowchart?.defaultRenderer&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t)),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8484).then(r.bind(r,58484));return{id:rt,diagram:t}},"loader")},ot={id:"er",detector:(0,h.K2)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8334).then(r.bind(r,8334));return{id:"er",diagram:t}},"loader")},at="gitGraph",st={id:at,detector:(0,h.K2)(t=>/^\s*gitGraph/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(4879)]).then(r.bind(r,64879));return{id:at,diagram:t}},"loader")},nt="gantt",lt={id:nt,detector:(0,h.K2)(t=>/^\s*gantt/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(7056).then(r.bind(r,27056));return{id:nt,diagram:t}},"loader")},ht="info",ct={id:ht,detector:(0,h.K2)(t=>/^\s*info/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(2204)]).then(r.bind(r,82204));return{id:ht,diagram:t}},"loader")},dt={id:"pie",detector:(0,h.K2)(t=>/^\s*pie/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(8207)]).then(r.bind(r,48207));return{id:"pie",diagram:t}},"loader")},ut="quadrantChart",pt={id:ut,detector:(0,h.K2)(t=>/^\s*quadrantChart/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(894).then(r.bind(r,60894));return{id:ut,diagram:t}},"loader")},gt="xychart",ft={id:gt,detector:(0,h.K2)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8693).then(r.bind(r,58693));return{id:gt,diagram:t}},"loader")},yt="requirement",mt={id:yt,detector:(0,h.K2)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(674).then(r.bind(r,10674));return{id:yt,diagram:t}},"loader")},Ct="sequence",xt={id:Ct,detector:(0,h.K2)(t=>/^\s*sequenceDiagram/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(5322).then(r.bind(r,55322));return{id:Ct,diagram:t}},"loader")},bt="class",kt={id:bt,detector:(0,h.K2)((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(6401),r.e(4836)]).then(r.bind(r,34836));return{id:bt,diagram:t}},"loader")},Tt="classDiagram",St={id:Tt,detector:(0,h.K2)((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(6401),r.e(3016)]).then(r.bind(r,23016));return{id:Tt,diagram:t}},"loader")},Bt="state",wt={id:Bt,detector:(0,h.K2)((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(1169),r.e(9051),r.e(3930),r.e(4595)]).then(r.bind(r,14595));return{id:Bt,diagram:t}},"loader")},At="stateDiagram",Lt={id:At,detector:(0,h.K2)((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(3930),r.e(90)]).then(r.bind(r,20090));return{id:At,diagram:t}},"loader")},vt="journey",Ft={id:vt,detector:(0,h.K2)(t=>/^\s*journey/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8248).then(r.bind(r,78248));return{id:vt,diagram:t}},"loader")},Mt={draw:(0,h.K2)((t,e,r)=>{h.Rm.debug("rendering svg for syntax error\n");const o=(0,i.D)(e),a=o.append("g");o.attr("viewBox","0 0 2412 512"),(0,l.a$)(o,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
2164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},_t=Mt,Et={db:{},renderer:Mt,parser:{parse:(0,h.K2)(()=>{},"parse")}},$t="flowchart-elk",Ot={id:$t,detector:(0,h.K2)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8484).then(r.bind(r,58484));return{id:$t,diagram:t}},"loader")},It="timeline",Dt={id:It,detector:(0,h.K2)(t=>/^\s*timeline/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(1550).then(r.bind(r,71550));return{id:It,diagram:t}},"loader")},qt="mindmap",Rt={id:qt,detector:(0,h.K2)(t=>/^\s*mindmap/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(7407).then(r.bind(r,67407));return{id:qt,diagram:t}},"loader")},Kt="kanban",zt={id:Kt,detector:(0,h.K2)(t=>/^\s*kanban/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(4848).then(r.bind(r,34848));return{id:Kt,diagram:t}},"loader")},Pt="sankey",Wt={id:Pt,detector:(0,h.K2)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(515).then(r.bind(r,70515));return{id:Pt,diagram:t}},"loader")},Nt="packet",jt={id:Nt,detector:(0,h.K2)(t=>/^\s*packet(-beta)?/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(5211)]).then(r.bind(r,35211));return{id:Nt,diagram:t}},"loader")},Ht="radar",Gt={id:Ht,detector:(0,h.K2)(t=>/^\s*radar-beta/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(9191)]).then(r.bind(r,71572));return{id:Ht,diagram:t}},"loader")},Ut="block",Yt={id:Ut,detector:(0,h.K2)(t=>/^\s*block(-beta)?/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(1169),r.e(4121)]).then(r.bind(r,74121));return{id:Ut,diagram:t}},"loader")},Xt="treeView",Vt={id:Xt,detector:(0,h.K2)(t=>/^\s*treeView-beta/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(9943)]).then(r.bind(r,29943));return{id:Xt,diagram:t}},"loader")},Zt="architecture",Qt={id:Zt,detector:(0,h.K2)(t=>/^\s*architecture/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(165),r.e(8326)]).then(r.bind(r,28326));return{id:Zt,diagram:t}},"loader")},Jt="ishikawa",te={id:Jt,detector:(0,h.K2)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(8383).then(r.bind(r,18383));return{id:Jt,diagram:t}},"loader")},ee="venn",re={id:ee,detector:(0,h.K2)(t=>/^\s*venn-beta/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await r.e(4234).then(r.bind(r,24234));return{id:ee,diagram:t}},"loader")},ie="treemap",oe={id:ie,detector:(0,h.K2)(t=>/^\s*treemap/.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(1587)]).then(r.bind(r,91587));return{id:ie,diagram:t}},"loader")},ae="wardley-beta",se={id:ae,detector:(0,h.K2)(t=>/^\s*wardley-beta/i.test(t),"detector"),loader:(0,h.K2)(async()=>{const{diagram:t}=await Promise.all([r.e(4801),r.e(8731),r.e(3272)]).then(r.bind(r,53272));return{id:ae,diagram:t}},"loader")},ne=!1,le=(0,h.K2)(()=>{ne||(ne=!0,(0,l.Js)("error",Et,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,h.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,h.K2)(()=>{},"draw")},parser:{parse:(0,h.K2)(()=>{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:(0,h.K2)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(Ot,Rt,Qt),(0,l.Xd)(J,zt,St,kt,ot,lt,ct,dt,mt,xt,it,et,Dt,st,Lt,wt,Ft,pt,Wt,jt,ft,Yt,Vt,Gt,te,oe,re,se))},"addDiagrams"),he=(0,h.K2)(async()=>{h.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{const{diagram:t,id:i}=await r();(0,l.Js)(i,t,e)}catch(i){throw h.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],i}}}))).filter(t=>"rejected"===t.status);if(t.length>0){h.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)h.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function ce(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function de(t,e,r,i){if(void 0!==t.insert){if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,h.K2)(ce,"setA11yDiagramInfo"),(0,h.K2)(de,"addSVGa11yTitleDescription");var ue=class t{constructor(t,e,r,i,o){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=o}static{(0,h.K2)(this,"Diagram")}static async fromText(e,r={}){const i=(0,l.zj)(),o=(0,l.Ch)(e,i);e=(0,n.C4)(e)+"\n";try{(0,l.Gs)(o)}catch{const t=(0,l.J$)(o);if(!t)throw new l.C0(`Diagram ${o} not found.`);const{id:e,diagram:r}=await t();(0,l.Js)(e,r)}const{db:a,parser:s,renderer:h,init:c}=(0,l.Gs)(o);return s.parser&&(s.parser.yy=a),a.clear?.(),c?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new t(o,e,a,s,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},pe=[],ge=(0,h.K2)(()=>{pe.forEach(t=>{t()}),pe=[]},"attachFunctions"),fe=(0,h.K2)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function ye(t){const e=t.match(l.EJ);if(!e)return{text:t,metadata:{}};let r=(0,o.H)(e[1],{schema:o.r})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;
2const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}(0,h.K2)(ye,"extractFrontMatter");var me=(0,h.K2)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Ce=(0,h.K2)(t=>{const{text:e,metadata:r}=ye(t),{displayMode:i,title:o,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:o,config:a,text:e}},"processFrontmatter"),xe=(0,h.K2)(t=>{const e=n._K.detectInit(t)??{},r=n._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):"wrap"===r?.type&&(e.wrap=!0),{text:(0,n.vU)(t),directive:e}},"processDirectives");function be(t){const e=me(t),r=Ce(e),i=xe(r.text),o=(0,n.$t)(r.config,i.directive);return{code:t=fe(i.text),title:r.title,config:o}}function ke(t){const e=(new TextEncoder).encode(t),r=Array.from(e,t=>String.fromCodePoint(t)).join("");return btoa(r)}(0,h.K2)(be,"preprocessDiagram"),(0,h.K2)(ke,"toBase64");var Te=["foreignobject"],Se=["dominant-baseline"];function Be(t){const e=be(t);return(0,l.cL)(),(0,l.xA)(e.config??{}),e}async function we(t,e){le();try{const{code:e,config:r}=Be(t);return{diagramType:(await De(e)).type,config:r}}catch(r){if(e?.suppressErrors)return!1;throw r}}(0,h.K2)(Be,"processAndSetConfigs"),(0,h.K2)(we,"parse");var Ae=(0,h.K2)((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),Le=(0,h.K2)((t,e=new Map)=>{let r="";if(void 0!==t.themeCSS&&(r+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const i=(0,l.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{(0,Q.A)(t.styles)||i.forEach(e=>{r+=Ae(t.id,e,t.styles)}
2),(0,Q.A)(t.textStyles)||(r+=Ae(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return r},"createCssStyles"),ve=(0,h.K2)((t,e,r,i)=>{const o=Le(t,r);return S(G(`${i}{${(0,l.tM)(e,o,{...t.themeVariables,theme:t.theme,look:t.look},i)}}`),B)},"createUserStyles"),Fe=(0,h.K2)((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(0,n.Sm)(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Me=(0,h.K2)((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${ke(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`,"putIntoIFrame"),_e=(0,h.K2)((t,e,r,i,o)=>{const a=t.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return o&&s.attr("xmlns:xlink",o),s.append("g"),t},"appendDivSvgG");function Ee(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,h.K2)(Ee,"sandboxedIframe");var $e=(0,h.K2)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),Oe=(0,h.K2)(async function(t,e,r){le();const i=Be(e);e=i.code;const o=(0,l.zj)();h.Rm.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const a="#"+t,s="i"+t,n="#"+s,c="d"+t,u="#"+c,p=(0,h.K2)(()=>{const t=f?n:u,e=(0,d.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements");let g=(0,d.Ltv)("body");const f="sandbox"===o.securityLevel,y="loose"===o.securityLevel,m=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),f){const t=Ee((0,d.Ltv)(r),s);g=(0,d.Ltv)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,d.Ltv)(r);_e(g,t,c,`font-family: ${m}`,"http://www.w3.org/1999/xlink")}else{if($e(document,t,c,s),f){const t=Ee((0,d.Ltv)("body"),s);g=(0,d.Ltv)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,d.Ltv)("body");_e(g,t,c)}let C,x;try{C=await ue.fromText(e,{title:i.title})}catch(_){if(o.suppressErrorRendering)throw p(),_;C=await ue.fromText("error"),x=_}const b=g.select(u).node(),k=C.type,T=b.firstChild,S=T.firstChild,B=C.renderer.getClasses?.(e,C),w=ve(o,k,B,a),A=document.createElement("style");A.innerHTML=w,T.insertBefore(A,S);try{await C.renderer.draw(e,t,"11.14.0",C)}catch(E){throw o.suppressErrorRendering?p():_t.draw(e,t,"11.14.0"),E}const L=g.select(`${u} svg`),v=C.db.getAccTitle?.(),F=C.db.getAccDescription?.();qe(k,L,v,F),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let M=g.select(u).node().innerHTML;if(h.Rm.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),M=Fe(M,f,(0,l._3)(o.arrowMarkerAbsolute)),f){const t=g.select(u+" svg").node();M=Me(M,t)}else y||(M=Z.A.sanitize(M,{ADD_TAGS:Te,ADD_ATTR:Se,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ge(),x)throw x;return p(),{diagramType:k,svg:M,bindFunctions:C.db.bindFunctions}},"render");function Ie(t={}){const e=(0,l.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,l.wZ)(e),e?.theme&&e.theme in l.H$?e.themeVariables=l.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=l.H$.default.getThemeVariables(e.themeVariables));const r="object"==typeof e?(0,l.UU)(e):(0,l.Q2)();(0,h.He)(r.logLevel),le()}(0,h.K2)(Ie,"initialize");var De=(0,h.K2)((t,e={})=>{const{code:r}=be(t);return ue.fromText(r,e)},"getDiagramFromText");function qe(t,e,r,i){ce(e,t),de(e,r,i,e.attr("id"))}(0,h.K2)(qe,"addA11yInfo");var Re=Object.freeze({render:Oe,parse:we,getDiagramFromText:De,initialize:Ie,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,h.K2)(()=>{(0,l.cL)()},"reset"),globalReset:(0,h.K2)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,h.He)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var Ke=(0,h.K2)((t,e,r)=>{h.Rm.warn(t),(0,n.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),ze=(0,h.K2)(async function(t={querySelector:".mermaid"}){try{await Pe(t)}catch(e){if((0,n.dq)(e)&&h.Rm.error(e.str),Je.parseError&&Je.parseError(e),!t.suppressErrors)throw h.Rm.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Pe=(0,h.K2)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=Re.getConfig();let o;if(h.Rm.debug((t?"":"No ")+"Callback function found"),r)o=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");o=document.querySelectorAll(e)}h.Rm.debug(`Found ${o.length} diagrams`),void 0!==i?.startOnLoad&&(h.Rm.debug("Start On Load: "+i?.startOnLoad),Re.updateSiteConfig({startOnLoad:i?.startOnLoad}
2));const a=new n._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const l=[];for(const u of Array.from(o)){if(h.Rm.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;s=u.innerHTML,s=(0,c.T)(n._K.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=n._K.detectInit(s);r&&h.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:i}=await Ze(e,s,u);u.innerHTML=r,t&&await t(e),i&&i(u)}catch(d){Ke(d,l,Je.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),We=(0,h.K2)(function(t){Re.initialize(t)},"initialize"),Ne=(0,h.K2)(async function(t,e,r){h.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&We(t);const i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await ze(i)},"init"),je=(0,h.K2)(async(t,{lazyLoad:e=!0}={})=>{le(),(0,l.Xd)(...t),!1===e&&await he()},"registerExternalDiagrams"),He=(0,h.K2)(function(){if(Je.startOnLoad){const{startOnLoad:t}=Re.getConfig();t&&Je.run().catch(t=>h.Rm.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",He,!1);var Ge=(0,h.K2)(function(t){Je.parseError=t},"setParseErrorHandler"),Ue=[],Ye=!1,Xe=(0,h.K2)(async()=>{if(!Ye){for(Ye=!0;Ue.length>0;){const e=Ue.shift();if(e)try{await e()}catch(t){h.Rm.error("Error executing queue",t)}}Ye=!1}},"executeQueue"),Ve=(0,h.K2)(async(t,e)=>new Promise((r,i)=>{const o=(0,h.K2)(()=>new Promise((o,a)=>{Re.parse(t,e).then(t=>{o(t),r(t)},t=>{h.Rm.error("Error parsing",t),Je.parseError?.(t),a(t),i(t)})}),"performCall");Ue.push(o),Xe().catch(i)}),"parse"),Ze=(0,h.K2)((t,e,r)=>new Promise((i,o)=>{const a=(0,h.K2)(()=>new Promise((a,s)=>{Re.render(t,e,r).then(t=>{a(t),i(t)},t=>{h.Rm.error("Error parsing",t),Je.parseError?.(t),s(t),o(t)})}),"performCall");Ue.push(a),Xe().catch(o)}),"render"),Qe=(0,h.K2)(()=>Object.keys(l.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),Je={startOnLoad:!0,mermaidAPI:Re,parse:Ve,render:Ze,init:Ne,run:ze,registerExternalDiagrams:je,registerLayoutLoaders:a.sO,initialize:We,parseError:void 0,contentLoaded:He,setParseErrorHandler:Ge,detectType:l.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:Qe},tr=Je}}]);
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.