@softistx/pulsarix-widget 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/dist/chunks/abnfDiagram-XWFEHMT6.jcqkp43e.js +1 -0
- package/dist/chunks/architecture-WOLXFQ4H.6qa86taq.js +1 -0
- package/dist/chunks/architectureDiagram-CSQXQB3N.pk9dxdfb.js +36 -0
- package/dist/chunks/blockDiagram-BEDRHYPZ.ehefn7dt.js +140 -0
- package/dist/chunks/bpmnIcons-APHXDYXF.whh96nc8.js +1 -0
- package/dist/chunks/c4Diagram-M2UUVUY5.knj3as6x.js +38 -0
- package/dist/chunks/chat-markdown-DLDNLXM9.tvekh9sm.js +301 -0
- package/dist/chunks/classDiagram-v2-KXABOMEV.vtb7vjzn.js +217 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.gb18dr42.js +1 -0
- package/dist/chunks/cynefin-EF2NZ3EQ.e86yfa9w.js +1 -0
- package/dist/chunks/cynefinDiagram-NJNITYFG.akmr90zk.js +62 -0
- package/dist/chunks/dagre-KIHZ2IZ3.7n7s7vq2.js +4 -0
- package/dist/chunks/diagram-7YQZDPLS.d3sdv0py.js +41 -0
- package/dist/chunks/diagram-QBROCOUO.2v08zs42.js +200 -0
- package/dist/chunks/diagram-RJJCUUZO.tpnwa621.js +30 -0
- package/dist/chunks/diagram-WERXNKYE.hz7tgbtr.js +24 -0
- package/dist/chunks/diagram-YHHI257C.9gge9ecb.js +3 -0
- package/dist/chunks/diagram-YR4HJLHV.bajpx75b.js +24 -0
- package/dist/chunks/ebnfDiagram-N527522P.hxbbq671.js +1 -0
- package/dist/chunks/editor-shortcuts-dialog-I77EAez1.0s00eh53.js +1 -0
- package/dist/chunks/editor.h5bxwyxn.js +4 -0
- package/dist/chunks/elk-O5DQBFGD.vy7cdqps.js +27 -0
- package/dist/chunks/emoji-picker-BofyuTmK.qf287fk6.js +4 -0
- package/dist/chunks/erDiagram-K3K3BIDK.kzs3v0ts.js +99 -0
- package/dist/chunks/eventmodeling-K75KTNOO.9yb5zf47.js +1 -0
- package/dist/chunks/flow-diagram-OPO1ep57.5006stqg.js +7 -0
- package/dist/chunks/flowDiagram-Z6JWZHQI.zf0kndsp.js +1 -0
- package/dist/chunks/ganttDiagram-3PRQTZWP.qkcp8pvg.js +292 -0
- package/dist/chunks/gitGraph-VSP46ZUC.txpj8e6d.js +1 -0
- package/dist/chunks/gitGraphDiagram-VXDFKS5L.ry9dejxm.js +106 -0
- package/dist/chunks/grid-E2QIVN74.q51enfx7.js +1 -0
- package/dist/chunks/illustration-BoOzuxNg.h0gnxa4s.js +1 -0
- package/dist/chunks/index.0hrfbrja.js +44 -0
- package/dist/chunks/index.153rcscj.js +2 -0
- package/dist/chunks/index.20dvswea.js +2 -0
- package/dist/chunks/index.23p1k2rx.js +2 -0
- package/dist/chunks/index.3k4gyba0.js +2 -0
- package/dist/chunks/index.51yk4ene.js +2 -0
- package/dist/chunks/index.9zhger75.js +142 -0
- package/dist/chunks/index.bfeafb22.js +1 -0
- package/dist/chunks/index.cf9nd6xy.js +2 -0
- package/dist/chunks/index.eec12m3n.js +16 -0
- package/dist/chunks/index.fab58nn0.js +2 -0
- package/dist/chunks/index.fgsp5qqn.js +303 -0
- package/dist/chunks/index.fv9af3wd.js +333 -0
- package/dist/chunks/index.fvh2m60c.js +2 -0
- package/dist/chunks/index.gqa9s37g.js +2 -0
- package/dist/chunks/index.h6120080.js +2 -0
- package/dist/chunks/index.q9dsw4bt.js +2 -0
- package/dist/chunks/index.vnhefjwh.js +2 -0
- package/dist/chunks/index.x163xe9c.js +89 -0
- package/dist/chunks/index.x1xqs5m5.js +214 -0
- package/dist/chunks/index.yf0h5qnv.js +2 -0
- package/dist/chunks/info-OHQRW6UA.xea9bh7d.js +1 -0
- package/dist/chunks/infoDiagram-EZ3ZOAHP.r2yygqw8.js +2 -0
- package/dist/chunks/ishikawaDiagram-S3EKX5GW.gwqtdvb2.js +70 -0
- package/dist/chunks/journeyDiagram-POQNLL5X.rp31qkq5.js +139 -0
- package/dist/chunks/kanban-definition-BH5XI6FM.ymsqx6en.js +89 -0
- package/dist/chunks/katex.n08hp8fc.js +257 -0
- package/dist/chunks/markup-color-chrome-ykGNUl8y.06cy435c.js +1 -0
- package/dist/chunks/markup-custom-color-C8Xc6JxB.an2wngns.js +1 -0
- package/dist/chunks/mention-list-Dhq70jL5.1k61f24q.js +1 -0
- package/dist/chunks/mermaid.core.x45crg0h.js +12 -0
- package/dist/chunks/mindmap-definition-WVAN44T4.5cbd4rg2.js +98 -0
- package/dist/chunks/packet-JDAUHWVQ.c7dmae11.js +1 -0
- package/dist/chunks/panel.rzp4q8s3.js +7 -0
- package/dist/chunks/pegDiagram-D4NLKWP3.fsryts4r.js +1 -0
- package/dist/chunks/pie-XZMESJXO.6rv4kzjx.js +1 -0
- package/dist/chunks/pieDiagram-36ENHN4W.k4k2gvg0.js +39 -0
- package/dist/chunks/plated-illustration-BzxADkoZ.wtc9psry.js +1 -0
- package/dist/chunks/quadrantDiagram-ZQUDMS73.j7nj12w0.js +7 -0
- package/dist/chunks/radar-ABXABTNO.58dfc8ba.js +1 -0
- package/dist/chunks/railroad-I3PHUGI6.00fqbahv.js +1 -0
- package/dist/chunks/railroad-abnf-LNEFI6M7.gt1x50q5.js +1 -0
- package/dist/chunks/railroad-ebnf-DWYD2UWJ.qr5qfkga.js +1 -0
- package/dist/chunks/railroad-peg-JR7BVNR7.m61rq7hj.js +1 -0
- package/dist/chunks/railroadDiagram-JIZHGYPL.a681wt3b.js +1 -0
- package/dist/chunks/render-VIF2ZAQL.rn9hpsbx.js +1 -0
- package/dist/chunks/requirementDiagram-AXW2TVFA.shapgy39.js +84 -0
- package/dist/chunks/sankeyDiagram-FBCJTAIF.2syz1e2b.js +40 -0
- package/dist/chunks/sequenceDiagram-3LA2ROMG.jq1w12a6.js +169 -0
- package/dist/chunks/sizeCapture-2Q2CQKSF.jtv53a6j.js +1 -0
- package/dist/chunks/stateDiagram-v2-ATKHQDJO.x0g2rngz.js +291 -0
- package/dist/chunks/swimlanes-YQL5WMAO.j7j7c6ex.js +1 -0
- package/dist/chunks/swimlanesDiagram-UCCPES4V.tzqcsrmd.js +8 -0
- package/dist/chunks/timeline-definition-7Z437IG3.s5bvn8dr.js +120 -0
- package/dist/chunks/treeView-D4JQ5SDB.0x1grm2t.js +1 -0
- package/dist/chunks/treemap-SAJKECNS.1te19jsm.js +1 -0
- package/dist/chunks/usecaseDiagram-RDK6N6HP.9k4r423e.js +370 -0
- package/dist/chunks/vennDiagram-SHRQU5PJ.82q5dzm6.js +34 -0
- package/dist/chunks/wardley-7MLQ67FV.zp6gykk3.js +1 -0
- package/dist/chunks/wardleyDiagram-F3OXNVQS.fm4tw2nc.js +78 -0
- package/dist/chunks/xychartDiagram-GDYJKCDI.57vqn2zd.js +7 -0
- package/dist/index.js +23 -4695
- package/docs/integration.md +146 -33
- package/package.json +7 -6
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import{Fe,Ke,_}from"./index.0hrfbrja.js";var Qi=Ke(function($l,Dl){(function(r,t){typeof $l=="object"&&typeof Dl<"u"?Dl.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=t()})($l,function(){var r=1000,t=60000,i=3600000,s="millisecond",o="second",a="minute",c="hour",l="day",d="week",x="month",f="quarter",b="year",T="date",w="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(xt){var et=["th","st","nd","rd"],ot=xt%100;return"["+xt+(et[(ot-20)%10]||et[ot]||et[0])+"]"}},W=function(xt,et,ot){var bt=String(xt);return!bt||bt.length>=et?xt:""+Array(et+1-bt.length).join(ot)+xt},H={s:W,z:function(xt){var et=-xt.utcOffset(),ot=Math.abs(et),bt=Math.floor(ot/60),it=ot%60;return(et<=0?"+":"-")+W(bt,2,"0")+":"+W(it,2,"0")},m:function xt(et,ot){if(et.date()<ot.date())return-xt(ot,et);var bt=12*(ot.year()-et.year())+(ot.month()-et.month()),it=et.clone().add(bt,x),Lt=ot-it<0,Et=et.clone().add(bt+(Lt?-1:1),x);return+(-(bt+(ot-it)/(Lt?it-Et:Et-it))||0)},a:function(xt){return xt<0?Math.ceil(xt)||0:Math.floor(xt)},p:function(xt){return{M:x,y:b,w:d,d:l,D:T,h:c,m:a,s:o,ms:s,Q:f}[xt]||String(xt||"").toLowerCase().replace(/s$/,"")},u:function(xt){return xt===void 0}},V="en",Q={};Q[V]=P;var J="$isDayjsObject",st=function(xt){return xt instanceof wt||!(!xt||!xt[J])},lt=function xt(et,ot,bt){var it;if(!et)return V;if(typeof et=="string"){var Lt=et.toLowerCase();Q[Lt]&&(it=Lt),ot&&(Q[Lt]=ot,it=Lt);var Et=et.split("-");if(!it&&Et.length>1)return xt(Et[0])}else{var yt=et.name;Q[yt]=et,it=yt}return!bt&&it&&(V=it),it||!bt&&V},pt=function(xt,et){if(st(xt))return xt.clone();var ot=typeof et=="object"?et:{};return ot.date=xt,ot.args=arguments,new wt(ot)},ft=H;ft.l=lt,ft.i=st,ft.w=function(xt,et){return pt(xt,{locale:et.$L,utc:et.$u,x:et.$x,$offset:et.$offset})};var wt=function(){function xt(ot){this.$L=lt(ot.locale,null,!0),this.parse(ot),this.$x=this.$x||ot.x||{},this[J]=!0}var et=xt.prototype;return et.parse=function(ot){this.$d=function(bt){var{date:it,utc:Lt}=bt;if(it===null)return new Date(NaN);if(ft.u(it))return new Date;if(it instanceof Date)return new Date(it);if(typeof it=="string"&&!/Z$/i.test(it)){var Et=it.match(v);if(Et){var yt=Et[2]-1||0,qt=(Et[7]||"0").substring(0,3);return Lt?new Date(Date.UTC(Et[1],yt,Et[3]||1,Et[4]||0,Et[5]||0,Et[6]||0,qt)):new Date(Et[1],yt,Et[3]||1,Et[4]||0,Et[5]||0,Et[6]||0,qt)}}return new Date(it)}(ot),this.init()},et.init=function(){var ot=this.$d;this.$y=ot.getFullYear(),this.$M=ot.getMonth(),this.$D=ot.getDate(),this.$W=ot.getDay(),this.$H=ot.getHours(),this.$m=ot.getMinutes(),this.$s=ot.getSeconds(),this.$ms=ot.getMilliseconds()},et.$utils=function(){return ft},et.isValid=function(){return this.$d.toString()!==w},et.isSame=function(ot,bt){var it=pt(ot);return this.startOf(bt)<=it&&it<=this.endOf(bt)},et.isAfter=function(ot,bt){return pt(ot)<this.startOf(bt)},et.isBefore=function(ot,bt){return this.endOf(bt)<pt(ot)},et.$g=function(ot,bt,it){return ft.u(ot)?this[bt]:this.set(it,ot)},et.unix=function(){return Math.floor(this.valueOf()/1000)},et.valueOf=function(){return this.$d.getTime()},et.startOf=function(ot,bt){var it=this,Lt=!!ft.u(bt)||bt,Et=ft.p(ot),yt=function(te,ee){var de=ft.w(it.$u?Date.UTC(it.$y,ee,te):new Date(it.$y,ee,te),it);return Lt?de:de.endOf(l)},qt=function(te,ee){return ft.w(it.toDate()[te].apply(it.toDate("s"),(Lt?[0,0,0,0]:[23,59,59,999]).slice(ee)),it)},Wt=this.$W,Xt=this.$M,oe=this.$D,ne="set"+(this.$u?"UTC":"");switch(Et){case b:return Lt?yt(1,0):yt(31,11);case x:return Lt?yt(1,Xt):yt(0,Xt+1);case d:var Kt=this.$locale().weekStart||0,zt=(Wt<Kt?Wt+7:Wt)-Kt;return yt(Lt?oe-zt:oe+(6-zt),Xt);case l:case T:return qt(ne+"Hours",0);case c:return qt(ne+"Minutes",1);case a:return qt(ne+"Seconds",2);case o:return qt(ne+"Milliseconds",3);default:return this.clone()}},et.endOf=function(ot){return this.startOf(ot,!1)},et.$set=function(ot,bt){var it,Lt=ft.p(ot),Et="set"+(this.$u?"UTC":""),yt=(it={},it[l]=Et+"Date",it[T]=Et+"Date",it[x]=Et+"Month",it[b]=Et+"FullYear",it[c]=Et+"Hours",it[a]=Et+"Minutes",it[o]=Et+"Seconds",it[s]=Et+"Milliseconds",it)[Lt],qt=Lt===l?this.$D+(bt-this.$W):bt;if(Lt===x||Lt===b){var Wt=this.clone().set(T,1);Wt.$d[yt](qt),Wt.init(),this.$d=Wt.set(T,Math.min(this.$D,Wt.daysInMonth())).$d}else yt&&this.$d[yt](qt);return this.init(),this},et.set=function(ot,bt){return this.clone().$set(ot,bt)},et.get=function(ot){return this[ft.p(ot)]()},et.add=function(ot,bt){var it,Lt=this;ot=Number(ot);var Et=ft.p(bt),yt=function(Xt){var oe=pt(Lt);return ft.w(oe.date(oe.date()+Math.round(Xt*ot)),Lt)};if(Et===x)return this.set(x,this.$M+ot);if(Et===b)return this.set(b,this.$y+ot);if(Et===l)return yt(1);if(Et===d)return yt(7);var qt=(it={},it[a]=t,it[c]=i,it[o]=r,it)[Et]||1,Wt=this.$d.getTime()+ot*qt;return ft.w(Wt,this)},et.subtract=function(ot,bt){return this.add(-1*ot,bt)},et.format=function(ot){var bt=this,it=this.$locale();if(!this.isValid())return it.invalidDate||w;var Lt=ot||"YYYY-MM-DDTHH:mm:ssZ",Et=ft.z(this),yt=this.$H,qt=this.$m,Wt=this.$M,{weekdays:Xt,months:oe,meridiem:ne}=it,Kt=function(ee,de,me,Te){return ee&&(ee[de]||ee(bt,Lt))||me[de].slice(0,Te)},zt=function(ee){return ft.s(yt%12||12,ee,"0")},te=ne||function(ee,de,me){var Te=ee<12?"AM":"PM";return me?Te.toLowerCase():Te};return Lt.replace(E,function(ee,de){return de||function(me){switch(me){case"YY":return String(bt.$y).slice(-2);case"YYYY":return ft.s(bt.$y,4,"0");case"M":return Wt+1;case"MM":return ft.s(Wt+1,2,"0");case"MMM":return Kt(it.monthsShort,Wt,oe,3);case"MMMM":return Kt(oe,Wt);case"D":return bt.$D;case"DD":return ft.s(bt.$D,2,"0");case"d":return String(bt.$W);case"dd":return Kt(it.weekdaysMin,bt.$W,Xt,2);case"ddd":return Kt(it.weekdaysShort,bt.$W,Xt,3);case"dddd":return Xt[bt.$W];case"H":return String(yt);case"HH":return ft.s(yt,2,"0");case"h":return zt(1);case"hh":return zt(2);case"a":return te(yt,qt,!0);case"A":return te(yt,qt,!1);case"m":return String(qt);case"mm":return ft.s(qt,2,"0");case"s":return String(bt.$s);case"ss":return ft.s(bt.$s,2,"0");case"SSS":return ft.s(bt.$ms,3,"0");case"Z":return Et}return null}(ee)||Et.replace(":","")})},et.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},et.diff=function(ot,bt,it){var Lt,Et=this,yt=ft.p(bt),qt=pt(ot),Wt=(qt.utcOffset()-this.utcOffset())*t,Xt=this-qt,oe=function(){return ft.m(Et,qt)};switch(yt){case b:Lt=oe()/12;break;case x:Lt=oe();break;case f:Lt=oe()/3;break;case d:Lt=(Xt-Wt)/604800000;break;case l:Lt=(Xt-Wt)/86400000;break;case c:Lt=Xt/i;break;case a:Lt=Xt/t;break;case o:Lt=Xt/r;break;default:Lt=Xt}return it?Lt:ft.a(Lt)},et.daysInMonth=function(){return this.endOf(x).$D},et.$locale=function(){return Q[this.$L]},et.locale=function(ot,bt){if(!ot)return this.$L;var it=this.clone(),Lt=lt(ot,bt,!0);return Lt&&(it.$L=Lt),it},et.clone=function(){return ft.w(this.$d,this)},et.toDate=function(){return new Date(this.valueOf())},et.toJSON=function(){return this.isValid()?this.toISOString():null},et.toISOString=function(){return this.$d.toISOString()},et.toString=function(){return this.$d.toUTCString()},xt}(),_t=wt.prototype;return pt.prototype=_t,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",l],["$M",x],["$y",b],["$D",T]].forEach(function(xt){_t[xt[1]]=function(et){return this.$g(et,xt[0],xt[1])}}),pt.extend=function(xt,et){return xt.$i||(xt(et,wt,pt),xt.$i=!0),pt},pt.locale=lt,pt.isDayjs=st,pt.unix=function(xt){return pt(1000*xt)},pt.en=Q[V],pt.Ls=Q,pt.p={},pt})});var tf=Ke(function(Qp){Object.defineProperty(Qp,"__esModule",{value:!0});Qp.BLANK_URL=Qp.relativeFirstCharacters=Qp.whitespaceEscapeCharsRegex=Qp.urlSchemeRegex=Qp.ctrlCharactersRegex=Qp.htmlCtrlEntityRegex=Qp.htmlEntitiesRegex=Qp.invalidProtocolRegex=void 0;Qp.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Qp.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Qp.htmlCtrlEntityRegex=/&(newline|tab);/gi;Qp.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Qp.urlSchemeRegex=/^.+(:|:)/gim;Qp.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Qp.relativeFirstCharacters=[".","/"];Qp.BLANK_URL="about:blank"});var pn=Ke(function(rf){Object.defineProperty(rf,"__esModule",{value:!0});rf.sanitizeUrl=m1;var xr=tf();function p1(r){return xr.relativeFirstCharacters.indexOf(r[0])>-1}function f1(r){var t=r.replace(xr.ctrlCharactersRegex,"");return t.replace(xr.htmlEntitiesRegex,function(i,s){return String.fromCharCode(s)})}function g1(r){return URL.canParse(r)}function ef(r){try{return decodeURIComponent(r)}catch(t){return r}}function m1(r){if(!r)return xr.BLANK_URL;var t,i=ef(r.trim());do i=f1(i).replace(xr.htmlCtrlEntityRegex,"").replace(xr.ctrlCharactersRegex,"").replace(xr.whitespaceEscapeCharsRegex,"").trim(),i=ef(i),t=i.match(xr.ctrlCharactersRegex)||i.match(xr.htmlEntitiesRegex)||i.match(xr.htmlCtrlEntityRegex)||i.match(xr.whitespaceEscapeCharsRegex);while(t&&t.length>0);var s=i;if(!s)return xr.BLANK_URL;if(p1(s))return s;var o=s.trimStart(),a=o.match(xr.urlSchemeRegex);if(!a)return s;var c=a[0].toLowerCase().trim();if(xr.invalidProtocolRegex.test(c))return xr.BLANK_URL;var l=o.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return l;if(c==="http:"||c==="https:"){if(!g1(l))return xr.BLANK_URL;var d=new URL(l);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return l}});var Bu=Object.defineProperty,e=(r,t)=>Bu(r,"name",{value:t,configurable:!0}),dr=(r,t)=>{for(var i in t)Bu(r,i,{get:t[i],enumerable:!0})};var _u=Fe(Qi(),1),xi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},n={trace:e((...r)=>{},"trace"),debug:e((...r)=>{},"debug"),info:e((...r)=>{},"info"),warn:e((...r)=>{},"warn"),error:e((...r)=>{},"error"),fatal:e((...r)=>{},"fatal")},Sa=e(function(r="fatal"){let t=xi.fatal;if(typeof r==="string"){if(r.toLowerCase()in xi)t=xi[r]}else if(typeof r==="number")t=r;if(n.trace=()=>{},n.debug=()=>{},n.info=()=>{},n.warn=()=>{},n.error=()=>{},n.fatal=()=>{},t<=xi.fatal)n.fatal=console.error?console.error.bind(console,Hr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Hr("FATAL"));if(t<=xi.error)n.error=console.error?console.error.bind(console,Hr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Hr("ERROR"));if(t<=xi.warn)n.warn=console.warn?console.warn.bind(console,Hr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Hr("WARN"));if(t<=xi.info)n.info=console.info?console.info.bind(console,Hr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Hr("INFO"));if(t<=xi.debug)n.debug=console.debug?console.debug.bind(console,Hr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Hr("DEBUG"));if(t<=xi.trace)n.trace=console.debug?console.debug.bind(console,Hr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Hr("TRACE"))},"setLogLevel"),Hr=e((r)=>`%c${_u.default().format("ss.SSS")} : ${r} : `,"format");var xa={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:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let t=r/255;return r>0.03928?Math.pow((t+0.055)/1.055,2.4):t/12.92},hue2rgb:(r,t,i)=>{if(i<0)i+=1;if(i>1)i-=1;if(i<0.16666666666666666)return r+(t-r)*6*i;if(i<0.5)return t;if(i<0.6666666666666666)return r+(t-r)*(0.6666666666666666-i)*6;return r},hsl2rgb:({h:r,s:t,l:i},s)=>{if(!t)return i*2.55;r/=360,t/=100,i/=100;let o=i<0.5?i*(1+t):i+t-i*t,a=2*i-o;switch(s){case"r":return xa.hue2rgb(a,o,r+0.3333333333333333)*255;case"g":return xa.hue2rgb(a,o,r)*255;case"b":return xa.hue2rgb(a,o,r-0.3333333333333333)*255}},rgb2hsl:({r,g:t,b:i},s)=>{r/=255,t/=255,i/=255;let o=Math.max(r,t,i),a=Math.min(r,t,i),c=(o+a)/2;if(s==="l")return c*100;if(o===a)return 0;let l=o-a,d=c>0.5?l/(2-o-a):l/(o+a);if(s==="s")return d*100;switch(o){case r:return((t-i)/l+(t<i?6:0))*60;case t:return((i-r)/l+2)*60;case i:return((r-t)/l+4)*60;default:return-1}}},vu=xa;var zx={clamp:(r,t,i)=>{if(t>i)return Math.min(t,Math.max(i,r));return Math.min(i,Math.max(t,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Lu=zx;var Hx={dec2hex:(r)=>{let t=Math.round(r).toString(16);return t.length>1?t:`0${t}`}},Au=Hx;var Yx={channel:vu,lang:Lu,unit:Au},ce=Yx;var Ci={};for(let r=0;r<=255;r++)Ci[r]=ce.unit.dec2hex(r);var er={ALL:0,RGB:1,HSL:2};class Fu{constructor(){this.type=er.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=er.ALL}is(r){return this.type===r}}var Mu=Fu;class Eu{constructor(r,t){this.color=t,this.changed=!1,this.data=r,this.type=new Mu}set(r,t){return this.color=t,this.changed=!1,this.data=r,this.type.type=er.ALL,this}_ensureHSL(){let r=this.data,{h:t,s:i,l:s}=r;if(t===void 0)r.h=ce.channel.rgb2hsl(r,"h");if(i===void 0)r.s=ce.channel.rgb2hsl(r,"s");if(s===void 0)r.l=ce.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:t,g:i,b:s}=r;if(t===void 0)r.r=ce.channel.hsl2rgb(r,"r");if(i===void 0)r.g=ce.channel.hsl2rgb(r,"g");if(s===void 0)r.b=ce.channel.hsl2rgb(r,"b")}get r(){let r=this.data,t=r.r;if(!this.type.is(er.HSL)&&t!==void 0)return t;return this._ensureHSL(),ce.channel.hsl2rgb(r,"r")}get g(){let r=this.data,t=r.g;if(!this.type.is(er.HSL)&&t!==void 0)return t;return this._ensureHSL(),ce.channel.hsl2rgb(r,"g")}get b(){let r=this.data,t=r.b;if(!this.type.is(er.HSL)&&t!==void 0)return t;return this._ensureHSL(),ce.channel.hsl2rgb(r,"b")}get h(){let r=this.data,t=r.h;if(!this.type.is(er.RGB)&&t!==void 0)return t;return this._ensureRGB(),ce.channel.rgb2hsl(r,"h")}get s(){let r=this.data,t=r.s;if(!this.type.is(er.RGB)&&t!==void 0)return t;return this._ensureRGB(),ce.channel.rgb2hsl(r,"s")}get l(){let r=this.data,t=r.l;if(!this.type.is(er.RGB)&&t!==void 0)return t;return this._ensureRGB(),ce.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(er.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(er.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(er.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(er.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(er.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(er.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Ou=Eu;var Ux=new Ou({r:0,g:0,b:0,a:0},"transparent"),$i=Ux;var Iu={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let t=r.match(Iu.re);if(!t)return;let i=t[1],s=parseInt(i,16),o=i.length,a=o%4===0,c=o>4,l=c?1:17,d=c?8:4,x=a?0:-1,f=c?255:15;return $i.set({r:(s>>d*(x+3)&f)*l,g:(s>>d*(x+2)&f)*l,b:(s>>d*(x+1)&f)*l,a:a?(s&f)*l/255:1},r)},stringify:(r)=>{let{r:t,g:i,b:s,a:o}=r;if(o<1)return`#${Ci[Math.round(t)]}${Ci[Math.round(i)]}${Ci[Math.round(s)]}${Ci[Math.round(o*255)]}`;else return`#${Ci[Math.round(t)]}${Ci[Math.round(i)]}${Ci[Math.round(s)]}`}},Hi=Iu;var Ca={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:(r)=>{let t=r.match(Ca.hueRe);if(t){let[,i,s]=t;switch(s){case"grad":return ce.channel.clamp.h(parseFloat(i)*0.9);case"rad":return ce.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return ce.channel.clamp.h(parseFloat(i)*360)}}return ce.channel.clamp.h(parseFloat(r))},parse:(r)=>{let t=r.charCodeAt(0);if(t!==104&&t!==72)return;let i=r.match(Ca.re);if(!i)return;let[,s,o,a,c,l]=i;return $i.set({h:Ca._hue2deg(s),s:ce.channel.clamp.s(parseFloat(o)),l:ce.channel.clamp.l(parseFloat(a)),a:c?ce.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:t,s:i,l:s,a:o}=r;if(o<1)return`hsla(${ce.lang.round(t)}, ${ce.lang.round(i)}%, ${ce.lang.round(s)}%, ${o})`;else return`hsl(${ce.lang.round(t)}, ${ce.lang.round(i)}%, ${ce.lang.round(s)}%)`}},ls=Ca;var ba={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let t=ba.colors[r];if(!t)return;return Hi.parse(t)},stringify:(r)=>{let t=Hi.stringify(r);for(let i in ba.colors)if(ba.colors[i]===t)return i;return}},Pl=ba;var $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:(r)=>{let t=r.charCodeAt(0);if(t!==114&&t!==82)return;let i=r.match($u.re);if(!i)return;let[,s,o,a,c,l,d,x,f]=i;return $i.set({r:ce.channel.clamp.r(o?parseFloat(s)*2.55:parseFloat(s)),g:ce.channel.clamp.g(c?parseFloat(a)*2.55:parseFloat(a)),b:ce.channel.clamp.b(d?parseFloat(l)*2.55:parseFloat(l)),a:x?ce.channel.clamp.a(f?parseFloat(x)/100:parseFloat(x)):1},r)},stringify:(r)=>{let{r:t,g:i,b:s,a:o}=r;if(o<1)return`rgba(${ce.lang.round(t)}, ${ce.lang.round(i)}, ${ce.lang.round(s)}, ${ce.lang.round(o)})`;else return`rgb(${ce.lang.round(t)}, ${ce.lang.round(i)}, ${ce.lang.round(s)})`}},cs=$u;var jx={format:{keyword:Pl,hex:Hi,rgb:cs,rgba:cs,hsl:ls,hsla:ls},parse:(r)=>{if(typeof r!=="string")return r;let t=Hi.parse(r)||cs.parse(r)||ls.parse(r)||Pl.parse(r);if(t)return t;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(er.HSL)||r.data.r===void 0)return ls.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return cs.stringify(r);else return Hi.stringify(r)}},rr=jx;var Gx=(r,t)=>{let i=rr.parse(r);for(let s in t)i[s]=ce.channel.clamp[s](t[s]);return rr.stringify(i)},ka=Gx;var Xx=(r,t,i=0,s=1)=>{if(typeof r!=="number")return ka(r,{a:t});let o=$i.set({r:ce.channel.clamp.r(r),g:ce.channel.clamp.g(t),b:ce.channel.clamp.b(i),a:ce.channel.clamp.a(s)});return rr.stringify(o)},be=Xx;var Vx=(r,t)=>ce.lang.round(rr.parse(r)[t]),gt=Vx;var Kx=(r)=>{let{r:t,g:i,b:s}=rr.parse(r),o=0.2126*ce.channel.toLinear(t)+0.7152*ce.channel.toLinear(i)+0.0722*ce.channel.toLinear(s);return ce.lang.round(o)},Du=Kx;var Zx=(r)=>Du(r)>=0.5,Pu=Zx;var Qx=(r)=>!Pu(r),ae=Qx;var Jx=(r,t,i)=>{let s=rr.parse(r),o=s[t],a=ce.channel.clamp[t](o+i);if(o!==a)s[t]=a;return rr.stringify(s)},Qn=Jx;var t0=(r,t)=>Qn(r,"l",t),h=t0;var e0=(r,t)=>Qn(r,"l",-t),p=e0;var r0=(r,t)=>{let i=rr.parse(r),s={};for(let o in t){if(!t[o])continue;s[o]=i[o]+t[o]}return ka(r,s)},X=r0;var i0=(r,t,i=50)=>{let{r:s,g:o,b:a,a:c}=rr.parse(r),{r:l,g:d,b:x,a:f}=rr.parse(t),b=i/100,T=b*2-1,w=c-f,E=((T*w===-1?T:(T+w)/(1+T*w))+1)/2,P=1-E,W=s*E+l*P,H=o*E+d*P,V=a*E+x*P,Q=c*b+f*(1-b);return be(W,H,V,Q)},Ru=i0;var o0=(r,t=100)=>{let i=rr.parse(r);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Ru(i,r,t)},ht=o0;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function s0(r,t){this.v=r,this.k=t}function Nu(r,t){(t==null||t>r.length)&&(t=r.length);for(var i=0,s=Array(t);i<t;i++)s[i]=r[i];return s}function a0(r){if(Array.isArray(r))return r}function n0(r,t){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var s,o,a,c,l=[],d=!0,x=!1;try{if(a=(i=i.call(r)).next,t===0){if(Object(i)!==i)return;d=!1}else for(;!(d=(s=a.call(i)).done)&&(l.push(s.value),l.length!==t);d=!0);}catch(f){x=!0,o=f}finally{try{if(!d&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(x)throw o}}return l}}function l0(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function h0(r,t){return a0(r)||n0(r,t)||c0(r,t)||l0()}function c0(r,t){if(r){if(typeof r=="string")return Nu(r,t);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Nu(r,t):void 0}}function Ta(r){var t,i;function s(a,c){try{var l=r[a](c),d=l.value,x=d instanceof s0;Promise.resolve(x?d.v:d).then(function(f){if(x){var b=a==="return"&&d.k?a:"next";if(!d.k||f.done)return s(b,f);f=r[b](f).value}o(!!l.done,f)},function(f){s("throw",f)})}catch(f){o(2,f)}}function o(a,c){a===2?t.reject(c):t.resolve({value:c,done:a}),(t=t.next)?s(t.key,t.arg):i=null}this._invoke=function(a,c){return new Promise(function(l,d){var x={key:a,arg:c,resolve:l,reject:d,next:null};i?i=i.next=x:(t=i=x,s(a,c))})},typeof r.return!="function"&&(this.return=void 0)}Ta.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ta.prototype.next=function(r){return this._invoke("next",r)},Ta.prototype.throw=function(r){return this._invoke("throw",r)},Ta.prototype.return=function(r){return this._invoke("return",r)};var{entries:td,setPrototypeOf:qu,isFrozen:u0,getPrototypeOf:ed,getOwnPropertyDescriptor:rd,freeze:ir,seal:ar,create:Po}=Object,id=typeof Reflect<"u"&&Reflect,{apply:Gl,construct:Xl}=id;if(!ir)ir=function(t){return t};if(!ar)ar=function(t){return t};if(!Gl)Gl=function(t,i){for(var s=arguments.length,o=Array(s>2?s-2:0),a=2;a<s;a++)o[a-2]=arguments[a];return t.apply(i,o)};if(!Xl)Xl=function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return new t(...s)};var bi=qe(Array.prototype.forEach);Array.prototype.indexOf;var d0=qe(Array.prototype.lastIndexOf),Wu=qe(Array.prototype.pop),us=qe(Array.prototype.push),p0=qe(Array.prototype.slice),f0=qe(Array.prototype.splice),No=Array.isArray,Rl=od(Set),Nl=qe(Set.prototype.add),Bs=qe(Set.prototype.has),Yi=qe(String.prototype.toLowerCase),ql=qe(String.prototype.toString),zu=qe(String.prototype.match),Fs=qe(String.prototype.replace),Hu=qe(String.prototype.indexOf),g0=qe(String.prototype.trim),m0=qe(Number.prototype.toString),y0=qe(Boolean.prototype.toString),Yu=typeof BigInt>"u"?null:qe(BigInt.prototype.toString),Uu=typeof Symbol>"u"?null:qe(Symbol.prototype.toString),vr=qe(Object.prototype.hasOwnProperty),Ms=qe(Object.prototype.toString),sr=qe(RegExp.prototype.test),ki=od(TypeError);function qe(r){return function(t){if(t instanceof RegExp)t.lastIndex=0;for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return Gl(r,t,s)}}function od(r){return function(){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];return Xl(r,i)}}function Oe(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yi;if(qu)qu(r,null);if(!No(t))return r;let s=t.length;while(s--){let o=t[s];if(typeof o==="string"){let a=i(o);if(a!==o){if(!u0(t))t[s]=a;o=a}}r[o]=!0}return r}function x0(r){for(let t=0;t<r.length;t++)if(!vr(r,t))r[t]=null;return r}function Or(r){let t=Po(null);for(let s of td(r)){var i=h0(s,2);let o=i[0],a=i[1];if(vr(r,o))if(No(a))t[o]=x0(a);else if(a&&typeof a==="object"&&a.constructor===Object)t[o]=Or(a);else t[o]=a}return t}function C0(r){switch(typeof r){case"string":return r;case"number":return m0(r);case"boolean":return y0(r);case"bigint":return Yu?Yu(r):"0";case"symbol":return Uu?Uu(r):"Symbol()";case"undefined":return Ms(r);case"function":case"object":{if(r===null)return Ms(r);let t=r,i=Ur(t,"toString");if(typeof i==="function"){let s=i(t);return typeof s==="string"?s:Ms(s)}return Ms(r)}default:return Ms(r)}}function Ur(r,t){while(r!==null){let s=rd(r,t);if(s){if(s.get)return qe(s.get);if(typeof s.value==="function")return qe(s.value)}r=ed(r)}function i(){return null}return i}function b0(r,t){while(r!==null){let i=rd(r,t);if(i)return i.get?qe(i.get):null;r=ed(r)}return null}function k0(r){try{return sr(r,""),!0}catch(t){return!1}}var ju=ir(["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"]),Wl=ir(["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"]),zl=ir(["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"]),S0=ir(["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"]),Hl=ir(["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"]),T0=ir(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gu=ir(["#text"]),Xu=ir(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Yl=ir(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Vu=ir(["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"]),wa=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),w0=ar(/{{[\w\W]*|^[\w\W]*}}/g),B0=ar(/<%[\w\W]*|^[\w\W]*%>/g),_0=ar(/\${[\w\W]*/g),v0=ar(/^data-[\-\w.\u00B7-\uFFFF]+$/),L0=ar(/^aria-[\-\w]+$/),Ku=ar(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A0=ar(/^(?:\w+script|data):/i),F0=ar(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M0=ar(/^html$/i),E0=ar(/^[a-z][.\w]*(-[.\w]+)+$/i),Ul=ar(/<[/\w!]/g),Zu=ar(/<[/\w]/g),O0=ar(/<\/no(script|embed|frames)/i),Qu=ar(/\/>/i),Ze={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},I0=ir(Oe({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),$0=function(){return typeof window>"u"?null:window},D0=function(t,i){if(typeof t!=="object"||typeof t.createPolicy!=="function")return null;let s=null,o="data-tt-policy-suffix";if(i&&i.hasAttribute(o))s=i.getAttribute(o);let a="dompurify"+(s?"#"+s:"");try{return t.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch(c){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ju=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Di=function(t,i,s,o){return vr(t,i)&&No(t[i])?Oe(o.base?Or(o.base):{},t[i],o.transform):s},jl=function(t,i,s){let o=vr(t,i)?t[i]:void 0;return o&&typeof o==="object"?Or(o):s()};function sd(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$0(),t=(Yt)=>sd(Yt);if(t.version="3.4.17",t.removed=[],!r||!r.document||r.document.nodeType!==Ze.document||!r.Element)return t.isSupported=!1,t;let i=r.document,s=i,o=s.currentScript;r.DocumentFragment;let{HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:d}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:x,trustedTypes:f}=r,b=l.prototype,T=Ur(b,"cloneNode"),w=Ur(b,"remove"),v=Ur(b,"removeAttributeNode"),E=Ur(b,"nextSibling"),P=Ur(b,"childNodes"),W=Ur(b,"parentNode"),H=Ur(b,"shadowRoot"),V=Ur(b,"attributes"),Q=c&&c.prototype?Ur(c.prototype,"nodeType"):null,J=c&&c.prototype?Ur(c.prototype,"nodeName"):null,st=c&&c.prototype?Ur(c.prototype,"ownerDocument"):null,lt=function(Z){return Q?Q(Z):Z.nodeType},pt=function(Z){return J?J(Z):Z.nodeName},ft=b0(b,"namespaceURI"),wt=function(Z){return ft?ft(Z):Z.namespaceURI};if(typeof a==="function"){let Yt=i.createElement("template");if(Yt.content&&Yt.content.ownerDocument)i=Yt.content.ownerDocument}let _t,xt="",et,ot=!1,bt=0,it=function(){if(bt>0)throw ki('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Lt=function(Z){it(),bt++;try{return _t.createHTML(Z)}finally{bt--}},Et=function(Z){it(),bt++;try{return _t.createScriptURL(Z)}finally{bt--}},yt=function(){if(!ot)et=D0(f,o),ot=!0;return et},qt=i,{implementation:Wt,createNodeIterator:Xt,createDocumentFragment:oe,getElementsByTagName:ne}=qt,Kt=s.importNode,zt=Ju();t.isSupported=typeof td==="function"&&typeof W==="function"&&Wt&&Wt.createHTMLDocument!==void 0;let te=w0,ee=B0,de=_0,me=v0,Te=L0,Ve=A0,gi=F0,qr=E0,Ai=Ku,Re=null,Mr=Oe({},[...ju,...Wl,...zl,...Hl,...Gu]),$e=null,ri=Oe({},[...Xu,...Yl,...Vu,...wa]),or=Object.seal(Po(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}})),zr=null,Fi=null,Cr=Object.seal(Po(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Er=!0,mi=!0,ii=!1,yi=!0,kr=!1,B=!0,mt=!1,It=!1,Dt=null,Mt=null,G=!1,vt=!1,At=!1,Ht=!1,Ut=!0,jt=!1,Ot="user-content-",Gt=!0,ie=!1,se=null,le={},ge=null,Se=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Gr=null,Mi=Oe({},["audio","video","img","source","image","track"]),Ei=null,lu=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pa="http://www.w3.org/1998/Math/MathML",fa="http://www.w3.org/2000/svg",oi="http://www.w3.org/1999/xhtml",Mo=oi,nl=!1,ll=null,Sx=Oe({},[pa,fa,oi],ql),hu=ir(["mi","mo","mn","ms","mtext"]),cl=Oe({},hu),cu=ir(["annotation-xml"]),ul=Oe({},cu),Tx=Oe({},["title","style","font","a","script"]),ss=null,wx=["application/xhtml+xml","text/html"],Bx="text/html",je=null,Oo=null,_x=i.createElement("form"),uu=function(Z){return Z instanceof RegExp||Z instanceof Function},Sl=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Oo&&Oo===Z)return;if(!Z||typeof Z!=="object")Z={};Z=Or(Z),ss=wx.indexOf(Z.PARSER_MEDIA_TYPE)===-1?Bx:Z.PARSER_MEDIA_TYPE,je=ss==="application/xhtml+xml"?ql:Yi,Re=Di(Z,"ALLOWED_TAGS",Mr,{transform:je}),$e=Di(Z,"ALLOWED_ATTR",ri,{transform:je}),ll=Di(Z,"ALLOWED_NAMESPACES",Sx,{transform:ql}),Ei=Di(Z,"ADD_URI_SAFE_ATTR",lu,{transform:je,base:lu}),Gr=Di(Z,"ADD_DATA_URI_TAGS",Mi,{transform:je,base:Mi}),ge=Di(Z,"FORBID_CONTENTS",Se,{transform:je}),zr=Di(Z,"FORBID_TAGS",Or({}),{transform:je}),Fi=Di(Z,"FORBID_ATTR",Or({}),{transform:je}),le=vr(Z,"USE_PROFILES")?Z.USE_PROFILES&&typeof Z.USE_PROFILES==="object"?Or(Z.USE_PROFILES):Z.USE_PROFILES:!1,Er=Z.ALLOW_ARIA_ATTR!==!1,mi=Z.ALLOW_DATA_ATTR!==!1,ii=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,yi=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kr=Z.SAFE_FOR_TEMPLATES||!1,B=Z.SAFE_FOR_XML!==!1,mt=Z.WHOLE_DOCUMENT||!1,vt=Z.RETURN_DOM||!1,At=Z.RETURN_DOM_FRAGMENT||!1,Ht=Z.RETURN_TRUSTED_TYPE||!1,G=Z.FORCE_BODY||!1,Ut=Z.SANITIZE_DOM!==!1,jt=Z.SANITIZE_NAMED_PROPS||!1,Gt=Z.KEEP_CONTENT!==!1,ie=Z.IN_PLACE||!1,Ai=k0(Z.ALLOWED_URI_REGEXP)?Z.ALLOWED_URI_REGEXP:Ku,Mo=typeof Z.NAMESPACE==="string"?Z.NAMESPACE:oi,cl=jl(Z,"MATHML_TEXT_INTEGRATION_POINTS",()=>Oe({},hu)),ul=jl(Z,"HTML_INTEGRATION_POINTS",()=>Oe({},cu));let ct=jl(Z,"CUSTOM_ELEMENT_HANDLING",()=>Po(null));if(or=Po(null),vr(ct,"tagNameCheck")&&uu(ct.tagNameCheck))or.tagNameCheck=ct.tagNameCheck;if(vr(ct,"attributeNameCheck")&&uu(ct.attributeNameCheck))or.attributeNameCheck=ct.attributeNameCheck;if(vr(ct,"allowCustomizedBuiltInElements")&&typeof ct.allowCustomizedBuiltInElements==="boolean")or.allowCustomizedBuiltInElements=ct.allowCustomizedBuiltInElements;if(ar(or),kr)mi=!1;if(At)vt=!0;if(le){if(Re=Oe({},Gu),$e=Po(null),le.html===!0)Oe(Re,ju),Oe($e,Xu);if(le.svg===!0)Oe(Re,Wl),Oe($e,Yl),Oe($e,wa);if(le.svgFilters===!0)Oe(Re,zl),Oe($e,Yl),Oe($e,wa);if(le.mathMl===!0)Oe(Re,Hl),Oe($e,Vu),Oe($e,wa)}if(Cr.tagCheck=null,Cr.attributeCheck=null,vr(Z,"ADD_TAGS")){if(typeof Z.ADD_TAGS==="function")Cr.tagCheck=Z.ADD_TAGS;else if(No(Z.ADD_TAGS)){if(Re===Mr)Re=Or(Re);Oe(Re,Z.ADD_TAGS,je)}}if(vr(Z,"ADD_ATTR")){if(typeof Z.ADD_ATTR==="function")Cr.attributeCheck=Z.ADD_ATTR;else if(No(Z.ADD_ATTR)){if($e===ri)$e=Or($e);Oe($e,Z.ADD_ATTR,je)}}if(vr(Z,"ADD_FORBID_CONTENTS")&&No(Z.ADD_FORBID_CONTENTS)){if(ge===Se)ge=Or(ge);Oe(ge,Z.ADD_FORBID_CONTENTS,je)}if(Gt)Re["#text"]=!0;if(mt)Oe(Re,["html","head","body"]);if(Re.table)Oe(Re,["tbody"]),delete zr.tbody;if(Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!=="function")throw ki('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw ki('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Rt=_t;_t=Z.TRUSTED_TYPES_POLICY;try{xt=Lt("")}catch(Nt){throw _t=Rt,Nt}}else if(Z.TRUSTED_TYPES_POLICY===null)_t=void 0,xt="";else{if(_t===void 0)_t=yt();if(_t&&typeof xt==="string")xt=Lt("")}if(ir)ir(Z);Oo=Z},du=Oe({},[...Wl,...zl,...S0]),pu=Oe({},[...Hl,...T0]),vx=function(Z,ct,Rt){if(ct.namespaceURI===oi)return Z==="svg";if(ct.namespaceURI===pa)return Z==="svg"&&(Rt==="annotation-xml"||cl[Rt]);return Boolean(du[Z])},Lx=function(Z,ct,Rt){if(ct.namespaceURI===oi)return Z==="math";if(ct.namespaceURI===fa)return Z==="math"&&ul[Rt];return Boolean(pu[Z])},Ax=function(Z,ct,Rt){if(ct.namespaceURI===fa&&!ul[Rt])return!1;if(ct.namespaceURI===pa&&!cl[Rt])return!1;return!pu[Z]&&(Tx[Z]||!du[Z])},Fx=function(Z){let ct=wt(Z),Rt=Yi(pt(Z)),Nt=W(Z),ue,ke;if(Nt&<(Nt)===Ze.element)ue={namespaceURI:wt(Nt)},ke=Yi(pt(Nt));else ue={namespaceURI:Mo},ke="template";if(!ll[ct])return!1;if(ct===fa)return vx(Rt,ue,ke);if(ct===pa)return Lx(Rt,ue,ke);if(ct===oi)return Ax(Rt,ue,ke);if(ss==="application/xhtml+xml"&&ll[ct])return!0;return!1},Oi=function(Z){us(t.removed,{element:Z});try{W(Z).removeChild(Z)}catch(ct){if(w(Z),!W(Z))throw ki("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},fu=function(Z,ct,Rt){try{v(Z,ct)}catch(Nt){try{Z.removeAttribute(Rt)}catch(ue){}}},Bl=function(Z){Ll(Z);let ct=P(Z);if(ct)bi(p0(ct),(Nt)=>{try{w(Nt)}catch(ue){}});let Rt=lt(Z)===Ze.element?V(Z):null;if(Rt)for(let Nt=Rt.length-1;Nt>=0;--Nt){let ue=Rt[Nt],ke=ue&&ue.name;if(typeof ke==="string")fu(Z,ue,ke)}},Io=function(Z,ct,Rt){if(!Rt)try{Rt=ct.getAttributeNode(Z)}catch(Nt){Rt=null}us(t.removed,{attribute:Rt||null,from:ct});try{if(Rt)v(ct,Rt);else ct.removeAttribute(Z)}catch(Nt){try{ct.removeAttribute(Z)}catch(ue){}}if(Z==="is")if(vt||At)try{Oi(ct)}catch(Nt){}else try{ct.setAttribute(Z,"")}catch(Nt){}},gu=function(Z){let ct=V(Z);if(!ct)return;for(let Rt=ct.length-1;Rt>=0;--Rt){let Nt=ct[Rt],ue=Nt&&Nt.name;if(typeof ue!=="string"||$e[je(ue)])continue;fu(Z,Nt,ue)}},_l=function(Z,ct){let Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Nt=[Z];while(Nt.length>0){let ue=Nt.pop();if(ct(ue)===!1)continue;if(Rt&<(ue)===Ze.element){let Le=H(ue);if(Ii(Le))Nt.push(Le)}let ke=P(ue);if(ke)for(let Le=ke.length-1;Le>=0;--Le)Nt.push(ke[Le])}},Ll=function(Z){_l(Z,(ct)=>{if(lt(ct)===Ze.element)gu(ct)})},Al=function(Z){let ct=[];return _l(Z,(Rt)=>{ct.push(Rt)},!0),ct},Mx=function(Z,ct){let Rt=Rl();bi(Al(Z),(Nt)=>{if(lt(Nt)===Ze.element)Nl(Rt,Nt)}),bi(ct,(Nt)=>{if(lt(Nt)===Ze.element&&!Bs(Rt,Nt))gu(Nt)})},mu=function(Z,ct){let Rt=!1;return bi(t.removed,(Nt)=>{if(Nt.element)Rt=Rt||Nt.element===Z,Ll(Nt.element)}),Mx(Z,ct),Rt},Ex=8,Ox=function(Z,ct){let Rt=se,Nt=null,ue=()=>{if(!Nt)Nt=Rl(),bi(ct,(ke)=>{Nl(Nt,ke)});return Nt};for(let ke=0;;ke++){let Le=Al(Z),tr=[Z],si=!1;if(bi(Le,(Sr)=>{if(lt(Sr)===Ze.documentFragment)us(tr,Sr);else if(!si&&!Bs(Rt,Sr))si=Bs(ue(),Sr)}),!si)return;if(ke>=Ex)throw ki("the tree kept changing during in-place sanitization; refusing to return it");bi(tr,(Sr,Br)=>{Ix(Sr,Br>0,Z,ue())})}},Ix=function(Z,ct,Rt,Nt){let ue=Fl(Z),ke;while(ke=ue.nextNode()){if(!Bs(Nt,ke)||Bs(se,ke))continue;if(ct)Vr(zt.uponSanitizeShadowNode,ke,null);if(El(ke,Rt),Ol(ke,Rt),Ii(ke.content))ns(ke.content)}},$x=function(Z){if(se)Nl(se,Z)},yu=function(Z,ct){if(!B)return!1;if(Z==="patchsrc")return!0;return Z==="for"&&ct!=="label"&&ct!=="output"},Dx=function(Z){if(!B)return;_l(Z,(ct)=>{let Rt=lt(ct);if(Rt===Ze.processingInstruction||Rt===Ze.comment&&sr(Zu,ct.data)){try{w(ct)}catch(Nt){}return!1}if(Rt===Ze.element){let Nt=ct,ue=je(pt(ct));try{if(Nt.hasAttribute&&Nt.hasAttribute("patchsrc"))Nt.removeAttribute("patchsrc");if(Nt.hasAttribute&&Nt.hasAttribute("for")&&yu("for",ue))Nt.removeAttribute("for")}catch(ke){}}return!0})},xu=function(Z){let ct=null,Rt=null;if(G)Z="<remove></remove>"+Z;else{let ke=zu(Z,/^[\r\n\t ]+/);Rt=ke&&ke[0]}if(ss==="application/xhtml+xml"&&Mo===oi)Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>";let Nt=_t?Lt(Z):Z;if(Mo===oi)try{ct=new x().parseFromString(Nt,ss)}catch(ke){}if(!ct||!ct.documentElement){ct=Wt.createDocument(Mo,"template",null);try{ct.documentElement.innerHTML=nl?xt:Nt}catch(ke){}}let ue=ct.body||ct.documentElement;if(Z&&Rt)ue.insertBefore(i.createTextNode(Rt),ue.childNodes[0]||null);if(Mo===oi)return ne.call(ct,mt?"html":"body")[0];return mt?ct.documentElement:ue},Fl=function(Z){let ct=st?st(Z):Z.ownerDocument;return Xt.call(ct||Z,Z,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ga=function(Z){return Z=Fs(Z,te," "),Z=Fs(Z,ee," "),Z=Fs(Z,de," "),Z},Ml=function(Z){var ct;Cu(Z);let Rt=(ct=Z.querySelectorAll)===null||ct===void 0?void 0:ct.call(Z,"template");if(Rt)bi(Rt,(Nt)=>{if(Ii(Nt.content))Ml(Nt.content)})},Cu=function(Z){Z.normalize();let ct=st?st(Z):Z.ownerDocument,Rt=Xt.call(ct||Z,Z,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),Nt=Rt.nextNode();while(Nt)Nt.data=ga(Nt.data),Nt=Rt.nextNode()},ma=function(Z){let ct=J?J(Z):null;if(typeof ct!=="string")return!1;if(je(ct)!=="form")return!1;return typeof Z.nodeName!=="string"||typeof Z.textContent!=="string"||typeof Z.removeChild!=="function"||Z.attributes!==V(Z)||typeof Z.removeAttribute!=="function"||typeof Z.removeAttributeNode!=="function"||typeof Z.getAttributeNode!=="function"||typeof Z.setAttribute!=="function"||typeof Z.namespaceURI!=="string"||typeof Z.insertBefore!=="function"||typeof Z.hasChildNodes!=="function"||Z.nodeType!==Q(Z)||Z.childNodes!==P(Z)},Ii=function(Z){if(!Q||typeof Z!=="object"||Z===null)return!1;try{return Q(Z)===Ze.documentFragment}catch(ct){return!1}},as=function(Z){if(!Q||typeof Z!=="object"||Z===null)return!1;try{return typeof Q(Z)==="number"}catch(ct){return!1}};function Vr(Yt,Z,ct){if(Yt.length===0)return;bi(Yt,(Rt)=>{Rt.call(t,Z,ct,Oo)})}let Px=function(Z,ct){if(B&&Z.hasChildNodes()&&!as(Z.firstElementChild)&&sr(Ul,Z.textContent)&&sr(Ul,Z.innerHTML))return!0;if(B&&I0[ct]&<(Z)===Ze.element&&wt(Z)===oi&&(as(Z.firstElementChild)||typeof Z.textContent==="string"&&sr(Ul,Z.textContent)))return!0;if(Z.nodeType===Ze.processingInstruction)return!0;if(B&&Z.nodeType===Ze.comment&&sr(Zu,Z.data))return!0;return!1},ya=function(Z,ct){if(Z instanceof RegExp)return sr(Z,ct);if(Z instanceof Function){for(var Rt=arguments.length,Nt=Array(Rt>2?Rt-2:0),ue=2;ue<Rt;ue++)Nt[ue-2]=arguments[ue];return Boolean(Z(ct,...Nt))}return!1},Rx=function(Z,ct,Rt){if(!zr[ct]&&Su(ct)&&ya(or.tagNameCheck,ct))return!1;if(Gt&&!ge[ct]&&!ge[Yi(ct)]){let Nt=W(Z),ue=P(Z);if(ue&&Nt){let ke=ue.length;for(let Le=ke-1;Le>=0;--Le){let tr=Z===Rt?T(ue[Le],!0):ue[Le];Nt.insertBefore(tr,E(Z))}}}return Oi(Z),!0},bu=function(Z,ct,Rt,Nt){if(Z.length===0)return ct;return ct===Rt||ct===Nt?Or(ct):ct},$o=function(Z,ct){if(Z===ct||W(Z)!==null)return!1;if(ie)Ll(Z);return!0},El=function(Z,ct){if($x(Z),Vr(zt.beforeSanitizeElements,Z,null),$o(Z,ct))return!0;if(ma(Z))return Oi(Z),!0;let Rt=je(pt(Z));if(Re=bu(zt.uponSanitizeElement,Re,Mr,Dt),Vr(zt.uponSanitizeElement,Z,{tagName:Rt,allowedTags:Re}),$o(Z,ct))return!0;if(Px(Z,Rt))return Oi(Z),!0;if(zr[Rt]||!(Cr.tagCheck instanceof Function&&Cr.tagCheck(Rt))&&!Re[Rt]){let Nt=Rx(Z,Rt,ct);if(Nt===!1){if(Vr(zt.afterSanitizeElements,Z,null),$o(Z,ct))return!0}return Nt}if(lt(Z)===Ze.element&&!Fx(Z))return Oi(Z),!0;if((Rt==="noscript"||Rt==="noembed"||Rt==="noframes")&&sr(O0,Z.innerHTML))return Oi(Z),!0;if(kr&&Z.nodeType===Ze.text){let Nt=ga(Z.textContent);if(Z.textContent!==Nt)us(t.removed,{element:Z.cloneNode()}),Z.textContent=Nt}return Vr(zt.afterSanitizeElements,Z,null),$o(Z,ct)},ku=function(Z,ct,Rt){if(Fi[ct])return!1;if(yu(ct,Z))return!1;if(Ut&&(ct==="id"||ct==="name")&&((Rt in i)||(Rt in _x)))return!1;let Nt=$e[ct]||Cr.attributeCheck instanceof Function&&Cr.attributeCheck(ct,Z);if(mi&&sr(me,ct))return!0;if(Er&&sr(Te,ct))return!0;if(!Nt)return Su(Z)&&ya(or.tagNameCheck,Z)&&ya(or.attributeNameCheck,ct,Z)||ct==="is"&&or.allowCustomizedBuiltInElements&&ya(or.tagNameCheck,Rt);if(Ei[ct])return!0;if(sr(Ai,Fs(Rt,gi,"")))return!0;if((ct==="src"||ct==="xlink:href"||ct==="href")&&Z!=="script"&&Hu(Rt,"data:")===0&&Gr[Z])return!0;if(ii&&!sr(Ve,Fs(Rt,gi,"")))return!0;return!Rt},Nx=Oe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Su=function(Z){return!Nx[Yi(Z)]&&sr(qr,Z)},qx=function(Z,ct,Rt,Nt){if(_t&&typeof f==="object"&&typeof f.getAttributeType==="function"&&!Rt)switch(f.getAttributeType(Z,ct)){case"TrustedHTML":return Lt(Nt);case"TrustedScriptURL":return Et(Nt)}return Nt},Wx=function(Z,ct,Rt,Nt){try{if(Rt)Z.setAttributeNS(Rt,ct,Nt);else Z.setAttribute(ct,Nt);if(ma(Z))return Oi(Z),!1;return!0}catch(ue){return Io(ct,Z),!1}},Tu=function(Z,ct){if(B&&sr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ct))return!0;return Yi(Z)==="attributename"&&zu(ct,"href")!==null},Ol=function(Z,ct){if(Vr(zt.beforeSanitizeAttributes,Z,null),$o(Z,ct))return;let Rt=Z.attributes;if(!Rt||ma(Z))return;$e=bu(zt.uponSanitizeAttribute,$e,ri,Mt);let Nt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0},ue=Rt.length,ke=je(Z.nodeName);while(ue--){let Le=Rt[ue],{name:tr,namespaceURI:si,value:Sr}=Le,Br=je(tr),Do=Sr,_r=tr==="value"?Do:g0(Do),wu=!1;if(Nt.attrName=Br,Nt.attrValue=_r,Nt.keepAttr=!0,Nt.forceKeepAttr=void 0,Vr(zt.uponSanitizeAttribute,Z,Nt),_r=Nt.attrValue,jt&&(Br==="id"||Br==="name")&&Hu(_r,Ot)!==0)Io(tr,Z,Le),_r=Ot+_r,wu=!0;if(Tu(tr,_r)){Io(tr,Z,Le);continue}if(Nt.forceKeepAttr)continue;if(!Nt.keepAttr){Io(tr,Z,Le);continue}if(!yi&&sr(Qu,_r)){Io(tr,Z,Le);continue}if(kr)_r=ga(_r);if(!ku(ke,Br,_r)){Io(tr,Z,Le);continue}if(_r=qx(ke,Br,si,_r),_r!==Do){if(Wx(Z,tr,si,_r)&&wu)Wu(t.removed)}}Vr(zt.afterSanitizeAttributes,Z,null),$o(Z,ct)},ns=function(Z){let ct=null,Rt=Fl(Z);Vr(zt.beforeSanitizeShadowDOM,Z,null);while(ct=Rt.nextNode()){if(Vr(zt.uponSanitizeShadowNode,ct,null),El(ct,Z),Ol(ct,Z),Ii(ct.content))ns(ct.content);if(lt(ct)===Ze.element){let Nt=H(ct);if(Ii(Nt))Il(Nt),ns(Nt)}}if(kr)Cu(Z);Vr(zt.afterSanitizeShadowDOM,Z,null)},Il=function(Z){let ct=[{node:Z,shadow:null}];while(ct.length>0){let Rt=ct.pop();if(Rt.shadow){ns(Rt.shadow);continue}let Nt=Rt.node,ue=lt(Nt)===Ze.element,ke=P(Nt);if(ke)for(let Le=ke.length-1;Le>=0;--Le)ct.push({node:ke[Le],shadow:null});if(ue){let Le=J?J(Nt):null;if(typeof Le==="string"&&je(Le)==="template"){let tr=Nt.content;if(Ii(tr))ct.push({node:tr,shadow:null})}}if(ue){let Le=H(Nt);if(Ii(Le))ct.push({node:null,shadow:Le},{node:Le,shadow:null})}}};return t.sanitize=function(Yt){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=null,Rt=null,Nt=null,ue=null;if(nl=!Yt,nl)Yt="<!-->";if(typeof Yt!=="string"&&!as(Yt)){if(Yt=C0(Yt),typeof Yt!=="string")throw ki("dirty is not a string, aborting")}if(!t.isSupported)return Yt;if(It)Re=Dt,$e=Mt;else Sl(Z);if(zt.uponSanitizeElement.length>0||zt.uponSanitizeAttribute.length>0)Re=Or(Re);if(zt.uponSanitizeAttribute.length>0)$e=Or($e);t.removed=[];let ke=ie&&typeof Yt!=="string"&&as(Yt),Le=[],tr=se;if(ke){Dx(Yt);let Br=pt(Yt);if(typeof Br==="string"){let Do=je(Br);if(!Re[Do]||zr[Do])throw Bl(Yt),ki("root node is forbidden and cannot be sanitized in-place")}if(ma(Yt))throw Bl(Yt),ki("root node is clobbered and cannot be sanitized in-place");Le=Al(Yt),se=Rl()}else if(as(Yt)){if(ct=xu("<!---->"),Rt=ct.ownerDocument.importNode(Yt,!0),Rt.nodeType===Ze.element&&Rt.nodeName==="BODY")ct=Rt;else if(Rt.nodeName==="HTML")ct=Rt;else ct.appendChild(Rt);Il(ct)}else{if(!vt&&!kr&&!mt&&Yt.indexOf("<")===-1)return _t&&Ht?Lt(Yt):Yt;if(ct=xu(Yt),!ct)return vt?null:Ht?xt:""}if(ct&&G)Oi(ct.firstChild);let si=ke?Yt:ct;try{if(ke)Il(Yt);let Br=Fl(si);while(Nt=Br.nextNode())if(El(Nt,si),Ol(Nt,si),Ii(Nt.content))ns(Nt.content);if(ke)Ox(Yt,Le)}catch(Br){if(ke)Bl(Yt),mu(Yt,Le);throw Br}finally{se=tr}if(ke){if(mu(Yt,Le))throw ki("a node selected for removal could not be safely returned; refusing to sanitize in place");if(kr)Ml(Yt);return Yt}if(vt){if(kr)Ml(ct);if(At){ue=oe.call(ct.ownerDocument);while(ct.firstChild)ue.appendChild(ct.firstChild)}else ue=ct;if($e.shadowroot||$e.shadowrootmode)ue=Kt.call(s,ue,!0);return ue}let Sr=mt?ct.outerHTML:ct.innerHTML;if(mt&&Re["!doctype"]&&ct.ownerDocument&&ct.ownerDocument.doctype&&ct.ownerDocument.doctype.name&&sr(M0,ct.ownerDocument.doctype.name))Sr="<!DOCTYPE "+ct.ownerDocument.doctype.name+`>
|
|
3
|
+
`+Sr;if(kr)Sr=ga(Sr);return _t&&Ht?Lt(Sr):Sr},t.setConfig=function(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sl(Yt),It=!0,Dt=Re,Mt=$e},t.clearConfig=function(){Oo=null,It=!1,Dt=null,Mt=null,_t=et,xt=""},t.isValidAttribute=function(Yt,Z,ct){if(!Oo)Sl({});let Rt=je(Yt),Nt=je(Z);if(typeof ct==="string"&&(Tu(Z,ct)||!yi&&sr(Qu,ct)))return!1;return ku(Rt,Nt,ct)},t.addHook=function(Yt,Z){if(typeof Z!=="function")return;if(!vr(zt,Yt))return;us(zt[Yt],Z)},t.removeHook=function(Yt,Z){if(!vr(zt,Yt))return;if(Z!==void 0){let ct=d0(zt[Yt],Z);return ct===-1?void 0:f0(zt[Yt],ct,1)[0]}return Wu(zt[Yt])},t.removeHooks=function(Yt){if(!vr(zt,Yt))return;zt[Yt]=[]},t.removeAllHooks=function(){zt=Ju()},t}var Pe=sd();var qo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,za=/\s/,P0=e((r)=>{let t="",i=0,s=0;while(s<r.length){let o=r.indexOf("%%",s);if(o===-1)break;let a=r.indexOf(`
|
|
4
|
+
`,o);if(a===-1)break;let c=o;while(c>i&&za.test(r[c-1]))c--;t+=r.slice(i,c)+`
|
|
5
|
+
`,i=a+1,s=i}return t+r.slice(i)},"stripAnyComments"),va=e((r)=>r===`
|
|
6
|
+
`||r==="\r","isLineBreak"),R0=e((r,t)=>{let i=-1;for(let s=t;s<r.length&&za.test(r[s]);s++)if(va(r[s]))i=s;return i},"lastLineBreakInWhitespaceRun"),ds=e((r)=>{let t=0;while(t<r.length&&za.test(r[t])&&!va(r[t]))t++;let i=r.slice(0,t);if(!r.startsWith("---",t))return;let s=[];for(let f=t+3;f<r.length&&za.test(r[f]);f++)if(va(r[f]))s.push(f);if(s.length===0)return;let o=`${i}---`,a=e((f)=>va(r[f])&&r.startsWith(o,f+1)?R0(r,f+1+o.length):-1,"closingEnd"),c=s[0]+1,l=-1;for(let f=c;f<r.length;f++)if(a(f)!==-1)l=f;if(l===-1)return;let d=s[0];for(let f of s)if(f<l)d=f;let x=d+1;for(let f=x;f<=l;f++){let b=a(f);if(b!==-1)return{indent:i,body:r.slice(x,f),length:b+1}}return},"matchFrontMatter"),fs=class extends Error{static{e(this,"UnknownDiagramError")}constructor(r){super(r);this.name="UnknownDiagramError"}},Wr={},Zn=e(function(r,t){let i=ds(r);r=P0((i?r.slice(i.length):r).replace(qo,""));for(let[s,{detector:o}]of Object.entries(Wr))if(o(r,t))return s;throw new fs(`No diagram type detected matching given configuration for text: ${r}`)},"detectType"),Zi=e((...r)=>{for(let{id:t,detector:i,loader:s}of r)ud(t,i,s)},"registerLazyLoadedDiagrams"),ud=e((r,t,i)=>{if(Wr[r])n.warn(`Detector with key ${r} already exists. Overwriting.`);Wr[r]={detector:t,loader:i},n.debug(`Detector with key ${r} added${i?" with loader":""}`)},"addDetector"),dl=e((r)=>Wr[r].loader,"getDiagramLoader"),Vl=e((r,t,{depth:i=2}={})=>{let s={depth:i};if(Array.isArray(t)&&!Array.isArray(r))return t.forEach((o)=>Vl(r,o,s)),r;else if(Array.isArray(t)&&Array.isArray(r))return t.forEach((o)=>{if(!r.includes(o))r.push(o)}),r;if(r===void 0||r===null||i<=0)if(r!==void 0&&r!==null&&typeof r==="object"&&typeof t==="object")return Object.assign(r,t);else return t;if(t!==void 0&&t!==null&&typeof r==="object"&&typeof t==="object"){let o=r;Object.entries(t).forEach(([a,c])=>{if(typeof c==="object"){if(c===null)return;if(!Object.hasOwn(r,a))Object.defineProperty(r,a,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(o[a]===void 0)o[a]=Array.isArray(c)?[]:{};if(typeof o[a]==="object")o[a]=Vl(o[a],c,{depth:i-1})}else if(typeof o[a]!=="object")if(Object.hasOwn(r,a))o[a]=c;else Object.defineProperty(r,a,{value:c,writable:!0,enumerable:!0,configurable:!0})})}return r},"assignWithDepth"),fe=Vl,ai="#ffffff",ni="#f2f2f2",xe=e((r,t)=>t?X(r,{s:-40,l:10}):X(r,{s:-40,l:-10}),"mkBorder"),ad=e((r)=>typeof r==="object"&&r!==null&&!Array.isArray(r),"isPlainObject"),Zr=e((r,t)=>ad(r)&&ad(t)?{...r,...t}:t,"applyOverride"),N0=class{static{e(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||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(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?p(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.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||p(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||p(this.mainBkg,10);else this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(this.mainBkg,5);if(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||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||ht(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)if(this.darkMode)this["cScalePeer"+t]=this["cScalePeer"+t]||h(this["cScale"+t],10);else this["cScalePeer"+t]=this["cScalePeer"+t]||p(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(8+t*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||X(this.primaryColor,{h:64}),this.fillType3=this.fillType3||X(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||X(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||X(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||X(this.primaryColor,{h:128}),this.fillType7=this.fillType7||X(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||X(this.primaryColor,{l:-10}),this.pie5=this.pie5||X(this.secondaryColor,{l:-10}),this.pie6=this.pie6||X(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||X(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||X(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||X(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||X(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||X(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||X(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??X(this.primaryColor,{l:-30}),this.venn2=this.venn2??X(this.secondaryColor,{l:-30}),this.venn3=this.venn3??X(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??X(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??X(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??X(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??X(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??X(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?p(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||X(this.primaryColor,{h:-30}),this.git4=this.git4||X(this.primaryColor,{h:-60}),this.git5=this.git5||X(this.primaryColor,{h:-90}),this.git6=this.git6||X(this.primaryColor,{h:60}),this.git7=this.git7||X(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);if(t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])}),Object.hasOwn(r,"nodeBorder")&&!Object.hasOwn(r,"useGradient"))this.useGradient=!1}},q0=e((r)=>{let t=new N0;return t.calculate(r),t},"getThemeVariables"),W0=class{static{e(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ht("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=be(255,255,255,0.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=p("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=p(this.sectionBkgColor,10),this.taskBorderColor=be(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=be(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||h(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||p(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=h(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=h(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=h(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=ht(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=X(this.primaryColor,{h:64}),this.fillType3=X(this.secondaryColor,{h:64}),this.fillType4=X(this.primaryColor,{h:-64}),this.fillType5=X(this.secondaryColor,{h:-64}),this.fillType6=X(this.primaryColor,{h:128}),this.fillType7=X(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||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ht(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||X(this.mainBkg,{h:30,s:-30,l:-(-10+r*4)}),this["surfacePeer"+r]=this["surfacePeer"+r]||X(this.mainBkg,{h:30,s:-30,l:-(-7+r*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];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 r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??h(this["cScale"+r],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?p(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=h(this.secondaryColor,20),this.git1=h(this.pie2||this.secondaryColor,20),this.git2=h(this.pie3||this.tertiaryColor,20),this.git3=h(this.pie4||X(this.primaryColor,{h:-30}),20),this.git4=h(this.pie5||X(this.primaryColor,{h:-60}),20),this.git5=h(this.pie6||X(this.primaryColor,{h:-90}),10),this.git6=h(this.pie7||X(this.primaryColor,{h:60}),10),this.git7=h(this.pie8||X(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||h("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||h("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||h("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||h("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||h(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||h(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||h(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||h(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},z0=e((r)=>{let t=new W0;return t.calculate(r),t},"getThemeVariables"),H0=class{static{e(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=X(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=xe(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=be(102,102,255,0.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||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||p(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||p(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=p(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||p(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||X(this["cScale"+r],{h:180});for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||X(this.mainBkg,{h:30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||X(this.mainBkg,{h:30,l:-(7+r*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ht(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ht(this.labelTextColor);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.labelTextColor}if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||h(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||h(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=X(this.primaryColor,{h:64}),this.fillType3=X(this.secondaryColor,{h:64}),this.fillType4=X(this.primaryColor,{h:-64}),this.fillType5=X(this.secondaryColor,{h:-64}),this.fillType6=X(this.primaryColor,{h:128}),this.fillType7=X(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||X(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||X(this.primaryColor,{l:-10}),this.pie5=this.pie5||X(this.secondaryColor,{l:-30}),this.pie6=this.pie6||X(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||X(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||X(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||X(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||X(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||X(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||X(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??X(this.primaryColor,{l:-30}),this.venn2=this.venn2??X(this.secondaryColor,{l:-30}),this.venn3=this.venn3??X(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??X(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??X(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??X(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??X(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??X(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||X(this.primaryColor,{h:-30}),this.git4=this.git4||X(this.primaryColor,{h:-60}),this.git5=this.git5||X(this.primaryColor,{h:-90}),this.git6=this.git6||X(this.primaryColor,{h:60}),this.git7=this.git7||X(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||p(ht(this.git0),25),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(Object.keys(this).forEach((i)=>{if(this[i]==="calculated")this[i]=void 0}),typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},Me=e((r)=>{let t=new H0;return t.calculate(r),t},"getThemeVariables"),Y0=class{static{e(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=h("#cde498",10),this.primaryBorderColor=xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.primaryColor),this.lineColor=ht(this.background),this.textColor=ht(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=p(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||p(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||p(this.tertiaryColor,40);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=p(this["cScale"+r],10),this["cScalePeer"+r]=this["cScalePeer"+r]||p(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||X(this["cScale"+r],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||X(this.mainBkg,{h:30,s:-30,l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||X(this.mainBkg,{h:30,s:-30,l:-(8+r*5)});if(this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||h(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||h(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=X(this.primaryColor,{h:64}),this.fillType3=X(this.secondaryColor,{h:64}),this.fillType4=X(this.primaryColor,{h:-64}),this.fillType5=X(this.secondaryColor,{h:-64}),this.fillType6=X(this.primaryColor,{h:128}),this.fillType7=X(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||X(this.primaryColor,{l:-30}),this.pie5=this.pie5||X(this.secondaryColor,{l:-30}),this.pie6=this.pie6||X(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||X(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||X(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||X(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||X(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||X(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||X(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??X(this.primaryColor,{l:-30}),this.venn2=this.venn2??X(this.secondaryColor,{l:-30}),this.venn3=this.venn3??X(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??X(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??X(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??X(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??X(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??X(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||X(this.primaryColor,{h:-30}),this.git4=this.git4||X(this.primaryColor,{h:-60}),this.git5=this.git5||X(this.primaryColor,{h:-90}),this.git6=this.git6||X(this.primaryColor,{h:60}),this.git7=this.git7||X(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ht(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ht(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},U0=e((r)=>{let t=new Y0;return t.calculate(r),t},"getThemeVariables"),j0=class{static{e(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=h(this.contrast,55),this.background="#ffffff",this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.lineColor=ht(this.background),this.textColor=ht(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||h(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=h(this.contrast,55),this.border2=this.contrast,this.actorBorder=h(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||ht(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)if(this.darkMode)this["cScalePeer"+r]=this["cScalePeer"+r]||h(this["cScale"+r],10);else this["cScalePeer"+r]=this["cScalePeer"+r]||p(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||X(this.mainBkg,{l:-(5+r*5)}),this["surfacePeer"+r]=this["surfacePeer"+r]||X(this.mainBkg,{l:-(8+r*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=h(this.contrast,30),this.sectionBkgColor2=h(this.contrast,30),this.taskBorderColor=p(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=h(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=p(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=X(this.primaryColor,{h:64}),this.fillType3=X(this.secondaryColor,{h:64}),this.fillType4=X(this.primaryColor,{h:-64}),this.fillType5=X(this.secondaryColor,{h:-64}),this.fillType6=X(this.primaryColor,{h:128}),this.fillType7=X(this.secondaryColor,{h:128});for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["pie"+r]=this["cScale"+r];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 r=0;r<8;r++)this["venn"+(r+1)]=this["venn"+(r+1)]??this["cScale"+r];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||0.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||0.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=p(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||X(this.primaryColor,{h:-30}),this.git4=this.pie5||X(this.primaryColor,{h:-60}),this.git5=this.pie6||X(this.primaryColor,{h:-90}),this.git6=this.pie7||X(this.primaryColor,{h:60}),this.git7=this.pie8||X(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},G0=e((r)=>{let t=new j0;return t.calculate(r),t},"getThemeVariables"),X0=class{static{e(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=xe(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||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(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?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ae(this.background)?h(this.background,4):p(this.background,4));let r="#ECECFE",t="#E9E9F1",i=X(r,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,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||r,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||X(r,{h:30}),this.cScale4=this.cScale4||X(r,{h:60}),this.cScale5=this.cScale5||X(r,{h:90}),this.cScale6=this.cScale6||X(r,{h:120}),this.cScale7=this.cScale7||X(r,{h:150}),this.cScale8=this.cScale8||X(r,{h:210,l:150}),this.cScale9=this.cScale9||X(r,{h:270}),this.cScale10=this.cScale10||X(r,{h:300}),this.cScale11=this.cScale11||X(r,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=p(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=p(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||h(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||t,this.fillType2=this.fillType2||X(r,{h:64}),this.fillType3=this.fillType3||X(t,{h:64}),this.fillType4=this.fillType4||X(r,{h:-64}),this.fillType5=this.fillType5||X(t,{h:-64}),this.fillType6=this.fillType6||X(r,{h:128}),this.fillType7=this.fillType7||X(t,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||t,this.pie3=this.pie3||i,this.pie4=this.pie4||X(r,{l:-10}),this.pie5=this.pie5||X(t,{l:-10}),this.pie6=this.pie6||X(i,{l:-10}),this.pie7=this.pie7||X(r,{h:60,l:-10}),this.pie8=this.pie8||X(r,{h:-60,l:-10}),this.pie9=this.pie9||X(r,{h:120,l:0}),this.pie10=this.pie10||X(r,{h:60,l:-20}),this.pie11=this.pie11||X(r,{h:-60,l:-20}),this.pie12=this.pie12||X(r,{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||r,this.quadrant2Fill=this.quadrant2Fill||X(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,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?p(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||r,this.git1=this.git1||t,this.git2=this.git2||i,this.git3=this.git3||X(r,{h:-30}),this.git4=this.git4||X(r,{h:-60}),this.git5=this.git5||X(r,{h:-90}),this.git6=this.git6||X(r,{h:60}),this.git7=this.git7||X(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},V0=e((r)=>{let t=new X0;return t.calculate(r),t},"getThemeVariables"),K0=class{static{e(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ht("#323D47"),10),this.border1="#ccc",this.border2=be(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.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||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||ht(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)if(this.darkMode)this["cScalePeer"+t]=this["cScalePeer"+t]||h(this["cScale"+t],10);else this["cScalePeer"+t]=this["cScalePeer"+t]||p(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(8+t*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||X(this.primaryColor,{h:64}),this.fillType3=this.fillType3||X(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||X(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||X(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||X(this.primaryColor,{h:128}),this.fillType7=this.fillType7||X(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||X(this.primaryColor,{l:-10}),this.pie5=this.pie5||X(this.secondaryColor,{l:-10}),this.pie6=this.pie6||X(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||X(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||X(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||X(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||X(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||X(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||X(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||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?p(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=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}};var Z0=e((r)=>{let t=new K0;return t.calculate(r),t},"getThemeVariables"),Q0=class{static{e(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=xe("#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||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(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?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ae(this.background)?h(this.background,4):p(this.background,4));let r="#ECECFE",t="#E9E9F1",i=X(r,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||r,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,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]=p(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=p(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||h(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||r,this.fillType1=this.fillType1||t,this.fillType2=this.fillType2||X(r,{h:64}),this.fillType3=this.fillType3||X(t,{h:64}),this.fillType4=this.fillType4||X(r,{h:-64}),this.fillType5=this.fillType5||X(t,{h:-64}),this.fillType6=this.fillType6||X(r,{h:128}),this.fillType7=this.fillType7||X(t,{h:128}),this.pie1=this.pie1||r,this.pie2=this.pie2||t,this.pie3=this.pie3||i,this.pie4=this.pie4||X(r,{l:-10}),this.pie5=this.pie5||X(t,{l:-10}),this.pie6=this.pie6||X(i,{l:-10}),this.pie7=this.pie7||X(r,{h:60,l:-10}),this.pie8=this.pie8||X(r,{h:-60,l:-10}),this.pie9=this.pie9||X(r,{h:120,l:0}),this.pie10=this.pie10||X(r,{h:60,l:-20}),this.pie11=this.pie11||X(r,{h:-60,l:-20}),this.pie12=this.pie12||X(r,{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||r,this.quadrant2Fill=this.quadrant2Fill||X(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,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?p(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||t,this.git2=this.git2||i,this.git3=this.git3||X(r,{h:-30}),this.git4=this.git4||X(r,{h:-60}),this.git5=this.git5||X(r,{h:-90}),this.git6=this.git6||X(r,{h:60}),this.git7=this.git7||X(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},J0=e((r)=>{let t=new Q0;return t.calculate(r),t},"getThemeVariables"),tC=class{static{e(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ht("#323D47"),10),this.border1="#ccc",this.border2=be(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||X(this.primaryColor,{h:30}),this.cScale4=this.cScale4||X(this.primaryColor,{h:60}),this.cScale5=this.cScale5||X(this.primaryColor,{h:90}),this.cScale6=this.cScale6||X(this.primaryColor,{h:120}),this.cScale7=this.cScale7||X(this.primaryColor,{h:150}),this.cScale8=this.cScale8||X(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||X(this.primaryColor,{h:270}),this.cScale10=this.cScale10||X(this.primaryColor,{h:300}),this.cScale11=this.cScale11||X(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=p(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||ht(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)if(this.darkMode)this["cScalePeer"+t]=this["cScalePeer"+t]||h(this["cScale"+t],10);else this["cScalePeer"+t]=this["cScalePeer"+t]||p(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let r=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||X(this.mainBkg,{h:180,s:-15,l:r*(8+t*3)});if(this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||X(this.primaryColor,{h:64}),this.fillType3=this.fillType3||X(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||X(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||X(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||X(this.primaryColor,{h:128}),this.fillType7=this.fillType7||X(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||X(this.primaryColor,{l:-10}),this.pie5=this.pie5||X(this.secondaryColor,{l:-10}),this.pie6=this.pie6||X(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||X(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||X(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||X(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||X(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||X(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||X(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||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?p(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||X(this.primaryColor,{h:-30}),this.git4=this.git4||X(this.primaryColor,{h:-60}),this.git5=this.git5||X(this.primaryColor,{h:-90}),this.git6=this.git6||X(this.primaryColor,{h:60}),this.git7=this.git7||X(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},eC=e((r)=>{let t=new tC;return t.calculate(r),t},"getThemeVariables"),rC=class{static{e(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=xe("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(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?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||(ae(this.background)?h(this.background,4):p(this.background,4));let r="#ECECFE",t="#E9E9F1",i=X(r,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||r,this.activeTaskBorderColor=this.activeTaskBorderColor||r,this.activeTaskBkgColor=this.activeTaskBkgColor||h(r,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||ht(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)if(this.darkMode)this["cScalePeer"+o]=this["cScalePeer"+o]||h(this["cScale"+o],10);else this["cScalePeer"+o]=this["cScalePeer"+o]||p(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let s=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||X(this.mainBkg,{h:180,s:-15,l:s*(8+o*3)});this.classText=this.classText||this.textColor;for(let o=0;o<8;o++)this["fillType"+o]=this["fillType"+o]||this.bkgColorArray[o];for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["pie"+(o+1)]=this["pie"+(o+1)]||this["cScale"+o];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 o=0;o<8;o++)this["venn"+(o+1)]=this["venn"+(o+1)]??this.borderColorArray[o%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||r,this.quadrant2Fill=this.quadrant2Fill||X(r,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(r,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(r,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||r,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?p(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||r,this.git1=this.git1||t,this.git2=this.git2||i,this.git3=this.git3||X(r,{h:-30}),this.git4=this.git4||X(r,{h:-60}),this.git5=this.git5||X(r,{h:-90}),this.git6=this.git6||X(r,{h:60}),this.git7=this.git7||X(r,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},iC=e((r)=>{let t=new rC;return t.calculate(r),t},"getThemeVariables"),oC=class{static{e(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=h(this.primaryColor,16),this.tertiaryColor=X(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.background),this.secondaryBorderColor=xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ht(this.primaryColor),this.secondaryTextColor=ht(this.secondaryColor),this.tertiaryTextColor=ht(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=h(ht("#323D47"),10),this.border1="#ccc",this.border2=be(255,255,255,0.25),this.arrowheadColor=ht(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||X(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||X(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||ht(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ht(this.tertiaryColor),this.lineColor=this.lineColor||ht(this.background),this.arrowheadColor=this.arrowheadColor||ht(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?h(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?p(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||p(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ht(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||h(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleInv"+i]=this["cScaleInv"+i]||ht(this["cScale"+i]);for(let i=0;i<this.THEME_COLOR_LIMIT;i++)if(this.darkMode)this["cScalePeer"+i]=this["cScalePeer"+i]||h(this["cScale"+i],10);else this["cScalePeer"+i]=this["cScalePeer"+i]||p(this["cScale"+i],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["cScaleLabel"+i]=p(this["cScale"+i],75);let r=this.darkMode?-4:-1;for(let i=0;i<5;i++)this["surface"+i]=this["surface"+i]||X(this.mainBkg,{h:180,s:-15,l:r*(5+i*3)}),this["surfacePeer"+i]=this["surfacePeer"+i]||X(this.mainBkg,{h:180,s:-15,l:r*(8+i*3)});this.classText=this.classText||this.textColor,["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((i,s)=>{this["fillType"+s]=this["fillType"+s]||i});for(let i=0;i<this.THEME_COLOR_LIMIT;i++)this["pie"+(i+1)]=this["pie"+(i+1)]||this["cScale"+i];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let i=0;i<8;i++)this["venn"+(i+1)]=this["venn"+(i+1)]??this.borderColorArray[i%this.borderColorArray.length];if(this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||X(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||X(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||X(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||X(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||X(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||X(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ae(this.quadrant1Fill)?h(this.quadrant1Fill):p(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?p(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||X(this.primaryColor,{h:-30}),this.git4=this.git4||X(this.primaryColor,{h:-60}),this.git5=this.git5||X(this.primaryColor,{h:-90}),this.git6=this.git6||X(this.primaryColor,{h:60}),this.git7=this.git7||X(this.primaryColor,{h:120}),this.darkMode)this.git0=h(this.git0,25),this.git1=h(this.git1,25),this.git2=h(this.git2,25),this.git3=h(this.git3,25),this.git4=h(this.git4,25),this.git5=h(this.git5,25),this.git6=h(this.git6,25),this.git7=h(this.git7,25);else this.git0=p(this.git0,25),this.git1=p(this.git1,25),this.git2=p(this.git2,25),this.git3=p(this.git3,25),this.git4=p(this.git4,25),this.git5=p(this.git5,25),this.git6=p(this.git6,25),this.git7=p(this.git7,25);this.gitInv0=this.gitInv0||ht(this.git0),this.gitInv1=this.gitInv1||ht(this.git1),this.gitInv2=this.gitInv2||ht(this.git2),this.gitInv3=this.gitInv3||ht(this.git3),this.gitInv4=this.gitInv4||ht(this.git4),this.gitInv5=this.gitInv5||ht(this.git5),this.gitInv6=this.gitInv6||ht(this.git6),this.gitInv7=this.gitInv7||ht(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||ai,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ni}calculate(r){if(typeof r!=="object"){this.updateColors();return}let t=Object.keys(r);t.forEach((i)=>{this[i]=r[i]}),this.updateColors(),t.forEach((i)=>{this[i]=Zr(this[i],r[i])})}},sC=e((r)=>{let t=new oC;return t.calculate(r),t},"getThemeVariables"),fr={base:{getThemeVariables:q0},dark:{getThemeVariables:z0},default:{getThemeVariables:Me},forest:{getThemeVariables:U0},neutral:{getThemeVariables:G0},neo:{getThemeVariables:V0},"neo-dark":{getThemeVariables:Z0},redux:{getThemeVariables:J0},"redux-dark":{getThemeVariables:eC},"redux-color":{getThemeVariables:iC},"redux-dark-color":{getThemeVariables:sC}},Ge={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,stepDuration:1,stepNumbers:!1,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,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,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,grid:{lineHops:"arc",placements:{},columns:0,rowGap:50,columnGap:50,cellGap:20,containerPadding:20,titleGap:8,horizontalAlign:"center",verticalAlign:"center",curve:"rounded",edgeCornerRadius:5},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},dd={...Ge,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},layered:{edgeRouting:"rounded",lineHops:!0},themeCSS:void 0,themeVariables:fr.default.getThemeVariables(),sequence:{...Ge.sequence,messageFont:e(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:e(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:e(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:Ge.class?.theme,look:Ge.class?.look,layout:Ge.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ge.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ge.c4,useWidth:void 0,personFont:e(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ge.flowchart,inheritDir:!1},external_personFont:e(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:e(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:e(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:e(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:e(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:e(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:e(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:e(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:e(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:e(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:e(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:e(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:e(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:e(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:e(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:e(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:e(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:e(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:e(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:e(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:e(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ge.pie,useWidth:984},xyChart:{...Ge.xyChart,useWidth:void 0},requirement:{...Ge.requirement,useWidth:void 0},packet:{...Ge.packet},eventmodeling:{...Ge.eventmodeling},treeView:{...Ge.treeView,useWidth:void 0},radar:{...Ge.radar},usecase:{...Ge.usecase},railroad:{...Ge.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...Ge.ishikawa},sankey:{...Ge.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Ge.venn},cynefin:{...Ge.cynefin}},pd=e((r,t="")=>Object.keys(r).reduce((i,s)=>{if(Array.isArray(r[s]))return i;else if(typeof r[s]==="object"&&r[s]!==null)return[...i,t+s,...pd(r[s],"")];return[...i,t+s]},[]),"keyify"),aC=new Set(pd(dd,"")),F=dd,nC={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},lC=e((r)=>nC[r]??r,"getDiagramConfigKey"),hC=new Set(["__proto__","constructor","prototype"]),cC=["left","center","right"],uC=["top","center","bottom"];function fd(r){return typeof r==="number"&&Number.isSafeInteger(r)}e(fd,"isValidGridCoordinate");function Ea(r){return typeof r==="string"&&cC.includes(r)}e(Ea,"isGridHorizontalAlign");function Aa(r){return typeof r==="string"&&uC.includes(r)}e(Aa,"isGridVerticalAlign");function Lr(r,t,i,s=r){if(i===void 0)return;if(!fd(i)){let o=s===r?"":` (node "${s}")`,a=i===null?"null":typeof i,c;switch(typeof i){case"string":c=JSON.stringify(i);break;case"number":case"bigint":case"boolean":case"symbol":c=String(i);break;default:c=i===null?"null":Array.isArray(i)?"[array]":`[${typeof i}]`}let l=Error(`GRID_INVALID_COORDINATE: Invalid ${t} for placement "${r}"${o}: expected a safe integer; received ${c} (${a}).`);throw l.code="GRID_INVALID_COORDINATE",l.details={nodeId:s,placementId:r,field:t,value:i},l}}e(Lr,"validateGridCoordinate");function Rr(r,t){if(typeof r==="object"&&r!==null&&!Array.isArray(r))for(let[i,s]of Object.entries(r)){let o=Array.isArray(s)?s:[s];for(let[a,c]of o.entries()){if(typeof c!=="object"||c===null||Array.isArray(c))continue;let l=c,d=Array.isArray(s)?`${i}[${a}]`:i;if(Object.hasOwn(l,"row"))Lr(d,"row",l.row);if(Object.hasOwn(l,"column"))Lr(d,"column",l.column)}}for(let i of t){if(typeof i.metadata!=="object"||i.metadata===null||Array.isArray(i.metadata))continue;let s=i.metadata;if(Object.hasOwn(s,"row"))Lr(i.id,"row",s.row);if(Object.hasOwn(s,"column"))Lr(i.id,"column",s.column)}}e(Rr,"validateGridPlacementCoordinates");function gd(r){if(Array.isArray(r)){n.debug("sanitize emptying grid placements array"),r.length=0;return}for(let t of Object.keys(r)){let i=r[t];if(hC.has(t)||typeof i!=="object"||i===null){n.debug("sanitize deleting object dictionary entry:",t,i),delete r[t];continue}let s=Array.isArray(i)?i:[i];if(s.length===0||Object.keys(s).length!==s.length||s.some((o)=>typeof o!=="object"||o===null||Array.isArray(o))){n.debug("sanitize deleting invalid grid placement sequence:",t,i),delete r[t];continue}for(let[o,a]of s.entries()){let c=a,l=Array.isArray(i)?`${t}[${o}]`:t;for(let d of Object.keys(c)){if(d==="row"||d==="column"){Lr(l,d,c[d]);continue}if(!md(d,c[d]))n.debug("sanitize deleting grid placement property:",d),delete c[d]}}}}e(gd,"sanitizeGridPlacements");function md(r,t){switch(r){case"horizontalAlign":return Ea(t);case"verticalAlign":return Aa(t);default:return!1}}e(md,"isValidGridPlacementProperty");var dC={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},pC=e((r,t)=>{for(let i of Object.keys(r)){let s=r[i];if(i.startsWith("__")||i.includes("proto")||i.includes("constr")||typeof s!=="string"||!t.test(s))n.debug("sanitize deleting dictionary entry:",i,s),delete r[i]}},"sanitizeDictionaryConfig"),Kl=e((r,t)=>{if(n.debug("sanitizeDirective called with",r),typeof r!=="object"||r==null)return;if(Array.isArray(r)){r.forEach((i)=>Kl(i,t));return}for(let i of Object.keys(r)){if(n.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!aC.has(i)||r[i]==null){n.debug("sanitize deleting key: ",i),delete r[i];continue}if(typeof r[i]==="object"){let o=dC[i];if(o)pC(r[i],o);else if(t==="grid"&&i==="placements")gd(r[i]);else n.debug("sanitizing object",i),Kl(r[i],i);continue}let s=["themeCSS","fontFamily","altFontFamily"];for(let o of s)if(i.includes(o))n.debug("sanitizing css option",i),r[i]=hs(r[i])}if(r.themeVariables)for(let i of Object.keys(r.themeVariables)){let s=r.themeVariables[i];if(s?.match&&!s.match(/^[\d "#%(),.;A-Za-z]+$/))r.themeVariables[i]=""}n.debug("After sanitization",r)},"sanitizeDirectiveValue"),Ql=e((r)=>{Kl(r)},"sanitizeDirective"),hs=e((r)=>{let t=0,i=0;for(let s of r){if(t<i)return"{ /* ERROR: Unbalanced CSS */ }";if(s==="{")t++;else if(s==="}")i++}if(t!==i)return"{ /* ERROR: Unbalanced CSS */ }";return r},"sanitizeCss"),Ir=Object.freeze(F),fC=["theme","look","layout"],gC=new Set(["classic","handDrawn","neo"]),mC=e((r,t)=>{if(r==="theme")return t==="null"||Object.hasOwn(fr,t);return r!=="look"||gC.has(t)},"isUsableAppearance"),yC=e((r,t,i)=>{if(!r)return;return[r[t]?.[i],r[i]].find((o)=>o!==void 0&&mC(i,o))},"readAppearance"),kt=e((r)=>r===!1||["false","null","0"].includes(String(r).trim().toLowerCase())?!1:!0,"evaluate"),Tr=fe({},Ir),Ha,Ya={},Si=[],Os=fe({},Ir),Is,xC=e((r,t)=>{if(!Is)return;let i=[t,...[...Si].reverse(),Ya,Ir],s=r[Is];for(let o of fC)for(let a of i){let c=yC(a,Is,o);if(c===void 0)continue;if(r[o]=c,s?.[o]!==void 0)s[o]=c;break}},"resolveAppearance"),Wo=e((r,t)=>{let i=fe({},r),s={};for(let a of t)yd(a),s=fe(s,a);if(i=fe(i,s),xC(i,s),(Boolean(s.theme)||i.theme!==r.theme)&&i.theme&&Object.hasOwn(fr,i.theme)){let a=fe({},Ha),c=fe(a.themeVariables||{},s.themeVariables);i.themeVariables=fr[i.theme].getThemeVariables(c)}return Os=i,bC(Os),Os},"updateCurrentConfig"),Ji=e((r)=>{Is=r===void 0?void 0:lC(r),Wo(Tr,Si)},"setDiagramConfigScope"),fl=e((r)=>{if(Tr=fe({},Ir),Tr=fe(Tr,r),Ya=fe({},r),r.theme&&Object.hasOwn(fr,r.theme))Tr.themeVariables=fr[r.theme].getThemeVariables(r.themeVariables);return Wo(Tr,Si),Tr},"setSiteConfig"),hl=e((r)=>{Ha=fe({},r)},"saveConfigFromInitialize"),pl=e((r)=>(Tr=fe(Tr,r),Ya=fe(Ya,r),Wo(Tr,Si),Tr),"updateSiteConfig"),ps=e(()=>fe({},Tr),"getSiteConfig"),ms=e((r)=>(Wo(Os,[r]),k()),"setConfig"),k=e(()=>fe({},Os),"getConfig"),yd=e((r)=>{if(!r)return;["secure",...Tr.secure??[]].forEach((t)=>{if(Object.hasOwn(r,t))n.debug(`Denied attempt to modify a secure key ${t}`,r[t]),delete r[t]}),Object.keys(r).forEach((t)=>{if(t.startsWith("__"))delete r[t]}),Object.keys(r).forEach((t)=>{if(typeof r[t]==="string"&&(r[t].includes("<")||r[t].includes(">")||r[t].includes("url(data:")))delete r[t];if(typeof r[t]==="object")yd(r[t])})},"sanitize"),ml=e((r)=>{if(Ql(r),r.fontFamily&&!r.themeVariables?.fontFamily)r.themeVariables={...r.themeVariables,fontFamily:r.fontFamily};Si.push(r),Wo(Tr,Si)},"addDirective"),Jn=e((r=Tr)=>{Si=[],Is=void 0,Wo(r,Si)},"reset"),CC={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."},nd={},xd=e((r)=>{if(nd[r])return;n.warn(CC[r]),nd[r]=!0},"issueWarning"),bC=e((r)=>{if(!r)return;if(r.lazyLoadedDiagrams||r.loadExternalDiagramsAtStartup)xd("LAZY_LOAD_DEPRECATED")},"checkConfig"),gl=e(()=>{let r={};if(Ha)r=fe(r,Ha);for(let t of Si)r=fe(r,t);return r},"getUserDefinedConfig"),Ne=e((r)=>{if(r.flowchart?.htmlLabels!=null)xd("FLOWCHART_HTML_LABELS_DEPRECATED");return kt(r.htmlLabels??r.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),hn=/<\/?br\s*\/?>/gi,kC=new RegExp(hn.source,"i"),SC=e((r)=>{if(!r)return[""];return kd(r).replace(/\\n/g,"#br#").split("#br#")},"getRows"),TC=(()=>{let r=!1;return()=>{if(!r)Cd(),r=!0}})();function Cd(){Pe.addHook("beforeSanitizeAttributes",(t)=>{if(t.tagName==="A"&&t.hasAttribute("target"))t.setAttribute("data-temp-href-target",t.getAttribute("target")??"")}),Pe.addHook("afterSanitizeAttributes",(t)=>{if(t.tagName==="A"&&t.hasAttribute("data-temp-href-target")){if(t.setAttribute("target",t.getAttribute("data-temp-href-target")??""),t.removeAttribute("data-temp-href-target"),t.getAttribute("target")==="_blank")t.setAttribute("rel","noopener")}})}e(Cd,"setupDompurifyHooks");var bd=e((r)=>(TC(),Pe.sanitize(r)),"removeScript"),ld=e((r,t)=>{if(Ne(t)){let i=t.securityLevel;if(i==="antiscript"||i==="strict"||i==="sandbox")r=bd(r);else if(i!=="loose")r=kd(r),r=r.replace(/</g,"<").replace(/>/g,">"),r=r.replace(/=/g,"="),r=vC(r)}return r},"sanitizeMore"),q=e((r,t)=>{if(!r)return r;if(t.dompurifyConfig)r=Pe.sanitize(ld(r,t),t.dompurifyConfig).toString();else r=Pe.sanitize(ld(r,t),{FORBID_TAGS:["style"]}).toString();return r},"sanitizeText"),wC=e((r,t)=>{if(typeof r==="string")return q(r,t);return r.flat().map((i)=>q(i,t))},"sanitizeTextOrArray"),BC=e((r)=>kC.test(r),"hasBreaks"),_C=e((r)=>r.split(hn),"splitBreaks"),vC=e((r)=>r.replace(/#br#/g,"<br/>"),"placeholderToBreak"),kd=e((r)=>r.replace(hn,"#br#"),"breakToPlaceholder"),gs=e((r)=>{let t="";if(r)t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t);return t},"getUrl"),LC=e(function(...r){let t=r.filter((i)=>!isNaN(i));return Math.max(...t)},"getMax"),AC=e(function(...r){let t=r.filter((i)=>!isNaN(i));return Math.min(...t)},"getMin"),hr=e(function(r){let t=r.split(/(,)/),i=[];for(let s=0;s<t.length;s++){let o=t[s];if(o===","&&s>0&&s+1<t.length){let a=t[s-1],c=t[s+1];if(FC(a,c))o=a+","+c,s++,i.pop()}i.push(MC(o))}return i.join("")},"parseGenericTypes"),Zl=e((r,t)=>Math.max(0,r.split(t).length-1),"countOccurrence"),FC=e((r,t)=>{let i=Zl(r,"~"),s=Zl(t,"~");return i===1&&s===1},"shouldCombineSets"),MC=e((r)=>{let t=Zl(r,"~"),i=!1;if(t<=1)return r;if(t%2!==0&&r.startsWith("~"))r=r.substring(1),i=!0;let s=[...r],o=s.indexOf("~"),a=s.lastIndexOf("~");while(o!==-1&&a!==-1&&o!==a)s[o]="<",s[a]=">",o=s.indexOf("~"),a=s.lastIndexOf("~");if(i)s.unshift("~");return s.join("")},"processSet"),hd=e(()=>window.MathMLElement!==void 0,"isMathMLSupported"),qa=/\$\$(.*?)\$\$/g,Ce=e((r)=>(r.match(qa)?.length??0)>0,"hasKatex"),ea=e(async(r,t)=>{let i=document.createElement("div");i.innerHTML=await ta(r,t),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",i);let o={width:i.clientWidth,height:i.clientHeight};return i.remove(),o},"calculateMathMLDimensions"),EC=e(async(r,t)=>{if(!Ce(r))return r;if(!(hd()||t.legacyMathML||t.forceLegacyMathML))return r.replace(qa,"MathML is unsupported in this environment.");{let{default:i}=await (_("n08hp8fc"),import("./katex.n08hp8fc.js")),s=t.forceLegacyMathML||!hd()&&t.legacyMathML?"htmlAndMathml":"mathml";return r.split(hn).map((o)=>Ce(o)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${o}</div>`:`<div>${o}</div>`).join("").replace(qa,(o,a)=>i.renderToString(a,{throwOnError:!0,displayMode:!0,output:s}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}return r.replace(qa,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),ta=e(async(r,t)=>q(await EC(r,t),t),"renderKatexSanitized"),y={getRows:SC,sanitizeText:q,sanitizeTextOrArray:wC,hasBreaks:BC,splitBreaks:_C,lineBreakRegex:hn,removeScript:bd,getUrl:gs,evaluate:kt,getMax:LC,getMin:AC},OC=e(function(r,t){for(let i of t)r.attr(i[0],i[1])},"d3Attrs"),IC=e(function(r,t,i){let s=new Map;if(i)s.set("width","100%"),s.set("style",`max-width: ${t}px;`);else s.set("height",r),s.set("width",t);return s},"calculateSvgSizeAttrs"),j=e(function(r,t,i,s){let o=IC(t,i,s);OC(r,o)},"configureSvgSize"),Tt=e(function(r,t,i,s){let o=t.node().getBBox(),{width:a,height:c}=o;n.info(`SVG bounds: ${a}x${c}`,o);let l=0,d=0;n.info(`Graph bounds: ${l}x${d}`,r),l=a+i*2,d=c+i*2,n.info(`Calculated bounds: ${l}x${d}`),j(t,d,l,s);let x=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;t.attr("viewBox",x)},"setupGraphViewbox"),Wa={};function eo(r){return[...r.cssRules].map((t)=>t.cssText).join(`
|
|
7
|
+
`)}e(eo,"cssStyleSheetToString");var $C=e((r,t,i,s)=>{let o="";if(r in Wa&&Wa[r])o=Wa[r]({...i,svgId:s});else n.warn(`No theme found for ${r}`);return`& {
|
|
8
|
+
font-family: ${i.fontFamily};
|
|
9
|
+
font-size: ${i.fontSize};
|
|
10
|
+
fill: ${i.textColor}
|
|
11
|
+
}
|
|
12
|
+
@keyframes edge-animation-frame {
|
|
13
|
+
from {
|
|
14
|
+
stroke-dashoffset: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes dash {
|
|
18
|
+
to {
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
& .edge-animation-slow {
|
|
23
|
+
stroke-dasharray: 9,5 !important;
|
|
24
|
+
stroke-dashoffset: 900;
|
|
25
|
+
animation: dash 50s linear infinite;
|
|
26
|
+
stroke-linecap: round;
|
|
27
|
+
}
|
|
28
|
+
& .edge-animation-fast {
|
|
29
|
+
stroke-dasharray: 9,5 !important;
|
|
30
|
+
stroke-dashoffset: 900;
|
|
31
|
+
animation: dash 20s linear infinite;
|
|
32
|
+
stroke-linecap: round;
|
|
33
|
+
}
|
|
34
|
+
/* Classes common for multiple diagrams */
|
|
35
|
+
|
|
36
|
+
& .error-icon {
|
|
37
|
+
fill: ${i.errorBkgColor};
|
|
38
|
+
}
|
|
39
|
+
& .error-text {
|
|
40
|
+
fill: ${i.errorTextColor};
|
|
41
|
+
stroke: ${i.errorTextColor};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .edge-thickness-normal {
|
|
45
|
+
stroke-width: ${i.strokeWidth??1}px;
|
|
46
|
+
}
|
|
47
|
+
& .edge-thickness-thick {
|
|
48
|
+
stroke-width: 3.5px
|
|
49
|
+
}
|
|
50
|
+
& .edge-pattern-solid {
|
|
51
|
+
stroke-dasharray: 0;
|
|
52
|
+
}
|
|
53
|
+
& .edge-thickness-invisible {
|
|
54
|
+
stroke-width: 0;
|
|
55
|
+
fill: none;
|
|
56
|
+
}
|
|
57
|
+
& .edge-pattern-dashed{
|
|
58
|
+
stroke-dasharray: 3;
|
|
59
|
+
}
|
|
60
|
+
.edge-pattern-dotted {
|
|
61
|
+
stroke-dasharray: 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .marker {
|
|
65
|
+
fill: ${i.lineColor};
|
|
66
|
+
stroke: ${i.lineColor};
|
|
67
|
+
}
|
|
68
|
+
& .marker.cross {
|
|
69
|
+
stroke: ${i.lineColor};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& svg {
|
|
73
|
+
font-family: ${i.fontFamily};
|
|
74
|
+
font-size: ${i.fontSize};
|
|
75
|
+
}
|
|
76
|
+
& p {
|
|
77
|
+
margin: 0
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${o}
|
|
81
|
+
.node .neo-node {
|
|
82
|
+
stroke: ${i.nodeBorder};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
86
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
87
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
90
|
+
filter: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
[data-look="neo"].node path {
|
|
95
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
96
|
+
stroke-width: ${i.strokeWidth??1}px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-look="neo"].node .outer-path {
|
|
100
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-look="neo"].node .neo-line path {
|
|
104
|
+
stroke: ${i.nodeBorder};
|
|
105
|
+
filter: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-look="neo"].node circle{
|
|
109
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
110
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-look="neo"].node circle .state-start{
|
|
114
|
+
fill: #000000;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-look="neo"].icon-shape .icon {
|
|
118
|
+
fill: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
119
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
123
|
+
stroke: ${i.useGradient?"url("+s+"-gradient)":i.nodeBorder};
|
|
124
|
+
filter: ${i.dropShadow?i.dropShadow.replace("url(#drop-shadow)",`url(${s}-drop-shadow)`):"none"};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${t}
|
|
128
|
+
`},"getStyles");var DC=e((r,t)=>{if(t!==void 0)Wa[r]=t},"addStylesForDiagram"),bl=$C,to={};dr(to,{clear:()=>A,getAccDescription:()=>M,getAccTitle:()=>I,getDiagramTitle:()=>D,setAccDescription:()=>R,setAccTitle:()=>L,setDiagramTitle:()=>O});var Jl="",th="",eh="",rh=e((r)=>q(r,k()),"sanitizeText"),A=e(()=>{Jl="",eh="",th=""},"clear"),L=e((r)=>{Jl=rh(r).replace(/^\s+/g,"")},"setAccTitle"),I=e(()=>Jl,"getAccTitle"),R=e((r)=>{eh=rh(r).replace(/\n\s+/g,`
|
|
129
|
+
`)},"setAccDescription"),M=e(()=>eh,"getAccDescription"),O=e((r)=>{th=rh(r)},"setDiagramTitle"),D=e(()=>th,"getDiagramTitle"),cd=n,PC=Sa,u=k,Pt=ms,Kr=Ir,ja=e((r)=>q(r,u()),"sanitizeText"),ra=Tt,RC=e(()=>to,"getCommonDb"),Ua={},_a=e((r,t,i)=>{if(Ua[r])cd.warn(`Diagram with id ${r} already registered. Overwriting.`);if(Ua[r]=t,i)ud(r,i);DC(r,t.styles),t.injectUtils?.(cd,PC,u,ja,ra,RC(),()=>{})},"registerDiagram"),ro=e((r)=>{if(r in Ua)return Ua[r];throw new NC(r)},"getDiagram"),NC=class extends Error{static{e(this,"DiagramNotFoundError")}constructor(r){super(`Diagram ${r} not found.`)}};var ih="http://www.w3.org/1999/xhtml",Sd={svg:"http://www.w3.org/2000/svg",xhtml:ih,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Td(r){var t=r+="",i=t.indexOf(":");if(i>=0&&(t=r.slice(0,i))!=="xmlns")r=r.slice(i+1);return Sd.hasOwnProperty(t)?{space:Sd[t],local:r}:r}function qC(r){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===ih&&t.documentElement.namespaceURI===ih?t.createElement(r):t.createElementNS(i,r)}}function WC(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function wd(r){var t=Td(r);return(t.local?WC:qC)(t)}function zC(){}function Bd(r){return r==null?zC:function(){return this.querySelector(r)}}function HC(r){if(typeof r!=="function")r=Bd(r);for(var t=this._groups,i=t.length,s=Array(i),o=0;o<i;++o)for(var a=t[o],c=a.length,l=s[o]=Array(c),d,x,f=0;f<c;++f)if((d=a[f])&&(x=r.call(d,d.__data__,f,a))){if("__data__"in d)x.__data__=d.__data__;l[f]=x}return new $r(s,this._parents)}function YC(r){return r==null?[]:Array.isArray(r)?r:Array.from(r)}function UC(){return[]}function jC(r){return r==null?UC:function(){return this.querySelectorAll(r)}}function GC(r){return function(){return YC(r.apply(this,arguments))}}function XC(r){if(typeof r==="function")r=GC(r);else r=jC(r);for(var t=this._groups,i=t.length,s=[],o=[],a=0;a<i;++a)for(var c=t[a],l=c.length,d,x=0;x<l;++x)if(d=c[x])s.push(r.call(d,d.__data__,x,c)),o.push(d);return new $r(s,o)}function VC(r){return function(){return this.matches(r)}}function _d(r){return function(t){return t.matches(r)}}var KC=Array.prototype.find;function ZC(r){return function(){return KC.call(this.children,r)}}function QC(){return this.firstElementChild}function JC(r){return this.select(r==null?QC:ZC(typeof r==="function"?r:_d(r)))}var tb=Array.prototype.filter;function eb(){return Array.from(this.children)}function rb(r){return function(){return tb.call(this.children,r)}}function ib(r){return this.selectAll(r==null?eb:rb(typeof r==="function"?r:_d(r)))}function ob(r){if(typeof r!=="function")r=VC(r);for(var t=this._groups,i=t.length,s=Array(i),o=0;o<i;++o)for(var a=t[o],c=a.length,l=s[o]=[],d,x=0;x<c;++x)if((d=a[x])&&r.call(d,d.__data__,x,a))l.push(d);return new $r(s,this._parents)}function vd(r){return Array(r.length)}function sb(){return new $r(this._enter||this._groups.map(vd),this._parents)}function Ga(r,t){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=t}Ga.prototype={constructor:Ga,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,t){return this._parent.insertBefore(r,t)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function ab(r){return function(){return r}}function nb(r,t,i,s,o,a){var c=0,l,d=t.length,x=a.length;for(;c<x;++c)if(l=t[c])l.__data__=a[c],s[c]=l;else i[c]=new Ga(r,a[c]);for(;c<d;++c)if(l=t[c])o[c]=l}function lb(r,t,i,s,o,a,c){var l,d,x=new Map,f=t.length,b=a.length,T=Array(f),w;for(l=0;l<f;++l)if(d=t[l])if(T[l]=w=c.call(d,d.__data__,l,t)+"",x.has(w))o[l]=d;else x.set(w,d);for(l=0;l<b;++l)if(w=c.call(r,a[l],l,a)+"",d=x.get(w))s[l]=d,d.__data__=a[l],x.delete(w);else i[l]=new Ga(r,a[l]);for(l=0;l<f;++l)if((d=t[l])&&x.get(T[l])===d)o[l]=d}function hb(r){return r.__data__}function cb(r,t){if(!arguments.length)return Array.from(this,hb);var i=t?lb:nb,s=this._parents,o=this._groups;if(typeof r!=="function")r=ab(r);for(var a=o.length,c=Array(a),l=Array(a),d=Array(a),x=0;x<a;++x){var f=s[x],b=o[x],T=b.length,w=ub(r.call(f,f&&f.__data__,x,s)),v=w.length,E=l[x]=Array(v),P=c[x]=Array(v),W=d[x]=Array(T);i(f,b,E,P,W,w,t);for(var H=0,V=0,Q,J;H<v;++H)if(Q=E[H]){if(H>=V)V=H+1;while(!(J=P[V])&&++V<v);Q._next=J||null}}return c=new $r(c,s),c._enter=l,c._exit=d,c}function ub(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function db(){return new $r(this._exit||this._groups.map(vd),this._parents)}function pb(r,t,i){var s=this.enter(),o=this,a=this.exit();if(typeof r==="function"){if(s=r(s),s)s=s.selection()}else s=s.append(r+"");if(t!=null){if(o=t(o),o)o=o.selection()}if(i==null)a.remove();else i(a);return s&&o?s.merge(o).order():o}function fb(r){var t=r.selection?r.selection():r;for(var i=this._groups,s=t._groups,o=i.length,a=s.length,c=Math.min(o,a),l=Array(o),d=0;d<c;++d)for(var x=i[d],f=s[d],b=x.length,T=l[d]=Array(b),w,v=0;v<b;++v)if(w=x[v]||f[v])T[v]=w;for(;d<o;++d)l[d]=i[d];return new $r(l,this._parents)}function gb(){for(var r=this._groups,t=-1,i=r.length;++t<i;)for(var s=r[t],o=s.length-1,a=s[o],c;--o>=0;)if(c=s[o]){if(a&&c.compareDocumentPosition(a)^4)a.parentNode.insertBefore(c,a);a=c}return this}function mb(r){if(!r)r=yb;function t(b,T){return b&&T?r(b.__data__,T.__data__):!b-!T}for(var i=this._groups,s=i.length,o=Array(s),a=0;a<s;++a){for(var c=i[a],l=c.length,d=o[a]=Array(l),x,f=0;f<l;++f)if(x=c[f])d[f]=x;d.sort(t)}return new $r(o,this._parents).order()}function yb(r,t){return r<t?-1:r>t?1:r>=t?0:NaN}function xb(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Cb(){return Array.from(this)}function bb(){for(var r=this._groups,t=0,i=r.length;t<i;++t)for(var s=r[t],o=0,a=s.length;o<a;++o){var c=s[o];if(c)return c}return null}function kb(){let r=0;for(let t of this)++r;return r}function Sb(){return!this.node()}function Tb(r){for(var t=this._groups,i=0,s=t.length;i<s;++i)for(var o=t[i],a=0,c=o.length,l;a<c;++a)if(l=o[a])r.call(l,l.__data__,a,o);return this}function wb(r){return function(){this.removeAttribute(r)}}function Bb(r){return function(){this.removeAttributeNS(r.space,r.local)}}function _b(r,t){return function(){this.setAttribute(r,t)}}function vb(r,t){return function(){this.setAttributeNS(r.space,r.local,t)}}function Lb(r,t){return function(){var i=t.apply(this,arguments);if(i==null)this.removeAttribute(r);else this.setAttribute(r,i)}}function Ab(r,t){return function(){var i=t.apply(this,arguments);if(i==null)this.removeAttributeNS(r.space,r.local);else this.setAttributeNS(r.space,r.local,i)}}function Fb(r,t){var i=Td(r);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((t==null?i.local?Bb:wb:typeof t==="function"?i.local?Ab:Lb:i.local?vb:_b)(i,t))}function Ld(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function Mb(r){return function(){this.style.removeProperty(r)}}function Eb(r,t,i){return function(){this.style.setProperty(r,t,i)}}function Ob(r,t,i){return function(){var s=t.apply(this,arguments);if(s==null)this.style.removeProperty(r);else this.style.setProperty(r,s,i)}}function Ib(r,t,i){return arguments.length>1?this.each((t==null?Mb:typeof t==="function"?Ob:Eb)(r,t,i==null?"":i)):$b(this.node(),r)}function $b(r,t){return r.style.getPropertyValue(t)||Ld(r).getComputedStyle(r,null).getPropertyValue(t)}function Db(r){return function(){delete this[r]}}function Pb(r,t){return function(){this[r]=t}}function Rb(r,t){return function(){var i=t.apply(this,arguments);if(i==null)delete this[r];else this[r]=i}}function Nb(r,t){return arguments.length>1?this.each((t==null?Db:typeof t==="function"?Rb:Pb)(r,t)):this.node()[r]}function Ad(r){return r.trim().split(/^|\s+/)}function sh(r){return r.classList||new Fd(r)}function Fd(r){this._node=r,this._names=Ad(r.getAttribute("class")||"")}Fd.prototype={add:function(r){var t=this._names.indexOf(r);if(t<0)this._names.push(r),this._node.setAttribute("class",this._names.join(" "))},remove:function(r){var t=this._names.indexOf(r);if(t>=0)this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(r){return this._names.indexOf(r)>=0}};function Md(r,t){var i=sh(r),s=-1,o=t.length;while(++s<o)i.add(t[s])}function Ed(r,t){var i=sh(r),s=-1,o=t.length;while(++s<o)i.remove(t[s])}function qb(r){return function(){Md(this,r)}}function Wb(r){return function(){Ed(this,r)}}function zb(r,t){return function(){(t.apply(this,arguments)?Md:Ed)(this,r)}}function Hb(r,t){var i=Ad(r+"");if(arguments.length<2){var s=sh(this.node()),o=-1,a=i.length;while(++o<a)if(!s.contains(i[o]))return!1;return!0}return this.each((typeof t==="function"?zb:t?qb:Wb)(i,t))}function Yb(){this.textContent=""}function Ub(r){return function(){this.textContent=r}}function jb(r){return function(){var t=r.apply(this,arguments);this.textContent=t==null?"":t}}function Gb(r){return arguments.length?this.each(r==null?Yb:(typeof r==="function"?jb:Ub)(r)):this.node().textContent}function Xb(){this.innerHTML=""}function Vb(r){return function(){this.innerHTML=r}}function Kb(r){return function(){var t=r.apply(this,arguments);this.innerHTML=t==null?"":t}}function Zb(r){return arguments.length?this.each(r==null?Xb:(typeof r==="function"?Kb:Vb)(r)):this.node().innerHTML}function Qb(){if(this.nextSibling)this.parentNode.appendChild(this)}function Jb(){return this.each(Qb)}function tk(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ek(){return this.each(tk)}function rk(r){var t=typeof r==="function"?r:wd(r);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ik(){return null}function ok(r,t){var i=typeof r==="function"?r:wd(r),s=t==null?ik:typeof t==="function"?t:Bd(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function sk(){var r=this.parentNode;if(r)r.removeChild(this)}function ak(){return this.each(sk)}function nk(){var r=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function lk(){var r=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(r,this.nextSibling):r}function hk(r){return this.select(r?lk:nk)}function ck(r){return arguments.length?this.property("__data__",r):this.node().__data__}function uk(r){return function(t){r.call(this,t,this.__data__)}}function dk(r){return r.trim().split(/^|\s+/).map(function(t){var i="",s=t.indexOf(".");if(s>=0)i=t.slice(s+1),t=t.slice(0,s);return{type:t,name:i}})}function pk(r){return function(){var t=this.__on;if(!t)return;for(var i=0,s=-1,o=t.length,a;i<o;++i)if(a=t[i],(!r.type||a.type===r.type)&&a.name===r.name)this.removeEventListener(a.type,a.listener,a.options);else t[++s]=a;if(++s)t.length=s;else delete this.__on}}function fk(r,t,i){return function(){var s=this.__on,o,a=uk(t);if(s){for(var c=0,l=s.length;c<l;++c)if((o=s[c]).type===r.type&&o.name===r.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=i),o.value=t;return}}if(this.addEventListener(r.type,a,i),o={type:r.type,name:r.name,value:t,listener:a,options:i},!s)this.__on=[o];else s.push(o)}}function gk(r,t,i){var s=dk(r+""),o,a=s.length,c;if(arguments.length<2){var l=this.node().__on;if(l){for(var d=0,x=l.length,f;d<x;++d)for(o=0,f=l[d];o<a;++o)if((c=s[o]).type===f.type&&c.name===f.name)return f.value}return}l=t?fk:pk;for(o=0;o<a;++o)this.each(l(s[o],t,i));return this}function Od(r,t,i){var s=Ld(r),o=s.CustomEvent;if(typeof o==="function")o=new o(t,i);else if(o=s.document.createEvent("Event"),i)o.initEvent(t,i.bubbles,i.cancelable),o.detail=i.detail;else o.initEvent(t,!1,!1);r.dispatchEvent(o)}function mk(r,t){return function(){return Od(this,r,t)}}function yk(r,t){return function(){return Od(this,r,t.apply(this,arguments))}}function xk(r,t){return this.each((typeof t==="function"?yk:mk)(r,t))}function*Ck(){for(var r=this._groups,t=0,i=r.length;t<i;++t)for(var s=r[t],o=0,a=s.length,c;o<a;++o)if(c=s[o])yield c}var Id=[null];function $r(r,t){this._groups=r,this._parents=t}function bk(){return new $r([[document.documentElement]],Id)}function kk(){return this}$r.prototype=bk.prototype={constructor:$r,select:HC,selectAll:XC,selectChild:JC,selectChildren:ib,filter:ob,data:cb,enter:sb,exit:db,join:pb,merge:fb,selection:kk,order:gb,sort:mb,call:xb,nodes:Cb,node:bb,size:kb,empty:Sb,each:Tb,attr:Fb,style:Ib,property:Nb,classed:Hb,text:Gb,html:Zb,raise:Jb,lower:ek,append:rk,insert:ok,remove:ak,clone:hk,datum:ck,on:gk,dispatch:xk,[Symbol.iterator]:Ck};function m(r){return typeof r==="string"?new $r([[document.querySelector(r)]],[document.documentElement]):new $r([[r]],Id)}var Sk=0;function Tk(){return new oh}function oh(){this._="@"+(++Sk).toString(36)}oh.prototype=Tk.prototype={constructor:oh,get:function(r){var t=this._;while(!(t in r))if(!(r=r.parentNode))return;return r[t]},set:function(r,t){return r[this._]=t},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}};var $s=Math.PI,ah=2*$s;var wk=ah-0.000001;function $d(r){this._+=r[0];for(let t=1,i=r.length;t<i;++t)this._+=arguments[t]+r[t]}function Bk(r){let t=Math.floor(r);if(!(t>=0))throw Error(`invalid digits: ${r}`);if(t>15)return $d;let i=10**t;return function(s){this._+=s[0];for(let o=1,a=s.length;o<a;++o)this._+=Math.round(arguments[o]*i)/i+s[o]}}function Dd(r,t,i,s){return r===i&&t===s}function _k(r){let t=Math.floor(r);if(!(t<=15))return Dd;let i=10**t,s=function(o){return Math.round(o*i)};return function(o,a,c,l){return s(o)===s(c)&&s(a)===s(l)}}class Ds{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?$d:Bk(r),this._equal=r==null?Dd:_k(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._append`Z`}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,i,s){this._append`Q${+r},${+t},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(r,t,i,s,o,a){this._append`C${+r},${+t},${+i},${+s},${this._x1=+o},${this._y1=+a}`}arcTo(r,t,i,s,o){if(r=+r,t=+t,i=+i,s=+s,o=+o,o<0)throw Error(`negative radius: ${o}`);let a=this._x1,c=this._y1,l=i-r,d=s-t,x=a-r,f=c-t,b=x*x+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(!(b>0.000001));else if(!(Math.abs(f*l-d*x)>0.000001)||!o)this._append`L${this._x1=r},${this._y1=t}`;else{let T=i-a,w=s-c,v=l*l+d*d,E=T*T+w*w,P=Math.sqrt(v),W=Math.sqrt(b),H=o*Math.tan(($s-Math.acos((v+b-E)/(2*P*W)))/2),V=H/W,Q=H/P;if(Math.abs(V-1)>0.000001)this._append`L${r+V*x},${t+V*f}`;this._append`A${o},${o},0,0,${+(f*T>x*w)},${this._x1=r+Q*l},${this._y1=t+Q*d}`}}arc(r,t,i,s,o,a){if(r=+r,t=+t,i=+i,a=!!a,i<0)throw Error(`negative radius: ${i}`);let c=i*Math.cos(s),l=i*Math.sin(s),d=r+c,x=t+l,f=1^a,b=a?s-o:o-s;if(this._x1===null)this._append`M${d},${x}`;else if(Math.abs(this._x1-d)>0.000001||Math.abs(this._y1-x)>0.000001)this._append`L${d},${x}`;if(!i)return;if(b<0)b=b%ah+ah;if(b>wk)this._append`A${i},${i},0,1,${f},${r-c},${t-l}A${i},${i},0,1,${f},${this._x1=d},${this._y1=x}`;else if(b>0.000001){let T=r+i*Math.cos(o),w=t+i*Math.sin(o);if(b>=$s&&this._equal(d,x,T,w)){b/=2;let v=s+b;this._append`A${i},${i},0,${+(b>=$s)},${f},${r+i*Math.cos(v)},${t+i*Math.sin(v)}`}this._append`A${i},${i},0,${+(b>=$s)},${f},${this._x1=T},${this._y1=w}`}}rect(r,t,i,s){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function vk(){return new Ds}vk.prototype=Ds.prototype;function Xe(r){return function(){return r}}var{abs:Pd,atan2:lr,cos:Pi,max:Lk,min:nh,sin:Dr,sqrt:jr}=Math,cr=0.000000000001,Ui=Math.PI,Va=Ui/2,zo=2*Ui;function Ak(r){return r>1?0:r<-1?Ui:Math.acos(r)}function Rd(r){return r>=1?Va:r<=-1?-Va:Math.asin(r)}function Hd(r){let t=3;return r.digits=function(i){if(!arguments.length)return t;if(i==null)t=null;else{let s=Math.floor(i);if(!(s>=0))throw RangeError(`invalid digits: ${i}`);t=s}return r},()=>new Ds(t)}function Fk(r){return r.innerRadius}function Mk(r){return r.outerRadius}function Ek(r){return r.startAngle}function Ok(r){return r.endAngle}function Ik(r){return r&&r.padAngle}function $k(r,t,i,s,o,a,c,l){var d=i-r,x=s-t,f=c-o,b=l-a,T=b*d-f*x;if(T*T<cr)return;return T=(f*(t-a)-b*(r-o))/T,[r+T*d,t+T*x]}function Xa(r,t,i,s,o,a,c){var l=r-i,d=t-s,x=(c?a:-a)/jr(l*l+d*d),f=x*d,b=-x*l,T=r+f,w=t+b,v=i+f,E=s+b,P=(T+v)/2,W=(w+E)/2,H=v-T,V=E-w,Q=H*H+V*V,J=o-a,st=T*E-v*w,lt=(V<0?-1:1)*jr(Lk(0,J*J*Q-st*st)),pt=(st*V-H*lt)/Q,ft=(-st*H-V*lt)/Q,wt=(st*V+H*lt)/Q,_t=(-st*H+V*lt)/Q,xt=pt-P,et=ft-W,ot=wt-P,bt=_t-W;if(xt*xt+et*et>ot*ot+bt*bt)pt=wt,ft=_t;return{cx:pt,cy:ft,x01:-f,y01:-b,x11:pt*(o/J-1),y11:ft*(o/J-1)}}function Qt(){var r=Fk,t=Mk,i=Xe(0),s=null,o=Ek,a=Ok,c=Ik,l=null,d=Hd(x);function x(){var f,b,T=+r.apply(this,arguments),w=+t.apply(this,arguments),v=o.apply(this,arguments)-Va,E=a.apply(this,arguments)-Va,P=Pd(E-v),W=E>v;if(!l)l=f=d();if(w<T)b=w,w=T,T=b;if(!(w>cr))l.moveTo(0,0);else if(P>zo-cr){if(l.moveTo(w*Pi(v),w*Dr(v)),l.arc(0,0,w,v,E,!W),T>cr)l.moveTo(T*Pi(E),T*Dr(E)),l.arc(0,0,T,E,v,W)}else{var H=v,V=E,Q=v,J=E,st=P,lt=P,pt=c.apply(this,arguments)/2,ft=pt>cr&&(s?+s.apply(this,arguments):jr(T*T+w*w)),wt=nh(Pd(w-T)/2,+i.apply(this,arguments)),_t=wt,xt=wt,et,ot;if(ft>cr){var bt=Rd(ft/T*Dr(pt)),it=Rd(ft/w*Dr(pt));if((st-=bt*2)>cr)bt*=W?1:-1,Q+=bt,J-=bt;else st=0,Q=J=(v+E)/2;if((lt-=it*2)>cr)it*=W?1:-1,H+=it,V-=it;else lt=0,H=V=(v+E)/2}var Lt=w*Pi(H),Et=w*Dr(H),yt=T*Pi(J),qt=T*Dr(J);if(wt>cr){var Wt=w*Pi(V),Xt=w*Dr(V),oe=T*Pi(Q),ne=T*Dr(Q),Kt;if(P<Ui)if(Kt=$k(Lt,Et,oe,ne,Wt,Xt,yt,qt)){var zt=Lt-Kt[0],te=Et-Kt[1],ee=Wt-Kt[0],de=Xt-Kt[1],me=1/Dr(Ak((zt*ee+te*de)/(jr(zt*zt+te*te)*jr(ee*ee+de*de)))/2),Te=jr(Kt[0]*Kt[0]+Kt[1]*Kt[1]);_t=nh(wt,(T-Te)/(me-1)),xt=nh(wt,(w-Te)/(me+1))}else _t=xt=0}if(!(lt>cr))l.moveTo(Lt,Et);else if(xt>cr)if(et=Xa(oe,ne,Lt,Et,w,xt,W),ot=Xa(Wt,Xt,yt,qt,w,xt,W),l.moveTo(et.cx+et.x01,et.cy+et.y01),xt<wt)l.arc(et.cx,et.cy,xt,lr(et.y01,et.x01),lr(ot.y01,ot.x01),!W);else l.arc(et.cx,et.cy,xt,lr(et.y01,et.x01),lr(et.y11,et.x11),!W),l.arc(0,0,w,lr(et.cy+et.y11,et.cx+et.x11),lr(ot.cy+ot.y11,ot.cx+ot.x11),!W),l.arc(ot.cx,ot.cy,xt,lr(ot.y11,ot.x11),lr(ot.y01,ot.x01),!W);else l.moveTo(Lt,Et),l.arc(0,0,w,H,V,!W);if(!(T>cr)||!(st>cr))l.lineTo(yt,qt);else if(_t>cr)if(et=Xa(yt,qt,Wt,Xt,T,-_t,W),ot=Xa(Lt,Et,oe,ne,T,-_t,W),l.lineTo(et.cx+et.x01,et.cy+et.y01),_t<wt)l.arc(et.cx,et.cy,_t,lr(et.y01,et.x01),lr(ot.y01,ot.x01),!W);else l.arc(et.cx,et.cy,_t,lr(et.y01,et.x01),lr(et.y11,et.x11),!W),l.arc(0,0,T,lr(et.cy+et.y11,et.cx+et.x11),lr(ot.cy+ot.y11,ot.cx+ot.x11),W),l.arc(ot.cx,ot.cy,_t,lr(ot.y11,ot.x11),lr(ot.y01,ot.x01),!W);else l.arc(0,0,T,J,Q,W)}if(l.closePath(),f)return l=null,f+""||null}return x.centroid=function(){var f=(+r.apply(this,arguments)+ +t.apply(this,arguments))/2,b=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ui/2;return[Pi(b)*f,Dr(b)*f]},x.innerRadius=function(f){return arguments.length?(r=typeof f==="function"?f:Xe(+f),x):r},x.outerRadius=function(f){return arguments.length?(t=typeof f==="function"?f:Xe(+f),x):t},x.cornerRadius=function(f){return arguments.length?(i=typeof f==="function"?f:Xe(+f),x):i},x.padRadius=function(f){return arguments.length?(s=f==null?null:typeof f==="function"?f:Xe(+f),x):s},x.startAngle=function(f){return arguments.length?(o=typeof f==="function"?f:Xe(+f),x):o},x.endAngle=function(f){return arguments.length?(a=typeof f==="function"?f:Xe(+f),x):a},x.padAngle=function(f){return arguments.length?(c=typeof f==="function"?f:Xe(+f),x):c},x.context=function(f){return arguments.length?(l=f==null?null:f,x):l},x}var d_=Array.prototype.slice;function Yd(r){return typeof r==="object"&&"length"in r?r:Array.from(r)}function Ud(r){this._context=r}Ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t);break}}};function pr(r){return new Ud(r)}function Dk(r){return r[0]}function Pk(r){return r[1]}function La(r,t){var i=Xe(!0),s=null,o=pr,a=null,c=Hd(l);r=typeof r==="function"?r:r===void 0?Dk:Xe(r),t=typeof t==="function"?t:t===void 0?Pk:Xe(t);function l(d){var x,f=(d=Yd(d)).length,b,T=!1,w;if(s==null)a=o(w=c());for(x=0;x<=f;++x){if(!(x<f&&i(b=d[x],x,d))===T)if(T=!T)a.lineStart();else a.lineEnd();if(T)a.point(+r(b,x,d),+t(b,x,d))}if(w)return a=null,w+""||null}return l.x=function(d){return arguments.length?(r=typeof d==="function"?d:Xe(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d==="function"?d:Xe(+d),l):t},l.defined=function(d){return arguments.length?(i=typeof d==="function"?d:Xe(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,s!=null&&(a=o(s)),l):o},l.context=function(d){return arguments.length?(d==null?s=a=null:a=o(s=d),l):s},l}function Rk(r,t){return t<r?-1:t>r?1:t>=r?0:NaN}function Nk(r){return r}function vl(){var r=Nk,t=Rk,i=null,s=Xe(0),o=Xe(zo),a=Xe(0);function c(l){var d,x=(l=Yd(l)).length,f,b,T=0,w=Array(x),v=Array(x),E=+s.apply(this,arguments),P=Math.min(zo,Math.max(-zo,o.apply(this,arguments)-E)),W,H=Math.min(Math.abs(P)/x,a.apply(this,arguments)),V=H*(P<0?-1:1),Q;for(d=0;d<x;++d)if((Q=v[w[d]=d]=+r(l[d],d,l))>0)T+=Q;if(t!=null)w.sort(function(J,st){return t(v[J],v[st])});else if(i!=null)w.sort(function(J,st){return i(l[J],l[st])});for(d=0,b=T?(P-x*V)/T:0;d<x;++d,E=W)f=w[d],Q=v[f],W=E+(Q>0?Q*b:0)+V,v[f]={data:l[f],index:d,value:Q,startAngle:E,endAngle:W,padAngle:H};return v}return c.value=function(l){return arguments.length?(r=typeof l==="function"?l:Xe(+l),c):r},c.sortValues=function(l){return arguments.length?(t=l,i=null,c):t},c.sort=function(l){return arguments.length?(i=l,t=null,c):i},c.startAngle=function(l){return arguments.length?(s=typeof l==="function"?l:Xe(+l),c):s},c.endAngle=function(l){return arguments.length?(o=typeof l==="function"?l:Xe(+l),c):o},c.padAngle=function(l){return arguments.length?(a=typeof l==="function"?l:Xe(+l),c):a},c}var p_=qk(pr);function jd(r){this._curve=r}jd.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,t){this._curve.point(t*Math.sin(r),t*-Math.cos(r))}};function qk(r){function t(i){return new jd(r(i))}return t._curve=r,t}class hh{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(r,t);else this._context.moveTo(r,t);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function Ja(r){return new hh(r,!0)}function tn(r){return new hh(r,!1)}var f_=jr(3);var Wk=jr(0.3333333333333333),g_=Wk*2;var Gd=Dr(Ui/10)/Dr(7*Ui/10),m_=Dr(zo/10)*Gd,y_=-Pi(zo/10)*Gd;var x_=jr(3);var C_=jr(3);var b_=jr(3)/2,zk=1/jr(12),k_=(zk/2+1)*3;function Ri(){}function Ka(r,t,i){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+t)/6,(r._y0+4*r._y1+i)/6)}function en(r){this._context=r}en.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ka(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ka(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}};function Ps(r){return new en(r)}function Xd(r){this._context=r}Xd.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:Ka(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}};function Vd(r){return new Xd(r)}function Kd(r){this._context=r}Kd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,s=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);break;case 3:this._point=4;default:Ka(this,r,t);break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}};function Zd(r){return new Kd(r)}function Qd(r,t){this._basis=new en(r),this._beta=t}Qd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,t=this._y,i=r.length-1;if(i>0){var s=r[0],o=t[0],a=r[i]-s,c=t[i]-o,l=-1,d;while(++l<=i)d=l/i,this._basis.point(this._beta*r[l]+(1-this._beta)*(s+d*a),this._beta*t[l]+(1-this._beta)*(o+d*c))}this._x=this._y=null,this._basis.lineEnd()},point:function(r,t){this._x.push(+r),this._y.push(+t)}};var Jd=function r(t){function i(s){return t===1?new en(s):new Qd(s,t)}return i.beta=function(s){return r(+s)},i}(0.85);function Za(r,t,i){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-t),r._y2+r._k*(r._y1-i),r._x2,r._y2)}function ch(r,t){this._context=r,this._k=(1-t)/6}ch.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Za(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:Za(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rn=function r(t){function i(s){return new ch(s,t)}return i.tension=function(s){return r(+s)},i}(0);function uh(r,t){this._context=r,this._k=(1-t)/6}uh.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:Za(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tp=function r(t){function i(s){return new uh(s,t)}return i.tension=function(s){return r(+s)},i}(0);function dh(r,t){this._context=r,this._k=(1-t)/6}dh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Za(this,r,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ep=function r(t){function i(s){return new dh(s,t)}return i.tension=function(s){return r(+s)},i}(0);function ph(r,t,i){var{_x1:s,_y1:o,_x2:a,_y2:c}=r;if(r._l01_a>cr){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,d=3*r._l01_a*(r._l01_a+r._l12_a);s=(s*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/d,o=(o*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/d}if(r._l23_a>cr){var x=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,f=3*r._l23_a*(r._l23_a+r._l12_a);a=(a*x+r._x1*r._l23_2a-t*r._l12_2a)/f,c=(c*x+r._y1*r._l23_2a-i*r._l12_2a)/f}r._context.bezierCurveTo(s,o,a,c,r._x2,r._y2)}function rp(r,t){this._context=r,this._alpha=t}rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ph(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var on=function r(t){function i(s){return t?new rp(s,t):new ch(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function ip(r,t){this._context=r,this._alpha=t}ip.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:ph(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var op=function r(t){function i(s){return t?new ip(s,t):new uh(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function sp(r,t){this._context=r,this._alpha=t}sp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ph(this,r,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ap=function r(t){function i(s){return t?new sp(s,t):new dh(s,0)}return i.alpha=function(s){return r(+s)},i}(0.5);function np(r){this._context=r}np.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(r,t){if(r=+r,t=+t,this._point)this._context.lineTo(r,t);else this._point=1,this._context.moveTo(r,t)}};function lp(r){return new np(r)}function Nd(r){return r<0?-1:1}function qd(r,t,i){var s=r._x1-r._x0,o=t-r._x1,a=(r._y1-r._y0)/(s||o<0&&-0),c=(i-r._y1)/(o||s<0&&-0),l=(a*o+c*s)/(s+o);return(Nd(a)+Nd(c))*Math.min(Math.abs(a),Math.abs(c),0.5*Math.abs(l))||0}function Wd(r,t){var i=r._x1-r._x0;return i?(3*(r._y1-r._y0)/i-t)/2:t}function lh(r,t,i){var{_x0:s,_y0:o,_x1:a,_y1:c}=r,l=(a-s)/3;r._context.bezierCurveTo(s+l,o+l*t,a-l,c-l*i,a,c)}function Qa(r){this._context=r}Qa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lh(this,this._t0,Wd(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(r,t){var i=NaN;if(r=+r,t=+t,r===this._x1&&t===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,lh(this,Wd(this,i=qd(this,r,t)),i);break;default:lh(this,this._t0,i=qd(this,r,t));break}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t,this._t0=i}};function hp(r){this._context=new cp(r)}(hp.prototype=Object.create(Qa.prototype)).point=function(r,t){Qa.prototype.point.call(this,t,r)};function cp(r){this._context=r}cp.prototype={moveTo:function(r,t){this._context.moveTo(t,r)},closePath:function(){this._context.closePath()},lineTo:function(r,t){this._context.lineTo(t,r)},bezierCurveTo:function(r,t,i,s,o,a){this._context.bezierCurveTo(t,r,s,i,a,o)}};function sn(r){return new Qa(r)}function an(r){return new hp(r)}function up(r){this._context=r}up.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,t=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],t[0]):this._context.moveTo(r[0],t[0]),i===2)this._context.lineTo(r[1],t[1]);else{var s=zd(r),o=zd(t);for(var a=0,c=1;c<i;++a,++c)this._context.bezierCurveTo(s[0][a],o[0][a],s[1][a],o[1][a],r[c],t[c])}if(this._line||this._line!==0&&i===1)this._context.closePath();this._line=1-this._line,this._x=this._y=null},point:function(r,t){this._x.push(+r),this._y.push(+t)}};function zd(r){var t,i=r.length-1,s,o=Array(i),a=Array(i),c=Array(i);o[0]=0,a[0]=2,c[0]=r[0]+2*r[1];for(t=1;t<i-1;++t)o[t]=1,a[t]=4,c[t]=4*r[t]+2*r[t+1];o[i-1]=2,a[i-1]=7,c[i-1]=8*r[i-1]+r[i];for(t=1;t<i;++t)s=o[t]/a[t-1],a[t]-=s,c[t]-=s*c[t-1];o[i-1]=c[i-1]/a[i-1];for(t=i-2;t>=0;--t)o[t]=(c[t]-o[t+1])/a[t];a[i-1]=(r[i]+o[i-1])/2;for(t=0;t<i-1;++t)a[t]=2*r[t+1]-o[t+1];return[o,a]}function nn(r){return new up(r)}function ln(r,t){this._context=r,this._t=t}ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,t)}break}}this._x=r,this._y=t}};function cn(r){return new ln(r,0.5)}function un(r){return new ln(r,0)}function dn(r){return new ln(r,1)}var Y=e((r)=>{let{securityLevel:t}=u(),i=m("body");if(t==="sandbox"){let a=m(`#i${r}`).node()?.contentDocument??document;i=m(a.body)}return i.select(`#${r}`)},"selectSvgElement");function Pp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}e(Pp,"getDefaultExportFromCjs");var ur={},fn={},Ni={},dp;function Ho(){if(dp)return Ni;dp=1;function r(c){return typeof c>"u"||c===null}e(r,"isNothing");function t(c){return typeof c==="object"&&c!==null}e(t,"isObject");function i(c){if(Array.isArray(c))return c;else if(r(c))return[];return[c]}e(i,"toArray");function s(c,l){if(l){let d=Object.keys(l);for(let x=0,f=d.length;x<f;x+=1){let b=d[x];c[b]=l[b]}}return c}e(s,"extend");function o(c,l){let d="";for(let x=0;x<l;x+=1)d+=c;return d}e(o,"repeat");function a(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}return e(a,"isNegativeZero"),Ni.isNothing=r,Ni.isObject=t,Ni.toArray=i,Ni.repeat=o,Ni.isNegativeZero=a,Ni.extend=s,Ni}e(Ho,"requireCommon");var fh,pp;function Yo(){if(pp)return fh;pp=1;function r(i,s){let o="",a=i.reason||"(unknown reason)";if(!i.mark)return a;if(i.mark.name)o+='in "'+i.mark.name+'" ';if(o+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!s&&i.mark.snippet)o+=`
|
|
130
|
+
|
|
131
|
+
`+i.mark.snippet;return a+" "+o}e(r,"formatError");function t(i,s){if(Error.call(this),this.name="YAMLException",this.reason=i,this.mark=s,this.message=r(this,!1),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else this.stack=Error().stack||""}return e(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=e(function(s){return this.name+": "+r(this,s)},"toString"),fh=t,fh}e(Yo,"requireException");var gh,fp;function Rp(){if(fp)return gh;fp=1;let r=Ho();function t(o,a,c,l,d){let x="",f="",b=Math.floor(d/2)-1;if(l-a>b)x=" ... ",a=l-b+x.length;if(c-l>b)f=" ...",c=l+b-f.length;return{str:x+o.slice(a,c).replace(/\t/g,"→")+f,pos:l-a+x.length}}e(t,"getLine");function i(o,a){return r.repeat(" ",a-o.length)+o}e(i,"padStart");function s(o,a){if(a=Object.create(a||null),!o.buffer)return null;if(!a.maxLength)a.maxLength=79;if(typeof a.indent!=="number")a.indent=1;if(typeof a.linesBefore!=="number")a.linesBefore=3;if(typeof a.linesAfter!=="number")a.linesAfter=2;let c=/\r?\n|\r|\0/g,l=[0],d=[],x,f=-1;while(x=c.exec(o.buffer))if(d.push(x.index),l.push(x.index+x[0].length),o.position<=x.index&&f<0)f=l.length-2;if(f<0)f=l.length-1;let b="",T=Math.min(o.line+a.linesAfter,d.length).toString().length,w=a.maxLength-(a.indent+T+3);for(let E=1;E<=a.linesBefore;E++){if(f-E<0)break;let P=t(o.buffer,l[f-E],d[f-E],o.position-(l[f]-l[f-E]),w);b=r.repeat(" ",a.indent)+i((o.line-E+1).toString(),T)+" | "+P.str+`
|
|
132
|
+
`+b}let v=t(o.buffer,l[f],d[f],o.position,w);b+=r.repeat(" ",a.indent)+i((o.line+1).toString(),T)+" | "+v.str+`
|
|
133
|
+
`,b+=r.repeat("-",a.indent+T+3+v.pos)+`^
|
|
134
|
+
`;for(let E=1;E<=a.linesAfter;E++){if(f+E>=d.length)break;let P=t(o.buffer,l[f+E],d[f+E],o.position-(l[f]-l[f+E]),w);b+=r.repeat(" ",a.indent)+i((o.line+E+1).toString(),T)+" | "+P.str+`
|
|
135
|
+
`}return b.replace(/\n$/,"")}return e(s,"makeSnippet"),gh=s,gh}e(Rp,"requireSnippet");var mh,gp;function yr(){if(gp)return mh;gp=1;let r=Yo(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function s(a){let c={};if(a!==null)Object.keys(a).forEach(function(l){a[l].forEach(function(d){c[String(d)]=l})});return c}e(s,"compileStyleAliases");function o(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(t.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=s(c.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}return e(o,"Type2"),mh=o,mh}e(yr,"requireType");var yh,mp;function Dh(){if(mp)return yh;mp=1;let r=Yo(),t=yr();function i(a,c){let l=[];return a[c].forEach(function(d){let x=l.length;l.forEach(function(f,b){if(f.tag===d.tag&&f.kind===d.kind&&f.multi===d.multi)x=b}),l[x]=d}),l}e(i,"compileList");function s(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){if(l.multi)a.multi[l.kind].push(l),a.multi.fallback.push(l);else a[l.kind][l.tag]=a.fallback[l.tag]=l}e(c,"collectType");for(let l=0,d=arguments.length;l<d;l+=1)arguments[l].forEach(c);return a}e(s,"compileMap");function o(a){return this.extend(a)}return e(o,"Schema2"),o.prototype.extend=e(function(c){let l=[],d=[];if(c instanceof t)d.push(c);else if(Array.isArray(c))d=d.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit))){if(c.implicit)l=l.concat(c.implicit);if(c.explicit)d=d.concat(c.explicit)}else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(f){if(!(f instanceof t))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(f){if(!(f instanceof t))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let x=Object.create(o.prototype);return x.implicit=(this.implicit||[]).concat(l),x.explicit=(this.explicit||[]).concat(d),x.compiledImplicit=i(x,"implicit"),x.compiledExplicit=i(x,"explicit"),x.compiledTypeMap=s(x.compiledImplicit,x.compiledExplicit),x},"extend"),yh=o,yh}e(Dh,"requireSchema");var xh,yp;function Ph(){if(yp)return xh;return yp=1,xh=new(yr())("tag:yaml.org,2002:str",{kind:"scalar",construct:e(function(t){return t!==null?t:""},"construct")}),xh}e(Ph,"requireStr");var Ch,xp;function Rh(){if(xp)return Ch;return xp=1,Ch=new(yr())("tag:yaml.org,2002:seq",{kind:"sequence",construct:e(function(t){return t!==null?t:[]},"construct")}),Ch}e(Rh,"requireSeq");var bh,Cp;function Nh(){if(Cp)return bh;return Cp=1,bh=new(yr())("tag:yaml.org,2002:map",{kind:"mapping",construct:e(function(t){return t!==null?t:{}},"construct")}),bh}e(Nh,"requireMap");var kh,bp;function qh(){if(bp)return kh;return bp=1,kh=new(Dh())({explicit:[Ph(),Rh(),Nh()]}),kh}e(qh,"requireFailsafe");var Sh,kp;function Wh(){if(kp)return Sh;kp=1;let r=yr();function t(o){if(o===null)return!0;let a=o.length;return a===1&&o==="~"||a===4&&(o==="null"||o==="Null"||o==="NULL")}e(t,"resolveYamlNull");function i(){return null}e(i,"constructYamlNull");function s(o){return o===null}return e(s,"isNull"),Sh=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:i,predicate:s,represent:{canonical:e(function(){return"~"},"canonical"),lowercase:e(function(){return"null"},"lowercase"),uppercase:e(function(){return"NULL"},"uppercase"),camelcase:e(function(){return"Null"},"camelcase"),empty:e(function(){return""},"empty")},defaultStyle:"lowercase"}),Sh}e(Wh,"require_null");var Th,Sp;function zh(){if(Sp)return Th;Sp=1;let r=yr();function t(o){if(o===null)return!1;let a=o.length;return a===4&&(o==="true"||o==="True"||o==="TRUE")||a===5&&(o==="false"||o==="False"||o==="FALSE")}e(t,"resolveYamlBoolean");function i(o){return o==="true"||o==="True"||o==="TRUE"}e(i,"constructYamlBoolean");function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return e(s,"isBoolean"),Th=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:i,predicate:s,represent:{lowercase:e(function(o){return o?"true":"false"},"lowercase"),uppercase:e(function(o){return o?"TRUE":"FALSE"},"uppercase"),camelcase:e(function(o){return o?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Th}e(zh,"requireBool");var wh,Tp;function Hh(){if(Tp)return wh;Tp=1;let r=Ho(),t=yr();function i(x){return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}e(i,"isHexCode");function s(x){return x>=48&&x<=55}e(s,"isOctCode");function o(x){return x>=48&&x<=57}e(o,"isDecCode");function a(x){if(x===null)return!1;let f=x.length,b=0,T=!1;if(!f)return!1;let w=x[b];if(w==="-"||w==="+")w=x[++b];if(w==="0"){if(b+1===f)return!0;if(w=x[++b],w==="b"){b++;for(;b<f;b++){if(w=x[b],w!=="0"&&w!=="1")return!1;T=!0}return T&&isFinite(c(x))}if(w==="x"){b++;for(;b<f;b++){if(!i(x.charCodeAt(b)))return!1;T=!0}return T&&isFinite(c(x))}if(w==="o"){b++;for(;b<f;b++){if(!s(x.charCodeAt(b)))return!1;T=!0}return T&&isFinite(c(x))}}for(;b<f;b++){if(!o(x.charCodeAt(b)))return!1;T=!0}if(!T)return!1;return isFinite(c(x))}e(a,"resolveYamlInteger");function c(x){let f=x,b=1,T=f[0];if(T==="-"||T==="+"){if(T==="-")b=-1;f=f.slice(1),T=f[0]}if(f==="0")return 0;if(T==="0"){if(f[1]==="b")return b*parseInt(f.slice(2),2);if(f[1]==="x")return b*parseInt(f.slice(2),16);if(f[1]==="o")return b*parseInt(f.slice(2),8)}return b*parseInt(f,10)}e(c,"parseYamlInteger");function l(x){return c(x)}e(l,"constructYamlInteger");function d(x){return Object.prototype.toString.call(x)==="[object Number]"&&(x%1===0&&!r.isNegativeZero(x))}return e(d,"isInteger"),wh=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:l,predicate:d,represent:{binary:e(function(x){return x>=0?"0b"+x.toString(2):"-0b"+x.toString(2).slice(1)},"binary"),octal:e(function(x){return x>=0?"0o"+x.toString(8):"-0o"+x.toString(8).slice(1)},"octal"),decimal:e(function(x){return x.toString(10)},"decimal"),hexadecimal:e(function(x){return x>=0?"0x"+x.toString(16).toUpperCase():"-0x"+x.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),wh}e(Hh,"requireInt");var Bh,wp;function Yh(){if(wp)return Bh;wp=1;let r=Ho(),t=yr(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(x){if(x===null)return!1;if(!i.test(x))return!1;if(isFinite(parseFloat(x,10)))return!0;return s.test(x)}e(o,"resolveYamlFloat");function a(x){let f=x.toLowerCase(),b=f[0]==="-"?-1:1;if("+-".indexOf(f[0])>=0)f=f.slice(1);if(f===".inf")return b===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(f===".nan")return NaN;return b*parseFloat(f,10)}e(a,"constructYamlFloat");let c=/^[-+]?[0-9]+e/;function l(x,f){if(isNaN(x))switch(f){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===x)switch(f){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===x)switch(f){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(x))return"-0.0";let b=x.toString(10);return c.test(b)?b.replace("e",".e"):b}e(l,"representYamlFloat");function d(x){return Object.prototype.toString.call(x)==="[object Number]"&&(x%1!==0||r.isNegativeZero(x))}return e(d,"isFloat"),Bh=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:a,predicate:d,represent:l,defaultStyle:"lowercase"}),Bh}e(Yh,"requireFloat");var _h,Bp;function Uh(){if(Bp)return _h;return Bp=1,_h=qh().extend({implicit:[Wh(),zh(),Hh(),Yh()]}),_h}e(Uh,"requireJson");var vh,_p;function jh(){if(_p)return vh;return _p=1,vh=Uh(),vh}e(jh,"requireCore");var Lh,vp;function Gh(){if(vp)return Lh;vp=1;let r=yr(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=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 s(c){if(c===null)return!1;if(t.exec(c)!==null)return!0;if(i.exec(c)!==null)return!0;return!1}e(s,"resolveYamlTimestamp");function o(c){let l=0,d=null,x=t.exec(c);if(x===null)x=i.exec(c);if(x===null)throw Error("Date resolve error");let f=+x[1],b=+x[2]-1,T=+x[3];if(!x[4])return new Date(Date.UTC(f,b,T));let w=+x[4],v=+x[5],E=+x[6];if(x[7]){l=x[7].slice(0,3);while(l.length<3)l+="0";l=+l}if(x[9]){let W=+x[10],H=+(x[11]||0);if(d=(W*60+H)*60000,x[9]==="-")d=-d}let P=new Date(Date.UTC(f,b,T,w,v,E,l));if(d)P.setTime(P.getTime()-d);return P}e(o,"constructYamlTimestamp");function a(c){return c.toISOString()}return e(a,"representYamlTimestamp"),Lh=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:o,instanceOf:Date,represent:a}),Lh}e(Gh,"requireTimestamp");var Ah,Lp;function Xh(){if(Lp)return Ah;Lp=1;let r=yr();function t(i){return i==="<<"||i===null}return e(t,"resolveYamlMerge"),Ah=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Ah}e(Xh,"requireMerge");var Fh,Ap;function Vh(){if(Ap)return Fh;Ap=1;let r=yr(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
136
|
+
\r`;function i(c){if(c===null)return!1;let l=0,d=c.length,x=t;for(let f=0;f<d;f++){let b=x.indexOf(c.charAt(f));if(b>64)continue;if(b<0)return!1;l+=6}return l%8===0}e(i,"resolveYamlBinary");function s(c){let l=c.replace(/[\r\n=]/g,""),d=l.length,x=t,f=0,b=[];for(let w=0;w<d;w++){if(w%4===0&&w)b.push(f>>16&255),b.push(f>>8&255),b.push(f&255);f=f<<6|x.indexOf(l.charAt(w))}let T=d%4*6;if(T===0)b.push(f>>16&255),b.push(f>>8&255),b.push(f&255);else if(T===18)b.push(f>>10&255),b.push(f>>2&255);else if(T===12)b.push(f>>4&255);return new Uint8Array(b)}e(s,"constructYamlBinary");function o(c){let l="",d=0,x=c.length,f=t;for(let T=0;T<x;T++){if(T%3===0&&T)l+=f[d>>18&63],l+=f[d>>12&63],l+=f[d>>6&63],l+=f[d&63];d=(d<<8)+c[T]}let b=x%3;if(b===0)l+=f[d>>18&63],l+=f[d>>12&63],l+=f[d>>6&63],l+=f[d&63];else if(b===2)l+=f[d>>10&63],l+=f[d>>4&63],l+=f[d<<2&63],l+=f[64];else if(b===1)l+=f[d>>2&63],l+=f[d<<4&63],l+=f[64],l+=f[64];return l}e(o,"representYamlBinary");function a(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}return e(a,"isBinary"),Fh=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:s,predicate:a,represent:o}),Fh}e(Vh,"requireBinary");var Mh,Fp;function Kh(){if(Fp)return Mh;Fp=1;let r=yr(),t=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function s(a){if(a===null)return!0;let c={},l=a;for(let d=0,x=l.length;d<x;d+=1){let f=l[d],b=!1;if(i.call(f)!=="[object Object]")return!1;let T;for(T in f)if(t.call(f,T))if(!b)b=!0;else return!1;if(!b)return!1;if(t.call(c,T))return!1;Object.defineProperty(c,T,{value:!0})}return!0}e(s,"resolveYamlOmap");function o(a){return a!==null?a:[]}return e(o,"constructYamlOmap"),Mh=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:o}),Mh}e(Kh,"requireOmap");var Eh,Mp;function Zh(){if(Mp)return Eh;Mp=1;let r=yr(),t=Object.prototype.toString;function i(o){if(o===null)return!0;let a=o,c=Array(a.length);for(let l=0,d=a.length;l<d;l+=1){let x=a[l];if(t.call(x)!=="[object Object]")return!1;let f=Object.keys(x);if(f.length!==1)return!1;c[l]=[f[0],x[f[0]]]}return!0}e(i,"resolveYamlPairs");function s(o){if(o===null)return[];let a=o,c=Array(a.length);for(let l=0,d=a.length;l<d;l+=1){let x=a[l],f=Object.keys(x);c[l]=[f[0],x[f[0]]]}return c}return e(s,"constructYamlPairs"),Eh=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:s}),Eh}e(Zh,"requirePairs");var Oh,Ep;function Qh(){if(Ep)return Oh;Ep=1;let r=yr(),t=Object.prototype.hasOwnProperty;function i(o){if(o===null)return!0;let a=o;for(let c in a)if(t.call(a,c)){if(a[c]!==null)return!1}return!0}e(i,"resolveYamlSet");function s(o){return o!==null?o:{}}return e(s,"constructYamlSet"),Oh=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:s}),Oh}e(Qh,"requireSet");var Ih,Op;function Cn(){if(Op)return Ih;return Op=1,Ih=jh().extend({implicit:[Gh(),Xh()],explicit:[Vh(),Kh(),Zh(),Qh()]}),Ih}e(Cn,"require_default");var Ip;function Np(){if(Ip)return fn;Ip=1;let r=Ho(),t=Yo(),i=Rp(),s=Cn(),o=Object.prototype.hasOwnProperty,a=1,c=2,l=3,d=4,x=1,f=2,b=3,T=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,v=/[,\[\]{}]/,E=/^(?:!|!!|![0-9A-Za-z-]+!)$/,P=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function W(B){return Object.prototype.toString.call(B)}e(W,"_class");function H(B){return B===10||B===13}e(H,"isEol");function V(B){return B===9||B===32}e(V,"isWhiteSpace");function Q(B){return B===9||B===32||B===10||B===13}e(Q,"isWsOrEol");function J(B){return B===44||B===91||B===93||B===123||B===125}e(J,"isFlowIndicator");function st(B){if(B>=48&&B<=57)return B-48;let mt=B|32;if(mt>=97&&mt<=102)return mt-97+10;return-1}e(st,"fromHexCode");function lt(B){if(B===120)return 2;if(B===117)return 4;if(B===85)return 8;return 0}e(lt,"escapedHexLen");function pt(B){if(B>=48&&B<=57)return B-48;return-1}e(pt,"fromDecimalCode");function ft(B){switch(B){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return`
|
|
137
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"
";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}e(ft,"simpleEscapeSequence");function wt(B){if(B<=65535)return String.fromCharCode(B);return String.fromCharCode((B-65536>>10)+55296,(B-65536&1023)+56320)}e(wt,"charFromCodepoint");function _t(B,mt,It){if(mt==="__proto__")Object.defineProperty(B,mt,{configurable:!0,enumerable:!0,writable:!0,value:It});else B[mt]=It}e(_t,"setProperty");let xt=Array(256),et=Array(256);for(let B=0;B<256;B++)xt[B]=ft(B)?1:0,et[B]=ft(B);function ot(B,mt){this.input=B,this.filename=mt.filename||null,this.schema=mt.schema||s,this.onWarning=mt.onWarning||null,this.legacy=mt.legacy||!1,this.json=mt.json||!1,this.listener=mt.listener||null,this.maxDepth=typeof mt.maxDepth==="number"?mt.maxDepth:100,this.maxTotalMergeKeys=typeof mt.maxTotalMergeKeys==="number"?mt.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=B.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}e(ot,"State");function bt(B,mt){let It={name:B.filename,buffer:B.input.slice(0,-1),position:B.position,line:B.line,column:B.position-B.lineStart};return It.snippet=i(It),new t(mt,It)}e(bt,"generateError");function it(B,mt){throw bt(B,mt)}e(it,"throwError");function Lt(B,mt){if(B.onWarning)B.onWarning.call(null,bt(B,mt))}e(Lt,"throwWarning");function Et(B,mt,It){let Dt=B.anchorMapTransactions;if(Dt.length!==0){let Mt=Dt[Dt.length-1];if(!o.call(Mt,mt))Mt[mt]={existed:o.call(B.anchorMap,mt),value:B.anchorMap[mt]}}B.anchorMap[mt]=It}e(Et,"storeAnchor");function yt(B){B.anchorMapTransactions.push(Object.create(null))}e(yt,"beginAnchorTransaction");function qt(B){let mt=B.anchorMapTransactions.pop(),It=B.anchorMapTransactions;if(It.length===0)return;let Dt=It[It.length-1],Mt=Object.keys(mt);for(let G=0,vt=Mt.length;G<vt;G+=1){let At=Mt[G];if(!o.call(Dt,At))Dt[At]=mt[At]}}e(qt,"commitAnchorTransaction");function Wt(B){let mt=B.anchorMapTransactions.pop(),It=Object.keys(mt);for(let Dt=It.length-1;Dt>=0;Dt-=1){let Mt=mt[It[Dt]];if(Mt.existed)B.anchorMap[It[Dt]]=Mt.value;else delete B.anchorMap[It[Dt]]}}e(Wt,"rollbackAnchorTransaction");function Xt(B){return{position:B.position,line:B.line,lineStart:B.lineStart,lineIndent:B.lineIndent,firstTabInLine:B.firstTabInLine,tag:B.tag,anchor:B.anchor,kind:B.kind,result:B.result}}e(Xt,"snapshotState");function oe(B,mt){B.position=mt.position,B.line=mt.line,B.lineStart=mt.lineStart,B.lineIndent=mt.lineIndent,B.firstTabInLine=mt.firstTabInLine,B.tag=mt.tag,B.anchor=mt.anchor,B.kind=mt.kind,B.result=mt.result}e(oe,"restoreState");let ne={YAML:e(function(mt,It,Dt){if(mt.version!==null)it(mt,"duplication of %YAML directive");if(Dt.length!==1)it(mt,"YAML directive accepts exactly one argument");let Mt=/^([0-9]+)\.([0-9]+)$/.exec(Dt[0]);if(Mt===null)it(mt,"ill-formed argument of the YAML directive");let G=parseInt(Mt[1],10),vt=parseInt(Mt[2],10);if(G!==1)it(mt,"unacceptable YAML version of the document");if(mt.version=Dt[0],mt.checkLineBreaks=vt<2,vt!==1&&vt!==2)Lt(mt,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:e(function(mt,It,Dt){let Mt;if(Dt.length!==2)it(mt,"TAG directive accepts exactly two arguments");let G=Dt[0];if(Mt=Dt[1],!E.test(G))it(mt,"ill-formed tag handle (first argument) of the TAG directive");if(o.call(mt.tagMap,G))it(mt,'there is a previously declared suffix for "'+G+'" tag handle');if(!P.test(Mt))it(mt,"ill-formed tag prefix (second argument) of the TAG directive");try{Mt=decodeURIComponent(Mt)}catch(vt){it(mt,"tag prefix is malformed: "+Mt)}mt.tagMap[G]=Mt},"handleTagDirective")};function Kt(B,mt,It,Dt){if(mt<It){let Mt=B.input.slice(mt,It);if(Dt)for(let G=0,vt=Mt.length;G<vt;G+=1){let At=Mt.charCodeAt(G);if(!(At===9||At>=32&&At<=1114111))it(B,"expected valid JSON character")}else if(T.test(Mt))it(B,"the stream contains non-printable characters");B.result+=Mt}}e(Kt,"captureSegment");function zt(B){if(B.totalMergeKeys++,B.maxTotalMergeKeys!==-1&&B.totalMergeKeys>B.maxTotalMergeKeys)it(B,"merge keys exceeded maxTotalMergeKeys ("+B.maxTotalMergeKeys+")")}e(zt,"chargeMergeWork");function te(B,mt,It,Dt){if(!r.isObject(It))it(B,"cannot merge mappings; the provided source object is unacceptable");zt(B);let Mt=Object.keys(It);for(let G=0,vt=Mt.length;G<vt;G+=1){let At=Mt[G];if(zt(B),!o.call(mt,At))_t(mt,At,It[At]),Dt[At]=!0}}e(te,"mergeMappings");function ee(B,mt,It,Dt,Mt,G,vt,At,Ht){if(Array.isArray(Mt)){Mt=Array.prototype.slice.call(Mt);for(let Ut=0,jt=Mt.length;Ut<jt;Ut+=1){if(Array.isArray(Mt[Ut]))it(B,"nested arrays are not supported inside keys");if(typeof Mt==="object"&&W(Mt[Ut])==="[object Object]")Mt[Ut]="[object Object]"}}if(typeof Mt==="object"&&W(Mt)==="[object Object]")Mt="[object Object]";if(Mt=String(Mt),mt===null)mt={};if(Dt==="tag:yaml.org,2002:merge")if(Array.isArray(G)){if(G.length>100)it(B,"abnormal merge sequence size");for(let Ut=0,jt=G.length;Ut<jt;Ut+=1)te(B,mt,G[Ut],It)}else te(B,mt,G,It);else{if(!B.json&&!o.call(It,Mt)&&o.call(mt,Mt))B.line=vt||B.line,B.lineStart=At||B.lineStart,B.position=Ht||B.position,it(B,"duplicated mapping key");_t(mt,Mt,G),delete It[Mt]}return mt}e(ee,"storeMappingPair");function de(B){let mt=B.input.charCodeAt(B.position);if(mt===10)B.position++;else if(mt===13){if(B.position++,B.input.charCodeAt(B.position)===10)B.position++}else it(B,"a line break is expected");B.line+=1,B.lineStart=B.position,B.firstTabInLine=-1}e(de,"readLineBreak");function me(B,mt,It){let Dt=0,Mt=B.input.charCodeAt(B.position);while(Mt!==0){while(V(Mt)){if(Mt===9&&B.firstTabInLine===-1)B.firstTabInLine=B.position;Mt=B.input.charCodeAt(++B.position)}if(mt&&Mt===35)do Mt=B.input.charCodeAt(++B.position);while(Mt!==10&&Mt!==13&&Mt!==0);if(H(Mt)){de(B),Mt=B.input.charCodeAt(B.position),Dt++,B.lineIndent=0;while(Mt===32)B.lineIndent++,Mt=B.input.charCodeAt(++B.position)}else break}if(It!==-1&&Dt!==0&&B.lineIndent<It)Lt(B,"deficient indentation");return Dt}e(me,"skipSeparationSpace");function Te(B){let mt=B.position,It=B.input.charCodeAt(mt);if((It===45||It===46)&&It===B.input.charCodeAt(mt+1)&&It===B.input.charCodeAt(mt+2)){if(mt+=3,It=B.input.charCodeAt(mt),It===0||Q(It))return!0}return!1}e(Te,"testDocumentSeparator");function Ve(B,mt){if(mt===1)B.result+=" ";else if(mt>1)B.result+=r.repeat(`
|
|
138
|
+
`,mt-1)}e(Ve,"writeFoldedLines");function gi(B,mt,It){let Dt,Mt,G,vt,At,Ht,{kind:Ut,result:jt}=B,Ot=B.input.charCodeAt(B.position);if(Q(Ot)||J(Ot)||Ot===35||Ot===38||Ot===42||Ot===33||Ot===124||Ot===62||Ot===39||Ot===34||Ot===37||Ot===64||Ot===96)return!1;if(Ot===63||Ot===45){let Gt=B.input.charCodeAt(B.position+1);if(Q(Gt)||It&&J(Gt))return!1}B.kind="scalar",B.result="",Dt=Mt=B.position,G=!1;while(Ot!==0){if(Ot===58){let Gt=B.input.charCodeAt(B.position+1);if(Q(Gt)||It&&J(Gt))break}else if(Ot===35){let Gt=B.input.charCodeAt(B.position-1);if(Q(Gt))break}else if(B.position===B.lineStart&&Te(B)||It&&J(Ot))break;else if(H(Ot))if(vt=B.line,At=B.lineStart,Ht=B.lineIndent,me(B,!1,-1),B.lineIndent>=mt){G=!0,Ot=B.input.charCodeAt(B.position);continue}else{B.position=Mt,B.line=vt,B.lineStart=At,B.lineIndent=Ht;break}if(G)Kt(B,Dt,Mt,!1),Ve(B,B.line-vt),Dt=Mt=B.position,G=!1;if(!V(Ot))Mt=B.position+1;Ot=B.input.charCodeAt(++B.position)}if(Kt(B,Dt,Mt,!1),B.result)return!0;return B.kind=Ut,B.result=jt,!1}e(gi,"readPlainScalar");function qr(B,mt){let It,Dt,Mt=B.input.charCodeAt(B.position);if(Mt!==39)return!1;B.kind="scalar",B.result="",B.position++,It=Dt=B.position;while((Mt=B.input.charCodeAt(B.position))!==0)if(Mt===39)if(Kt(B,It,B.position,!0),Mt=B.input.charCodeAt(++B.position),Mt===39)It=B.position,B.position++,Dt=B.position;else return!0;else if(H(Mt))Kt(B,It,Dt,!0),Ve(B,me(B,!1,mt)),It=Dt=B.position;else if(B.position===B.lineStart&&Te(B))it(B,"unexpected end of the document within a single quoted scalar");else if(B.position++,!V(Mt))Dt=B.position;it(B,"unexpected end of the stream within a single quoted scalar")}e(qr,"readSingleQuotedScalar");function Ai(B,mt){let It,Dt,Mt,G=B.input.charCodeAt(B.position);if(G!==34)return!1;B.kind="scalar",B.result="",B.position++,It=Dt=B.position;while((G=B.input.charCodeAt(B.position))!==0)if(G===34)return Kt(B,It,B.position,!0),B.position++,!0;else if(G===92){if(Kt(B,It,B.position,!0),G=B.input.charCodeAt(++B.position),H(G))me(B,!1,mt);else if(G<256&&xt[G])B.result+=et[G],B.position++;else if((Mt=lt(G))>0){let vt=Mt,At=0;for(;vt>0;vt--)if(G=B.input.charCodeAt(++B.position),(Mt=st(G))>=0)At=(At<<4)+Mt;else it(B,"expected hexadecimal character");B.result+=wt(At),B.position++}else it(B,"unknown escape sequence");It=Dt=B.position}else if(H(G))Kt(B,It,Dt,!0),Ve(B,me(B,!1,mt)),It=Dt=B.position;else if(B.position===B.lineStart&&Te(B))it(B,"unexpected end of the document within a double quoted scalar");else if(B.position++,!V(G))Dt=B.position;it(B,"unexpected end of the stream within a double quoted scalar")}e(Ai,"readDoubleQuotedScalar");function Re(B,mt){let It=!0,Dt,Mt,G,vt=B.tag,At,Ht=B.anchor,Ut,jt,Ot,Gt,ie=Object.create(null),se,le,ge,Se=B.input.charCodeAt(B.position);if(Se===91)Ut=93,Gt=!1,At=[];else if(Se===123)Ut=125,Gt=!0,At={};else return!1;if(B.anchor!==null)Et(B,B.anchor,At);Se=B.input.charCodeAt(++B.position);while(Se!==0){if(me(B,!0,mt),Se=B.input.charCodeAt(B.position),Se===Ut)return B.position++,B.tag=vt,B.anchor=Ht,B.kind=Gt?"mapping":"sequence",B.result=At,!0;else if(!It)it(B,"missed comma between flow collection entries");else if(Se===44)it(B,"expected the node content, but found ','");if(le=se=ge=null,jt=Ot=!1,Se===63){let Gr=B.input.charCodeAt(B.position+1);if(Q(Gr))jt=Ot=!0,B.position++,me(B,!0,mt)}if(Dt=B.line,Mt=B.lineStart,G=B.position,Er(B,mt,a,!1,!0),le=B.tag,se=B.result,me(B,!0,mt),Se=B.input.charCodeAt(B.position),(Ot||B.line===Dt)&&Se===58)jt=!0,Se=B.input.charCodeAt(++B.position),me(B,!0,mt),Er(B,mt,a,!1,!0),ge=B.result;if(Gt)ee(B,At,ie,le,se,ge,Dt,Mt,G);else if(jt)At.push(ee(B,null,ie,le,se,ge,Dt,Mt,G));else At.push(se);if(me(B,!0,mt),Se=B.input.charCodeAt(B.position),Se===44)It=!0,Se=B.input.charCodeAt(++B.position);else It=!1}it(B,"unexpected end of the stream within a flow collection")}e(Re,"readFlowCollection");function Mr(B,mt){let It,Dt=x,Mt=!1,G=!1,vt=mt,At=0,Ht=!1,Ut,jt=B.input.charCodeAt(B.position);if(jt===124)It=!1;else if(jt===62)It=!0;else return!1;B.kind="scalar",B.result="";while(jt!==0)if(jt=B.input.charCodeAt(++B.position),jt===43||jt===45)if(x===Dt)Dt=jt===43?b:f;else it(B,"repeat of a chomping mode identifier");else if((Ut=pt(jt))>=0)if(Ut===0)it(B,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!G)vt=mt+Ut-1,G=!0;else it(B,"repeat of an indentation width identifier");else break;if(V(jt)){do jt=B.input.charCodeAt(++B.position);while(V(jt));if(jt===35)do jt=B.input.charCodeAt(++B.position);while(!H(jt)&&jt!==0)}while(jt!==0){de(B),B.lineIndent=0,jt=B.input.charCodeAt(B.position);while((!G||B.lineIndent<vt)&&jt===32)B.lineIndent++,jt=B.input.charCodeAt(++B.position);if(!G&&B.lineIndent>vt)vt=B.lineIndent;if(H(jt)){At++;continue}if(!G&&vt===0)it(B,"missing indentation for block scalar");if(B.lineIndent<vt){if(Dt===b)B.result+=r.repeat(`
|
|
139
|
+
`,Mt?1+At:At);else if(Dt===x){if(Mt)B.result+=`
|
|
140
|
+
`}break}if(It)if(V(jt))Ht=!0,B.result+=r.repeat(`
|
|
141
|
+
`,Mt?1+At:At);else if(Ht)Ht=!1,B.result+=r.repeat(`
|
|
142
|
+
`,At+1);else if(At===0){if(Mt)B.result+=" "}else B.result+=r.repeat(`
|
|
143
|
+
`,At);else B.result+=r.repeat(`
|
|
144
|
+
`,Mt?1+At:At);Mt=!0,G=!0,At=0;let Ot=B.position;while(!H(jt)&&jt!==0)jt=B.input.charCodeAt(++B.position);Kt(B,Ot,B.position,!1)}return!0}e(Mr,"readBlockScalar");function $e(B,mt){let{tag:It,anchor:Dt}=B,Mt=[],G=!1;if(B.firstTabInLine!==-1)return!1;if(B.anchor!==null)Et(B,B.anchor,Mt);let vt=B.input.charCodeAt(B.position);while(vt!==0){if(B.firstTabInLine!==-1)B.position=B.firstTabInLine,it(B,"tab characters must not be used in indentation");if(vt!==45)break;let At=B.input.charCodeAt(B.position+1);if(!Q(At))break;if(G=!0,B.position++,me(B,!0,-1)){if(B.lineIndent<=mt){Mt.push(null),vt=B.input.charCodeAt(B.position);continue}}let Ht=B.line;if(Er(B,mt,l,!1,!0),Mt.push(B.result),me(B,!0,-1),vt=B.input.charCodeAt(B.position),(B.line===Ht||B.lineIndent>mt)&&vt!==0)it(B,"bad indentation of a sequence entry");else if(B.lineIndent<mt)break}if(G)return B.tag=It,B.anchor=Dt,B.kind="sequence",B.result=Mt,!0;return!1}e($e,"readBlockSequence");function ri(B,mt,It){let Dt,Mt,G,vt,{tag:At,anchor:Ht}=B,Ut={},jt=Object.create(null),Ot=null,Gt=null,ie=null,se=!1,le=!1;if(B.firstTabInLine!==-1)return!1;if(B.anchor!==null)Et(B,B.anchor,Ut);let ge=B.input.charCodeAt(B.position);while(ge!==0){if(!se&&B.firstTabInLine!==-1)B.position=B.firstTabInLine,it(B,"tab characters must not be used in indentation");let Se=B.input.charCodeAt(B.position+1),Gr=B.line;if((ge===63||ge===58)&&Q(Se)){if(ge===63){if(se)ee(B,Ut,jt,Ot,Gt,null,Mt,G,vt),Ot=Gt=ie=null;le=!0,se=!0,Dt=!0}else if(se)se=!1,Dt=!0;else it(B,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");B.position+=1,ge=Se}else{if(Mt=B.line,G=B.lineStart,vt=B.position,!Er(B,It,c,!1,!0))break;if(B.line===Gr){ge=B.input.charCodeAt(B.position);while(V(ge))ge=B.input.charCodeAt(++B.position);if(ge===58){if(ge=B.input.charCodeAt(++B.position),!Q(ge))it(B,"a whitespace character is expected after the key-value separator within a block mapping");if(se)ee(B,Ut,jt,Ot,Gt,null,Mt,G,vt),Ot=Gt=ie=null;le=!0,se=!1,Dt=!1,Ot=B.tag,Gt=B.result}else if(le)it(B,"can not read an implicit mapping pair; a colon is missed");else return B.tag=At,B.anchor=Ht,!0}else if(le)it(B,"can not read a block mapping entry; a multiline key may not be an implicit key");else return B.tag=At,B.anchor=Ht,!0}if(B.line===Gr||B.lineIndent>mt){if(se)Mt=B.line,G=B.lineStart,vt=B.position;if(Er(B,mt,d,!0,Dt))if(se)Gt=B.result;else ie=B.result;if(!se)ee(B,Ut,jt,Ot,Gt,ie,Mt,G,vt),Ot=Gt=ie=null;me(B,!0,-1),ge=B.input.charCodeAt(B.position)}if((B.line===Gr||B.lineIndent>mt)&&ge!==0)it(B,"bad indentation of a mapping entry");else if(B.lineIndent<mt)break}if(se)ee(B,Ut,jt,Ot,Gt,null,Mt,G,vt);if(le)B.tag=At,B.anchor=Ht,B.kind="mapping",B.result=Ut;return le}e(ri,"readBlockMapping");function or(B){let mt=!1,It=!1,Dt,Mt,G=B.input.charCodeAt(B.position);if(G!==33)return!1;if(B.tag!==null)it(B,"duplication of a tag property");if(G=B.input.charCodeAt(++B.position),G===60)mt=!0,G=B.input.charCodeAt(++B.position);else if(G===33)It=!0,Dt="!!",G=B.input.charCodeAt(++B.position);else Dt="!";let vt=B.position;if(mt){do G=B.input.charCodeAt(++B.position);while(G!==0&&G!==62);if(B.position<B.length)Mt=B.input.slice(vt,B.position),G=B.input.charCodeAt(++B.position);else it(B,"unexpected end of the stream within a verbatim tag")}else{while(G!==0&&!Q(G)){if(G===33)if(!It){if(Dt=B.input.slice(vt-1,B.position+1),!E.test(Dt))it(B,"named tag handle cannot contain such characters");It=!0,vt=B.position+1}else it(B,"tag suffix cannot contain exclamation marks");G=B.input.charCodeAt(++B.position)}if(Mt=B.input.slice(vt,B.position),v.test(Mt))it(B,"tag suffix cannot contain flow indicator characters")}if(Mt&&!P.test(Mt))it(B,"tag name cannot contain such characters: "+Mt);try{Mt=decodeURIComponent(Mt)}catch(At){it(B,"tag name is malformed: "+Mt)}if(mt)B.tag=Mt;else if(o.call(B.tagMap,Dt))B.tag=B.tagMap[Dt]+Mt;else if(Dt==="!")B.tag="!"+Mt;else if(Dt==="!!")B.tag="tag:yaml.org,2002:"+Mt;else it(B,'undeclared tag handle "'+Dt+'"');return!0}e(or,"readTagProperty");function zr(B){let mt=B.input.charCodeAt(B.position);if(mt!==38)return!1;if(B.anchor!==null)it(B,"duplication of an anchor property");mt=B.input.charCodeAt(++B.position);let It=B.position;while(mt!==0&&!Q(mt)&&!J(mt))mt=B.input.charCodeAt(++B.position);if(B.position===It)it(B,"name of an anchor node must contain at least one character");return B.anchor=B.input.slice(It,B.position),!0}e(zr,"readAnchorProperty");function Fi(B){let mt=B.input.charCodeAt(B.position);if(mt!==42)return!1;mt=B.input.charCodeAt(++B.position);let It=B.position;while(mt!==0&&!Q(mt)&&!J(mt))mt=B.input.charCodeAt(++B.position);if(B.position===It)it(B,"name of an alias node must contain at least one character");let Dt=B.input.slice(It,B.position);if(!o.call(B.anchorMap,Dt))it(B,'unidentified alias "'+Dt+'"');return B.result=B.anchorMap[Dt],me(B,!0,-1),!0}e(Fi,"readAlias");function Cr(B,mt,It,Dt){let Mt=Xt(B);if(yt(B),oe(B,mt),B.tag=null,B.anchor=null,B.kind=null,B.result=null,ri(B,It,Dt)&&B.kind==="mapping")return qt(B),!0;return Wt(B),oe(B,Mt),!1}e(Cr,"tryReadBlockMappingFromProperty");function Er(B,mt,It,Dt,Mt){let G,vt,At=1,Ht=!1,Ut=!1,jt=null,Ot,Gt,ie;if(B.depth>=B.maxDepth)it(B,"nesting exceeded maxDepth ("+B.maxDepth+")");if(B.depth+=1,B.listener!==null)B.listener("open",B);B.tag=null,B.anchor=null,B.kind=null,B.result=null;let se=G=vt=d===It||l===It;if(Dt){if(me(B,!0,-1)){if(Ht=!0,B.lineIndent>mt)At=1;else if(B.lineIndent===mt)At=0;else if(B.lineIndent<mt)At=-1}}if(At===1)while(!0){let le=B.input.charCodeAt(B.position),ge=Xt(B);if(Ht&&(le===33&&B.tag!==null||le===38&&B.anchor!==null))break;if(!or(B)&&!zr(B))break;if(jt===null)jt=ge;if(me(B,!0,-1)){if(Ht=!0,vt=se,B.lineIndent>mt)At=1;else if(B.lineIndent===mt)At=0;else if(B.lineIndent<mt)At=-1}else vt=!1}if(vt)vt=Ht||Mt;if(At===1||d===It){if(a===It||c===It)Gt=mt;else Gt=mt+1;if(ie=B.position-B.lineStart,At===1)if(vt&&($e(B,ie)||ri(B,ie,Gt))||Re(B,Gt))Ut=!0;else{let le=B.input.charCodeAt(B.position);if(jt!==null&&se&&!vt&&le!==124&&le!==62&&Cr(B,jt,jt.position-jt.lineStart,Gt))Ut=!0;else if(G&&Mr(B,Gt)||qr(B,Gt)||Ai(B,Gt))Ut=!0;else if(Fi(B)){if(Ut=!0,B.tag!==null||B.anchor!==null)it(B,"alias node should not have any properties")}else if(gi(B,Gt,a===It)){if(Ut=!0,B.tag===null)B.tag="?"}if(B.anchor!==null)Et(B,B.anchor,B.result)}else if(At===0)Ut=vt&&$e(B,ie)}if(B.tag===null){if(B.anchor!==null)Et(B,B.anchor,B.result)}else if(B.tag==="?"){if(B.result!==null&&B.kind!=="scalar")it(B,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+B.kind+'"');for(let le=0,ge=B.implicitTypes.length;le<ge;le+=1)if(Ot=B.implicitTypes[le],Ot.resolve(B.result)){if(B.result=Ot.construct(B.result),B.tag=Ot.tag,B.anchor!==null)Et(B,B.anchor,B.result);break}}else if(B.tag!=="!"){if(o.call(B.typeMap[B.kind||"fallback"],B.tag))Ot=B.typeMap[B.kind||"fallback"][B.tag];else{Ot=null;let le=B.typeMap.multi[B.kind||"fallback"];for(let ge=0,Se=le.length;ge<Se;ge+=1)if(B.tag.slice(0,le[ge].tag.length)===le[ge].tag){Ot=le[ge];break}}if(!Ot)it(B,"unknown tag !<"+B.tag+">");if(B.result!==null&&Ot.kind!==B.kind)it(B,"unacceptable node kind for !<"+B.tag+'> tag; it should be "'+Ot.kind+'", not "'+B.kind+'"');if(!Ot.resolve(B.result,B.tag))it(B,"cannot resolve a node with !<"+B.tag+"> explicit tag");else if(B.result=Ot.construct(B.result,B.tag),B.anchor!==null)Et(B,B.anchor,B.result)}if(B.listener!==null)B.listener("close",B);return B.depth-=1,B.tag!==null||B.anchor!==null||Ut}e(Er,"composeNode");function mi(B){let mt=B.position,It=!1,Dt;B.version=null,B.checkLineBreaks=B.legacy,B.tagMap=Object.create(null),B.anchorMap=Object.create(null);while((Dt=B.input.charCodeAt(B.position))!==0){if(me(B,!0,-1),Dt=B.input.charCodeAt(B.position),B.lineIndent>0||Dt!==37)break;It=!0,Dt=B.input.charCodeAt(++B.position);let Mt=B.position;while(Dt!==0&&!Q(Dt))Dt=B.input.charCodeAt(++B.position);let G=B.input.slice(Mt,B.position),vt=[];if(G.length<1)it(B,"directive name must not be less than one character in length");while(Dt!==0){while(V(Dt))Dt=B.input.charCodeAt(++B.position);if(Dt===35){do Dt=B.input.charCodeAt(++B.position);while(Dt!==0&&!H(Dt));break}if(H(Dt))break;Mt=B.position;while(Dt!==0&&!Q(Dt))Dt=B.input.charCodeAt(++B.position);vt.push(B.input.slice(Mt,B.position))}if(Dt!==0)de(B);if(o.call(ne,G))ne[G](B,G,vt);else Lt(B,'unknown document directive "'+G+'"')}if(me(B,!0,-1),B.lineIndent===0&&B.input.charCodeAt(B.position)===45&&B.input.charCodeAt(B.position+1)===45&&B.input.charCodeAt(B.position+2)===45)B.position+=3,me(B,!0,-1);else if(It)it(B,"directives end mark is expected");if(Er(B,B.lineIndent-1,d,!1,!0),me(B,!0,-1),B.checkLineBreaks&&w.test(B.input.slice(mt,B.position)))Lt(B,"non-ASCII line breaks are interpreted as content");if(B.documents.push(B.result),B.position===B.lineStart&&Te(B)){if(B.input.charCodeAt(B.position)===46)B.position+=3,me(B,!0,-1);return}if(B.position<B.length-1)it(B,"end of the stream or a document separator is expected")}e(mi,"readDocument");function ii(B,mt){if(B=String(B),mt=mt||{},B.length!==0){if(B.charCodeAt(B.length-1)!==10&&B.charCodeAt(B.length-1)!==13)B+=`
|
|
145
|
+
`;if(B.charCodeAt(0)===65279)B=B.slice(1)}let It=new ot(B,mt),Dt=B.indexOf("\x00");if(Dt!==-1)It.position=Dt,it(It,"null byte is not allowed in input");It.input+="\x00";while(It.input.charCodeAt(It.position)===32)It.lineIndent+=1,It.position+=1;while(It.position<It.length-1)mi(It);return It.documents}e(ii,"loadDocuments");function yi(B,mt,It){if(mt!==null&&typeof mt==="object"&&typeof It>"u")It=mt,mt=null;let Dt=ii(B,It);if(typeof mt!=="function")return Dt;for(let Mt=0,G=Dt.length;Mt<G;Mt+=1)mt(Dt[Mt])}e(yi,"loadAll2");function kr(B,mt){let It=ii(B,mt);if(It.length===0)return;else if(It.length===1)return It[0];throw new t("expected a single document in the stream, but found more")}return e(kr,"load2"),fn.loadAll=yi,fn.load=kr,fn}e(Np,"requireLoader");var $h={},$p;function qp(){if($p)return $h;$p=1;let r=Ho(),t=Yo(),i=Cn(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,d=13,x=32,f=33,b=34,T=35,w=37,v=38,E=39,P=42,W=44,H=45,V=58,Q=61,J=62,st=63,lt=64,pt=91,ft=93,wt=96,_t=123,xt=124,et=125,ot={};ot[0]="\\0",ot[7]="\\a",ot[8]="\\b",ot[9]="\\t",ot[10]="\\n",ot[11]="\\v",ot[12]="\\f",ot[13]="\\r",ot[27]="\\e",ot[34]="\\\"",ot[92]="\\\\",ot[133]="\\N",ot[160]="\\_",ot[8232]="\\L",ot[8233]="\\P";let bt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],it=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Lt(G,vt){if(vt===null)return{};let At={},Ht=Object.keys(vt);for(let Ut=0,jt=Ht.length;Ut<jt;Ut+=1){let Ot=Ht[Ut],Gt=String(vt[Ot]);if(Ot.slice(0,2)==="!!")Ot="tag:yaml.org,2002:"+Ot.slice(2);let ie=G.compiledTypeMap.fallback[Ot];if(ie&&o.call(ie.styleAliases,Gt))Gt=ie.styleAliases[Gt];At[Ot]=Gt}return At}e(Lt,"compileStyleMap");function Et(G){let vt,At,Ht=G.toString(16).toUpperCase();if(G<=255)vt="x",At=2;else if(G<=65535)vt="u",At=4;else if(G<=4294967295)vt="U",At=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+vt+r.repeat("0",At-Ht.length)+Ht}e(Et,"encodeHex");let yt=1,qt=2;function Wt(G){this.schema=G.schema||i,this.indent=Math.max(1,G.indent||2),this.noArrayIndent=G.noArrayIndent||!1,this.skipInvalid=G.skipInvalid||!1,this.flowLevel=r.isNothing(G.flowLevel)?-1:G.flowLevel,this.styleMap=Lt(this.schema,G.styles||null),this.sortKeys=G.sortKeys||!1,this.lineWidth=G.lineWidth||80,this.noRefs=G.noRefs||!1,this.noCompatMode=G.noCompatMode||!1,this.condenseFlow=G.condenseFlow||!1,this.quotingType=G.quotingType==='"'?qt:yt,this.forceQuotes=G.forceQuotes||!1,this.replacer=typeof G.replacer==="function"?G.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}e(Wt,"State");function Xt(G,vt){let At=r.repeat(" ",vt),Ht=0,Ut="",jt=G.length;while(Ht<jt){let Ot,Gt=G.indexOf(`
|
|
146
|
+
`,Ht);if(Gt===-1)Ot=G.slice(Ht),Ht=jt;else Ot=G.slice(Ht,Gt+1),Ht=Gt+1;if(Ot.length&&Ot!==`
|
|
147
|
+
`)Ut+=At;Ut+=Ot}return Ut}e(Xt,"indentString");function oe(G,vt){return`
|
|
148
|
+
`+r.repeat(" ",G.indent*vt)}e(oe,"generateNextLine");function ne(G,vt){for(let At=0,Ht=G.implicitTypes.length;At<Ht;At+=1)if(G.implicitTypes[At].resolve(vt))return!0;return!1}e(ne,"testImplicitResolving");function Kt(G){return G===x||G===c}e(Kt,"isWhitespace");function zt(G){return G>=32&&G<=126||G>=161&&G<=55295&&G!==8232&&G!==8233||G>=57344&&G<=65533&&G!==a||G>=65536&&G<=1114111}e(zt,"isPrintable");function te(G){return zt(G)&&G!==a&&G!==d&&G!==l}e(te,"isNsCharOrWhitespace");function ee(G,vt,At){let Ht=te(G),Ut=Ht&&!Kt(G);return(At?Ht:Ht&&G!==W&&G!==pt&&G!==ft&&G!==_t&&G!==et)&&G!==T&&!(vt===V&&!Ut)||te(vt)&&!Kt(vt)&&G===T||vt===V&&Ut}e(ee,"isPlainSafe");function de(G){return zt(G)&&G!==a&&!Kt(G)&&G!==H&&G!==st&&G!==V&&G!==W&&G!==pt&&G!==ft&&G!==_t&&G!==et&&G!==T&&G!==v&&G!==P&&G!==f&&G!==xt&&G!==Q&&G!==J&&G!==E&&G!==b&&G!==w&&G!==lt&&G!==wt}e(de,"isPlainSafeFirst");function me(G){return!Kt(G)&&G!==V}e(me,"isPlainSafeLast");function Te(G,vt){let At=G.charCodeAt(vt),Ht;if(At>=55296&&At<=56319&&vt+1<G.length){if(Ht=G.charCodeAt(vt+1),Ht>=56320&&Ht<=57343)return(At-55296)*1024+Ht-56320+65536}return At}e(Te,"codePointAt");function Ve(G){return/^\n* /.test(G)}e(Ve,"needIndentIndicator");let gi=1,qr=2,Ai=3,Re=4,Mr=5;function $e(G,vt,At,Ht,Ut,jt,Ot,Gt){let ie,se=0,le=null,ge=!1,Se=!1,Gr=Ht!==-1,Mi=-1,Ei=de(Te(G,0))&&me(Te(G,G.length-1));if(vt||Ot)for(ie=0;ie<G.length;se>=65536?ie+=2:ie++){if(se=Te(G,ie),!zt(se))return Mr;Ei=Ei&&ee(se,le,Gt),le=se}else{for(ie=0;ie<G.length;se>=65536?ie+=2:ie++){if(se=Te(G,ie),se===l){if(ge=!0,Gr)Se=Se||ie-Mi-1>Ht&&G[Mi+1]!==" ",Mi=ie}else if(!zt(se))return Mr;Ei=Ei&&ee(se,le,Gt),le=se}Se=Se||Gr&&(ie-Mi-1>Ht&&G[Mi+1]!==" ")}if(!ge&&!Se){if(Ei&&!Ot&&!Ut(G))return gi;return jt===qt?Mr:qr}if(At>9&&Ve(G))return Mr;if(!Ot)return Se?Re:Ai;return jt===qt?Mr:qr}e($e,"chooseScalarStyle");function ri(G,vt,At,Ht,Ut){G.dump=function(){if(vt.length===0)return G.quotingType===qt?'""':"''";if(!G.noCompatMode){if(bt.indexOf(vt)!==-1||it.test(vt))return G.quotingType===qt?'"'+vt+'"':"'"+vt+"'"}let jt=G.indent*Math.max(1,At),Ot=G.lineWidth===-1?-1:Math.max(Math.min(G.lineWidth,40),G.lineWidth-jt),Gt=Ht||G.flowLevel>-1&&At>=G.flowLevel;function ie(se){return ne(G,se)}switch(e(ie,"testAmbiguity"),$e(vt,Gt,G.indent,Ot,ie,G.quotingType,G.forceQuotes&&!Ht,Ut)){case gi:return vt;case qr:return"'"+vt.replace(/'/g,"''")+"'";case Ai:return"|"+or(vt,G.indent)+zr(Xt(vt,jt));case Re:return">"+or(vt,G.indent)+zr(Xt(Fi(vt,Ot),jt));case Mr:return'"'+Er(vt)+'"';default:throw new t("impossible error: invalid scalar style")}}()}e(ri,"writeScalar");function or(G,vt){let At=Ve(G)?String(vt):"",Ht=G[G.length-1]===`
|
|
149
|
+
`,jt=Ht&&(G[G.length-2]===`
|
|
150
|
+
`||G===`
|
|
151
|
+
`)?"+":Ht?"":"-";return At+jt+`
|
|
152
|
+
`}e(or,"blockHeader");function zr(G){return G[G.length-1]===`
|
|
153
|
+
`?G.slice(0,-1):G}e(zr,"dropEndingNewline");function Fi(G,vt){let At=/(\n+)([^\n]*)/g,Ht=function(){let Gt=G.indexOf(`
|
|
154
|
+
`);return Gt=Gt!==-1?Gt:G.length,At.lastIndex=Gt,Cr(G.slice(0,Gt),vt)}(),Ut=G[0]===`
|
|
155
|
+
`||G[0]===" ",jt,Ot;while(Ot=At.exec(G)){let Gt=Ot[1],ie=Ot[2];jt=ie[0]===" ",Ht+=Gt+(!Ut&&!jt&&ie!==""?`
|
|
156
|
+
`:"")+Cr(ie,vt),Ut=jt}return Ht}e(Fi,"foldString");function Cr(G,vt){if(G===""||G[0]===" ")return G;let At=/ [^ ]/g,Ht,Ut=0,jt,Ot=0,Gt=0,ie="";while(Ht=At.exec(G)){if(Gt=Ht.index,Gt-Ut>vt)jt=Ot>Ut?Ot:Gt,ie+=`
|
|
157
|
+
`+G.slice(Ut,jt),Ut=jt+1;Ot=Gt}if(ie+=`
|
|
158
|
+
`,G.length-Ut>vt&&Ot>Ut)ie+=G.slice(Ut,Ot)+`
|
|
159
|
+
`+G.slice(Ot+1);else ie+=G.slice(Ut);return ie.slice(1)}e(Cr,"foldLine");function Er(G){let vt="",At=0;for(let Ht=0;Ht<G.length;At>=65536?Ht+=2:Ht++){At=Te(G,Ht);let Ut=ot[At];if(!Ut&&zt(At)){if(vt+=G[Ht],At>=65536)vt+=G[Ht+1]}else vt+=Ut||Et(At)}return vt}e(Er,"escapeString");function mi(G,vt,At){let Ht="",Ut=G.tag;for(let jt=0,Ot=At.length;jt<Ot;jt+=1){let Gt=At[jt];if(G.replacer)Gt=G.replacer.call(At,String(jt),Gt);if(mt(G,vt,Gt,!1,!1)||typeof Gt>"u"&&mt(G,vt,null,!1,!1)){if(Ht!=="")Ht+=","+(!G.condenseFlow?" ":"");Ht+=G.dump}}G.tag=Ut,G.dump="["+Ht+"]"}e(mi,"writeFlowSequence");function ii(G,vt,At,Ht){let Ut="",jt=G.tag;for(let Ot=0,Gt=At.length;Ot<Gt;Ot+=1){let ie=At[Ot];if(G.replacer)ie=G.replacer.call(At,String(Ot),ie);if(mt(G,vt+1,ie,!0,!0,!1,!0)||typeof ie>"u"&&mt(G,vt+1,null,!0,!0,!1,!0)){if(!Ht||Ut!=="")Ut+=oe(G,vt);if(G.dump&&l===G.dump.charCodeAt(0))Ut+="-";else Ut+="- ";Ut+=G.dump}}G.tag=jt,G.dump=Ut||"[]"}e(ii,"writeBlockSequence");function yi(G,vt,At){let Ht="",Ut=G.tag,jt=Object.keys(At);for(let Ot=0,Gt=jt.length;Ot<Gt;Ot+=1){let ie="";if(Ht!=="")ie+=", ";if(G.condenseFlow)ie+='"';let se=jt[Ot],le=At[se];if(G.replacer)le=G.replacer.call(At,se,le);if(!mt(G,vt,se,!1,!1))continue;if(G.dump.length>1024)ie+="? ";if(ie+=G.dump+(G.condenseFlow?'"':"")+":"+(G.condenseFlow?"":" "),!mt(G,vt,le,!1,!1))continue;ie+=G.dump,Ht+=ie}G.tag=Ut,G.dump="{"+Ht+"}"}e(yi,"writeFlowMapping");function kr(G,vt,At,Ht){let Ut="",jt=G.tag,Ot=Object.keys(At);if(G.sortKeys===!0)Ot.sort();else if(typeof G.sortKeys==="function")Ot.sort(G.sortKeys);else if(G.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let Gt=0,ie=Ot.length;Gt<ie;Gt+=1){let se="";if(!Ht||Ut!=="")se+=oe(G,vt);let le=Ot[Gt],ge=At[le];if(G.replacer)ge=G.replacer.call(At,le,ge);if(!mt(G,vt+1,le,!0,!0,!0))continue;let Se=G.tag!==null&&G.tag!=="?"||G.dump&&G.dump.length>1024;if(Se)if(G.dump&&l===G.dump.charCodeAt(0))se+="?";else se+="? ";if(se+=G.dump,Se)se+=oe(G,vt);if(!mt(G,vt+1,ge,!0,Se))continue;if(G.dump&&l===G.dump.charCodeAt(0))se+=":";else se+=": ";se+=G.dump,Ut+=se}G.tag=jt,G.dump=Ut||"{}"}e(kr,"writeBlockMapping");function B(G,vt,At){let Ht=At?G.explicitTypes:G.implicitTypes;for(let Ut=0,jt=Ht.length;Ut<jt;Ut+=1){let Ot=Ht[Ut];if((Ot.instanceOf||Ot.predicate)&&(!Ot.instanceOf||typeof vt==="object"&&vt instanceof Ot.instanceOf)&&(!Ot.predicate||Ot.predicate(vt))){if(At)if(Ot.multi&&Ot.representName)G.tag=Ot.representName(vt);else G.tag=Ot.tag;else G.tag="?";if(Ot.represent){let Gt=G.styleMap[Ot.tag]||Ot.defaultStyle,ie;if(s.call(Ot.represent)==="[object Function]")ie=Ot.represent(vt,Gt);else if(o.call(Ot.represent,Gt))ie=Ot.represent[Gt](vt,Gt);else throw new t("!<"+Ot.tag+'> tag resolver accepts not "'+Gt+'" style');G.dump=ie}return!0}}return!1}e(B,"detectType");function mt(G,vt,At,Ht,Ut,jt,Ot){if(G.tag=null,G.dump=At,!B(G,At,!1))B(G,At,!0);let Gt=s.call(G.dump),ie=Ht;if(Ht)Ht=G.flowLevel<0||G.flowLevel>vt;let se=Gt==="[object Object]"||Gt==="[object Array]",le,ge;if(se)le=G.duplicates.indexOf(At),ge=le!==-1;if(G.tag!==null&&G.tag!=="?"||ge||G.indent!==2&&vt>0)Ut=!1;if(ge&&G.usedDuplicates[le])G.dump="*ref_"+le;else{if(se&&ge&&!G.usedDuplicates[le])G.usedDuplicates[le]=!0;if(Gt==="[object Object]"){if(Ht&&Object.keys(G.dump).length!==0){if(kr(G,vt,G.dump,Ut),ge)G.dump="&ref_"+le+G.dump}else if(yi(G,vt,G.dump),ge)G.dump="&ref_"+le+" "+G.dump}else if(Gt==="[object Array]"){if(Ht&&G.dump.length!==0){if(G.noArrayIndent&&!Ot&&vt>0)ii(G,vt-1,G.dump,Ut);else ii(G,vt,G.dump,Ut);if(ge)G.dump="&ref_"+le+G.dump}else if(mi(G,vt,G.dump),ge)G.dump="&ref_"+le+" "+G.dump}else if(Gt==="[object String]"){if(G.tag!=="?")ri(G,G.dump,vt,jt,ie)}else if(Gt==="[object Undefined]")return!1;else{if(G.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+Gt)}if(G.tag!==null&&G.tag!=="?"){let Se=encodeURI(G.tag[0]==="!"?G.tag.slice(1):G.tag).replace(/!/g,"%21");if(G.tag[0]==="!")Se="!"+Se;else if(Se.slice(0,18)==="tag:yaml.org,2002:")Se="!!"+Se.slice(18);else Se="!<"+Se+">";G.dump=Se+" "+G.dump}}return!0}e(mt,"writeNode");function It(G,vt){let At=[],Ht=[];Dt(G,At,Ht);let Ut=Ht.length;for(let jt=0;jt<Ut;jt+=1)vt.duplicates.push(At[Ht[jt]]);vt.usedDuplicates=Array(Ut)}e(It,"getDuplicateReferences");function Dt(G,vt,At){if(G!==null&&typeof G==="object"){let Ht=vt.indexOf(G);if(Ht!==-1){if(At.indexOf(Ht)===-1)At.push(Ht)}else if(vt.push(G),Array.isArray(G))for(let Ut=0,jt=G.length;Ut<jt;Ut+=1)Dt(G[Ut],vt,At);else{let Ut=Object.keys(G);for(let jt=0,Ot=Ut.length;jt<Ot;jt+=1)Dt(G[Ut[jt]],vt,At)}}}e(Dt,"inspectNode");function Mt(G,vt){vt=vt||{};let At=new Wt(vt);if(!At.noRefs)It(G,At);let Ht=G;if(At.replacer)Ht=At.replacer.call({"":Ht},"",Ht);if(mt(At,0,Ht,!0,!0))return At.dump+`
|
|
160
|
+
`;return""}return e(Mt,"dump2"),$h.dump=Mt,$h}e(qp,"requireDumper");var Dp;function Wp(){if(Dp)return ur;Dp=1;let r=Np(),t=qp();function i(s,o){return function(){throw Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}return e(i,"renamed"),ur.Type=yr(),ur.Schema=Dh(),ur.FAILSAFE_SCHEMA=qh(),ur.JSON_SCHEMA=Uh(),ur.CORE_SCHEMA=jh(),ur.DEFAULT_SCHEMA=Cn(),ur.load=r.load,ur.loadAll=r.loadAll,ur.dump=t.dump,ur.YAMLException=Yo(),ur.types={binary:Vh(),float:Yh(),map:Nh(),null:Wh(),pairs:Zh(),set:Qh(),timestamp:Gh(),bool:zh(),int:Hh(),merge:Xh(),omap:Kh(),seq:Rh(),str:Ph()},ur.safeLoad=i("safeLoad","load"),ur.safeLoadAll=i("safeLoadAll","loadAll"),ur.safeDump=i("safeDump","dump"),ur}e(Wp,"requireJsYaml");var Hk=Wp(),Yk=Pp(Hk),{Type:L_,Schema:A_,FAILSAFE_SCHEMA:F_,JSON_SCHEMA:ut,CORE_SCHEMA:M_,DEFAULT_SCHEMA:E_,load:dt,loadAll:O_,dump:I_,YAMLException:$_,types:D_,safeLoad:P_,safeLoadAll:R_,safeDump:N_}=Yk;var no=e((r,t)=>{let{theme:i,themeVariables:s}=t,{useGradient:o,gradientStart:a,gradientStop:c}=s??{},l=r.attr("id"),d=i?.includes("dark")?"#FFFFFF":"#000000",x=e((b,T,w)=>r.append("defs").append("filter").attr("id",b).attr("height",T).attr("width",T).append("feDropShadow").attr("dx",w).attr("dy",w).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",d),"dropShadow");if(x(`${l}-drop-shadow`,"130%","4"),x(`${l}-drop-shadow-small`,"150%","2"),!o)return;let f=r.append("linearGradient").attr("id",`${l}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");f.append("svg:stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),f.append("svg:stop").attr("offset","100%").attr("stop-color",c).attr("stop-opacity",1)},"insertLookDefs");var zp=e((r)=>{let{handDrawnSeed:t}=u();return{fill:r,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:r,seed:t}},"solidStateFill"),Uk=e((r)=>{if(Array.isArray(r))return r;if(!r)return[];return r.split(";").map((t)=>t.trim()).filter(Boolean)},"normalizeStyleList"),li=e((r)=>{let t=jk([...r.cssCompiledStyles||[],...r.cssStyles||[],...Uk(r.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),jk=e((r)=>{let t=new Map;return r.forEach((i)=>{let[s,o]=i.split(":");t.set(s.trim(),o?.trim())}),t},"styles2Map"),Ra=e((r)=>r==="color"||r==="font-size"||r==="font-family"||r==="font-weight"||r==="font-style"||r==="text-decoration"||r==="text-align"||r==="text-transform"||r==="line-height"||r==="letter-spacing"||r==="word-spacing"||r==="text-shadow"||r==="text-overflow"||r==="white-space"||r==="word-wrap"||r==="word-break"||r==="overflow-wrap"||r==="hyphens","isLabelStyle"),C=e((r)=>{let{stylesArray:t}=li(r),i=[],s=[],o=[],a=[];return t.forEach((c)=>{let l=c[0];if(Ra(l))i.push(c.join(":")+" !important");else{if(s.push(c.join(":")+" !important"),l.includes("stroke"))o.push(c.join(":")+" !important");if(l==="fill")a.push(c.join(":")+" !important")}}),{labelStyles:i.join(";"),nodeStyles:s.join(";"),stylesArray:t,borderStyles:o,backgroundStyles:a}},"styles2String"),Vt=e((r,t)=>{let{themeVariables:i,handDrawnSeed:s}=u(),{nodeBorder:o,mainBkg:a}=i,{stylesMap:c}=li(r);return Object.assign({roughness:0.7,fill:c.get("fill")||a,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:c.get("stroke")||o,seed:s,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Gk(c.get("stroke-dasharray"))},t)},"userNodeOverrides"),Gk=e((r)=>{if(!r)return[0,0];let t=r.trim().split(/\s+/).map(Number);if(t.length===1){let o=isNaN(t[0])?0:t[0];return[o,o]}let i=isNaN(t[0])?0:t[0],s=isNaN(t[1])?0:t[1];return[i,s]},"getStrokeDashArray");var Ia=new Set(["redux-color","redux-dark-color"]),Xk=12,Vk=64,ve=e((r)=>Array.isArray(r)&&r.length>0,"hasPalette"),he=e((r,t)=>r!=null&&Ia.has(r)&&ve(t),"isColorTheme"),Kk=/^[\w-]+$/,pe=e((r)=>{let t=typeof r==="string"||typeof r==="number"?String(r):"";return Kk.test(t)?t:"classic"},"safeLook"),Ct=e((r)=>ve(r)?r.length:0,"paletteSlotCount"),tt=e((r,t)=>{if(ve(t))return Ct(t);return typeof r==="number"&&Number.isInteger(r)&&r>0&&r<=Vk?r:Xk},"colorSlotCount"),rt=e((r,t,i,s)=>{if(t===void 0||!he(i,s))return;let o=t%Ct(s);r.attr("data-color-id",`color-${o}`)},"stampColorSlot");var Jh=(r,t,i,s="")=>{let o=r.split(":");if(r.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let l=o.pop(),d=o.pop(),x={provider:o.length>0?o[0]:s,prefix:d,name:l};return t&&!kn(x)?null:x}let a=o[0],c=a.split("-");if(c.length>1){let l={provider:s,prefix:c.shift(),name:c.join("-")};return t&&!kn(l)?null:l}if(i&&s===""){let l={provider:s,prefix:"",name:a};return t&&!kn(l,i)?null:l}return null},kn=(r,t)=>{if(!r)return!1;return!!((t&&r.prefix===""||!!r.prefix)&&!!r.name)};var Zk=Object.freeze({left:0,top:0,width:16,height:16}),Uo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tc=Object.freeze({...Zk,...Uo}),Hp=Object.freeze({...tc,body:"",hidden:!1});function Yp(r,t){let i={};if(!r.hFlip!==!t.hFlip)i.hFlip=!0;if(!r.vFlip!==!t.vFlip)i.vFlip=!0;let s=((r.rotate||0)+(t.rotate||0))%4;if(s)i.rotate=s;return i}function ec(r,t){let i=Yp(r,t);for(let s in Hp)if(s in Uo){if(s in r&&!(s in i))i[s]=Uo[s]}else if(s in t)i[s]=t[s];else if(s in r)i[s]=r[s];return i}function Up(r,t){let i=r.icons,s=r.aliases||Object.create(null),o=Object.create(null);function a(c){if(i[c])return o[c]=[];if(!(c in o)){o[c]=null;let l=s[c]&&s[c].parent,d=l&&a(l);if(d)o[c]=[l].concat(d)}return o[c]}return(t||Object.keys(i).concat(Object.keys(s))).forEach(a),o}function jp(r,t,i){let s=r.icons,o=r.aliases||Object.create(null),a={};function c(l){a=ec(s[l]||o[l],a)}return c(t),i.forEach(c),ec(r,a)}function rc(r,t){if(r.icons[t])return jp(r,t,[]);let i=Up(r,[t])[t];return i?jp(r,t,i):null}var Qk=Object.freeze({width:null,height:null}),Gp=Object.freeze({...Qk,...Uo});var Jk=/(-?[0-9.]*[0-9]+[0-9.]*)/g,t1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ic(r,t,i){if(t===1)return r;if(i=i||100,typeof r==="number")return Math.ceil(r*t*i)/i;if(typeof r!=="string")return r;let s=r.split(Jk);if(s===null||!s.length)return r;let o=[],a=s.shift(),c=t1.test(a);while(!0){if(c){let l=parseFloat(a);if(isNaN(l))o.push(a);else o.push(Math.ceil(l*t*i)/i)}else o.push(a);if(a=s.shift(),a===void 0)return o.join("");c=!c}}function e1(r,t="defs"){let i="",s=r.indexOf("<"+t);while(s>=0){let o=r.indexOf(">",s),a=r.indexOf("</"+t);if(o===-1||a===-1)break;let c=r.indexOf(">",a);if(c===-1)break;i+=r.slice(o+1,a).trim(),r=r.slice(0,s).trim()+r.slice(c+1)}return{defs:i,content:r}}function r1(r,t){return r?"<defs>"+r+"</defs>"+t:t}function Xp(r,t,i){let s=e1(r);return r1(s.defs,t+s.content+i)}var i1=(r)=>r==="unset"||r==="undefined"||r==="none";function oc(r,t){let i={...tc,...r},s={...Gp,...t},o={left:i.left,top:i.top,width:i.width,height:i.height},a=i.body;[i,s].forEach((E)=>{let P=[],{hFlip:W,vFlip:H,rotate:V}=E;if(W)if(H)V+=2;else P.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),P.push("scale(-1 1)"),o.top=o.left=0;else if(H)P.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),P.push("scale(1 -1)"),o.top=o.left=0;let Q;if(V<0)V-=Math.floor(V/4)*4;switch(V=V%4,V){case 1:Q=o.height/2+o.top,P.unshift("rotate(90 "+Q.toString()+" "+Q.toString()+")");break;case 2:P.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:Q=o.width/2+o.left,P.unshift("rotate(-90 "+Q.toString()+" "+Q.toString()+")")}if(V%2===1){if(o.left!==o.top)Q=o.left,o.left=o.top,o.top=Q;if(o.width!==o.height)Q=o.width,o.width=o.height,o.height=Q}if(P.length)a=Xp(a,'<g transform="'+P.join(" ")+'">',"</g>")});let{width:c,height:l}=s,{width:d,height:x}=o,f,b;if(c===null)b=l===null?"1em":l==="auto"?x:l,f=ic(b,d/x);else f=c==="auto"?d:c,b=l===null?ic(f,x/d):l==="auto"?x:l;let T={},w=(E,P)=>{if(!i1(P))T[E]=P.toString()};w("width",f),w("height",b);let v=[o.left,o.top,d,x];return T.viewBox=v.join(" "),{attributes:T,viewBox:v,body:a}}var o1=/\sid="(\S+)"/g,Vp=new Map;function s1(r){r=r.replace(/[0-9]+$/,"")||"a";let t=Vp.get(r)||0;return Vp.set(r,t+1),t?`${r}${t}`:r}function sc(r){let t=[],i;while(i=o1.exec(r))t.push(i[1]);if(!t.length)return r;let s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach((o)=>{let a=s1(o),c=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),r=r.replace(new RegExp(s,"g"),""),r}function ac(r,t){let i=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let s in t)i+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+r+"</svg>"}var bs={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},Sn=new Map,nc=new Map,mr=e((r)=>{for(let t of r){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(n.debug("Registering icon pack:",t.name),"loader"in t)nc.set(t.name,t.loader);else if("icons"in t)Sn.set(t.name,t.icons);else throw n.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Kp=e((r)=>Sn.has(r)||nc.has(r),"isIconPackRegistered"),Zp=e(async(r,t)=>{let i=Jh(r,!0,t!==void 0);if(!i)throw Error(`Invalid icon name: ${r}`);let s=i.prefix||t;if(!s)throw Error(`Icon name must contain a prefix: ${r}`);let o=Sn.get(s);if(!o){let c=nc.get(s);if(!c)throw Error(`Icon set not found: ${i.prefix}`);try{o={...await c(),prefix:s},Sn.set(s,o)}catch(l){throw n.error(l),Error(`Failed to load icon set: ${i.prefix}`)}}let a=rc(o,i.name);if(!a)throw Error(`Icon not found: ${r}`);return a},"getRegisteredIconData"),Tn=e(async(r)=>{try{return await Zp(r),!0}catch{return!1}},"isIconAvailable"),nt=e(async(r,t,i)=>{let s;try{s=await Zp(r,t?.fallbackPrefix)}catch(c){n.error(c),s=bs}let o=oc(s,t),a=ac(sc(o.body),{...o.attributes,...i});return q(a,k())},"getIconSVG");var ff=Fe(pn(),1);function ji(r,t){if(typeof r!=="function"||t!=null&&typeof t!=="function")throw TypeError("Expected a function");let i=function(...s){let o=t?t.apply(this,s):s[0],a=i.cache;if(a.has(o))return a.get(o);let c=r.apply(this,s);return i.cache=a.set(o,c)||a,c};return i.cache=new(ji.Cache||Map),i}ji.Cache=Map;function Yr(r){return r==null||typeof r!=="object"&&typeof r!=="function"}function mn(r){if(r==null)return r===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(r)}var ao="[object RegExp]",Ma="[object String]",Na="[object Number]",Da="[object Boolean]",Oa="[object Arguments]",io="[object Symbol]",oo="[object Date]",so="[object Map]",lo="[object Set]",co="[object Array]";var uo="[object ArrayBuffer]",fo="[object Object]";var ho="[object DataView]",po="[object Uint8Array]",mo="[object Uint8ClampedArray]",go="[object Uint16Array]",bo="[object Uint32Array]";var vo="[object Int8Array]",yo="[object Int16Array]",xo="[object Int32Array]";var wo="[object Float32Array]",ko="[object Float64Array]";var x1=Object.prototype.hasOwnProperty;function gn(r,t){return x1.call(r,t)}function wn(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function Zt(r){return wn(r)}function of(){}function Bn(r){return Object.getOwnPropertySymbols(r).filter((t)=>Object.prototype.propertyIsEnumerable.call(r,t))}var lc=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}();function na(r){return typeof lc.Buffer<"u"&&lc.Buffer.isBuffer(r)}function sf(r){return r==="__proto__"}function _n(r){if(typeof r!=="object")return!1;if(r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){var t;let s=r[Symbol.toStringTag];if(s==null)return!1;if(!((t=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))===null||t===void 0?void 0:t.writable))return!1;return r.toString()===`[object ${s}]`}let i=r;while(Object.getPrototypeOf(i)!==null)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(r)===i}function af(r){return na(r)}function nf(r,t){return Go(r,void 0,r,new Map,t)}function Go(r,t,i,s,o){if(o!=null){let c=o(r,t,i,s);if(c!==void 0)return c}if(Yr(r))return r;if(s.has(r))return s.get(r);if(Array.isArray(r)){let c=Array(r.length);s.set(r,c);for(let l=0;l<r.length;l++)c[l]=Go(r[l],l,i,s,o);if(gn(r,"index"))c.index=r.index;if(gn(r,"input"))c.input=r.input;return c}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let c=new RegExp(r.source,r.flags);return c.lastIndex=r.lastIndex,c}if(r instanceof Map){let c=new Map;return s.set(r,c),r.forEach((l,d)=>{c.set(d,Go(l,d,i,s,o))}),c}if(r instanceof Set){let c=new Set;return s.set(r,c),r.forEach((l)=>{c.add(Go(l,void 0,i,s,o))}),c}if(af(r))return r.subarray();if(Zt(r)){let c=new(Object.getPrototypeOf(r)).constructor(r.length);s.set(r,c);for(let l=0;l<r.length;l++)c[l]=Go(r[l],l,i,s,o);return c}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let c=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return s.set(r,c),jo(c,r,i,s,o),c}if(typeof File<"u"&&r instanceof File){let c=new File([r],r.name,{type:r.type});return s.set(r,c),jo(c,r,i,s,o),c}if(typeof Blob<"u"&&r instanceof Blob){let c=new Blob([r],{type:r.type});return s.set(r,c),jo(c,r,i,s,o),c}let a=mn(r);if(a==="[object Error]"){if(r===i)return{};return r}switch(a){case Na:case Ma:case Da:{let c=new r.constructor(r.valueOf());return s.set(r,c),jo(c,r,i,s,o),c}case Oa:{let c={};return s.set(r,c),jo(c,r,i,s,o),c.length=r.length,c[Symbol.iterator]=r[Symbol.iterator],c}}if(typeof r==="object"&&C1(a)){let c=a==="[object Object]"&&typeof r.constructor!=="function"?{}:Object.create(Object.getPrototypeOf(r));return s.set(r,c),jo(c,r,i,s,o),c}return r}function jo(r,t,i,s,o){let a=[...Object.keys(t),...Bn(t)];for(let c=0;c<a.length;c++){let l=a[c],d=Object.getOwnPropertyDescriptor(r,l);if(d==null||d.writable)r[l]=Go(t[l],l,i,s,o)}}function C1(r){switch(r){case Oa:case co:case uo:case ho:case Da:case oo:case wo:case ko:case vo:case yo:case xo:case so:case Na:case fo:case ao:case lo:case Ma:case io:case po:case mo:case go:case bo:return!0;default:return!1}}function hc(r){return nf(r)}function Pa(r){return r!==null&&typeof r==="object"&&mn(r)==="[object Arguments]"}function Ns(r){return typeof r==="object"&&r!==null}function lf(r){return Number.isSafeInteger(r)&&r>=0}function To(r){return r!=null&&typeof r!=="function"&&lf(r.length)}function hf(r){return Ns(r)&&To(r)}function cf(r){if(Yr(r))return r;if(Array.isArray(r)||wn(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let i=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let s=new i(r);return s.lastIndex=r.lastIndex,s}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let s;if(typeof AggregateError<"u"&&r instanceof AggregateError)s=new i(r.errors,r.message,{cause:r.cause});else s=new i(r.message,{cause:r.cause});return s.stack=r.stack,Object.assign(s,r),s}if(typeof File<"u"&&r instanceof File)return new i([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r==="object"){let s=Object.create(t);return Object.assign(s,r)}return r}function uf(r,...t){let i=t.slice(0,-1),s=t[t.length-1],o=r;for(let a=0;a<i.length;a++){let c=i[a];o=Ln(o,c,s,new Map)}return o}function Ln(r,t,i,s){if(Yr(r))r=Object(r);if(t==null||typeof t!=="object")return r;if(s.has(t))return cf(s.get(t));if(s.set(t,r),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)if(!(a in t))t[a]=void 0}let o=[...Object.keys(t),...Bn(t)];for(let a=0;a<o.length;a++){let c=o[a];if(sf(c))continue;let l=t[c],d=r[c];if(Pa(l))l=Object.assign({},l);if(Pa(d))d=Object.assign({},d);if(na(l))l=hc(l);if(Array.isArray(l))if(Array.isArray(d)){let f=[],b=Reflect.ownKeys(d);for(let T=0;T<b.length;T++){let w=b[T];f[w]=d[w]}d=f}else if(hf(d)){let f=[];for(let b=0;b<d.length;b++)f[b]=d[b];d=f}else d=[];let x=i(d,l,c,r,t,s);if(x!==void 0)r[c]=x;else if(Array.isArray(l))r[c]=Ln(d,l,i,s);else if(Ns(d)&&Ns(l)&&(_n(d)||_n(l)||Zt(d)||Zt(l)))r[c]=Ln(d,l,i,s);else if(d==null&&_n(l))r[c]=Ln({},l,i,s);else if(d==null&&Zt(l))r[c]=hc(l);else if(d===void 0||l!==void 0)r[c]=l}return r}function cc(r,...t){return uf(r,...t,of)}var vs="",b1={curveBasis:Ps,curveBasisClosed:Vd,curveBasisOpen:Zd,curveBumpX:Ja,curveBumpY:tn,curveBundle:Jd,curveCardinalClosed:tp,curveCardinalOpen:ep,curveCardinal:rn,curveCatmullRomClosed:op,curveCatmullRomOpen:ap,curveCatmullRom:on,curveLinear:pr,curveLinearClosed:lp,curveMonotoneX:sn,curveMonotoneY:an,curveNatural:nn,curveStep:cn,curveStepAfter:dn,curveStepBefore:un},k1=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,S1=e(function(r,t){let i=gf(r,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(i)){let c=i.map((l)=>l.args);Ql(c),s=fe(s,[...c])}else s=i.args;if(!s)return;let o=Zn(r,t),a="config";if(s[a]!==void 0){if(o==="flowchart-v2")o="flowchart";s[o]=s[a],delete s[a]}return s},"detectInit"),gf=e(function(r,t=null){try{let i=new RegExp(`[%]{2}(?![{]${k1.source})(?=[}][%]{2}).*
|
|
161
|
+
`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),n.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let s,o=[];while((s=qo.exec(r))!==null){if(s.index===qo.lastIndex)qo.lastIndex++;if(s&&!t||t&&s[1]?.match(t)||t&&s[2]?.match(t)){let a=s[1]?s[1]:s[2],c=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:a,args:c})}}if(o.length===0)return{type:r,args:null};return o.length===1?o[0]:o}catch(i){return n.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),yl=e(function(r){return r.replace(qo,"")},"removeDirectives"),T1=e(function(r,t){for(let[i,s]of t.entries())if(s.match(r))return i;return-1},"isSubstringInArray");function Fn(r,t){if(!r)return t;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return b1[i]??t}e(Fn,"interpolateToCurve");function mf(r,t){let i=r.trim();if(!i)return;if(t.securityLevel!=="loose")return ff.sanitizeUrl(i);return i}e(mf,"formatUrl");var w1=e((r,...t)=>{let i=r.split("."),s=i.length-1,o=i[s],a=window;for(let c=0;c<s;c++)if(a=a[i[c]],!a){n.error(`Function name: ${r} not found in window`);return}a[o](...t)},"runFunc");function uc(r,t){if(!r||!t)return 0;return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}e(uc,"distance");function yf(r){let t,i=0;r.forEach((o)=>{i+=uc(o,t),t=o});let s=i/2;return dc(r,s)}e(yf,"traverseEdge");function xf(r){if(r.length===1)return r[0];return yf(r)}e(xf,"calcLabelPosition");var df=e((r,t=2)=>{let i=Math.pow(10,t);return Math.round(r*i)/i},"roundNumber"),dc=e((r,t)=>{let i=void 0,s=t;for(let o of r){if(i){let a=uc(o,i);if(a===0)return i;if(a<s)s-=a;else{let c=s/a;if(c<=0)return i;if(c>=1)return{x:o.x,y:o.y};if(c>0&&c<1)return{x:df((1-c)*i.x+c*o.x,5),y:df((1-c)*i.y+c*o.y,5)}}}i=o}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),B1=e((r,t,i)=>{if(n.info(`our points ${JSON.stringify(t)}`),t[0]!==i)t=t.reverse();let o=dc(t,25),a=r?10:5,c=Math.atan2(t[0].y-o.y,t[0].x-o.x),l={x:0,y:0};return l.x=Math.sin(c)*a+(t[0].x+o.x)/2,l.y=-Math.cos(c)*a+(t[0].y+o.y)/2,l},"calcCardinalityPosition");function Cf(r,t,i){let s=structuredClone(i);if(n.info("our points",s),t!=="start_left"&&t!=="start_right")s.reverse();let o=25+r,a=dc(s,o),c=10+r*0.5,l=Math.atan2(s[0].y-a.y,s[0].x-a.x),d={x:0,y:0};if(t==="start_left")d.x=Math.sin(l+Math.PI)*c+(s[0].x+a.x)/2,d.y=-Math.cos(l+Math.PI)*c+(s[0].y+a.y)/2;else if(t==="end_right")d.x=Math.sin(l-Math.PI)*c+(s[0].x+a.x)/2,d.y=-Math.cos(l-Math.PI)*c+(s[0].y+a.y)/2;else if(t==="end_left")d.x=Math.sin(l)*c+(s[0].x+a.x)/2,d.y=-Math.cos(l)*c+(s[0].y+a.y)/2;else d.x=Math.sin(l)*c+(s[0].x+a.x)/2,d.y=-Math.cos(l)*c+(s[0].y+a.y)/2;return d}e(Cf,"calcTerminalLabelPosition");function Co(r){let t="",i="";for(let s of r)if(s!==void 0)if(s.startsWith("color:")||s.startsWith("text-align:"))i=i+s+";";else t=t+s+";";return{style:t,labelStyle:i}}e(Co,"getStylesFromArray");var pf=0,ys=e(()=>(pf++,"id-"+Math.random().toString(36).substr(2,12)+"-"+pf),"generateId");function bf(r){let t="",i="0123456789abcdef",s=i.length;for(let o=0;o<r;o++)t+=i.charAt(Math.floor(Math.random()*s));return t}e(bf,"makeRandomHex");var xs=e((r)=>bf(r.length),"random"),_1=e(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),v1=e(function(r,t){let i=t.text.replace(y.lineBreakRegex," "),[,s]=Qe(t.fontSize),o=r.append("text");if(o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",s),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0)o.attr("class",t.class);let a=o.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(i),o},"drawSimpleText"),Xr=ji((r,t,i)=>{if(!r)return r;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),y.hasBreaks(r))return r;let s=r.split(" ").filter(Boolean),o=[],a="";return s.forEach((c,l)=>{let d=at(`${c} `,i),x=at(a,i);if(d>t){let{hyphenatedStrings:T,remainingWord:w}=L1(c,t,"-",i);o.push(a,...T),a=w}else if(x+d>=t)o.push(a),a=c;else a=[a,c].filter(Boolean).join(" ");if(l+1===s.length)o.push(a)}),o.filter((c)=>c!=="").join(i.joinWith)},(r,t,i)=>`${r}${t}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),L1=ji((r,t,i="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let o=[...r],a=[],c="";return o.forEach((l,d)=>{let x=`${c}${l}`;if(at(x,s)>=t){let b=d+1,T=o.length===b,w=`${x}${i}`;a.push(T?x:w),c=""}else c=x}),{hyphenatedStrings:a,remainingWord:c}},(r,t,i="-",s)=>`${r}${t}${i}${s.fontSize}${s.fontWeight}${s.fontFamily}`);function Ba(r,t){return Fa(r,t).height}e(Ba,"calculateTextHeight");function at(r,t){return Fa(r,t).width}e(at,"calculateTextWidth");var Fa=ji((r,t)=>{let{fontSize:i=12,fontFamily:s="Arial",fontWeight:o=400}=t;if(!r)return{width:0,height:0};let[,a]=Qe(i),c=["sans-serif",s],l=r.split(y.lineBreakRegex),d=[],x=m("body");if(!x.remove)return{width:0,height:0,lineHeight:0};let f=x.append("svg");for(let T of c){let w=0,v={width:0,height:0,lineHeight:0};for(let E of l){let P=_1();P.text=E||vs;let W=v1(f,P).style("font-size",a).style("font-weight",o).style("font-family",T),H=(W._groups||W)[0][0].getBBox();if(H.width===0&&H.height===0)throw Error("svg element not in render tree");v.width=Math.round(Math.max(v.width,H.width)),w=Math.round(H.height),v.height+=w,v.lineHeight=Math.round(Math.max(v.lineHeight,w))}d.push(v)}f.remove();let b=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;return d[b]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),A1=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{e(this,"InitIDGenerator")}},An,F1=e(function(r){return An=An||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),An.innerHTML=r,unescape(An.textContent)},"entityDecode");function So(r){return"str"in r}e(So,"isDetailedError");function ws(r){if(r instanceof Error)return r.message;return String(r)}e(ws,"getErrorMessage");var M1=e((r,t,i,s)=>{if(!s)return;let o=r.node()?.getBBox();if(!o)return;r.append("text").text(s).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-i).attr("class",t)},"insertTitle"),Qe=e((r)=>{if(typeof r==="number")return[r,r+"px"];let t=parseInt(r??"",10);if(Number.isNaN(t))return[void 0,void 0];else if(r===String(t))return[t,r+"px"];else return[t,r]},"parseFontSize");function K(r,t){return cc({},r,t)}e(K,"cleanAndMerge");var z={assignWithDepth:fe,wrapLabel:Xr,calculateTextHeight:Ba,calculateTextWidth:at,calculateTextDimensions:Fa,cleanAndMerge:K,detectInit:S1,detectDirective:gf,isSubstringInArray:T1,interpolateToCurve:Fn,calcLabelPosition:xf,calcCardinalityPosition:B1,calcTerminalLabelPosition:Cf,formatUrl:mf,getStylesFromArray:Co,generateId:ys,random:xs,runFunc:w1,entityDecode:F1,insertTitle:M1,isLabelCoordinateInPath:kf,parseFontSize:Qe,InitIDGenerator:A1},xl=e(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/#\w+;/g,function(i){let s=i.substring(1,i.length-1);if(/^\+?\d+$/.test(s))return"fl°°"+s+"¶ß";else return"fl°"+s+"¶ß"}),t},"encodeEntities"),Jt=e(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),We=e((r,t,{counter:i=0,prefix:s,suffix:o},a)=>{if(a)return a;return`${s?`${s}_`:""}${r}_${t}_${i}${o?`_${o}`:""}`},"getEdgeId");function He(r){return r??null}e(He,"handleUndefinedAttr");function kf(r,t){let i=Math.round(r.x),s=Math.round(r.y),o=t.replace(/(\d+\.\d+)/g,(a)=>Math.round(parseFloat(a)).toString());return o.includes(i.toString())||o.includes(s.toString())}e(kf,"isLabelCoordinateInPath");function fc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xi=fc();function Lf(r){Xi=r}var Hs={exec:()=>null};function Ie(r,t=""){let i=typeof r=="string"?r:r.source,s={replace:(o,a)=>{let c=typeof a=="string"?a:a.source;return c=c.replace(wr.caret,"$1"),i=i.replace(o,c),s},getRegex:()=>new RegExp(i,t)};return s}var E1=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),wr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(r)=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:(r)=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},O1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ys=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gc=/(?:[*+-]|\d{1,9}[.)])/,Af=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ff=Ie(Af).replace(/bull/g,gc).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(),P1=Ie(Af).replace(/bull/g,gc).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(),mc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,R1=/^[^\n]+/,yc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,N1=Ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),q1=Ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gc).getRegex(),$n="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",xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W1=Ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \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",xc).replace("tag",$n).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mf=Ie(mc).replace("hr",Ys).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",$n).getRegex(),z1=Ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mf).getRegex(),Cc={blockquote:z1,code:I1,def:N1,fences:$1,heading:D1,hr:Ys,html:W1,lheading:Ff,list:q1,newline:O1,paragraph:Mf,table:Hs,text:R1},Sf=Ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ys).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",$n).getRegex(),H1={...Cc,lheading:P1,table:Sf,paragraph:Ie(mc).replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sf).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",$n).getRegex()},Y1={...Cc,html:Ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xc).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:Hs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ie(mc).replace("hr",Ys).replace("heading",` *#{1,6} *[^
|
|
162
|
+
]`).replace("lheading",Ff).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,j1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ef=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Dn=/[\p{P}\p{S}]/u,bc=/[\s\p{P}\p{S}]/u,Of=/[^\s\p{P}\p{S}]/u,X1=Ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bc).getRegex(),If=/(?!~)[\p{P}\p{S}]/u,V1=/(?!~)[\s\p{P}\p{S}]/u,K1=/(?:[^\s\p{P}\p{S}]|~)/u,Z1=Ie(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",E1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$f=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Q1=Ie($f,"u").replace(/punct/g,Dn).getRegex(),J1=Ie($f,"u").replace(/punct/g,If).getRegex(),Df="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",t2=Ie(Df,"gu").replace(/notPunctSpace/g,Of).replace(/punctSpace/g,bc).replace(/punct/g,Dn).getRegex(),e2=Ie(Df,"gu").replace(/notPunctSpace/g,K1).replace(/punctSpace/g,V1).replace(/punct/g,If).getRegex(),r2=Ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Of).replace(/punctSpace/g,bc).replace(/punct/g,Dn).getRegex(),i2=Ie(/\\(punct)/,"gu").replace(/punct/g,Dn).getRegex(),o2=Ie(/^<(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(),s2=Ie(xc).replace("(?:-->|$)","-->").getRegex(),a2=Ie("^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",s2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),En=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,n2=Ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",En).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Pf=Ie(/^!?\[(label)\]\[(ref)\]/).replace("label",En).replace("ref",yc).getRegex(),Rf=Ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",yc).getRegex(),l2=Ie("reflink|nolink(?!\\()","g").replace("reflink",Pf).replace("nolink",Rf).getRegex(),Tf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kc={_backpedal:Hs,anyPunctuation:i2,autolink:o2,blockSkip:Z1,br:Ef,code:j1,del:Hs,emStrongLDelim:Q1,emStrongRDelimAst:t2,emStrongRDelimUnd:r2,escape:U1,link:n2,nolink:Rf,punctuation:X1,reflink:Pf,reflinkSearch:l2,tag:a2,text:G1,url:Hs},h2={...kc,link:Ie(/^!?\[(label)\]\((.*?)\)/).replace("label",En).getRegex(),reflink:Ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",En).getRegex()},pc={...kc,emStrongRDelimAst:e2,emStrongLDelim:J1,url:Ie(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Tf).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:Ie(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Tf).getRegex()},c2={...pc,br:Ie(Ef).replace("{2,}","*").getRegex(),text:Ie(pc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Mn={normal:Cc,gfm:H1,pedantic:Y1},qs={normal:kc,gfm:pc,breaks:c2,pedantic:h2},u2={"&":"&","<":"<",">":">",'"':""","'":"'"},wf=(r)=>u2[r];function hi(r,t){if(t){if(wr.escapeTest.test(r))return r.replace(wr.escapeReplace,wf)}else if(wr.escapeTestNoEncode.test(r))return r.replace(wr.escapeReplaceNoEncode,wf);return r}function Bf(r){try{r=encodeURI(r).replace(wr.percentDecode,"%")}catch{return null}return r}function _f(r,t){let i=r.replace(wr.findPipe,(a,c,l)=>{let d=!1,x=c;for(;--x>=0&&l[x]==="\\";)d=!d;return d?"|":" |"}),s=i.split(wr.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(wr.slashPipe,"|");return s}function Ws(r,t,i){let s=r.length;if(s===0)return"";let o=0;for(;o<s;){let a=r.charAt(s-o-1);if(a===t&&!i)o++;else if(a!==t&&i)o++;else break}return r.slice(0,s-o)}function d2(r,t){if(r.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===t[0])i++;else if(r[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function vf(r,t,i,s,o){let a=t.href,c=t.title||null,l=r[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let d={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:a,title:c,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,d}function p2(r,t,i){let s=r.match(i.other.indentCodeCompensation);if(s===null)return t;let o=s[1];return t.split(`
|
|
163
|
+
`).map((a)=>{let c=a.match(i.other.beginningSpace);if(c===null)return a;let[l]=c;return l.length>=o.length?a.slice(o.length):a}).join(`
|
|
164
|
+
`)}var On=class{options;rules;lexer;constructor(r){this.options=r||Xi}space(r){let t=this.rules.block.newline.exec(r);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(r){let t=this.rules.block.code.exec(r);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ws(i,`
|
|
165
|
+
`)}}}fences(r){let t=this.rules.block.fences.exec(r);if(t){let i=t[0],s=p2(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(r){let t=this.rules.block.heading.exec(r);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ws(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(r){let t=this.rules.block.hr.exec(r);if(t)return{type:"hr",raw:Ws(t[0],`
|
|
166
|
+
`)}}blockquote(r){let t=this.rules.block.blockquote.exec(r);if(t){let i=Ws(t[0],`
|
|
167
|
+
`).split(`
|
|
168
|
+
`),s="",o="",a=[];for(;i.length>0;){let c=!1,l=[],d;for(d=0;d<i.length;d++)if(this.rules.other.blockquoteStart.test(i[d]))l.push(i[d]),c=!0;else if(!c)l.push(i[d]);else break;i=i.slice(d);let x=l.join(`
|
|
169
|
+
`),f=x.replace(this.rules.other.blockquoteSetextReplace,`
|
|
170
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
171
|
+
${x}`:x,o=o?`${o}
|
|
172
|
+
${f}`:f;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,a,!0),this.lexer.state.top=b,i.length===0)break;let T=a.at(-1);if(T?.type==="code")break;if(T?.type==="blockquote"){let w=T,v=w.raw+`
|
|
173
|
+
`+i.join(`
|
|
174
|
+
`),E=this.blockquote(v);a[a.length-1]=E,s=s.substring(0,s.length-w.raw.length)+E.raw,o=o.substring(0,o.length-w.text.length)+E.text;break}else if(T?.type==="list"){let w=T,v=w.raw+`
|
|
175
|
+
`+i.join(`
|
|
176
|
+
`),E=this.list(v);a[a.length-1]=E,s=s.substring(0,s.length-T.raw.length)+E.raw,o=o.substring(0,o.length-w.raw.length)+E.raw,i=v.substring(a.at(-1).raw.length).split(`
|
|
177
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:a,text:o}}}list(r){let t=this.rules.block.list.exec(r);if(t){let i=t[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let a=this.rules.other.listItemRegex(i),c=!1;for(;r;){let d=!1,x="",f="";if(!(t=a.exec(r))||this.rules.block.hr.test(r))break;x=t[0],r=r.substring(x.length);let b=t[2].split(`
|
|
178
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,(W)=>" ".repeat(3*W.length)),T=r.split(`
|
|
179
|
+
`,1)[0],w=!b.trim(),v=0;if(this.options.pedantic?(v=2,f=b.trimStart()):w?v=t[1].length+1:(v=t[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=b.slice(v),v+=t[1].length),w&&this.rules.other.blankLine.test(T)&&(x+=T+`
|
|
180
|
+
`,r=r.substring(T.length+1),d=!0),!d){let W=this.rules.other.nextBulletRegex(v),H=this.rules.other.hrRegex(v),V=this.rules.other.fencesBeginRegex(v),Q=this.rules.other.headingBeginRegex(v),J=this.rules.other.htmlBeginRegex(v);for(;r;){let st=r.split(`
|
|
181
|
+
`,1)[0],lt;if(T=st,this.options.pedantic?(T=T.replace(this.rules.other.listReplaceNesting," "),lt=T):lt=T.replace(this.rules.other.tabCharGlobal," "),V.test(T)||Q.test(T)||J.test(T)||W.test(T)||H.test(T))break;if(lt.search(this.rules.other.nonSpaceChar)>=v||!T.trim())f+=`
|
|
182
|
+
`+lt.slice(v);else{if(w||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||V.test(b)||Q.test(b)||H.test(b))break;f+=`
|
|
183
|
+
`+T}!w&&!T.trim()&&(w=!0),x+=st+`
|
|
184
|
+
`,r=r.substring(st.length+1),b=lt.slice(v)}}o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(c=!0));let E=null,P;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(P=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:x,task:!!E,checked:P,loose:!1,text:f,tokens:[]}),o.raw+=x}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let d=0;d<o.items.length;d++)if(this.lexer.state.top=!1,o.items[d].tokens=this.lexer.blockTokens(o.items[d].text,[]),!o.loose){let x=o.items[d].tokens.filter((b)=>b.type==="space"),f=x.length>0&&x.some((b)=>this.rules.other.anyLine.test(b.raw));o.loose=f}if(o.loose)for(let d=0;d<o.items.length;d++)o.items[d].loose=!0;return o}}html(r){let t=this.rules.block.html.exec(r);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(r){let t=this.rules.block.def.exec(r);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:o}}}table(r){let t=this.rules.block.table.exec(r);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=_f(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
185
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let c of s)this.rules.other.tableAlignRight.test(c)?a.align.push("right"):this.rules.other.tableAlignCenter.test(c)?a.align.push("center"):this.rules.other.tableAlignLeft.test(c)?a.align.push("left"):a.align.push(null);for(let c=0;c<i.length;c++)a.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:a.align[c]});for(let c of o)a.rows.push(_f(c,a.header.length).map((l,d)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[d]})));return a}}lheading(r){let t=this.rules.block.lheading.exec(r);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(r){let t=this.rules.block.paragraph.exec(r);if(t){let i=t[1].charAt(t[1].length-1)===`
|
|
186
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(r){let t=this.rules.block.text.exec(r);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(r){let t=this.rules.inline.escape.exec(r);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(r){let t=this.rules.inline.tag.exec(r);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(r){let t=this.rules.inline.link.exec(r);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=Ws(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=d2(t[2],"()");if(a===-2)return;if(a>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let s=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),vf(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(r,t){let i;if((i=this.rules.inline.reflink.exec(r))||(i=this.rules.inline.nolink.exec(r))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[s.toLowerCase()];if(!o){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return vf(i,o,i[0],this.lexer,this.rules)}}emStrong(r,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...s[0]].length-1,a,c,l=o,d=0,x=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,t=t.slice(-1*r.length+o);(s=x.exec(t))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(c=[...a].length,s[3]||s[4]){l+=c;continue}else if((s[5]||s[6])&&o%3&&!((o+c)%3)){d+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+d);let f=[...s[0]][0].length,b=r.slice(0,o+s.index+f+c);if(Math.min(o,c)%2){let w=b.slice(1,-1);return{type:"em",raw:b,text:w,tokens:this.lexer.inlineTokens(w)}}let T=b.slice(2,-2);return{type:"strong",raw:b,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(r){let t=this.rules.inline.code.exec(r);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(r){let t=this.rules.inline.br.exec(r);if(t)return{type:"br",raw:t[0]}}del(r){let t=this.rules.inline.del.exec(r);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(r){let t=this.rules.inline.autolink.exec(r);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(r){let t;if(t=this.rules.inline.url.exec(r)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(o!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(r){let t=this.rules.inline.text.exec(r);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},Jr=class r{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xi,this.options.tokenizer=this.options.tokenizer||new On,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 i={other:wr,block:Mn.normal,inline:qs.normal};this.options.pedantic?(i.block=Mn.pedantic,i.inline=qs.pedantic):this.options.gfm&&(i.block=Mn.gfm,this.options.breaks?i.inline=qs.breaks:i.inline=qs.gfm),this.tokenizer.rules=i}static get rules(){return{block:Mn,inline:qs}}static lex(t,i){return new r(i).lex(t)}static lexInline(t,i){return new r(i).inlineTokens(t)}lex(t){t=t.replace(wr.carriageReturn,`
|
|
187
|
+
`),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.options.pedantic&&(t=t.replace(wr.tabCharGlobal," ").replace(wr.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some((c)=>(o=c.call({lexer:this},t,i))?(t=t.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let c=i.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
|
188
|
+
`:i.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
189
|
+
`)?"":`
|
|
190
|
+
`)+o.raw,c.text+=`
|
|
191
|
+
`+o.text,this.inlineQueue.at(-1).src=c.text):i.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let c=i.at(-1);c?.type==="paragraph"||c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
192
|
+
`)?"":`
|
|
193
|
+
`)+o.raw,c.text+=`
|
|
194
|
+
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),i.push(o);continue}let a=t;if(this.options.extensions?.startBlock){let c=1/0,l=t.slice(1),d;this.options.extensions.startBlock.forEach((x)=>{d=x.call({lexer:this},l),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){let c=i.at(-1);s&&c?.type==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
195
|
+
`)?"":`
|
|
196
|
+
`)+o.raw,c.text+=`
|
|
197
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(o),s=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let c=i.at(-1);c?.type==="text"?(c.raw+=(c.raw.endsWith(`
|
|
198
|
+
`)?"":`
|
|
199
|
+
`)+o.raw,c.text+=`
|
|
200
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):i.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let s=t,o=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)d.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=o[2]?o[2].length:0,s=s.slice(0,o.index+a)+"["+"a".repeat(o[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let c=!1,l="";for(;t;){c||(l=""),c=!1;let d;if(this.options.extensions?.inline?.some((f)=>(d=f.call({lexer:this},t,i))?(t=t.substring(d.raw.length),i.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let f=i.at(-1);d.type==="text"&&f?.type==="text"?(f.raw+=d.raw,f.text+=d.text):i.push(d);continue}if(d=this.tokenizer.emStrong(t,s,l)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),i.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),i.push(d);continue}let x=t;if(this.options.extensions?.startInline){let f=1/0,b=t.slice(1),T;this.options.extensions.startInline.forEach((w)=>{T=w.call({lexer:this},b),typeof T=="number"&&T>=0&&(f=Math.min(f,T))}),f<1/0&&f>=0&&(x=t.substring(0,f+1))}if(d=this.tokenizer.inlineText(x)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),c=!0;let f=i.at(-1);f?.type==="text"?(f.raw+=d.raw,f.text+=d.text):i.push(d);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw Error(f)}}return i}},In=class{options;parser;constructor(r){this.options=r||Xi}space(r){return""}code({text:r,lang:t,escaped:i}){let s=(t||"").match(wr.notSpaceStart)?.[0],o=r.replace(wr.endingNewline,"")+`
|
|
201
|
+
`;return s?'<pre><code class="language-'+hi(s)+'">'+(i?o:hi(o,!0))+`</code></pre>
|
|
202
|
+
`:"<pre><code>"+(i?o:hi(o,!0))+`</code></pre>
|
|
203
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
204
|
+
${this.parser.parse(r)}</blockquote>
|
|
205
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:t}){return`<h${t}>${this.parser.parseInline(r)}</h${t}>
|
|
206
|
+
`}hr(r){return`<hr>
|
|
207
|
+
`}list(r){let{ordered:t,start:i}=r,s="";for(let c=0;c<r.items.length;c++){let l=r.items[c];s+=this.listitem(l)}let o=t?"ol":"ul",a=t&&i!==1?' start="'+i+'"':"";return"<"+o+a+`>
|
|
208
|
+
`+s+"</"+o+`>
|
|
209
|
+
`}listitem(r){let t="";if(r.task){let i=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=i+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=i+" "+hi(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(r.tokens,!!r.loose),`<li>${t}</li>
|
|
210
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
211
|
+
`}table(r){let t="",i="";for(let o=0;o<r.header.length;o++)i+=this.tablecell(r.header[o]);t+=this.tablerow({text:i});let s="";for(let o=0;o<r.rows.length;o++){let a=r.rows[o];i="";for(let c=0;c<a.length;c++)i+=this.tablecell(a[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
212
|
+
<thead>
|
|
213
|
+
`+t+`</thead>
|
|
214
|
+
`+s+`</table>
|
|
215
|
+
`}tablerow({text:r}){return`<tr>
|
|
216
|
+
${r}</tr>
|
|
217
|
+
`}tablecell(r){let t=this.parser.parseInline(r.tokens),i=r.header?"th":"td";return(r.align?`<${i} align="${r.align}">`:`<${i}>`)+t+`</${i}>
|
|
218
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${hi(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:t,tokens:i}){let s=this.parser.parseInline(i),o=Bf(r);if(o===null)return s;r=o;let a='<a href="'+r+'"';return t&&(a+=' title="'+hi(t)+'"'),a+=">"+s+"</a>",a}image({href:r,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=Bf(r);if(o===null)return hi(i);r=o;let a=`<img src="${r}" alt="${i}"`;return t&&(a+=` title="${hi(t)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):("escaped"in r)&&r.escaped?r.text:hi(r.text)}},Sc=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},ti=class r{options;renderer;textRenderer;constructor(t){this.options=t||Xi,this.options.renderer=this.options.renderer||new In,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sc}static parse(t,i){return new r(i).parse(t)}static parseInline(t,i){return new r(i).parseInline(t)}parse(t,i=!0){let s="";for(let o=0;o<t.length;o++){let a=t[o];if(this.options.extensions?.renderers?.[a.type]){let l=a,d=this.options.extensions.renderers[l.type].call({parser:this},l);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=d||"";continue}}let c=a;switch(c.type){case"space":{s+=this.renderer.space(c);continue}case"hr":{s+=this.renderer.hr(c);continue}case"heading":{s+=this.renderer.heading(c);continue}case"code":{s+=this.renderer.code(c);continue}case"table":{s+=this.renderer.table(c);continue}case"blockquote":{s+=this.renderer.blockquote(c);continue}case"list":{s+=this.renderer.list(c);continue}case"html":{s+=this.renderer.html(c);continue}case"def":{s+=this.renderer.def(c);continue}case"paragraph":{s+=this.renderer.paragraph(c);continue}case"text":{let l=c,d=this.renderer.text(l);for(;o+1<t.length&&t[o+1].type==="text";)l=t[++o],d+=`
|
|
219
|
+
`+this.renderer.text(l);i?s+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):s+=d;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}parseInline(t,i=this.renderer){let s="";for(let o=0;o<t.length;o++){let a=t[o];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=l||"";continue}}let c=a;switch(c.type){case"escape":{s+=i.text(c);break}case"html":{s+=i.html(c);break}case"link":{s+=i.link(c);break}case"image":{s+=i.image(c);break}case"strong":{s+=i.strong(c);break}case"em":{s+=i.em(c);break}case"codespan":{s+=i.codespan(c);break}case"br":{s+=i.br(c);break}case"del":{s+=i.del(c);break}case"text":{s+=i.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw Error(l)}}}return s}},zs=class{options;block;constructor(r){this.options=r||Xi}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?Jr.lex:Jr.lexInline}provideParser(){return this.block?ti.parse:ti.parseInline}},f2=class{defaults=fc();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ti;Renderer=In;TextRenderer=Sc;Lexer=Jr;Tokenizer=On;Hooks=zs;constructor(...r){this.use(...r)}walkTokens(r,t){let i=[];for(let s of r)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)i=i.concat(this.walkTokens(a.tokens,t));for(let a of o.rows)for(let c of a)i=i.concat(this.walkTokens(c.tokens,t));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,t));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach((a)=>{let c=o[a].flat(1/0);i=i.concat(this.walkTokens(c,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...r){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach((i)=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...c){let l=o.renderer.apply(this,c);return l===!1&&(l=a.apply(this,c)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),s.extensions=t),i.renderer){let o=this.defaults.renderer||new In(this.defaults);for(let a in i.renderer){if(!(a in o))throw Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let c=a,l=i.renderer[c],d=o[c];o[c]=(...x)=>{let f=l.apply(o,x);return f===!1&&(f=d.apply(o,x)),f||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new On(this.defaults);for(let a in i.tokenizer){if(!(a in o))throw Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let c=a,l=i.tokenizer[c],d=o[c];o[c]=(...x)=>{let f=l.apply(o,x);return f===!1&&(f=d.apply(o,x)),f}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new zs;for(let a in i.hooks){if(!(a in o))throw Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let c=a,l=i.hooks[c],d=o[c];zs.passThroughHooks.has(a)?o[c]=(x)=>{if(this.defaults.async&&zs.passThroughHooksRespectAsync.has(a))return(async()=>{let b=await l.call(o,x);return d.call(o,b)})();let f=l.call(o,x);return d.call(o,f)}:o[c]=(...x)=>{if(this.defaults.async)return(async()=>{let b=await l.apply(o,x);return b===!1&&(b=await d.apply(o,x)),b})();let f=l.apply(o,x);return f===!1&&(f=d.apply(o,x)),f}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(c){let l=[];return l.push(a.call(this,c)),o&&(l=l.concat(o.call(this,c))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,t){return Jr.lex(r,t??this.defaults)}parser(r,t){return ti.parse(r,t??this.defaults)}parseMarkdown(r){return(t,i)=>{let s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=r),o.async)return(async()=>{let c=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer():r?Jr.lex:Jr.lexInline)(c,o),d=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let x=await(o.hooks?await o.hooks.provideParser():r?ti.parse:ti.parseInline)(d,o);return o.hooks?await o.hooks.postprocess(x):x})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let c=(o.hooks?o.hooks.provideLexer():r?Jr.lex:Jr.lexInline)(t,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():r?ti.parse:ti.parseInline)(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return a(c)}}}onError(r,t){return(i)=>{if(i.message+=`
|
|
220
|
+
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+hi(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},Gi=new f2;function De(r,t){return Gi.parse(r,t)}De.options=De.setOptions=function(r){return Gi.setOptions(r),De.defaults=Gi.defaults,Lf(De.defaults),De};De.getDefaults=fc;De.defaults=Xi;De.use=function(...r){return Gi.use(...r),De.defaults=Gi.defaults,Lf(De.defaults),De};De.walkTokens=function(r,t){return Gi.walkTokens(r,t)};De.parseInline=Gi.parseInline;De.Parser=ti;De.parser=ti.parse;De.Renderer=In;De.TextRenderer=Sc;De.Lexer=Jr;De.lexer=Jr.lex;De.Tokenizer=On;De.Hooks=zs;De.parse=De;var{options:z4,setOptions:H4,use:Y4,walkTokens:U4,parseInline:j4}=De;var G4=ti.parse,X4=Jr.lex;function Eo(r){var t=[];for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];var s=Array.from(typeof r==="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var o=s.reduce(function(l,d){var x=d.match(/\n([\t ]+|(?!\s).)/g);if(x)return l.concat(x.map(function(f){var b,T;return(T=(b=f.match(/[\t ]/g))===null||b===void 0?void 0:b.length)!==null&&T!==void 0?T:0}));return l},[]);if(o.length){var a=new RegExp(`
|
|
221
|
+
[ ]{`.concat(Math.min.apply(Math,o),"}"),"g");s=s.map(function(l){return l.replace(a,`
|
|
222
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var c=s[0];return t.forEach(function(l,d){var x=c.match(/(?:^|\n)( *)$/),f=x?x[1]:"",b=l;if(typeof l==="string"&&l.includes(`
|
|
223
|
+
`))b=String(l).split(`
|
|
224
|
+
`).map(function(T,w){return w===0?T:"".concat(f).concat(T)}).join(`
|
|
225
|
+
`);c+=b+s[d+1]}),c}var wc=typeof performance<"u"&&typeof performance.now==="function",Xo=e(()=>wc?performance.now():0,"now"),Tc="\uD83E\uDDDC ",g2="Mermaid render",m2="Mermaid",y2={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},nN=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{e(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(r)}tickSync(r,t){if(!this.enabled)return t();let i=Xo();try{return t()}finally{this.buckets[r]=(this.buckets[r]??0)+(Xo()-i)}}async tick(r,t){if(!this.enabled)return t();let i=Xo();try{return await t()}finally{this.buckets[r]=(this.buckets[r]??0)+(Xo()-i)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let r=this.roots.at(-1),t=this.runLabel??r?.name;if(r){if(this.records.push({label:t??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(r,t)}return this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let t={name:r,start:Xo(),duration:-1,children:[]},i=this.stack.at(-1);if(i)i.children.push(t);else this.roots.push(t);if(this.stack.push(t),wc&&typeof performance.mark==="function")try{performance.mark(`${Tc}${r} ▶`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let t=Xo();if(r.duration=t-r.start,wc&&typeof performance.measure==="function")try{performance.measure(`${Tc}${r.name}`,{start:r.start,end:t,detail:{devtools:{dataType:"track-entry",track:g2,trackGroup:m2,color:y2[r.name]??"primary",tooltipText:`${r.name} — ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,t){if(!this.enabled)return t();this.begin(r);try{return await t()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),t){if(!r)return;let i=r.duration,s=t&&t!==r.name?`${r.name} [${t}]`:r.name,o=["ms % phase"],a=e((l,d)=>{let x=" ".repeat(d),f=l.duration.toFixed(1).padStart(8),b=i>0?`${(l.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${f} ${b} ${x}${l.name}`);for(let T of l.children)a(T,d+1);if(l.children.length>0){let T=l.children.reduce((v,E)=>v+E.duration,0),w=l.duration-T;if(w>0.5){let v=w.toFixed(1).padStart(8);o.push(`${v} ${x} (self)`)}}},"walk");a(r,0);let c=Object.keys(this.buckets);if(c.length>0){o.push("—— buckets (summed) ——");for(let l of c)o.push(`${this.buckets[l].toFixed(1).padStart(8)} ${l}`)}console.log(`${Tc}mermaid render profile · ${s}
|
|
226
|
+
${o.join(`
|
|
227
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function qf(r,{markdownAutoWrap:t}){let s=r.replace(/<br\/>/g,`
|
|
228
|
+
`).replace(/\n{2,}/g,`
|
|
229
|
+
`);return Eo(s)}e(qf,"preprocessMarkdown");function Wf(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map((t)=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((i)=>({content:i,type:"normal"}))??[])}e(Wf,"nonMarkdownToLines");function Ao(r,t={}){let i=qf(r,t),s=De.lexer(i),o=[[]],a=0;function c(l,d="normal"){if(l.type==="text")l.text.split(`
|
|
230
|
+
`).forEach((f,b)=>{if(b!==0)a++,o.push([]);f.split(" ").forEach((T)=>{if(T=T.replace(/'/g,"'"),T)o[a].push({content:T,type:d})})});else if(l.type==="strong"||l.type==="em")l.tokens.forEach((x)=>{c(x,l.type)});else if(l.type==="html")o[a].push({content:l.text,type:"normal"})}return e(c,"processNode"),s.forEach((l)=>{if(l.type==="paragraph")l.tokens?.forEach((d)=>{c(d)});else if(l.type==="html")o[a].push({content:l.text,type:"normal"});else o[a].push({content:l.raw,type:"normal"})}),o}e(Ao,"markdownToLines");function zf(r){if(!r)return"";return`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`}e(zf,"nonMarkdownToHTML");function Hf(r,{markdownAutoWrap:t}={}){let i=De.lexer(r);function s(o){if(o.type==="text"){if(t===!1)return o.text.replace(/\n */g,"<br/>").replace(/ /g," ");return o.text.replace(/\n */g,"<br/>")}else if(o.type==="strong")return`<strong>${o.tokens?.map(s).join("")}</strong>`;else if(o.type==="em")return`<em>${o.tokens?.map(s).join("")}</em>`;else if(o.type==="paragraph")return`<p>${o.tokens?.map(s).join("")}</p>`;else if(o.type==="space")return"";else if(o.type==="html")return`${o.text}`;else if(o.type==="escape")return o.text;return n.warn(`Unsupported markdown: ${o.type}`),o.raw}return e(s,"output"),i.map(s).join("")}e(Hf,"markdownToHTML");var x2=function(r){var t=function(){},i=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(x){return setTimeout(x,16)};function s(){var x=this;x.reads=[],x.writes=[],x.raf=i.bind(r),t("initialized",x)}e(s,"FastDom"),s.prototype={constructor:s,runTasks:e(function(x){t("run tasks");var f;while(f=x.shift())f()},"runTasks"),measure:e(function(x,f){t("measure");var b=!f?x:x.bind(f);return this.reads.push(b),o(this),b},"measure"),mutate:e(function(x,f){t("mutate");var b=!f?x:x.bind(f);return this.writes.push(b),o(this),b},"mutate"),clear:e(function(x){return t("clear",x),c(this.reads,x)||c(this.writes,x)},"clear"),extend:e(function(x){if(t("extend",x),typeof x!="object")throw Error("expected object");var f=Object.create(this);if(l(f,x),f.fastdom=this,f.initialize)f.initialize();return f},"extend"),catch:null};function o(x){if(!x.scheduled)x.scheduled=!0,x.raf(a.bind(null,x)),t("flush scheduled")}e(o,"scheduleFlush");function a(x){t("flush");var{writes:f,reads:b}=x,T;try{t("flushing reads",b.length),x.runTasks(b),t("flushing writes",f.length),x.runTasks(f)}catch(w){T=w}if(x.scheduled=!1,b.length||f.length)o(x);if(T)if(t("task errored",T.message),x.catch)x.catch(T);else throw T}e(a,"flush");function c(x,f){var b=x.indexOf(f);return!!~b&&!!x.splice(b,1)}e(c,"remove");function l(x,f){for(var b in f)if(f.hasOwnProperty(b))x[b]=f[b]}e(l,"mixin");var d=r.fastdom=r.fastdom||new s;return d}(typeof window<"u"?window:globalThis),Yf={initialize:e(function(){this._tasks=new Map},"initialize"),mutate:e(function(r,t){return Bc(this,"mutate",r,t)},"mutate"),measure:e(function(r,t){return Bc(this,"measure",r,t)},"measure"),clear:e(function(r){var t=this._tasks,i=t.get(r);this.fastdom.clear(i),t.delete(r)},"clear")};function Bc(r,t,i,s){var{_tasks:o,fastdom:a}=r,c,l=new Promise(function(d,x){c=a[t](function(){o.delete(l);try{d(s?i.call(s):i())}catch(f){x(f)}},s)});return o.set(l,c),l}e(Bc,"create");var{initialize:cN,mutate:uN,measure:dN,clear:pN}=Yf,C2=Yf,b2=x2.extend({raf(r){if(typeof queueMicrotask==="function")queueMicrotask(r);else setTimeout(r,0)}}).extend(C2),Ti=b2;function Uf(r){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(r)].map((t)=>t.segment);return[...r]}e(Uf,"splitTextToChars");function jf(r,t){let i=Uf(t.content);return Lc(r,[],i,t.type)}e(jf,"splitWordToFitWidth");function Lc(r,t,i,s){if(i.length===0)return[{content:t.join(""),type:s},{content:"",type:s}];let[o,...a]=i,c=[...t,o];if(r([{content:c.join(""),type:s}]))return Lc(r,c,a,s);if(t.length===0&&o)t.push(o),i.shift();return[{content:t.join(""),type:s},{content:i.join(""),type:s}]}e(Lc,"splitWordToFitWidthRecursion");function Gf(r,t){if(r.some(({content:i})=>i.includes(`
|
|
231
|
+
`)))throw Error("splitLineToFitWidth does not support newlines in the line");return Pn(r,t)}e(Gf,"splitLineToFitWidth");function Pn(r,t,i=[],s=[]){if(r.length===0){if(s.length>0)i.push(s);return i.length>0?i:[]}let o="";if(r[0].content===" ")o=" ",r.shift();let a=r.shift()??{content:" ",type:"normal"},c=[...s];if(o!=="")c.push({content:o,type:"normal"});if(c.push(a),t(c))return Pn(r,t,i,c);if(s.length>0)i.push(s),r.unshift(a);else if(a.content){let[l,d]=jf(t,a);if(i.push([l]),d.content)r.unshift(d)}return Pn(r,t,i)}e(Pn,"splitLineToFitWidthRecursion");function _c(r,t){if(t)r.attr("style",t)}e(_c,"applyStyle");var Nf=16384;async function Xf(r,t,i,s,o=!1,a=k(),c=0){let l=r.append("foreignObject");l.attr("width",`${Math.min(10*i,Nf)}px`),l.attr("height",`${Math.min(10*i,Nf)}px`);let d=l.append("xhtml:div"),x=Ce(t.label)?await ta(t.label.replace(y.lineBreakRegex,`
|
|
232
|
+
`),a):q(t.label,a),f=t.isNode?"nodeLabel":"edgeLabel",b=d.append("span");if(b.html(x),_c(b,t.labelStyle),b.attr("class",`${f} ${s}`),_c(d,t.labelStyle),d.style("display","table-cell"),d.style("white-space","nowrap"),d.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY)d.style("max-width",i+"px"),d.style("text-align","center");if(d.attr("xmlns","http://www.w3.org/1999/xhtml"),o)d.attr("class","labelBkg");let T=await Ti.measure(()=>d.node().getBoundingClientRect());if(T.width===i)d.style("display","table"),d.style("white-space","break-spaces"),d.style("width",i+"px");else if(T.width<c)d.style("display","table"),d.style("width",c+"px"),d.style("text-align","center");return l.node()}e(Xf,"addHtmlSpan");function Rn(r,t,i,s=!1){let o=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*i-0.1+"em").attr("dy",i+"em");if(s)o.attr("text-anchor","middle");return o}e(Rn,"createTspan");function Vf(r,t,i){let s=r.append("text"),o=Rn(s,1,t);Nn(o,i);let a=o.node().getComputedTextLength();return s.remove(),a}e(Vf,"computeWidthOfText");function ks(r,t,i){let s=r.append("text"),o=Rn(s,1,t);Nn(o,[{content:i,type:"normal"}]);let a=o.node()?.getBoundingClientRect();if(a)s.remove();return a}e(ks,"computeDimensionOfText");function Kf(r,t,i,s=!1,o=!1){let c=t.append("g"),l=c.insert("rect").attr("class","background").attr("style","stroke: none"),d=c.append("text").attr("y","-10.1");if(o)d.attr("text-anchor","middle");let x=0;for(let f of i){let b=e((w)=>Vf(c,1.1,w)<=r,"checkWidth"),T=b(f)?[f]:Gf(f,b);for(let w of T){let v=Rn(d,x,1.1,o);Nn(v,w),x++}}if(s){let f=d.node().getBBox(),b=2;return l.attr("x",f.x-2).attr("y",f.y-2).attr("width",f.width+4).attr("height",f.height+4),c.node()}else return d.node()}e(Kf,"createFormattedText");function vc(r){let t=/&(amp|lt|gt);/g;return r.replace(t,(i,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return i}})}e(vc,"decodeHTMLEntities");function Nn(r,t){r.text(""),t.forEach((i,s)=>{let o=r.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");if(s===0)o.text(vc(i.content));else o.text(" "+vc(i.content))})}e(Nn,"updateTextContentAndStyles");async function Zf(r,t={}){let i=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,a,c)=>(i.push((async()=>{let l=`${a}:${c}`;if(await Tn(l))return await nt(l,void 0,{class:"label-icon"});else return`<i class='${q(o,t).replace(":"," ")}'></i>`})()),o));let s=await Promise.all(i);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}e(Zf,"replaceIconSubstring");var Be=e(async(r,t="",{style:i="",isTitle:s=!1,classes:o="",useHtmlLabels:a=!0,markdown:c=!0,isNode:l=!0,width:d=200,minWidth:x=0,addSvgBackground:f=!1}={},b)=>{if(n.debug("XYZ createText",t,i,s,o,a,l,"addSvgBackground: ",f),a){let T=c?Hf(t,b):zf(t),w=await Zf(Jt(T),b),v=t.replace(/\\\\/g,"\\"),E={isNode:l,label:Ce(t)?v:w,labelStyle:i.replace("fill:","color:")};return await Xf(r,E,d,o,f,b,x)}else{let T=Jt(t.replace(/<br\s*\/?>/g,"<br/>")),w=c?Ao(T.replace("<br>","<br/>"),b):Wf(T),v=Kf(d,r,w,t?f:!1,!l);if(l){if(/stroke:/.exec(i))i=i.replace("stroke:","lineColor:");let E=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");m(v).attr("style",E)}else{let E=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");m(v).select("rect").attr("style",E.replace(/background:/g,"fill:"));let P=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");m(v).select("text").attr("style",P)}if(s)m(v).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else m(v).selectAll("tspan.text-outer-tspan").classed("row",!0);return v}},"createText");function Ac(r,t,i){if(r&&r.length){let[s,o]=t,a=Math.PI/180*i,c=Math.cos(a),l=Math.sin(a);for(let d of r){let[x,f]=d;d[0]=(x-s)*c-(f-o)*l+s,d[1]=(x-s)*l+(f-o)*c+o}}}function k2(r,t){return r[0]===t[0]&&r[1]===t[1]}function S2(r,t,i,s=1){let o=i,a=Math.max(t,0.1),c=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,l=[0,0];if(o)for(let x of c)Ac(x,l,o);let d=function(x,f,b){let T=[];for(let H of x){let V=[...H];k2(V[0],V[V.length-1])||V.push([V[0][0],V[0][1]]),V.length>2&&T.push(V)}let w=[];f=Math.max(f,0.1);let v=[];for(let H of T)for(let V=0;V<H.length-1;V++){let Q=H[V],J=H[V+1];if(Q[1]!==J[1]){let st=Math.min(Q[1],J[1]);v.push({ymin:st,ymax:Math.max(Q[1],J[1]),x:st===Q[1]?Q[0]:J[0],islope:(J[0]-Q[0])/(J[1]-Q[1])})}}if(v.sort((H,V)=>H.ymin<V.ymin?-1:H.ymin>V.ymin?1:H.x<V.x?-1:H.x>V.x?1:H.ymax===V.ymax?0:(H.ymax-V.ymax)/Math.abs(H.ymax-V.ymax)),!v.length)return w;let E=[],P=v[0].ymin,W=0;for(;E.length||v.length;){if(v.length){let H=-1;for(let V=0;V<v.length&&!(v[V].ymin>P);V++)H=V;v.splice(0,H+1).forEach((V)=>{E.push({s:P,edge:V})})}if(E=E.filter((H)=>!(H.edge.ymax<=P)),E.sort((H,V)=>H.edge.x===V.edge.x?0:(H.edge.x-V.edge.x)/Math.abs(H.edge.x-V.edge.x)),(b!==1||W%f==0)&&E.length>1)for(let H=0;H<E.length;H+=2){let V=H+1;if(V>=E.length)break;let Q=E[H].edge,J=E[V].edge;w.push([[Math.round(Q.x),P],[Math.round(J.x),P]])}P+=b,E.forEach((H)=>{H.edge.x=H.edge.x+b*H.edge.islope}),W++}return w}(c,a,s);if(o){for(let x of c)Ac(x,l,-o);(function(x,f,b){let T=[];x.forEach((w)=>T.push(...w)),Ac(T,f,b)})(d,l,-o)}return d}function Xs(r,t){var i;let s=t.hachureAngle+90,o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.round(Math.max(o,0.1));let a=1;return t.roughness>=1&&(((i=t.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>0.7&&(a=o),S2(r,o,s,a||1)}class Xn{constructor(r){this.helper=r}fillPolygons(r,t){return this._fillPolygons(r,t)}_fillPolygons(r,t){let i=Xs(r,t);return{type:"fillSketch",ops:this.renderLines(i,t)}}renderLines(r,t){let i=[];for(let s of r)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],t));return i}}function Vn(r){let t=r[0],i=r[1];return Math.sqrt(Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2))}class ag extends Xn{fillPolygons(r,t){let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.max(i,0.1);let s=Xs(r,Object.assign({},t,{hachureGap:i})),o=Math.PI/180*t.hachureAngle,a=[],c=0.5*i*Math.cos(o),l=0.5*i*Math.sin(o);for(let[d,x]of s)Vn([d,x])&&a.push([[d[0]-c,d[1]+l],[...x]],[[d[0]+c,d[1]-l],[...x]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}}class ng extends Xn{fillPolygons(r,t){let i=this._fillPolygons(r,t),s=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),o=this._fillPolygons(r,s);return i.ops=i.ops.concat(o.ops),i}}class lg{constructor(r){this.helper=r}fillPolygons(r,t){let i=Xs(r,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(i,t)}dotsOnLines(r,t){let i=[],s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.max(s,0.1);let o=t.fillWeight;o<0&&(o=t.strokeWidth/2);let a=s/4;for(let c of r){let l=Vn(c),d=l/s,x=Math.ceil(d)-1,f=l-x*s,b=(c[0][0]+c[1][0])/2-s/4,T=Math.min(c[0][1],c[1][1]);for(let w=0;w<x;w++){let v=T+f+w*s,E=b-a+2*Math.random()*a,P=v-a+2*Math.random()*a,W=this.helper.ellipse(E,P,o,o,t);i.push(...W.ops)}}return{type:"fillSketch",ops:i}}}class hg{constructor(r){this.helper=r}fillPolygons(r,t){let i=Xs(r,t);return{type:"fillSketch",ops:this.dashedLine(i,t)}}dashedLine(r,t){let i=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,s=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,o=[];return r.forEach((a)=>{let c=Vn(a),l=Math.floor(c/(i+s)),d=(c+s-l*(i+s))/2,x=a[0],f=a[1];x[0]>f[0]&&(x=a[1],f=a[0]);let b=Math.atan((f[1]-x[1])/(f[0]-x[0]));for(let T=0;T<l;T++){let w=T*(i+s),v=w+i,E=[x[0]+w*Math.cos(b)+d*Math.cos(b),x[1]+w*Math.sin(b)+d*Math.sin(b)],P=[x[0]+v*Math.cos(b)+d*Math.cos(b),x[1]+v*Math.sin(b)+d*Math.sin(b)];o.push(...this.helper.doubleLineOps(E[0],E[1],P[0],P[1],t))}}),o}}class cg{constructor(r){this.helper=r}fillPolygons(r,t){let i=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,s=t.zigzagOffset<0?i:t.zigzagOffset,o=Xs(r,t=Object.assign({},t,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,t)}}zigzagLines(r,t,i){let s=[];return r.forEach((o)=>{let a=Vn(o),c=Math.round(a/(2*t)),l=o[0],d=o[1];l[0]>d[0]&&(l=o[1],d=o[0]);let x=Math.atan((d[1]-l[1])/(d[0]-l[0]));for(let f=0;f<c;f++){let b=2*f*t,T=2*(f+1)*t,w=Math.sqrt(2*Math.pow(t,2)),v=[l[0]+b*Math.cos(x),l[1]+b*Math.sin(x)],E=[l[0]+T*Math.cos(x),l[1]+T*Math.sin(x)],P=[v[0]+w*Math.cos(x+Math.PI/4),v[1]+w*Math.sin(x+Math.PI/4)];s.push(...this.helper.doubleLineOps(v[0],v[1],P[0],P[1],i),...this.helper.doubleLineOps(P[0],P[1],E[0],E[1],i))}}),s}}var Ar={};class ug{constructor(r){this.seed=r}next(){return this.seed?(2147483647&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}var T2=0,Fc=1,Qf=2,qn={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 Mc(r,t){return r.type===t}function Pc(r){let t=[],i=function(c){let l=[];for(;c!=="";)if(c.match(/^([ \t\r\n,]+)/))c=c.substr(RegExp.$1.length);else if(c.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:T2,text:RegExp.$1},c=c.substr(RegExp.$1.length);else{if(!c.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:Fc,text:`${parseFloat(RegExp.$1)}`},c=c.substr(RegExp.$1.length)}return l[l.length]={type:Qf,text:""},l}(r),s="BOD",o=0,a=i[o];for(;!Mc(a,Qf);){let c=0,l=[];if(s==="BOD"){if(a.text!=="M"&&a.text!=="m")return Pc("M0,0"+r);o++,c=qn[a.text],s=a.text}else Mc(a,Fc)?c=qn[s]:(o++,c=qn[a.text],s=a.text);if(!(o+c<i.length))throw Error("Path data ended short");for(let d=o;d<o+c;d++){let x=i[d];if(!Mc(x,Fc))throw Error("Param not a number: "+s+","+x.text);l[l.length]=+x.text}if(typeof qn[s]!="number")throw Error("Bad segment: "+s);{let d={key:s,data:l};t.push(d),o+=c,a=i[o],s==="M"&&(s="L"),s==="m"&&(s="l")}}return t}function dg(r){let t=0,i=0,s=0,o=0,a=[];for(let{key:c,data:l}of r)switch(c){case"M":a.push({key:"M",data:[...l]}),[t,i]=l,[s,o]=l;break;case"m":t+=l[0],i+=l[1],a.push({key:"M",data:[t,i]}),s=t,o=i;break;case"L":a.push({key:"L",data:[...l]}),[t,i]=l;break;case"l":t+=l[0],i+=l[1],a.push({key:"L",data:[t,i]});break;case"C":a.push({key:"C",data:[...l]}),t=l[4],i=l[5];break;case"c":{let d=l.map((x,f)=>f%2?x+i:x+t);a.push({key:"C",data:d}),t=d[4],i=d[5];break}case"Q":a.push({key:"Q",data:[...l]}),t=l[2],i=l[3];break;case"q":{let d=l.map((x,f)=>f%2?x+i:x+t);a.push({key:"Q",data:d}),t=d[2],i=d[3];break}case"A":a.push({key:"A",data:[...l]}),t=l[5],i=l[6];break;case"a":t+=l[5],i+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,i]});break;case"H":a.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...l]}),i=l[0];break;case"v":i+=l[0],a.push({key:"V",data:[i]});break;case"S":a.push({key:"S",data:[...l]}),t=l[2],i=l[3];break;case"s":{let d=l.map((x,f)=>f%2?x+i:x+t);a.push({key:"S",data:d}),t=d[2],i=d[3];break}case"T":a.push({key:"T",data:[...l]}),t=l[0],i=l[1];break;case"t":t+=l[0],i+=l[1],a.push({key:"T",data:[t,i]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=s,i=o}return a}function pg(r){let t=[],i="",s=0,o=0,a=0,c=0,l=0,d=0;for(let{key:x,data:f}of r){switch(x){case"M":t.push({key:"M",data:[...f]}),[s,o]=f,[a,c]=f;break;case"C":t.push({key:"C",data:[...f]}),s=f[4],o=f[5],l=f[2],d=f[3];break;case"L":t.push({key:"L",data:[...f]}),[s,o]=f;break;case"H":s=f[0],t.push({key:"L",data:[s,o]});break;case"V":o=f[0],t.push({key:"L",data:[s,o]});break;case"S":{let b=0,T=0;i==="C"||i==="S"?(b=s+(s-l),T=o+(o-d)):(b=s,T=o),t.push({key:"C",data:[b,T,...f]}),l=f[0],d=f[1],s=f[2],o=f[3];break}case"T":{let[b,T]=f,w=0,v=0;i==="Q"||i==="T"?(w=s+(s-l),v=o+(o-d)):(w=s,v=o);let E=s+2*(w-s)/3,P=o+2*(v-o)/3,W=b+2*(w-b)/3,H=T+2*(v-T)/3;t.push({key:"C",data:[E,P,W,H,b,T]}),l=w,d=v,s=b,o=T;break}case"Q":{let[b,T,w,v]=f,E=s+2*(b-s)/3,P=o+2*(T-o)/3,W=w+2*(b-w)/3,H=v+2*(T-v)/3;t.push({key:"C",data:[E,P,W,H,w,v]}),l=b,d=T,s=w,o=v;break}case"A":{let b=Math.abs(f[0]),T=Math.abs(f[1]),w=f[2],v=f[3],E=f[4],P=f[5],W=f[6];if(b===0||T===0)t.push({key:"C",data:[s,o,P,W,P,W]}),s=P,o=W;else if(s!==P||o!==W)fg(s,o,P,W,b,T,w,v,E).forEach(function(H){t.push({key:"C",data:H})}),s=P,o=W;break}case"Z":t.push({key:"Z",data:[]}),s=a,o=c}i=x}return t}function Us(r,t,i){return[r*Math.cos(i)-t*Math.sin(i),r*Math.sin(i)+t*Math.cos(i)]}function fg(r,t,i,s,o,a,c,l,d,x){let f=(b=c,Math.PI*b/180);var b;let T=[],w=0,v=0,E=0,P=0;if(x)[w,v,E,P]=x;else{[r,t]=Us(r,t,-f),[i,s]=Us(i,s,-f);let et=(r-i)/2,ot=(t-s)/2,bt=et*et/(o*o)+ot*ot/(a*a);bt>1&&(bt=Math.sqrt(bt),o*=bt,a*=bt);let it=o*o,Lt=a*a,Et=it*Lt-it*ot*ot-Lt*et*et,yt=it*ot*ot+Lt*et*et,qt=(l===d?-1:1)*Math.sqrt(Math.abs(Et/yt));E=qt*o*ot/a+(r+i)/2,P=qt*-a*et/o+(t+s)/2,w=Math.asin(parseFloat(((t-P)/a).toFixed(9))),v=Math.asin(parseFloat(((s-P)/a).toFixed(9))),r<E&&(w=Math.PI-w),i<E&&(v=Math.PI-v),w<0&&(w=2*Math.PI+w),v<0&&(v=2*Math.PI+v),d&&w>v&&(w-=2*Math.PI),!d&&v>w&&(v-=2*Math.PI)}let W=v-w;if(Math.abs(W)>120*Math.PI/180){let et=v,ot=i,bt=s;v=d&&v>w?w+120*Math.PI/180*1:w+120*Math.PI/180*-1,T=fg(i=E+o*Math.cos(v),s=P+a*Math.sin(v),ot,bt,o,a,c,0,d,[v,et,E,P])}W=v-w;let H=Math.cos(w),V=Math.sin(w),Q=Math.cos(v),J=Math.sin(v),st=Math.tan(W/4),lt=1.3333333333333333*o*st,pt=1.3333333333333333*a*st,ft=[r,t],wt=[r+lt*V,t-pt*H],_t=[i+lt*J,s-pt*Q],xt=[i,s];if(wt[0]=2*ft[0]-wt[0],wt[1]=2*ft[1]-wt[1],x)return[wt,_t,xt].concat(T);{T=[wt,_t,xt].concat(T);let et=[];for(let ot=0;ot<T.length;ot+=3){let bt=Us(T[ot][0],T[ot][1],f),it=Us(T[ot+1][0],T[ot+1][1],f),Lt=Us(T[ot+2][0],T[ot+2][1],f);et.push([bt[0],bt[1],it[0],it[1],Lt[0],Lt[1]])}return et}}var w2={randOffset:function(r,t){return ye(r,t)},randOffsetWithRange:function(r,t,i){return Un(r,t,i)},ellipse:function(r,t,i,s,o){let a=mg(i,s,o);return Ic(r,t,o,a).opset},doubleLineOps:function(r,t,i,s,o){return qi(r,t,i,s,o,!0)}};function gg(r,t,i,s,o){return{type:"path",ops:qi(r,t,i,s,o)}}function Hn(r,t,i){let s=(r||[]).length;if(s>2){let o=[];for(let a=0;a<s-1;a++)o.push(...qi(r[a][0],r[a][1],r[a+1][0],r[a+1][1],i));return t&&o.push(...qi(r[s-1][0],r[s-1][1],r[0][0],r[0][1],i)),{type:"path",ops:o}}return s===2?gg(r[0][0],r[0][1],r[1][0],r[1][1],i):{type:"path",ops:[]}}function B2(r,t,i,s,o){return function(a,c){return Hn(a,!0,c)}([[r,t],[r+i,t],[r+i,t+s],[r,t+s]],o)}function Jf(r,t){if(r.length){let i=typeof r[0][0]=="number"?[r]:r,s=Wn(i[0],1*(1+0.2*t.roughness),t),o=t.disableMultiStroke?[]:Wn(i[0],1.5*(1+0.22*t.roughness),rg(t));for(let a=1;a<i.length;a++){let c=i[a];if(c.length){let l=Wn(c,1*(1+0.2*t.roughness),t),d=t.disableMultiStroke?[]:Wn(c,1.5*(1+0.22*t.roughness),rg(t));for(let x of l)x.op!=="move"&&s.push(x);for(let x of d)x.op!=="move"&&o.push(x)}}return{type:"path",ops:s.concat(o)}}return{type:"path",ops:[]}}function mg(r,t,i){let s=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(t/2,2))/2)),o=Math.ceil(Math.max(i.curveStepCount,i.curveStepCount/Math.sqrt(200)*s)),a=2*Math.PI/o,c=Math.abs(r/2),l=Math.abs(t/2),d=1-i.curveFitting;return c+=ye(c*d,i),l+=ye(l*d,i),{increment:a,rx:c,ry:l}}function Ic(r,t,i,s){let[o,a]=ig(s.increment,r,t,s.rx,s.ry,1,s.increment*Un(0.1,Un(0.4,1,i),i),i),c=jn(o,null,i);if(!i.disableMultiStroke&&i.roughness!==0){let[l]=ig(s.increment,r,t,s.rx,s.ry,1.5,0,i),d=jn(l,null,i);c=c.concat(d)}return{estimatedPoints:a,opset:{type:"path",ops:c}}}function tg(r,t,i,s,o,a,c,l,d){let x=r,f=t,b=Math.abs(i/2),T=Math.abs(s/2);b+=ye(0.01*b,d),T+=ye(0.01*T,d);let w=o,v=a;for(;w<0;)w+=2*Math.PI,v+=2*Math.PI;v-w>2*Math.PI&&(w=0,v=2*Math.PI);let E=2*Math.PI/d.curveStepCount,P=Math.min(E/2,(v-w)/2),W=og(P,x,f,b,T,w,v,1,d);if(!d.disableMultiStroke){let H=og(P,x,f,b,T,w,v,1.5,d);W.push(...H)}return c&&(l?W.push(...qi(x,f,x+b*Math.cos(w),f+T*Math.sin(w),d),...qi(x,f,x+b*Math.cos(v),f+T*Math.sin(v),d)):W.push({op:"lineTo",data:[x,f]},{op:"lineTo",data:[x+b*Math.cos(w),f+T*Math.sin(w)]})),{type:"path",ops:W}}function eg(r,t){let i=pg(dg(Pc(r))),s=[],o=[0,0],a=[0,0];for(let{key:c,data:l}of i)switch(c){case"M":a=[l[0],l[1]],o=[l[0],l[1]];break;case"L":s.push(...qi(a[0],a[1],l[0],l[1],t)),a=[l[0],l[1]];break;case"C":{let[d,x,f,b,T,w]=l;s.push(..._2(d,x,f,b,T,w,a,t)),a=[T,w];break}case"Z":s.push(...qi(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]]}return{type:"path",ops:s}}function Ec(r,t){let i=[];for(let s of r)if(s.length){let o=t.maxRandomnessOffset||0,a=s.length;if(a>2){i.push({op:"move",data:[s[0][0]+ye(o,t),s[0][1]+ye(o,t)]});for(let c=1;c<a;c++)i.push({op:"lineTo",data:[s[c][0]+ye(o,t),s[c][1]+ye(o,t)]})}}return{type:"fillPath",ops:i}}function Vo(r,t){return function(i,s){let o=i.fillStyle||"hachure";if(!Ar[o])switch(o){case"zigzag":Ar[o]||(Ar[o]=new ag(s));break;case"cross-hatch":Ar[o]||(Ar[o]=new ng(s));break;case"dots":Ar[o]||(Ar[o]=new lg(s));break;case"dashed":Ar[o]||(Ar[o]=new hg(s));break;case"zigzag-line":Ar[o]||(Ar[o]=new cg(s));break;default:o="hachure",Ar[o]||(Ar[o]=new Xn(s))}return Ar[o]}(t,w2).fillPolygons(r,t)}function rg(r){let t=Object.assign({},r);return t.randomizer=void 0,r.seed&&(t.seed=r.seed+1),t}function yg(r){return r.randomizer||(r.randomizer=new ug(r.seed||0)),r.randomizer.next()}function Un(r,t,i,s=1){return i.roughness*s*(yg(i)*(t-r)+r)}function ye(r,t,i=1){return Un(-r,r,t,i)}function qi(r,t,i,s,o,a=!1){let c=a?o.disableMultiStrokeFill:o.disableMultiStroke,l=$c(r,t,i,s,o,!0,!1);if(c)return l;let d=$c(r,t,i,s,o,!0,!0);return l.concat(d)}function $c(r,t,i,s,o,a,c){let l=Math.pow(r-i,2)+Math.pow(t-s,2),d=Math.sqrt(l),x=1;x=d<200?1:d>500?0.4:-0.0016668*d+1.233334;let f=o.maxRandomnessOffset||0;f*f*100>l&&(f=d/10);let b=f/2,T=0.2+0.2*yg(o),w=o.bowing*o.maxRandomnessOffset*(s-t)/200,v=o.bowing*o.maxRandomnessOffset*(r-i)/200;w=ye(w,o,x),v=ye(v,o,x);let E=[],P=()=>ye(b,o,x),W=()=>ye(f,o,x),H=o.preserveVertices;return a&&(c?E.push({op:"move",data:[r+(H?0:P()),t+(H?0:P())]}):E.push({op:"move",data:[r+(H?0:ye(f,o,x)),t+(H?0:ye(f,o,x))]})),c?E.push({op:"bcurveTo",data:[w+r+(i-r)*T+P(),v+t+(s-t)*T+P(),w+r+2*(i-r)*T+P(),v+t+2*(s-t)*T+P(),i+(H?0:P()),s+(H?0:P())]}):E.push({op:"bcurveTo",data:[w+r+(i-r)*T+W(),v+t+(s-t)*T+W(),w+r+2*(i-r)*T+W(),v+t+2*(s-t)*T+W(),i+(H?0:W()),s+(H?0:W())]}),E}function Wn(r,t,i){if(!r.length)return[];let s=[];s.push([r[0][0]+ye(t,i),r[0][1]+ye(t,i)]),s.push([r[0][0]+ye(t,i),r[0][1]+ye(t,i)]);for(let o=1;o<r.length;o++)s.push([r[o][0]+ye(t,i),r[o][1]+ye(t,i)]),o===r.length-1&&s.push([r[o][0]+ye(t,i),r[o][1]+ye(t,i)]);return jn(s,null,i)}function jn(r,t,i){let s=r.length,o=[];if(s>3){let a=[],c=1-i.curveTightness;o.push({op:"move",data:[r[1][0],r[1][1]]});for(let l=1;l+2<s;l++){let d=r[l];a[0]=[d[0],d[1]],a[1]=[d[0]+(c*r[l+1][0]-c*r[l-1][0])/6,d[1]+(c*r[l+1][1]-c*r[l-1][1])/6],a[2]=[r[l+1][0]+(c*r[l][0]-c*r[l+2][0])/6,r[l+1][1]+(c*r[l][1]-c*r[l+2][1])/6],a[3]=[r[l+1][0],r[l+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(t&&t.length===2){let l=i.maxRandomnessOffset;o.push({op:"lineTo",data:[t[0]+ye(l,i),t[1]+ye(l,i)]})}}else s===3?(o.push({op:"move",data:[r[1][0],r[1][1]]}),o.push({op:"bcurveTo",data:[r[1][0],r[1][1],r[2][0],r[2][1],r[2][0],r[2][1]]})):s===2&&o.push(...$c(r[0][0],r[0][1],r[1][0],r[1][1],i,!0,!0));return o}function ig(r,t,i,s,o,a,c,l){let d=[],x=[];if(l.roughness===0){r/=4,x.push([t+s*Math.cos(-r),i+o*Math.sin(-r)]);for(let f=0;f<=2*Math.PI;f+=r){let b=[t+s*Math.cos(f),i+o*Math.sin(f)];d.push(b),x.push(b)}x.push([t+s*Math.cos(0),i+o*Math.sin(0)]),x.push([t+s*Math.cos(r),i+o*Math.sin(r)])}else{let f=ye(0.5,l)-Math.PI/2;x.push([ye(a,l)+t+0.9*s*Math.cos(f-r),ye(a,l)+i+0.9*o*Math.sin(f-r)]);let b=2*Math.PI+f-0.01;for(let T=f;T<b;T+=r){let w=[ye(a,l)+t+s*Math.cos(T),ye(a,l)+i+o*Math.sin(T)];d.push(w),x.push(w)}x.push([ye(a,l)+t+s*Math.cos(f+2*Math.PI+0.5*c),ye(a,l)+i+o*Math.sin(f+2*Math.PI+0.5*c)]),x.push([ye(a,l)+t+0.98*s*Math.cos(f+c),ye(a,l)+i+0.98*o*Math.sin(f+c)]),x.push([ye(a,l)+t+0.9*s*Math.cos(f+0.5*c),ye(a,l)+i+0.9*o*Math.sin(f+0.5*c)])}return[x,d]}function og(r,t,i,s,o,a,c,l,d){let x=a+ye(0.1,d),f=[];f.push([ye(l,d)+t+0.9*s*Math.cos(x-r),ye(l,d)+i+0.9*o*Math.sin(x-r)]);for(let b=x;b<=c;b+=r)f.push([ye(l,d)+t+s*Math.cos(b),ye(l,d)+i+o*Math.sin(b)]);return f.push([t+s*Math.cos(c),i+o*Math.sin(c)]),f.push([t+s*Math.cos(c),i+o*Math.sin(c)]),jn(f,null,d)}function _2(r,t,i,s,o,a,c,l){let d=[],x=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+0.3],f=[0,0],b=l.disableMultiStroke?1:2,T=l.preserveVertices;for(let w=0;w<b;w++)w===0?d.push({op:"move",data:[c[0],c[1]]}):d.push({op:"move",data:[c[0]+(T?0:ye(x[0],l)),c[1]+(T?0:ye(x[0],l))]}),f=T?[o,a]:[o+ye(x[w],l),a+ye(x[w],l)],d.push({op:"bcurveTo",data:[r+ye(x[w],l),t+ye(x[w],l),i+ye(x[w],l),s+ye(x[w],l),f[0],f[1]]});return d}function js(r){return[...r]}function sg(r,t=0){let i=r.length;if(i<3)throw Error("A curve must have at least three points.");let s=[];if(i===3)s.push(js(r[0]),js(r[1]),js(r[2]),js(r[2]));else{let o=[];o.push(r[0],r[0]);for(let l=1;l<r.length;l++)o.push(r[l]),l===r.length-1&&o.push(r[l]);let a=[],c=1-t;s.push(js(o[0]));for(let l=1;l+2<o.length;l++){let d=o[l];a[0]=[d[0],d[1]],a[1]=[d[0]+(c*o[l+1][0]-c*o[l-1][0])/6,d[1]+(c*o[l+1][1]-c*o[l-1][1])/6],a[2]=[o[l+1][0]+(c*o[l][0]-c*o[l+2][0])/6,o[l+1][1]+(c*o[l][1]-c*o[l+2][1])/6],a[3]=[o[l+1][0],o[l+1][1]],s.push(a[1],a[2],a[3])}}return s}function Yn(r,t){return Math.pow(r[0]-t[0],2)+Math.pow(r[1]-t[1],2)}function v2(r,t,i){let s=Yn(t,i);if(s===0)return Yn(r,t);let o=((r[0]-t[0])*(i[0]-t[0])+(r[1]-t[1])*(i[1]-t[1]))/s;return o=Math.max(0,Math.min(1,o)),Yn(r,Vi(t,i,o))}function Vi(r,t,i){return[r[0]+(t[0]-r[0])*i,r[1]+(t[1]-r[1])*i]}function Dc(r,t,i,s){let o=s||[];if(function(l,d){let x=l[d+0],f=l[d+1],b=l[d+2],T=l[d+3],w=3*f[0]-2*x[0]-T[0];w*=w;let v=3*f[1]-2*x[1]-T[1];v*=v;let E=3*b[0]-2*T[0]-x[0];E*=E;let P=3*b[1]-2*T[1]-x[1];return P*=P,w<E&&(w=E),v<P&&(v=P),w+v}(r,t)<i){let l=r[t+0];if(o.length)(a=o[o.length-1],c=l,Math.sqrt(Yn(a,c)))>1&&o.push(l);else o.push(l);o.push(r[t+3])}else{let d=r[t+0],x=r[t+1],f=r[t+2],b=r[t+3],T=Vi(d,x,0.5),w=Vi(x,f,0.5),v=Vi(f,b,0.5),E=Vi(T,w,0.5),P=Vi(w,v,0.5),W=Vi(E,P,0.5);Dc([d,T,E,W],0,i,o),Dc([W,P,v,b],0,i,o)}var a,c;return o}function L2(r,t){return Gn(r,0,r.length,t)}function Gn(r,t,i,s,o){let a=o||[],c=r[t],l=r[i-1],d=0,x=1;for(let f=t+1;f<i-1;++f){let b=v2(r[f],c,l);b>d&&(d=b,x=f)}return Math.sqrt(d)>s?(Gn(r,t,x+1,s,a),Gn(r,x,i,s,a)):(a.length||a.push(c),a.push(l)),a}function Oc(r,t=0.15,i){let s=[],o=(r.length-1)/3;for(let a=0;a<o;a++)Dc(r,3*a,t,s);return i&&i>0?Gn(s,0,s.length,i):s}var Pr="none";class Gs{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.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:0.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,t,i){return{shape:r,sets:t||[],options:i||this.defaultOptions}}line(r,t,i,s,o){let a=this._o(o);return this._d("line",[gg(r,t,i,s,a)],a)}rectangle(r,t,i,s,o){let a=this._o(o),c=[],l=B2(r,t,i,s,a);if(a.fill){let d=[[r,t],[r+i,t],[r+i,t+s],[r,t+s]];a.fillStyle==="solid"?c.push(Ec([d],a)):c.push(Vo([d],a))}return a.stroke!==Pr&&c.push(l),this._d("rectangle",c,a)}ellipse(r,t,i,s,o){let a=this._o(o),c=[],l=mg(i,s,a),d=Ic(r,t,a,l);if(a.fill)if(a.fillStyle==="solid"){let x=Ic(r,t,a,l).opset;x.type="fillPath",c.push(x)}else c.push(Vo([d.estimatedPoints],a));return a.stroke!==Pr&&c.push(d.opset),this._d("ellipse",c,a)}circle(r,t,i,s){let o=this.ellipse(r,t,i,i,s);return o.shape="circle",o}linearPath(r,t){let i=this._o(t);return this._d("linearPath",[Hn(r,!1,i)],i)}arc(r,t,i,s,o,a,c=!1,l){let d=this._o(l),x=[],f=tg(r,t,i,s,o,a,c,!0,d);if(c&&d.fill)if(d.fillStyle==="solid"){let b=Object.assign({},d);b.disableMultiStroke=!0;let T=tg(r,t,i,s,o,a,!0,!1,b);T.type="fillPath",x.push(T)}else x.push(function(b,T,w,v,E,P,W){let H=b,V=T,Q=Math.abs(w/2),J=Math.abs(v/2);Q+=ye(0.01*Q,W),J+=ye(0.01*J,W);let st=E,lt=P;for(;st<0;)st+=2*Math.PI,lt+=2*Math.PI;lt-st>2*Math.PI&&(st=0,lt=2*Math.PI);let pt=(lt-st)/W.curveStepCount,ft=[];for(let wt=st;wt<=lt;wt+=pt)ft.push([H+Q*Math.cos(wt),V+J*Math.sin(wt)]);return ft.push([H+Q*Math.cos(lt),V+J*Math.sin(lt)]),ft.push([H,V]),Vo([ft],W)}(r,t,i,s,o,a,d));return d.stroke!==Pr&&x.push(f),this._d("arc",x,d)}curve(r,t){let i=this._o(t),s=[],o=Jf(r,i);if(i.fill&&i.fill!==Pr)if(i.fillStyle==="solid"){let a=Jf(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{let a=[],c=r;if(c.length){let l=typeof c[0][0]=="number"?[c]:c;for(let d of l)d.length<3?a.push(...d):d.length===3?a.push(...Oc(sg([d[0],d[0],d[1],d[2]]),10,(1+i.roughness)/2)):a.push(...Oc(sg(d),10,(1+i.roughness)/2))}a.length&&s.push(Vo([a],i))}return i.stroke!==Pr&&s.push(o),this._d("curve",s,i)}polygon(r,t){let i=this._o(t),s=[],o=Hn(r,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(Ec([r],i)):s.push(Vo([r],i))),i.stroke!==Pr&&s.push(o),this._d("polygon",s,i)}path(r,t){let i=this._o(t),s=[];if(!r)return this._d("path",s,i);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==Pr,a=i.stroke!==Pr,c=!!(i.simplification&&i.simplification<1),l=function(x,f,b){let T=pg(dg(Pc(x))),w=[],v=[],E=[0,0],P=[],W=()=>{P.length>=4&&v.push(...Oc(P,f)),P=[]},H=()=>{W(),v.length&&(w.push(v),v=[])};for(let{key:Q,data:J}of T)switch(Q){case"M":H(),E=[J[0],J[1]],v.push(E);break;case"L":W(),v.push([J[0],J[1]]);break;case"C":if(!P.length){let st=v.length?v[v.length-1]:E;P.push([st[0],st[1]])}P.push([J[0],J[1]]),P.push([J[2],J[3]]),P.push([J[4],J[5]]);break;case"Z":W(),v.push([E[0],E[1]])}if(H(),!b)return w;let V=[];for(let Q of w){let J=L2(Q,b);J.length&&V.push(J)}return V}(r,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),d=eg(r,i);if(o)if(i.fillStyle==="solid")if(l.length===1){let x=eg(r,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(x.ops)})}else s.push(Ec(l,i));else s.push(Vo(l,i));return a&&(c?l.forEach((x)=>{s.push(Hn(x,!1,i))}):s.push(d)),this._d("path",s,i)}opsToPath(r,t){let i="";for(let s of r.ops){let o=typeof t=="number"&&t>=0?s.data.map((a)=>+a.toFixed(t)):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(r){let t=r.sets||[],i=r.options||this.defaultOptions,s=[];for(let o of t){let a=null;switch(o.type){case"path":a={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Pr};break;case"fillPath":a={d:this.opsToPath(o),stroke:Pr,strokeWidth:0,fill:i.fill||Pr};break;case"fillSketch":a=this.fillSketch(o,i)}a&&s.push(a)}return s}fillSketch(r,t){let i=t.fillWeight;return i<0&&(i=t.strokeWidth/2),{d:this.opsToPath(r),stroke:t.fill||Pr,strokeWidth:i,fill:Pr}}_mergedShape(r){return r.filter((t,i)=>i===0||t.op!=="move")}}class xg{constructor(r,t){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new Gs(t)}draw(r){let t=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.ctx,o=r.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,a,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";let c=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,a,o,c),s.restore();break}case"fillSketch":this.fillSketch(s,a,i)}}fillSketch(r,t,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),r.save(),i.fillLineDash&&r.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(r.lineDashOffset=i.fillLineDashOffset),r.strokeStyle=i.fill||"",r.lineWidth=s,this._drawToContext(r,t,i.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,t,i,s="nonzero"){r.beginPath();for(let o of t.ops){let a=typeof i=="number"&&i>=0?o.data.map((c)=>+c.toFixed(i)):o.data;switch(o.op){case"move":r.moveTo(a[0],a[1]);break;case"bcurveTo":r.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":r.lineTo(a[0],a[1])}}t.type==="fillPath"?r.fill(s):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,t,i,s,o){let a=this.gen.line(r,t,i,s,o);return this.draw(a),a}rectangle(r,t,i,s,o){let a=this.gen.rectangle(r,t,i,s,o);return this.draw(a),a}ellipse(r,t,i,s,o){let a=this.gen.ellipse(r,t,i,s,o);return this.draw(a),a}circle(r,t,i,s){let o=this.gen.circle(r,t,i,s);return this.draw(o),o}linearPath(r,t){let i=this.gen.linearPath(r,t);return this.draw(i),i}polygon(r,t){let i=this.gen.polygon(r,t);return this.draw(i),i}arc(r,t,i,s,o,a,c=!1,l){let d=this.gen.arc(r,t,i,s,o,a,c,l);return this.draw(d),d}curve(r,t){let i=this.gen.curve(r,t);return this.draw(i),i}path(r,t){let i=this.gen.path(r,t);return this.draw(i),i}}var zn="http://www.w3.org/2000/svg";class Cg{constructor(r,t){this.svg=r,this.gen=new Gs(t)}draw(r){let t=r.sets||[],i=r.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(zn,"g"),a=r.options.fixedDecimalPlaceDigits;for(let c of t){let l=null;switch(c.type){case"path":l=s.createElementNS(zn,"path"),l.setAttribute("d",this.opsToPath(c,a)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(zn,"path"),l.setAttribute("d",this.opsToPath(c,a)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,c,i)}l&&o.appendChild(l)}return o}fillSketch(r,t,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);let o=r.createElementNS(zn,"path");return o.setAttribute("d",this.opsToPath(t,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,t){return this.gen.opsToPath(r,t)}line(r,t,i,s,o){let a=this.gen.line(r,t,i,s,o);return this.draw(a)}rectangle(r,t,i,s,o){let a=this.gen.rectangle(r,t,i,s,o);return this.draw(a)}ellipse(r,t,i,s,o){let a=this.gen.ellipse(r,t,i,s,o);return this.draw(a)}circle(r,t,i,s){let o=this.gen.circle(r,t,i,s);return this.draw(o)}linearPath(r,t){let i=this.gen.linearPath(r,t);return this.draw(i)}polygon(r,t){let i=this.gen.polygon(r,t);return this.draw(i)}arc(r,t,i,s,o,a,c=!1,l){let d=this.gen.arc(r,t,i,s,o,a,c,l);return this.draw(d)}curve(r,t){let i=this.gen.curve(r,t);return this.draw(i)}path(r,t){let i=this.gen.path(r,t);return this.draw(i)}}var g={canvas:(r,t)=>new xg(r,t),svg:(r,t)=>new Cg(r,t),generator:(r)=>new Gs(r),newSeed:()=>Gs.newSeed()};var A2=1,F2=3;async function Vc(r){let t=r.getElementsByTagName("img");if(!t||t.length===0)return;let i=!Kc(r);await Promise.all([...t].map((s)=>new Promise((o)=>{function a(){if(s.style.display="flex",s.style.flexDirection="column",i){let c=u().fontSize?u().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[d=F.fontSize]=Qe(c),x=d*5+"px";s.style.minWidth=x,s.style.maxWidth=x}else s.style.width="100%";o(s)}e(a,"setupImage"),setTimeout(()=>{if(s.complete)a()}),s.addEventListener("error",a),s.addEventListener("load",a)})))}e(Vc,"configureLabelImages");function Kc(r){if(r.nodeType===F2)return r.textContent?.trim()!=="";if(r.nodeType!==A2)return!1;if(r.tagName.toLowerCase()==="img")return!1;return[...r.childNodes].some(Kc)}e(Kc,"hasTextBesidesImages");var bg=3,M2=32,E2=e(async(r,t,i)=>{let s=u(),o=r.insert("g").attr("class",i??"node default").attr("id",t.domId||t.id),a=o.insert("g").attr("class","label").attr("style",He(t.labelStyle)),l=[{text:typeof t.label==="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map((W)=>({text:W,cssClass:"c4-descr"}))].filter((W)=>W.text),d=t.width?Math.max(t.width-2*(t.padding??0),M2):u().flowchart?.wrappingWidth??200,f=s.c4?.wrap??!0?d:Number.POSITIVE_INFINITY,b=await Promise.all(l.map(async(W)=>{let H=a.append("g").attr("class",W.cssClass),V=await Be(H,q(Jt(W.text??""),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:f,style:t.labelStyle},s);return m(V).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),m(V).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:H,box:H.node().getBBox()}})),T=Math.max(...b.map(({box:W})=>W.width),0),w=0;for(let{el:W,box:H}of b)W.attr("transform",`translate(${T/2-H.x-H.width/2}, ${w-H.y})`),w+=H.height+bg;let v=b.length>0?w-bg:0;a.insert("rect",":first-child"),a.attr("transform",`translate(${-T/2}, ${-v/2})`);let E=a.node().getBBox(),P=(t.padding??0)/2;return{shapeSvg:o,bbox:E,halfPadding:P,label:a}},"c4LabelHelper"),kg=e((r,t)=>{let{x:i,y:s,width:o,height:a}=r;if(o>=t)return r;if(!("left"in r))return{x:i-(t-o)/2,y:s,width:t,height:a};return{x:i,y:s,width:t,height:a,top:s,left:i,bottom:s+a,right:i+t,toJSON:e(()=>({}),"toJSON")}},"withMinWidth"),U=e(async(r,t,i,{ignoreMinWidth:s=!1}={})=>{if(t.stereotype!==void 0)return E2(r,t,i);let o,a=t.useHtmlLabels||kt(u()?.htmlLabels);if(!i)o="node default";else o=i;let c=r.insert("g").attr("class",o).attr("id",t.domId||t.id),l=c.insert("g").attr("class","label").attr("style",He(t.labelStyle)),d;if(t.label===void 0)d="";else d=typeof t.label==="string"?t.label:t.label[0];let x=!!t.icon||!!t.img,f=t.labelType==="markdown",b=d&&!t.width&&!s?t.minWidth??0:0,T=await Be(l,q(Jt(d),u()),{useHtmlLabels:a,width:t.width||t.wrappingWidth||u().flowchart?.wrappingWidth,minWidth:b,classes:f?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:x,markdown:f},u()),w=(t?.padding??0)/2,v;if(a){let E=T.children[0],P=m(T);await Vc(E),v=await Ti.measure(()=>E.getBoundingClientRect()),v=kg(v,b),P.attr("width",v.width),P.attr("height",v.height)}else v=await Ti.measure(()=>T.getBBox()),v=kg(v,b);if(a)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");else l.attr("transform","translate(0, "+-v.height/2+")");if(t.centerLabel)l.attr("transform","translate("+-v.width/2+", "+-v.height/2+")");return l.insert("rect",":first-child"),{shapeSvg:c,bbox:v,halfPadding:w,label:l}},"labelHelper"),Fo=e(async(r,t,i)=>{let s=i.useHtmlLabels??Ne(u()),o=r.insert("g").attr("class","label").attr("style",i.labelStyle||""),a=await Be(o,q(Jt(t),u()),{useHtmlLabels:s,width:i.width||u()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),c=i.padding/2,l;if(Ne(u())){let d=a.children[0],x=m(a);l=await Ti.measure(()=>d.getBoundingClientRect()),x.attr("width",l.width),x.attr("height",l.height)}else l=await Ti.measure(()=>a.getBBox());if(s)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");else o.attr("transform","translate(0, "+-l.height/2+")");if(i.centerLabel)o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")");return o.insert("rect",":first-child"),{shapeSvg:r,bbox:l,halfPadding:c,label:o}},"insertLabel"),N=e((r,t,i)=>{if(i){r.width=i.width,r.height=i.height;return}let s=t.node().getBBox();r.width=s.width,r.height=s.height},"updateNodeBounds"),re=e((r,t)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(t||""),"getNodeClasses");function Ee(r){let t=r.map((i,s)=>`${s===0?"M":"L"}${i.x},${i.y}`);return t.push("Z"),t.join(" ")}e(Ee,"createPathFromPoints");function Wi(r,t,i,s,o,a){let c=[],l=50,d=i-r,x=s-t,f=d/a,b=2*Math.PI/f,T=t+x/2;for(let w=0;w<=50;w++){let v=w/50,E=r+v*d,P=T+o*Math.sin(b*(E-r));c.push({x:E,y:P})}return c}e(Wi,"generateFullSineWavePoints");function di(r,t,i,s,o,a){let c=[],l=o*Math.PI/180,f=(a*Math.PI/180-l)/(s-1);for(let b=0;b<s;b++){let T=l+b*f,w=r+i*Math.cos(T),v=t+i*Math.sin(T);c.push({x:-w,y:-v})}return c}e(di,"generateCirclePoints");function Uc(r){let t=Array.from(r.childNodes).filter((d)=>d.tagName==="path"),i=document.createElementNS("http://www.w3.org/2000/svg","path"),s=t.map((d)=>d.getAttribute("d")).filter((d)=>d!==null).join(" ");i.setAttribute("d",s);let o=t.find((d)=>d.getAttribute("fill")!=="none"),a=t.find((d)=>d.getAttribute("stroke")!=="none"),c=e((d,x)=>d?.getAttribute(x)??void 0,"getAttr");if(o){let d={fill:c(o,"fill"),"fill-opacity":c(o,"fill-opacity")??"1"};Object.entries(d).forEach(([x,f])=>{if(f)i.setAttribute(x,f)})}if(a){let d={stroke:c(a,"stroke"),"stroke-width":c(a,"stroke-width")??"1","stroke-opacity":c(a,"stroke-opacity")??"1"};Object.entries(d).forEach(([x,f])=>{if(f)i.setAttribute(x,f)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(i),l}e(Uc,"mergePaths");var Yg=Symbol("lineIntersectionOrigin"),_o=e((r,t)=>({...r,[Yg]:t}),"withLineIntersectionOrigin"),Zc=e((r,t)=>r?.[Yg]??t,"getLineIntersectionOrigin");function Ug(r,t,i,s){{let o=t.y-r.y,a=r.x-t.x,c=t.x*r.y-r.x*t.y,l=o*i.x+a*i.y+c,d=o*s.x+a*s.y+c,x=0.000001;if(l!==0&&d!==0&&jc(l,d))return;let f=s.y-i.y,b=i.x-s.x,T=s.x*i.y-i.x*s.y,w=f*r.x+b*r.y+T,v=f*t.x+b*t.y+T;if(Math.abs(w)<0.000001&&Math.abs(v)<0.000001&&jc(w,v))return;let E=o*b-f*a;if(E===0)return;let P=(a*T-b*c)/E,W=(f*c-o*T)/E;return{x:P,y:W}}}e(Ug,"intersectLine");function jc(r,t){return r*t>0}e(jc,"sameSign");var O2=Ug;function jg(r,t,i){let{x:s,y:o}=r,a=Zc(i,r),c=[],{POSITIVE_INFINITY:l,POSITIVE_INFINITY:d}=Number;if(typeof t.forEach==="function")t.forEach(function(b){l=Math.min(l,b.x),d=Math.min(d,b.y)});else l=Math.min(l,t.x),d=Math.min(d,t.y);let x=s-r.width/2-l,f=o-r.height/2-d;for(let b=0;b<t.length;b++){let T=t[b],w=t[b<t.length-1?b+1:0],v=O2(a,i,{x:x+T.x,y:f+T.y},{x:x+w.x,y:f+w.y});if(v)c.push(v)}if(!c.length)return r;if(c.length>1)c.sort(function(b,T){let w=b.x-i.x,v=b.y-i.y,E=Math.sqrt(w*w+v*v),P=T.x-i.x,W=T.y-i.y,H=Math.sqrt(P*P+W*W);return E<H?-1:E===H?0:1});return c[0]}e(jg,"intersectPolygon");var Gg=jg,I2=e((r,t)=>{if(Zc(t,r)!==r)return Gg(r,[{x:0,y:0},{x:r.width,y:0},{x:r.width,y:r.height},{x:0,y:r.height}],t);var{x:i,y:s}=r,o=t.x-i,a=t.y-s,c=r.width/2,l=r.height/2,d,x;if(Math.abs(a)*c>Math.abs(o)*l){if(a<0)l=-l;d=a===0?0:l*o/a,x=l}else{if(o<0)c=-c;d=c,x=o===0?0:c*a/o}return{x:i+d,y:s+x}},"intersectRect"),pi=I2;function Xg(r,t){return r.intersect(t)}e(Xg,"intersectNode");var $2=Xg;function Vg(r,t,i,s){var{x:o,y:a}=r;let c=Zc(s,r);if(c!==r){let T=c.x-o,w=c.y-a,v=s.x-c.x,E=s.y-c.y,P=t*t,W=i*i,H=v*v/P+E*E/W,V=2*T*v/P+2*w*E/W,Q=T*T/P+w*w/W-1,J=V*V-4*H*Q;if(H>0&&J>=0){let st=Math.sqrt(J),lt=[(-V-st)/(2*H),(-V+st)/(2*H)].filter((pt)=>pt>=0&&pt<=1).sort((pt,ft)=>ft-pt);if(lt.length){let pt=lt[0];return{x:c.x+pt*v,y:c.y+pt*E}}}}var l=o-s.x,d=a-s.y,x=Math.sqrt(t*t*d*d+i*i*l*l),f=Math.abs(t*i*l/x);if(s.x<o)f=-f;var b=Math.abs(t*i*d/x);if(s.y<a)b=-b;return{x:o+f,y:a+b}}e(Vg,"intersectEllipse");var Kg=Vg;function Zg(r,t,i){return Kg(r,t,t,i)}e(Zg,"intersectCircle");var D2=Zg,S={node:$2,circle:D2,ellipse:Kg,polygon:Gg,rect:pi},Fr=e((r,t,i,s,o)=>["M",r+o,t,"H",r+i-o,"A",o,o,0,0,1,r+i,t+o,"V",t+s-o,"A",o,o,0,0,1,r+i-o,t+s,"H",r+o,"A",o,o,0,0,1,r,t+s-o,"V",t+o,"A",o,o,0,0,1,r+o,t,"Z"].join(" "),"createRoundedRectPathD"),P2=e(async(r,t,i,s=!1,o=!1)=>{let a=t||"";if(typeof a==="object")a=a[0];let c=u(),l=Ne(c);return await Be(r,a,{style:i,isTitle:s,useHtmlLabels:l,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},c)},"createLabel"),ei=P2;function Qg(r,t){let{labelStyles:i}=C(t);t.labelStyle=i;let s=re(t),o=s;if(!s)o="anchor";let a=r.insert("g").attr("class",o).attr("id",t.domId||t.id),c=1,{cssStyles:l}=t,d=g.svg(a),x=Vt(t,{fill:"black",stroke:"none",fillStyle:"solid"});if(t.look!=="handDrawn")x.roughness=0;let f=d.circle(0,0,c*2,x),b=a.insert(()=>f,":first-child");return b.attr("class","anchor").attr("style",He(l)),N(t,b),t.intersect=function(T){return n.info("Circle intersect",t,c,T),S.circle(t,c,T)},a}e(Qg,"anchor");function Gc(r,t,i,s,o,a,c){let d=(r+i)/2,x=(t+s)/2,f=Math.atan2(s-t,i-r),b=(i-r)/2,T=(s-t)/2,w=b/o,v=T/a,E=Math.sqrt(w**2+v**2);if(E>1)throw Error("The given radii are too small to create an arc between the points.");let P=Math.sqrt(1-E**2),W=d+P*a*Math.sin(f)*(c?-1:1),H=x-P*o*Math.cos(f)*(c?-1:1),V=Math.atan2((t-H)/a,(r-W)/o),J=Math.atan2((s-H)/a,(i-W)/o)-V;if(c&&J<0)J+=2*Math.PI;if(!c&&J>0)J-=2*Math.PI;let st=[];for(let lt=0;lt<20;lt++){let pt=lt/19,ft=V+pt*J,wt=W+o*Math.cos(ft),_t=H+a*Math.sin(ft);st.push({x:wt,y:_t})}return st}e(Gc,"generateArcPoints");function Jg(r,t,i){let[s,o]=[t,i].sort((a,c)=>c-a);return o*(1-Math.sqrt(1-(r/s/2)**2))}e(Jg,"calculateArcSagitta");async function tm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o,l=e((ft)=>ft+c,"calcTotalHeight"),d=e((ft)=>{let wt=ft/2;return[wt/(2.5+ft/50),wt]},"calcEllipseRadius"),{shapeSvg:x,bbox:f}=await U(r,t,re(t)),b=l(t?.height?t?.height:f.height),[T,w]=d(b),v=Jg(b,T,w),P=(t?.width?t?.width:f.width)+a*2+v-v,W=b,{cssStyles:H}=t,V=[{x:P/2,y:-W/2},{x:-P/2,y:-W/2},...Gc(-P/2,-W/2,-P/2,W/2,T,w,!1),{x:P/2,y:W/2},...Gc(P/2,W/2,P/2,-W/2,T,w,!0)],Q=g.svg(x),J=Vt(t,{});if(t.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let st=Ee(V),lt=Q.path(st,J),pt=x.insert(()=>lt,":first-child");if(pt.attr("class","basic label-container outer-path"),H&&t.look!=="handDrawn")pt.selectAll("path").attr("style",H);if(s&&t.look!=="handDrawn")pt.selectAll("path").attr("style",s);return pt.attr("transform",`translate(${T/2}, 0)`),N(t,pt),t.intersect=function(ft){return S.polygon(t,V,ft)},x}e(tm,"bowTieRect");async function em(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c,label:l}=await U(r,t,re(t)),d=i?.nodeBorder??i?.lineColor??"currentColor",x=t.padding??12,f=Math.max(c.width+x*2,t.width??0,80),b=Math.max(Math.min(f*0.08,12),5),T=Math.max(c.height+x*2+b,t.height??0),w=-T/2+b,v=T/2,E=f*0.72,P=[`M${-f/2},${w}`,`L${-E/2},${v}`,`A${E/2},${b} 0 0 0 ${E/2},${v}`,`L${f/2},${w}`,`A${f/2},${b} 0 0 0 ${-f/2},${w}`,"Z"].join(" "),{cssStyles:W}=t,H=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let pt=g.svg(a).path(P,Vt(t,{}));if(H.node()?.appendChild(pt),W)H.attr("style",W)}else H.append("path").attr("d",P).attr("style",o);H.append("ellipse").attr("cx",0).attr("cy",w).attr("rx",f/2).attr("ry",b).attr("style",`fill:none;stroke:${d};stroke-width:1px`),N(t,H);let V=w+(v-w)/2;l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${V-c.height/2-(c.y-(c.top??0))})`);let Q=12,J=e((lt,pt,ft)=>Array.from({length:Q+1},(wt,_t)=>{let xt=Math.PI-_t*Math.PI/Q;return{x:lt*Math.cos(xt),y:pt+ft*b*Math.sin(xt)}}),"arc"),st=[...J(f/2,w,-1),...J(E/2,v,1).reverse()];return t.intersect=function(lt){return S.polygon(t,st,lt)},a}e(em,"bucket");var Rc=20,Nc=8,R2=80,N2=8;function rm(r){let{themeVariables:t}=u(),{clusterBkg:i,clusterBorder:s}=t;switch(r){case"flow":return{rx:10,fill:"none",stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:N2,fill:i,stroke:s,cssClass:"collapsed-group"}}}e(rm,"getCollapsedStyle");async function im(r,t){let i=rm(t.metadata?.containerType),{fill:s,stroke:o}=i,{nodeStyles:a}=C(t),{shapeSvg:c,bbox:l}=await U(r,t,re(t)),{theme:d,themeVariables:x}=u();rt(c,t.colorIndex,d,x.borderColorArray);let f=t.padding??8,b=l.height,T=Math.max(l.width+f*2,R2,t?.width??0),w=Math.max(b+Nc+Rc+f*2,t?.height??0),v=-T/2,E=-w/2,P=-(Nc+Rc)/2,W=c.select(".label");if(W)if(t.useHtmlLabels??Ne(u()))W.attr("transform",`translate(${-l.width/2}, ${-l.height/2+P})`);else W.attr("transform",`translate(0, ${-l.height/2+P})`);let H;if(t.look==="handDrawn"){let lt=g.svg(c),pt=Vt(t,{fill:s,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...s==="none"?{fillWeight:0}:{fillStyle:"solid"}}),ft=lt.path(Fr(v,E,T,w,i.rx),pt);H=c.insert(()=>ft,":first-child"),H.attr("class","basic label-container "+i.cssClass).attr("style",He(t.cssStyles))}else if(H=c.insert("rect",":first-child"),H.attr("class","basic label-container "+i.cssClass).attr("style",a).attr("rx",i.rx).attr("ry",i.rx).attr("x",v).attr("y",E).attr("width",T).attr("height",w).attr("fill",s).attr("stroke",o),i.strokeWidth!==void 0)H.attr("stroke-width",i.strokeWidth+"px");let V=E+f+b+Nc;c.append("line").attr("class","collapsed-separator").attr("x1",v+8).attr("y1",V).attr("x2",v+T-8).attr("y2",V).attr("stroke",o).attr("stroke-dasharray","3, 3");let Q=V+Rc/2,J=2.5,st=10;for(let lt=-1;lt<=1;lt++)c.append("circle").attr("class","collapsed-indicator").attr("cx",lt*st).attr("cy",Q).attr("r",J).attr("fill",o);return N(t,H),t.calcIntersect=function(lt,pt){return S.rect(lt,pt)},t.intersect=function(lt){return S.rect(t,lt)},c}e(im,"collapsedGroup");function fi(r,t,i,s){return r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+i/2+")")}e(fi,"insertPolygonShape");var q2=["right","left","up","down"],Qc="point",W2=e((r)=>{let t=new Set;for(let i of r)switch(i){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(i);break}return t},"expandAndDeduplicateDirections"),z2=e((r)=>q2.filter((t)=>r.has(t)).join("|")||Qc,"getDirectionKey"),Sg={"right|left|up|down":e(({height:r,midpoint:t,padding:i,width:s})=>[{x:0,y:0},{x:t,y:0},{x:s/2,y:2*i},{x:s-t,y:0},{x:s,y:0},{x:s,y:-r/3},{x:s+2*i,y:-r/2},{x:s,y:-2*r/3},{x:s,y:-r},{x:s-t,y:-r},{x:s/2,y:-r-2*i},{x:t,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*i,y:-r/2},{x:0,y:-r/3}],"right|left|up|down"),"right|left|up":e(({height:r,midpoint:t,width:i})=>[{x:t,y:0},{x:i-t,y:0},{x:i,y:-r/2},{x:i-t,y:-r},{x:t,y:-r},{x:0,y:-r/2}],"right|left|up"),"right|left|down":e(({height:r,midpoint:t,width:i})=>[{x:0,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i,y:0}],"right|left|down"),"right|up|down":e(({height:r,midpoint:t,width:i})=>[{x:0,y:0},{x:i,y:-t},{x:i,y:-r+t},{x:0,y:-r}],"right|up|down"),"left|up|down":e(({height:r,midpoint:t,width:i})=>[{x:i,y:0},{x:0,y:-t},{x:0,y:-r+t},{x:i,y:-r}],"left|up|down"),"right|left":e(({height:r,midpoint:t,padding:i,width:s})=>[{x:t,y:0},{x:t,y:-i},{x:s-t,y:-i},{x:s-t,y:0},{x:s,y:-r/2},{x:s-t,y:-r},{x:s-t,y:-r+i},{x:t,y:-r+i},{x:t,y:-r},{x:0,y:-r/2}],"right|left"),"up|down":e(({height:r,midpoint:t,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:t,y:-i},{x:t,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-t,y:-r+i},{x:s-t,y:-i},{x:s,y:-i}],"up|down"),"right|up":e(({height:r,midpoint:t,width:i})=>[{x:0,y:0},{x:i,y:-t},{x:0,y:-r}],"right|up"),"right|down":e(({height:r,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-r}],"right|down"),"left|up":e(({height:r,midpoint:t,width:i})=>[{x:i,y:0},{x:0,y:-t},{x:i,y:-r}],"left|up"),"left|down":e(({height:r,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-r}],"left|down"),right:e(({height:r,midpoint:t,padding:i,width:s})=>[{x:t,y:-i},{x:t,y:-i},{x:s-t,y:-i},{x:s-t,y:0},{x:s,y:-r/2},{x:s-t,y:-r},{x:s-t,y:-r+i},{x:t,y:-r+i},{x:t,y:-r+i}],"right"),left:e(({height:r,midpoint:t,padding:i,width:s})=>[{x:t,y:0},{x:t,y:-i},{x:s-t,y:-i},{x:s-t,y:-r+i},{x:t,y:-r+i},{x:t,y:-r},{x:0,y:-r/2}],"left"),up:e(({height:r,midpoint:t,padding:i,width:s})=>[{x:t,y:-i},{x:t,y:-r+i},{x:0,y:-r+i},{x:s/2,y:-r},{x:s,y:-r+i},{x:s-t,y:-r+i},{x:s-t,y:-i}],"up"),down:e(({height:r,midpoint:t,padding:i,width:s})=>[{x:s/2,y:0},{x:0,y:-i},{x:t,y:-i},{x:t,y:-r+i},{x:s-t,y:-r+i},{x:s-t,y:-i},{x:s,y:-i}],"down"),[Qc]:()=>[{x:0,y:0}]},H2=e((r,t,i,s)=>{let o=W2(r),a=(i.padding??0)/2,c=t.height+4*a,l=c/2,d=s??t.width+2*l+2*a,x=z2(o);return(Sg[x]??Sg[Qc])({height:c,midpoint:l,padding:a,width:d})},"getArrowPoints");async function om(r,t){let i=t,{shapeSvg:s,bbox:o}=await U(r,i,re(i)),a=i.padding??0,c=o.height+2*a,l=c/2,d=o.width+2*l+a,x=i.width??0,b=i.positioned&&(i.widthInColumns??1)>1&&x>d?x:d,T=H2(i.directions??[],o,i,b),w=fi(s,b,c,T);return w.attr("style",i.style??null),N(i,w),i.intersect=function(v){return S.polygon(i,T,v)},s}e(om,"block_arrow");async function sm(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c,label:l}=await U(r,t,re(t)),d=i?.nodeBorder??i?.lineColor??"currentColor",x=t.padding??12,f=18,b=12,T=Math.max(c.width+x*2,t.width??0,90),w=Math.max(c.height+x*2+f,t.height??0),v=-w/2,{cssStyles:E}=t,P=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let V=g.svg(a).path(Fr(-T/2,v,T,w,b),Vt(t,{}));if(P.node()?.appendChild(V),E)P.attr("style",E)}else P.append("rect").attr("x",-T/2).attr("y",v).attr("width",T).attr("height",w).attr("rx",b).attr("ry",b).attr("style",o);P.append("line").attr("x1",-T/2).attr("y1",v+f).attr("x2",T/2).attr("y2",v+f).attr("style",`stroke:${d};stroke-width:1px`);for(let H=0;H<3;H++)P.append("circle").attr("cx",-T/2+12+H*9).attr("cy",v+f/2).attr("r",2.5).attr("style",`fill:${d};stroke:none`);P.append("rect").attr("class","browser-address-bar").attr("x",-T/2+44).attr("y",v+4).attr("width",Math.max(T-56,10)).attr("height",f-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${d};stroke-width:1px;opacity:0.6`),N(t,P);let W=v+f+(w-f)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${W-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(H){return S.rect(t,H)},a}e(sm,"browser");var Kn=12;async function am(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?28:o,c=t.look==="neo"?24:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=(t?.width??d.width)+(t.look==="neo"?a*2:a+Kn),f=(t?.height??d.height)+(t.look==="neo"?c*2:c),b=0,T=x,w=-f,v=0,E=[{x:b+Kn,y:w},{x:T,y:w},{x:T,y:v},{x:b,y:v},{x:b,y:w+Kn},{x:b+Kn,y:w}],P,{cssStyles:W}=t;if(t.look==="handDrawn"){let H=g.svg(l),V=Vt(t,{}),Q=Ee(E),J=H.path(Q,V);if(P=l.insert(()=>J,":first-child").attr("transform",`translate(${-x/2}, ${f/2})`),W)P.attr("style",W)}else P=fi(l,x,f,E);if(s)P.attr("style",s);return N(t,P),t.intersect=function(H){return S.polygon(t,E,H)},l}e(am,"card");function nm(r,t){let{nodeStyles:i}=C(t);t.label="";let s=r.insert("g").attr("class",re(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(28,t.width??0),c=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=g.svg(s),d=Vt(t,{});if(t.look!=="handDrawn")d.roughness=0,d.fillStyle="solid";let x=Ee(c),f=l.path(x,d),b=s.insert(()=>f,":first-child");if(o&&t.look!=="handDrawn")b.selectAll("path").attr("style",o);if(i&&t.look!=="handDrawn")b.selectAll("path").attr("style",i);return t.width=28,t.height=28,t.intersect=function(T){return S.polygon(t,c,T)},s}e(nm,"choice");async function Jc(r,t,i){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c,halfPadding:l}=await U(r,t,re(t),{ignoreMinWidth:!0}),d=16,x=i?.padding??l,f=Math.sqrt(c.width**2+c.height**2)/2,b=t.look==="neo"?f+d:f+x,T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(a),E=Vt(t,{}),P=v.circle(0,0,b*2,E);T=a.insert(()=>P,":first-child"),T.attr("class","basic label-container").attr("style",He(w))}else T=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",b).attr("cx",0).attr("cy",0);return N(t,T),t.calcIntersect=function(v,E){let P=v.width/2;return S.circle(v,P,E)},t.intersect=function(v){return n.info("Circle intersect",t,b,v),S.circle(t,b,v)},a}e(Jc,"circle");async function lm(r,t){let i=t,s=["node",i.cssClasses,i.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:a,halfPadding:c}=await U(r,i,s),l=o.insert("rect",":first-child"),d=i.padding??0,x=i.positioned?i.width??0:a.width+d,f=i.positioned?i.height??0:a.height+d,b=i.positioned?-x/2:-a.width/2-c,T=i.positioned?-f/2:-a.height/2-c;return l.attr("class","basic cluster composite label-container").attr("style",i.style??null).attr("rx",i.rx??null).attr("ry",i.ry??null).attr("x",b).attr("y",T).attr("width",x).attr("height",f),N(i,l),i.intersect=function(w){return S.rect(i,w)},o}e(lm,"composite");async function hm(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c,label:l}=await U(r,t,re(t)),d=i?.nodeBorder??i?.lineColor??"currentColor",x=t.padding??12,f=20,b=12,T=Math.max(c.width+x*2,t.width??0,90),w=Math.max(c.height+x*2+f,t.height??0),v=-w/2,{cssStyles:E}=t,P=a.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let V=g.svg(a).path(Fr(-T/2,v,T,w,b),Vt(t,{}));if(P.node()?.appendChild(V),E)P.attr("style",E)}else P.append("rect").attr("x",-T/2).attr("y",v).attr("width",T).attr("height",w).attr("rx",b).attr("ry",b).attr("style",o);P.append("text").attr("x",-T/2+12).attr("y",v+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${d}`).text(">_"),N(t,P);let W=v+f+(w-f)/2;return l.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${W-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(H){return S.rect(t,H)},a}e(hm,"consoleWindow");function cm(r){let t=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),s=r*2,o={x:s/2*t,y:s/2*i},a={x:-(s/2)*t,y:s/2*i},c={x:-(s/2)*t,y:-(s/2)*i},l={x:s/2*t,y:-(s/2)*i};return`M ${a.x},${a.y} L ${l.x},${l.y}
|
|
233
|
+
M ${o.x},${o.y} L ${c.x},${c.y}`}e(cm,"createLine");function um(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i,t.label="";let o=r.insert("g").attr("class",re(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:c}=t,l=g.svg(o),d=Vt(t,{});if(t.look!=="handDrawn")d.roughness=0,d.fillStyle="solid";let x=l.circle(0,0,a*2,d),f=cm(a),b=l.path(f,d),T=o.insert(()=>x,":first-child");if(T.insert(()=>b),T.attr("class","outer-path"),c&&t.look!=="handDrawn")T.selectAll("path").attr("style",c);if(s&&t.look!=="handDrawn")T.selectAll("path").attr("style",s);return N(t,T),t.intersect=function(w){return n.info("crossedCircle intersect",t,{radius:a,point:w}),S.circle(t,a,w)},o}e(um,"crossedCircle");function wi(r,t,i,s=100,o=0,a=180){let c=[],l=o*Math.PI/180,f=(a*Math.PI/180-l)/(s-1);for(let b=0;b<s;b++){let T=l+b*f,w=r+i*Math.cos(T),v=t+i*Math.sin(T);c.push({x:-w,y:-v})}return c}e(wi,"generateCirclePoints");async function dm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,x=a.width+l,f=a.height+d,b=Math.max(5,f*0.1),{cssStyles:T}=t,w=[...wi(x/2,-f/2,b,30,-90,0),{x:-x/2-b,y:b},...wi(x/2+b*2,-b,b,20,-180,-270),...wi(x/2+b*2,b,b,20,-90,-180),{x:-x/2-b,y:-f/2},...wi(x/2,f/2,b,20,0,90)],v=[{x:x/2,y:-f/2-b},{x:-x/2,y:-f/2-b},...wi(x/2,-f/2,b,20,-90,0),{x:-x/2-b,y:-b},...wi(x/2+x*0.1,-b,b,20,-180,-270),...wi(x/2+x*0.1,b,b,20,-90,-180),{x:-x/2-b,y:f/2},...wi(x/2,f/2,b,20,0,90),{x:-x/2,y:f/2+b},{x:x/2,y:f/2+b}],E=g.svg(o),P=Vt(t,{fill:"none"});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let H=Ee(w).replace("Z",""),V=E.path(H,P),Q=Ee(v),J=E.path(Q,{...P}),st=o.insert("g",":first-child");if(st.insert(()=>J,":first-child").attr("stroke-opacity",0),st.insert(()=>V,":first-child"),st.attr("class","text"),T&&t.look!=="handDrawn")st.selectAll("path").attr("style",T);if(s&&t.look!=="handDrawn")st.selectAll("path").attr("style",s);return st.attr("transform",`translate(${b}, 0)`),c.attr("transform",`translate(${-x/2+b-(a.x-(a.left??0))},${-a.height/2-(a.y-(a.top??0))})`),N(t,st),t.intersect=function(lt){return S.polygon(t,v,lt)},o}e(dm,"curlyBraceLeft");function Bi(r,t,i,s=100,o=0,a=180){let c=[],l=o*Math.PI/180,f=(a*Math.PI/180-l)/(s-1);for(let b=0;b<s;b++){let T=l+b*f,w=r+i*Math.cos(T),v=t+i*Math.sin(T);c.push({x:w,y:v})}return c}e(Bi,"generateCirclePoints");async function pm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,x=a.width+(t.look==="neo"?l*2:l),f=a.height+(t.look==="neo"?d*2:d),b=Math.max(5,f*0.1),{cssStyles:T}=t,w=[...Bi(x/2,-f/2,b,20,-90,0),{x:x/2+b,y:-b},...Bi(x/2+b*2,-b,b,20,-180,-270),...Bi(x/2+b*2,b,b,20,-90,-180),{x:x/2+b,y:f/2},...Bi(x/2,f/2,b,20,0,90)],v=[{x:-x/2,y:-f/2-b},{x:x/2,y:-f/2-b},...Bi(x/2,-f/2,b,20,-90,0),{x:x/2+b,y:-b},...Bi(x/2+b*2,-b,b,20,-180,-270),...Bi(x/2+b*2,b,b,20,-90,-180),{x:x/2+b,y:f/2},...Bi(x/2,f/2,b,20,0,90),{x:x/2,y:f/2+b},{x:-x/2,y:f/2+b}],E=g.svg(o),P=Vt(t,{fill:"none"});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let H=Ee(w).replace("Z",""),V=E.path(H,P),Q=Ee(v),J=E.path(Q,{...P}),st=o.insert("g",":first-child");if(st.insert(()=>J,":first-child").attr("stroke-opacity",0),st.insert(()=>V,":first-child"),st.attr("class","text"),T&&t.look!=="handDrawn")st.selectAll("path").attr("style",T);if(s&&t.look!=="handDrawn")st.selectAll("path").attr("style",s);return st.attr("transform",`translate(${-b}, 0)`),c.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${-a.height/2-(a.y-(a.top??0))})`),N(t,st),t.intersect=function(lt){return S.polygon(t,v,lt)},o}e(pm,"curlyBraceRight");function nr(r,t,i,s=100,o=0,a=180){let c=[],l=o*Math.PI/180,f=(a*Math.PI/180-l)/(s-1);for(let b=0;b<s;b++){let T=l+b*f,w=r+i*Math.cos(T),v=t+i*Math.sin(T);c.push({x:-w,y:-v})}return c}e(nr,"generateCirclePoints");async function fm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,x=a.width+(t.look==="neo"?l*2:l),f=a.height+(t.look==="neo"?d*2:d),b=Math.max(5,f*0.1),{cssStyles:T}=t,w=[...nr(x/2,-f/2,b,30,-90,0),{x:-x/2-b,y:b},...nr(x/2+b*2,-b,b,20,-180,-270),...nr(x/2+b*2,b,b,20,-90,-180),{x:-x/2-b,y:-f/2},...nr(x/2,f/2,b,20,0,90)],v=[...nr(-x/2+b+b/2,-f/2,b,20,-90,-180),{x:x/2-b/2,y:b},...nr(-x/2-b/2,-b,b,20,0,90),...nr(-x/2-b/2,b,b,20,-90,0),{x:x/2-b/2,y:-b},...nr(-x/2+b+b/2,f/2,b,30,-180,-270)],E=[{x:x/2,y:-f/2-b},{x:-x/2,y:-f/2-b},...nr(x/2,-f/2,b,20,-90,0),{x:-x/2-b,y:-b},...nr(x/2+b*2,-b,b,20,-180,-270),...nr(x/2+b*2,b,b,20,-90,-180),{x:-x/2-b,y:f/2},...nr(x/2,f/2,b,20,0,90),{x:-x/2,y:f/2+b},{x:x/2-b-b/2,y:f/2+b},...nr(-x/2+b+b/2,-f/2,b,20,-90,-180),{x:x/2-b/2,y:b},...nr(-x/2-b/2,-b,b,20,0,90),...nr(-x/2-b/2,b,b,20,-90,0),{x:x/2-b/2,y:-b},...nr(-x/2+b+b/2,f/2,b,30,-180,-270)],P=g.svg(o),W=Vt(t,{fill:"none"});if(t.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let V=Ee(w).replace("Z",""),Q=P.path(V,W),st=Ee(v).replace("Z",""),lt=P.path(st,W),pt=Ee(E),ft=P.path(pt,{...W}),wt=o.insert("g",":first-child");if(wt.insert(()=>ft,":first-child").attr("stroke-opacity",0),wt.insert(()=>Q,":first-child"),wt.insert(()=>lt,":first-child"),wt.attr("class","text"),T&&t.look!=="handDrawn")wt.selectAll("path").attr("style",T);if(s&&t.look!=="handDrawn")wt.selectAll("path").attr("style",s);return wt.attr("transform",`translate(${b-b/4}, 0)`),c.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${-a.height/2-(a.y-(a.top??0))})`),N(t,wt),t.intersect=function(_t){return S.polygon(t,E,_t)},o}e(fm,"curlyBraces");async function gm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o,l=20,d=5,{shapeSvg:x,bbox:f}=await U(r,t,re(t)),b=Math.max(d,f.height+c*2,t?.height??0),T=b/2,w=T-Math.sqrt(Math.max(0,T**2-(f.height/2)**2)),v=Math.max(b/4,w),E=Math.max(l,f.width+a*2+v*2,(f.width+a*2)*1.25,t?.width??0),{cssStyles:P}=t,W=g.svg(x),H=Vt(t,{});if(t.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let V=E,Q=b,J=V-T,st=Q/4,lt=[{x:J,y:0},{x:st,y:0},{x:0,y:Q/2},{x:st,y:Q},{x:J,y:Q},...di(-J,-Q/2,T,50,270,90)],pt=Ee(lt),ft=W.path(pt,H),wt=x.insert(()=>ft,":first-child");if(wt.attr("class","basic label-container outer-path"),P&&t.look!=="handDrawn")wt.selectChildren("path").attr("style",P);if(s&&t.look!=="handDrawn")wt.selectChildren("path").attr("style",s);return wt.attr("transform",`translate(${-E/2}, ${-b/2})`),N(t,wt),t.intersect=function(_t){return S.polygon(t,lt,_t)},x}e(gm,"curvedTrapezoid");async function mm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.padding??20,d=Math.max(a.width+l*2,t.width??0,100),x=Math.min(Math.max(d*0.23,16),56),f=x*0.27,b=Math.max(a.height+l*2,t.height?t.height-(2*x-f):0),T=Math.min(d*0.177,b*0.45),w=b+2*x-f,v=-w/2,E=v+2*x-f,P=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:W}=t;if(t.look==="handDrawn"){let pt=g.svg(o),ft=Vt(t,{}),wt=pt.path(Fr(-d/2,E,d,b,T),ft),_t=pt.circle(0,v+x,x*2,ft);if(P.insert(()=>_t,":first-child"),P.insert(()=>wt,":first-child"),W)P.attr("style",W)}else P.append("rect").attr("x",-d/2).attr("y",E).attr("width",d).attr("height",b).attr("rx",T).attr("ry",T).attr("style",s),P.append("circle").attr("cx",0).attr("cy",v+x).attr("r",x).attr("style",s);N(t,P);let H=E+b/2;c.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${H-a.height/2-(a.y-(a.top??0))})`);let V=v+x,Q=Math.asin(Math.min(1,(E-V)/x))*180/Math.PI,J=24,lt=[...di(0,-V,x,J,180+Q,-Q),...di(-(-d/2+T),-(E+T),T,12,90,0),...di(-(-d/2+T),-(w/2-T),T,12,360,270),...di(-(d/2-T),-(w/2-T),T,12,270,180),...di(-(d/2-T),-(E+T),T,12,180,90)];return t.intersect=function(pt){return S.polygon(t,lt,pt)},o}e(mm,"person");var Y2=e((r,t,i,s,o,a)=>[`M${r},${t+a}`,`a${o},${a} 0,0,0 ${i},0`,`a${o},${a} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${a} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createCylinderPathD"),U2=e((r,t,i,s,o,a)=>[`M${r},${t+a}`,`M${r+i},${t+a}`,`a${o},${a} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${a} 0,0,0 ${i},0`,`l0,${-s}`].join(" "),"createOuterCylinderPathD"),j2=e((r,t,i,s,o,a)=>[`M${r-i/2},${-s/2}`,`a${o},${a} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),Tg=8,wg=8;async function ym(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?24:o,c=t.look==="neo"?24:o,l=t.width??0;if(t.width){if(t.width=t.width-c,t.width<wg)t.width=wg}if(t.height){let H=l/2/(2.5+l/50);if(t.height=t.height-a-H*3,t.height<Tg)t.height=Tg}let{shapeSvg:d,bbox:x,label:f}=await U(r,t,re(t)),b=Math.max(t.width??0,x.width)+c,T=b/2,w=T/(2.5+b/50),v=Math.max(t.height??0,x.height)+a+w,E,{cssStyles:P}=t;if(t.look==="handDrawn"){let W=g.svg(d),H=U2(0,0,b,v,T,w),V=j2(0,w,b,v,T,w),Q=Vt(t,{}),J=W.path(H,Q),st=W.path(V,Vt(t,{fill:"none"}));if(E=d.insert(()=>st,":first-child"),E=d.insert(()=>J,":first-child"),E.attr("class","basic label-container"),P)E.attr("style",P)}else{let W=Y2(0,0,b,v,T,w);E=d.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",He(P)).attr("style",s)}return E.attr("label-offset-y",w),E.attr("transform",`translate(${-b/2}, ${-(v/2+w)})`),N(t,E),f.attr("transform",`translate(${-(x.width/2)-(x.x-(x.left??0))}, ${-(x.height/2)+(t.padding??0)/1.5-(x.y-(x.top??0))})`),t.intersect=function(W){let H=S.rect(t,W),V=H.x-(t.x??0);if(T!=0&&(Math.abs(V)<(t.width??0)/2||Math.abs(V)==(t.width??0)/2&&Math.abs(H.y-(t.y??0))>(t.height??0)/2-w)){let Q=w*w*(1-V*V/(T*T));if(Q>0)Q=Math.sqrt(Q);if(Q=w-Q,W.y-(t.y??0)>0)Q=-Q;H.y+=Q}return H},d}e(ym,"cylinder");async function is(r,t,i){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c}=await U(r,t,re(t)),l=Math.max(c.width+i.labelPaddingX*2,t?.width||0),d=Math.max(c.height+i.labelPaddingY*2,t?.height||0),x=-l/2,f=-d/2,b,{rx:T,ry:w}=t,{cssStyles:v}=t;if(i?.rx&&i.ry)T=i.rx,w=i.ry;if(t.look==="handDrawn"){let E=g.svg(a),P=Vt(t,{}),W=T||w?E.path(Fr(x,f,l,d,T||0),P):E.rectangle(x,f,l,d,P);b=a.insert(()=>W,":first-child"),b.attr("class","basic label-container").attr("style",He(v))}else b=a.insert("rect",":first-child"),b.attr("class","basic label-container").attr("style",o).attr("rx",He(T)).attr("ry",He(w)).attr("x",x).attr("y",f).attr("width",l).attr("height",d);return N(t,b,t.look==="handDrawn"?void 0:{width:l,height:d}),t.calcIntersect=function(E,P){return S.rect(E,P)},t.intersect=function(E){return S.rect(t,E)},a}e(is,"drawRect");async function xm(r,t){let{cssClasses:i,labelPaddingX:s,labelPaddingY:o,padding:a,width:c,height:l}=t,d={rx:0,ry:0,classes:i??"",labelPaddingX:s??(a??0)*2,labelPaddingY:o??a??0},x=await is(r,t,d);if(t.look==="handDrawn"){let w=g.svg(x),v=Vt(t,{}),E=x.select(".basic.label-container > path:nth-child(2)"),P=E.node();if(!P)return x;let W=null;if(P instanceof SVGGraphicsElement)W=P.getBBox();else return x;return x.insert(()=>w.line(W.x,W.y,W.x+W.width,W.y,v),".basic.label-container g.label"),x.insert(()=>w.line(W.x,W.y+W.height,W.x+W.width,W.y+W.height,v),".basic.label-container g.label"),E.remove(),x}let f=x.select(".basic.label-container"),b=(Number(f.attr("width"))||c)??0,T=(Number(f.attr("height"))||l)??0;if(b>0&&T>0)f.attr("stroke-dasharray",`${b} ${T}`);return x}e(xm,"datastore");async function Cm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=l.width+o,f=l.height+a,b=f*0.2,T=-x/2,w=-f/2-b/2,{cssStyles:v}=t,E=g.svg(c),P=Vt(t,{});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let W=[{x:T,y:w+b},{x:-T,y:w+b},{x:-T,y:-w},{x:T,y:-w},{x:T,y:w},{x:-T,y:w},{x:-T,y:w+b}],H=E.polygon(W.map((Q)=>[Q.x,Q.y]),P),V=c.insert(()=>H,":first-child");if(V.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn")V.selectAll("path").attr("style",v);if(s&&t.look!=="handDrawn")V.selectAll("path").attr("style",s);return d.attr("transform",`translate(${T+(t.padding??0)/2-(l.x-(l.left??0))}, ${w+b+(t.padding??0)/2-(l.y-(l.top??0))})`),N(t,V),t.intersect=function(Q){return S.rect(t,Q)},c}e(Cm,"dividedRectangle");async function bm(r,t){let{labelStyles:i,nodeStyles:s}=C(t),o=t.look==="neo"?12:5;t.labelStyle=i;let a=t.padding??0,c=t.look==="neo"?16:a,{shapeSvg:l,bbox:d}=await U(r,t,re(t),{ignoreMinWidth:!0}),x=Math.sqrt(d.width**2+d.height**2)/2,f=(t?.width?t?.width/2:x)+(c??0),b=f+o,T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(l),E=Vt(t,{roughness:0.2,strokeWidth:2.5}),P=Vt(t,{roughness:0.2,strokeWidth:1.5}),W=v.circle(0,0,b*2,E),H=v.circle(0,0,f*2,P);T=l.insert("g",":first-child"),T.attr("class",He(t.cssClasses)).attr("style",He(w)),T.node()?.appendChild(W),T.node()?.appendChild(H)}else{T=l.insert("g",":first-child");let v=T.insert("circle",":first-child"),E=T.insert("circle");T.attr("class","basic label-container").attr("style",s),v.attr("class","outer-circle").attr("style",s).attr("r",b).attr("cx",0).attr("cy",0),E.attr("class","inner-circle").attr("style",s).attr("r",f).attr("cx",0).attr("cy",0)}return N(t,T),t.intersect=function(v){return n.info("DoubleCircle intersect",t,b,v),S.circle(t,b,v)},l}e(bm,"doublecircle");async function km(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,halfPadding:c}=await U(r,t,re(t)),{theme:l,themeVariables:d}=u();rt(o,t.colorIndex,l,d.borderColorArray);let x=c??10,f=a.width/2+x*2,b=a.height/2+x*2,T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(o),E=Vt(t,{}),P=v.ellipse(0,0,f*2,b*2,E);if(T=o.insert(()=>P,":first-child"),T.attr("class","basic label-container"),w)T.attr("style",w)}else T=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",s).attr("rx",f).attr("ry",b).attr("cx",0).attr("cy",0);return t.width=f*2,t.height=b*2,N(t,T),t.calcIntersect=function(v,E){let P=v.width/2,W=v.height/2;return S.ellipse(v,P,W,E)},t.intersect=function(v){return S.ellipse(t,f,b,v)},o}e(km,"usecaseEllipse");function Sm(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);t.label="",t.labelStyle=s;let a=r.insert("g").attr("class",re(t)).attr("id",t.domId??t.id),c=7,{cssStyles:l}=t,d=g.svg(a),{nodeBorder:x}=i,f=Vt(t,{fillStyle:"solid"});if(t.look!=="handDrawn")f.roughness=0;let b=d.circle(0,0,c*2,f),T=a.insert(()=>b,":first-child");if(T.selectAll("path").attr("style",`fill: ${x} !important;`),l&&l.length>0&&t.look!=="handDrawn")T.selectAll("path").attr("style",l);if(o&&t.look!=="handDrawn")T.selectAll("path").attr("style",o);return N(t,T),t.intersect=function(w){return n.info("filledCircle intersect",t,{radius:c,point:w}),S.circle(t,c,w)},a}e(Sm,"filledCircle");var Bg=10,_g=10;async function Tm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?o*2:o;if(t.width||t.height){if(t.height=t?.height??0,t.height<Bg)t.height=Bg;if(t.width=(t?.width??0)-a-a/2,t.width<_g)t.width=_g}let{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=(t?.width?t?.width:l.width)+(a??0),f=t?.height?t?.height:x+l.height,b=f,T=[{x:0,y:-f},{x:b,y:-f},{x:b/2,y:0}],{cssStyles:w}=t,v=g.svg(c),E=Vt(t,{});if(t.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let P=Ee(T),W=v.path(P,E),H=c.insert(()=>W,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");if(w&&t.look!=="handDrawn")H.selectChildren("path").attr("style",w);if(s&&t.look!=="handDrawn")H.selectChildren("path").attr("style",s);return t.width=x,t.height=f,N(t,H),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-f/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(V){return n.info("Triangle intersect",t,T,V),S.polygon(t,T,V)},c}e(Tm,"flippedTriangle");async function wm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.padding??12,d=Math.max(a.width+l*2,t.width??0,90),x=a.height+l*2,f=Math.max(Math.min(x*0.16,14),8),b=Math.max(x+f,t.height??0),T=b-f,w=Math.max(d*0.38,28),v=-b/2,E=[{x:-d/2,y:v},{x:-d/2+w,y:v},{x:-d/2+w,y:v+f},{x:d/2,y:v+f},{x:d/2,y:b/2},{x:-d/2,y:b/2}],P=[`M${E[0].x},${E[0].y}`,...E.slice(1).map((Q)=>`L${Q.x},${Q.y}`),"Z"].join(" "),{cssStyles:W}=t,H;if(t.look==="handDrawn"){let J=g.svg(o).path(P,Vt(t,{}));if(H=o.insert(()=>J,":first-child").attr("class","basic label-container"),W)H.attr("style",W)}else H=o.insert("path",":first-child").attr("d",P).attr("class","basic label-container").attr("style",s);if(t.look==="handDrawn")N(t,H);else N(t,H,{width:d,height:b});let V=v+f+T/2;return c.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${V-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(Q){return S.polygon(t,E,Q)},o}e(wm,"folder");function Bm(r,t,{dir:i,config:{state:s,themeVariables:o}}){let{nodeStyles:a}=C(t);t.label="";let c=r.insert("g").attr("class",re(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,d=Math.max(70,t?.width??0),x=Math.max(10,t?.height??0);if(i==="LR"||i==="RL")d=Math.max(10,t?.width??0),x=Math.max(70,t?.height??0);let f=-1*d/2,b=-1*x/2,T=g.svg(c),w=Vt(t,{stroke:o.lineColor,fill:o.lineColor});if(t.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let v=T.rectangle(f,b,d,x,w),E=c.insert(()=>v,":first-child");if(l&&t.look!=="handDrawn")E.selectAll("path").attr("style",l);if(a&&t.look!=="handDrawn")E.selectAll("path").attr("style",a);N(t,E);let P=s?.padding??0;if(t.width&&t.height)t.width+=P/2||0,t.height+=P/2||0;return t.intersect=function(W){return S.rect(t,W)},c}e(Bm,"forkJoin");async function _m(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=15,a=10,c=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;if(t.width||t.height){if(t.height=(t?.height??0)-l*2,t.height<a)t.height=a;if(t.width=(t?.width??0)-c*2,t.width<o)t.width=o}let{shapeSvg:d,bbox:x}=await U(r,t,re(t)),f=(t?.height?t?.height:Math.max(a,x.height))+l*2,b=f/2,T=b-Math.sqrt(Math.max(0,b**2-(x.height/2)**2)),w=(t?.width?t?.width:Math.max(o,x.width)+T*2)+c*2,{cssStyles:v}=t,E=g.svg(d),P=Vt(t,{});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let W=[{x:-w/2,y:-f/2},{x:w/2-b,y:-f/2},...di(-w/2+b,0,b,50,90,270),{x:w/2-b,y:f/2},{x:-w/2,y:f/2}],H=Ee(W),V=E.path(H,P),Q=d.insert(()=>V,":first-child");if(Q.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn")Q.selectChildren("path").attr("style",v);if(s&&t.look!=="handDrawn")Q.selectChildren("path").attr("style",s);return N(t,Q),t.intersect=function(J){return n.info("Pill intersect",t,{radius:b,point:J}),S.polygon(t,W,J)},d}e(_m,"halfRoundedRectangle");var G2=e((r,t,i,s,o)=>[`M${r+o},${t}`,`L${r+i-o},${t}`,`L${r+i},${t-s/2}`,`L${r+i-o},${t-s}`,`L${r+o},${t-s}`,`L${r},${t-s/2}`,"Z"].join(" "),"createHexagonPathD");async function vm(r,t){let{labelStyles:i,nodeStyles:s}=C(t),o=t.look==="neo"?3.5:4;t.labelStyle=i;let a=t.padding??0,c=70,l=32,d=t.look==="neo"?c:a,x=t.look==="neo"?l:a;if(t.width||t.height){let V=(t.height??0)/o;t.width=(t?.width??0)-2*V-x,t.height=(t.height??0)-d}let{shapeSvg:f,bbox:b}=await U(r,t,re(t)),T=(t?.height?t?.height:b.height)+d,w=T/o,v=(t?.width?t?.width:b.width)+2*w+x,E=[{x:w,y:0},{x:v-w,y:0},{x:v,y:-T/2},{x:v-w,y:-T},{x:w,y:-T},{x:0,y:-T/2}],P,{cssStyles:W}=t;if(t.look==="handDrawn"){let H=g.svg(f),V=Vt(t,{}),Q=G2(0,0,v,T,w),J=H.path(Q,V);if(P=f.insert(()=>J,":first-child").attr("transform",`translate(${-v/2}, ${T/2})`),W)P.attr("style",W)}else P=fi(f,v,T,E);if(s)P.attr("style",s);return t.width=v,t.height=T,N(t,P),t.intersect=function(H){return S.polygon(t,E,H)},f}e(vm,"hexagon");async function Lm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.label="",t.labelStyle=i;let{shapeSvg:o}=await U(r,t,re(t)),a=Math.max(30,t?.width??0),c=Math.max(30,t?.height??0),{cssStyles:l}=t,d=g.svg(o),x=Vt(t,{});if(t.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let f=[{x:0,y:0},{x:a,y:0},{x:0,y:c},{x:a,y:c}],b=Ee(f),T=d.path(b,x),w=o.insert(()=>T,":first-child");if(w.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn")w.selectChildren("path").attr("style",l);if(s&&t.look!=="handDrawn")w.selectChildren("path").attr("style",s);return w.attr("transform",`translate(${-a/2}, ${-c/2})`),N(t,w),t.intersect=function(v){return n.info("Pill intersect",t,{points:f}),S.polygon(t,f,v)},o}e(Lm,"hourglass");async function Am(r,t,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=C(t);t.labelStyle=o;let a=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(a,c),d=s?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:x,bbox:f,label:b}=await U(r,t,"icon-shape default"),T=t.pos==="t",w=l,v=l,{nodeBorder:E}=i,{stylesMap:P}=li(t),W=-v/2,H=-w/2,V=t.label?8:0,Q=g.svg(x),J=Vt(t,{stroke:"none",fill:"none"});if(t.look!=="handDrawn")J.roughness=0,J.fillStyle="solid";let st=Q.rectangle(W,H,v,w,J),lt=Math.max(v,f.width),pt=w+f.height+V,ft=Q.rectangle(-lt/2,-pt/2,lt,pt,{...J,fill:"transparent",stroke:"none"}),wt=x.insert(()=>st,":first-child"),_t=x.insert(()=>ft);if(t.icon){let xt=x.append("g");xt.html(`<g>${await nt(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let et=xt.node().getBBox(),{width:ot,height:bt,x:it,y:Lt}=et;xt.attr("transform",`translate(${-ot/2-it},${T?f.height/2+V/2-bt/2-Lt:-f.height/2-V/2-bt/2-Lt})`),xt.attr("style",`color: ${P.get("stroke")??E};`)}return b.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${T?-pt/2:pt/2-f.height})`),wt.attr("transform",`translate(0,${T?f.height/2+V/2:-f.height/2-V/2})`),N(t,_t),t.intersect=function(xt){if(n.info("iconSquare intersect",t,xt),!t.label)return S.rect(t,xt);let et=t.x??0,ot=t.y??0,bt=t.height??0,it=[];if(T)it=[{x:et-f.width/2,y:ot-bt/2},{x:et+f.width/2,y:ot-bt/2},{x:et+f.width/2,y:ot-bt/2+f.height+V},{x:et+v/2,y:ot-bt/2+f.height+V},{x:et+v/2,y:ot+bt/2},{x:et-v/2,y:ot+bt/2},{x:et-v/2,y:ot-bt/2+f.height+V},{x:et-f.width/2,y:ot-bt/2+f.height+V}];else it=[{x:et-v/2,y:ot-bt/2},{x:et+v/2,y:ot-bt/2},{x:et+v/2,y:ot-bt/2+w},{x:et+f.width/2,y:ot-bt/2+w},{x:et+f.width/2/2,y:ot+bt/2},{x:et-f.width/2,y:ot+bt/2},{x:et-f.width/2,y:ot-bt/2+w},{x:et-v/2,y:ot-bt/2+w}];return S.polygon(t,it,xt)},x}e(Am,"icon");async function Fm(r,t,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=C(t);t.labelStyle=o;let a=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(a,c),d=s?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:x,bbox:f,label:b}=await U(r,t,"icon-shape default"),T=20,w=t.label?8:0,v=t.pos==="t",{nodeBorder:E,mainBkg:P}=i,{stylesMap:W}=li(t),H=g.svg(x),V=Vt(t,{});if(t.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Q=W.get("fill");V.stroke=Q??P;let J=x.append("g");if(t.icon)J.html(`<g>${await nt(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let st=J.node().getBBox(),{width:lt,height:pt,x:ft,y:wt}=st,_t=Math.max(lt,pt)*Math.SQRT2+T*2,xt=H.circle(0,0,_t,V),et=Math.max(_t,f.width),ot=_t+f.height+w,bt=H.rectangle(-et/2,-ot/2,et,ot,{...V,fill:"transparent",stroke:"none"}),it=x.insert(()=>xt,":first-child"),Lt=x.insert(()=>bt);return J.attr("transform",`translate(${-lt/2-ft},${v?f.height/2+w/2-pt/2-wt:-f.height/2-w/2-pt/2-wt})`),J.attr("style",`color: ${W.get("stroke")??E};`),b.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${v?-ot/2:ot/2-f.height})`),it.attr("transform",`translate(0,${v?f.height/2+w/2:-f.height/2-w/2})`),N(t,Lt),t.intersect=function(Et){return n.info("iconSquare intersect",t,Et),S.rect(t,Et)},x}e(Fm,"iconCircle");async function Mm(r,t,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=C(t);t.labelStyle=o;let a=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(a,c),d=s?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:x,bbox:f,halfPadding:b,label:T}=await U(r,t,"icon-shape default"),w=t.pos==="t",v=l+b*2,E=l+b*2,{nodeBorder:P,mainBkg:W}=i,{stylesMap:H}=li(t),V=-E/2,Q=-v/2,J=t.label?8:0,st=g.svg(x),lt=Vt(t,{});if(t.look!=="handDrawn")lt.roughness=0,lt.fillStyle="solid";let pt=H.get("fill");lt.stroke=pt??W;let ft=st.path(Fr(V,Q,E,v,5),lt),wt=Math.max(E,f.width),_t=v+f.height+J,xt=st.rectangle(-wt/2,-_t/2,wt,_t,{...lt,fill:"transparent",stroke:"none"}),et=x.insert(()=>ft,":first-child").attr("class","icon-shape2"),ot=x.insert(()=>xt);if(t.icon){let bt=x.append("g");bt.html(`<g>${await nt(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=bt.node().getBBox(),{width:Lt,height:Et,x:yt,y:qt}=it;bt.attr("transform",`translate(${-Lt/2-yt},${w?f.height/2+J/2-Et/2-qt:-f.height/2-J/2-Et/2-qt})`),bt.attr("style",`color: ${H.get("stroke")??P};`)}return T.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${w?-_t/2:_t/2-f.height})`),et.attr("transform",`translate(0,${w?f.height/2+J/2:-f.height/2-J/2})`),N(t,ot),t.intersect=function(bt){if(n.info("iconSquare intersect",t,bt),!t.label)return S.rect(t,bt);let it=t.x??0,Lt=t.y??0,Et=t.height??0,yt=[];if(w)yt=[{x:it-f.width/2,y:Lt-Et/2},{x:it+f.width/2,y:Lt-Et/2},{x:it+f.width/2,y:Lt-Et/2+f.height+J},{x:it+E/2,y:Lt-Et/2+f.height+J},{x:it+E/2,y:Lt+Et/2},{x:it-E/2,y:Lt+Et/2},{x:it-E/2,y:Lt-Et/2+f.height+J},{x:it-f.width/2,y:Lt-Et/2+f.height+J}];else yt=[{x:it-E/2,y:Lt-Et/2},{x:it+E/2,y:Lt-Et/2},{x:it+E/2,y:Lt-Et/2+v},{x:it+f.width/2,y:Lt-Et/2+v},{x:it+f.width/2/2,y:Lt+Et/2},{x:it-f.width/2,y:Lt+Et/2},{x:it-f.width/2,y:Lt-Et/2+v},{x:it-E/2,y:Lt-Et/2+v}];return S.polygon(t,yt,bt)},x}e(Mm,"iconRounded");async function Em(r,t,{config:{themeVariables:i,flowchart:s}}){let{labelStyles:o}=C(t);t.labelStyle=o;let a=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(a,c),d=s?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:x,bbox:f,halfPadding:b,label:T}=await U(r,t,"icon-shape default"),w=t.pos==="t",v=l+b*2,E=l+b*2,{nodeBorder:P,mainBkg:W}=i,{stylesMap:H}=li(t),V=-E/2,Q=-v/2,J=t.label?8:0,st=g.svg(x),lt=Vt(t,{});if(t.look!=="handDrawn")lt.roughness=0,lt.fillStyle="solid";let pt=H.get("fill");lt.stroke=pt??W;let ft=st.path(Fr(V,Q,E,v,0.1),lt),wt=Math.max(E,f.width),_t=v+f.height+J,xt=st.rectangle(-wt/2,-_t/2,wt,_t,{...lt,fill:"transparent",stroke:"none"}),et=x.insert(()=>ft,":first-child"),ot=x.insert(()=>xt);if(t.icon){let bt=x.append("g");bt.html(`<g>${await nt(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let it=bt.node().getBBox(),{width:Lt,height:Et,x:yt,y:qt}=it;bt.attr("transform",`translate(${-Lt/2-yt},${w?f.height/2+J/2-Et/2-qt:-f.height/2-J/2-Et/2-qt})`),bt.attr("style",`color: ${H.get("stroke")??P};`)}return T.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${w?-_t/2:_t/2-f.height})`),et.attr("transform",`translate(0,${w?f.height/2+J/2:-f.height/2-J/2})`),N(t,ot),t.intersect=function(bt){if(n.info("iconSquare intersect",t,bt),!t.label)return S.rect(t,bt);let it=t.x??0,Lt=t.y??0,Et=t.height??0,yt=[];if(w)yt=[{x:it-f.width/2,y:Lt-Et/2},{x:it+f.width/2,y:Lt-Et/2},{x:it+f.width/2,y:Lt-Et/2+f.height+J},{x:it+E/2,y:Lt-Et/2+f.height+J},{x:it+E/2,y:Lt+Et/2},{x:it-E/2,y:Lt+Et/2},{x:it-E/2,y:Lt-Et/2+f.height+J},{x:it-f.width/2,y:Lt-Et/2+f.height+J}];else yt=[{x:it-E/2,y:Lt-Et/2},{x:it+E/2,y:Lt-Et/2},{x:it+E/2,y:Lt-Et/2+v},{x:it+f.width/2,y:Lt-Et/2+v},{x:it+f.width/2/2,y:Lt+Et/2},{x:it-f.width/2,y:Lt+Et/2},{x:it-f.width/2,y:Lt-Et/2+v},{x:it-E/2,y:Lt-Et/2+v}];return S.polygon(t,yt,bt)},x}e(Em,"iconSquare");async function Om(r,t,{config:{flowchart:i}}){let s=new Image;s.src=t?.img??"",await s.decode();let o=Number(s.naturalWidth.toString().replace("px","")),a=Number(s.naturalHeight.toString().replace("px",""));t.imageAspectRatio=o/a;let{labelStyles:c}=C(t);t.labelStyle=c;let l=i?.wrappingWidth;t.defaultWidth=i?.wrappingWidth;let d=Math.max(t.label?l??0:0,t?.assetWidth??o),x=t.constraint==="on"?t?.assetHeight?t.assetHeight*t.imageAspectRatio:d:d,f=t.constraint==="on"?x/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(x,l??0);let{shapeSvg:b,bbox:T,label:w}=await U(r,t,"image-shape default"),v=t.pos==="t",E=-x/2,P=-f/2,W=t.label?8:0,H=g.svg(b),V=Vt(t,{});if(t.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let Q=H.rectangle(E,P,x,f,V),J=Math.max(x,T.width),st=f+T.height+W,lt=H.rectangle(-J/2,-st/2,J,st,{...V,fill:"none",stroke:"none"}),pt=b.insert(()=>Q,":first-child"),ft=b.insert(()=>lt);if(t.img){let wt=b.append("image");wt.attr("href",t.img),wt.attr("width",x),wt.attr("height",f),wt.attr("preserveAspectRatio","none"),wt.attr("transform",`translate(${-x/2},${v?st/2-f:-st/2})`)}return w.attr("transform",`translate(${-T.width/2-(T.x-(T.left??0))},${v?-f/2-T.height/2-W/2:f/2-T.height/2+W/2})`),pt.attr("transform",`translate(0,${v?T.height/2+W/2:-T.height/2-W/2})`),N(t,ft),t.intersect=function(wt){if(n.info("iconSquare intersect",t,wt),!t.label)return S.rect(t,wt);let _t=t.x??0,xt=t.y??0,et=t.height??0,ot=[];if(v)ot=[{x:_t-T.width/2,y:xt-et/2},{x:_t+T.width/2,y:xt-et/2},{x:_t+T.width/2,y:xt-et/2+T.height+W},{x:_t+x/2,y:xt-et/2+T.height+W},{x:_t+x/2,y:xt+et/2},{x:_t-x/2,y:xt+et/2},{x:_t-x/2,y:xt-et/2+T.height+W},{x:_t-T.width/2,y:xt-et/2+T.height+W}];else ot=[{x:_t-x/2,y:xt-et/2},{x:_t+x/2,y:xt-et/2},{x:_t+x/2,y:xt-et/2+f},{x:_t+T.width/2,y:xt-et/2+f},{x:_t+T.width/2/2,y:xt+et/2},{x:_t-T.width/2,y:xt+et/2},{x:_t-T.width/2,y:xt-et/2+f},{x:_t-x/2,y:xt-et/2+f}];return S.polygon(t,ot,wt)},b}e(Om,"imageSquare");async function Im(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=o,c=t.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=Math.max(d.height+a*2,t.height??0),f=Math.max(d.width+c*2,(t.width??0)-x),b=[{x:0,y:0},{x:f,y:0},{x:f+3*x/6,y:-x},{x:-3*x/6,y:-x}],T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(l),E=Vt(t,{}),P=Ee(b),W=v.path(P,E);if(T=l.insert(()=>W,":first-child").attr("transform",`translate(${-f/2}, ${x/2})`),w)T.attr("style",w)}else T=fi(l,f,x,b);if(s)T.attr("style",s);return t.width=f,t.height=x,N(t,T),t.intersect=function(v){return S.polygon(t,b,v)},l}e(Im,"inv_trapezoid");async function $m(r,t){let{shapeSvg:i,bbox:s,label:o}=await U(r,t,"label"),a=i.insert("rect",":first-child"),c=0.1,l=0.1;return a.attr("width",0.1).attr("height",0.1),i.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),N(t,a),t.intersect=function(d){return S.rect(t,d)},i}e($m,"labelRect");async function Dm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=o,c=t.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=Math.max(d.height+a,t.height??0),f=Math.max(d.width+c,(t.width??0)-x),b=[{x:0,y:0},{x:f+3*x/6,y:0},{x:f,y:-x},{x:-(3*x)/6,y:-x}],T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(l),E=Vt(t,{}),P=Ee(b),W=v.path(P,E);if(T=l.insert(()=>W,":first-child").attr("transform",`translate(${-f/2}, ${x/2})`),w)T.attr("style",w)}else T=fi(l,f,x,b);if(s)T.attr("style",s);return t.width=f,t.height=x,N(t,T),t.intersect=function(v){return S.polygon(t,b,v)},l}e(Dm,"lean_left");async function Pm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=o,c=t.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=Math.max(d.height+a,t.height??0),f=Math.max(d.width+c,(t.width??0)-x),b=[{x:-3*x/6,y:0},{x:f,y:0},{x:f+3*x/6,y:-x},{x:0,y:-x}],T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(l),E=Vt(t,{}),P=Ee(b),W=v.path(P,E);if(T=l.insert(()=>W,":first-child").attr("transform",`translate(${-f/2}, ${x/2})`),w)T.attr("style",w)}else T=fi(l,f,x,b);if(s)T.attr("style",s);return t.width=f,t.height=x,N(t,T),t.intersect=function(v){return S.polygon(t,b,v)},l}e(Pm,"lean_right");function Rm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.label="",t.labelStyle=i;let o=r.insert("g").attr("class",re(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,c=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),d=7,x=[{x:c,y:0},{x:0,y:l+d/2},{x:c-2*d,y:l+d/2},{x:0,y:2*l},{x:c,y:l-d/2},{x:2*d,y:l-d/2}],f=g.svg(o),b=Vt(t,{});if(t.look!=="handDrawn")b.roughness=0,b.fillStyle="solid";let T=Ee(x),w=f.path(T,b),v=o.insert(()=>w,":first-child");if(v.attr("class","outer-path"),a&&t.look!=="handDrawn")v.selectAll("path").attr("style",a);if(s&&t.look!=="handDrawn")v.selectAll("path").attr("style",s);return v.attr("transform",`translate(-${c/2},${-l})`),N(t,v),t.intersect=function(E){return n.info("lightningBolt intersect",t,E),S.polygon(t,x,E)},o}e(Rm,"lightningBolt");var X2=e((r,t,i,s,o,a,c)=>[`M${r},${t+a}`,`a${o},${a} 0,0,0 ${i},0`,`a${o},${a} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${a} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${t+a+c}`,`a${o},${a} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),V2=e((r,t,i,s,o,a,c)=>[`M${r},${t+a}`,`M${r+i},${t+a}`,`a${o},${a} 0,0,0 ${-i},0`,`l0,${s}`,`a${o},${a} 0,0,0 ${i},0`,`l0,${-s}`,`M${r},${t+a+c}`,`a${o},${a} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),K2=e((r,t,i,s,o,a)=>[`M${r-i/2},${-s/2}`,`a${o},${a} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD"),vg=10,Lg=10;async function Nm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?24:o;if(t.width||t.height){let W=t.width??0;if(t.width=(t.width??0)-a,t.width<Lg)t.width=Lg;let V=W/2/(2.5+W/50);if(t.height=(t.height??0)-c-V*3,t.height<vg)t.height=vg}let{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=(t?.width?t?.width:d.width)+a*2,b=f/2,T=b/(2.5+f/50),w=(t?.height?t?.height:d.height)+T+c*2,v=w*0.1,E,{cssStyles:P}=t;if(t.look==="handDrawn"){let W=g.svg(l),H=V2(0,0,f,w,b,T,v),V=K2(0,T,f,w,b,T),Q=Vt(t,{}),J=W.path(H,Q),st=W.path(V,Q);if(l.insert(()=>st,":first-child").attr("class","line"),E=l.insert(()=>J,":first-child"),E.attr("class","basic label-container"),P)E.attr("style",P)}else{let W=X2(0,0,f,w,b,T,v);E=l.insert("path",":first-child").attr("d",W).attr("class","basic label-container outer-path").attr("style",He(P)).attr("style",s)}return E.attr("label-offset-y",T),E.attr("transform",`translate(${-f/2}, ${-(w/2+T)})`),N(t,E),x.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+T-(d.y-(d.top??0))})`),t.intersect=function(W){let H=S.rect(t,W),V=H.x-(t.x??0);if(b!=0&&(Math.abs(V)<(t.width??0)/2||Math.abs(V)==(t.width??0)/2&&Math.abs(H.y-(t.y??0))>(t.height??0)/2-T)){let Q=T*T*(1-V*V/(b*b));if(Q>0)Q=Math.sqrt(Q);if(Q=T-Q,W.y-(t.y??0)>0)Q=-Q;H.y+=Q}return H},l}e(Nm,"linedCylinder");async function qm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o;if(t.width||t.height){let Q=t.width;if(t.width=(Q??0)*10/11-a*2,t.width<10)t.width=10;if(t.height=(t?.height??0)-c*2,t.height<10)t.height=10}let{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=(t?.width?t?.width:d.width)+(a??0)*2,b=(t?.height?t?.height:d.height)+(c??0)*2,T=t.look==="neo"?b/4:b/8,w=b+T,{cssStyles:v}=t,E=g.svg(l),P=Vt(t,{});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let W=[{x:-f/2-f/2*0.1,y:-w/2},{x:-f/2-f/2*0.1,y:w/2},...Wi(-f/2-f/2*0.1,w/2,f/2+f/2*0.1,w/2,T,0.8),{x:f/2+f/2*0.1,y:-w/2},{x:-f/2-f/2*0.1,y:-w/2},{x:-f/2,y:-w/2},{x:-f/2,y:w/2*1.1},{x:-f/2,y:-w/2}],H=E.polygon(W.map((Q)=>[Q.x,Q.y]),P),V=l.insert(()=>H,":first-child");if(V.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn")V.selectAll("path").attr("style",v);if(s&&t.look!=="handDrawn")V.selectAll("path").attr("style",s);return V.attr("transform",`translate(0,${-T/2})`),x.attr("transform",`translate(${-f/2+(t.padding??0)+f/2*0.1/2-(d.x-(d.left??0))},${-b/2+(t.padding??0)-T-(d.y-(d.top??0))})`),N(t,V),t.intersect=function(Q){return S.polygon(t,W,Q)},l}e(qm,"linedWaveEdgedRect");var Z2=56,qc=72,Ag=8,Fg=2,Q2=8,J2={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},Mg=Math.PI/3,Eg=0.6,Wc=e((r,t)=>{let i=t*Eg,s=t*Math.sqrt(1-Eg**2),o=Math.cos(Mg),a=-Math.sin(Mg),c=i*-a,l=r+i*o,d=s*o,x=s*a;return`M ${c-d} ${l-x} L ${c+d} ${l+x}`},"businessMarkerPathForCircle");var tS={normal:Wc(-24,12),hollow:Wc(-23,9),awesome:Wc(-21,13),icon:"M 12 -8 L 26 -26"},Og=e((r,t,i)=>{let s=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${i-t.height/2-o})`)},"positionLabel"),tu=e((r,t,i,s,o=!1)=>{if(t.look==="handDrawn"){let l=g.svg(r).path(i,Vt(t,o?{fill:"none"}:{}));return r.insert(()=>l,":first-child").attr("class",s)}let a=r.append("path").attr("class",s).attr("d",i);if(o)a.attr("fill","none");return a},"appendActorPath"),eS=e((r,t,i,s,o,a,c=!1)=>{if(t.look==="handDrawn"){let x=g.svg(r).circle(i,s,o*2,Vt(t,c?{fill:"none"}:{}));return r.insert(()=>x,":first-child").attr("class",a)}let l=r.append("circle").attr("class",a).attr("cx",i).attr("cy",s).attr("r",o);if(c)l.attr("fill","none");return l},"appendActorCircle"),rS=e((r,t,i)=>{if(!t.business)return;r.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",tS[i]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function Zs(r,t,i,s){let{labelStyles:o,nodeStyles:a}=C(t);t.labelStyle=o;let c=i==="icon"||t.stereotype!==void 0?{...t,icon:i==="icon"?void 0:t.icon,stereotype:void 0}:t,{shapeSvg:l,bbox:d,label:x}=await U(r,c,re(t,`usecase-actor-variant usecase-actor-${i}`)),f=t.accessibleName??t.label;if(f)l.attr("role","img").attr("aria-label",f);x.attr("class","label actor-label usecase-actor-label");let{theme:b,themeVariables:T}=u();rt(l,t.colorIndex,b,T.borderColorArray);let w,v;if(t.stereotype){let pt=await Fo(l,`«${t.stereotype}»`,{labelStyle:o,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});w=pt.label.attr("class","label usecase-stereotype"),v=pt.bbox}let E=l.append("g").attr("class",`usecase-actor-glyph ${J2[i]}`).attr("style",a||null);await s(E,t),rS(E,t,i);let P=t.padding??Q2,W=v?.height??0,H=qc+Ag+d.height+(v?W+Fg:0),V=Math.max(Z2,d.width,v?.width??0)+P*2,Q=H+P*2,J=-H/2;E.attr("transform",`translate(0,${J+qc/2})`);let st=J+qc+Ag;if(w&&v)st+=W/2,Og(w,v,st),st+=W/2+Fg;Og(x,d,st+d.height/2);let lt=l.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-V/2).attr("y",-Q/2).attr("width",V).attr("height",Q).attr("opacity",0).attr("aria-hidden","true");return N(t,lt),t.intersect=(pt)=>S.rect(t,pt),l}e(Zs,"renderUsecaseActor");var iS=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function Wm(r,t){return Zs(r,t,"normal",(i,s)=>{tu(i,s,iS,"usecase-actor-stick")})}e(Wm,"usecaseActor");var oS=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function zm(r,t){return Zs(r,t,"awesome",(i,s)=>{tu(i,s,oS,"usecase-actor-awesome-silhouette")})}e(zm,"usecaseActorAwesome");var sS=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Hm(r,t){return Zs(r,t,"hollow",(i,s)=>{eS(i,s,0,-23,9,"usecase-actor-hollow-head",!0),tu(i,s,sS,"usecase-actor-hollow-body",!0)})}e(Hm,"usecaseActorHollow");var Ko=52,Ig=42,$g=-2,aS=e(async(r,t)=>{let i=-Ko/2,s=$g-Ko/2;if(t.look==="handDrawn"){let f=g.svg(r).rectangle(i,s,Ko,Ko,Vt(t,{}));r.insert(()=>f,":first-child").attr("class","usecase-actor-icon-frame")}else r.append("rect").attr("class","usecase-actor-icon-frame").attr("x",i).attr("y",s).attr("width",Ko).attr("height",Ko).attr("rx",4).attr("ry",4);let o=t.icon??"",a=await Tn(o.includes(":")?o:`fa:${o}`),c=await nt(o,{height:Ig,width:Ig,fallbackPrefix:"fa"}),l=r.append("g").attr("class",`usecase-actor-icon-symbol${a?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${c}</g>`),d=l.node()?.getBBox();if(d)l.attr("transform",`translate(${-d.width/2-d.x},${$g-d.height/2-d.y})`)},"drawIconActor");async function Ym(r,t){return Zs(r,t,"icon",aS)}e(Ym,"usecaseActorIcon");var Dg=e((r,t,i)=>{let s=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${i-t.height/2-o})`)},"positionLabel");async function Um(r,t){let i=t,{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let a=i.stereotype?{...t,stereotype:void 0}:t,{shapeSvg:c,bbox:l,halfPadding:d,label:x}=await U(r,a,re(t,"usecase-business-shape"));x.attr("class","label usecase-label");let{theme:f,themeVariables:b}=u();rt(c,t.colorIndex,f,b.borderColorArray);let T,w;if(i.stereotype){let et=await Fo(c,`«${i.stereotype}»`,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});T=et.label.attr("class","label usecase-stereotype"),w=et.bbox}let v=w?2:0,E=l.height+(w?.height??0)+v,P=Math.max(l.width,w?.width??0),W=d??10,H=P/2+W*2,V=E/2+W*2,Q=Math.min(Math.max(W/5,1),W/2),J=P/2+Q,st=H-Q,lt=J/H,pt=st/H,ft=V*Math.sqrt(Math.max(0,1-lt*lt)),wt=-V*Math.sqrt(Math.max(0,1-pt*pt));if(T&&w)Dg(T,w,-E/2+w.height/2);Dg(x,l,E/2-l.height/2);let _t;if(t.look==="handDrawn"){let ot=g.svg(c).ellipse(0,0,H*2,V*2,Vt(t,{}));_t=c.insert(()=>ot,":first-child").attr("class","basic label-container usecase-business-ellipse")}else _t=c.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",H).attr("ry",V).attr("cx",0).attr("cy",0);c.append("path").attr("class","usecase-business-marker").attr("d",`M ${J} ${ft} L ${st} ${wt}`).attr("fill","none").attr("style",o||null);let xt=i.accessibleName??i.label;if(xt)c.attr("role","img").attr("aria-label",xt);return N(t,_t),t.calcIntersect=(et,ot)=>S.ellipse(et,et.width/2,et.height/2,ot),t.intersect=(et)=>S.ellipse(t,H,V,et),c}e(Um,"usecaseBusiness");var zc=8,Pg=4,nS=1,Hc=e((r,t,i,s)=>{let o=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);r.attr("transform",`translate(${i-t.width/2-o},${s-t.height/2-a})`)},"positionLabel"),lS=e((r)=>{let t=Number.parseFloat(r??"");return Number.isFinite(t)&&t>=0?t:nS},"numericStrokeWidth");async function jm(r,t){let i=t,{labelStyles:s,nodeStyles:o}=C(t),{stylesMap:a}=li(t);t.labelStyle=s;let{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t,"usecase-json-table"));if(c.attr("role","img"),i.accessibleName)c.attr("aria-label",i.accessibleName);d.attr("class","label usecase-json-title");let x=c.append("g").attr("class","usecase-json-table-grid"),f=[];for(let et of i.jsonRows??[]){let ot=await Fo(x,et.key,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),bt=await Fo(x,et.value,{labelStyle:s,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});f.push({key:{label:ot.label.attr("class","label usecase-json-key"),bbox:ot.bbox},value:{label:bt.label.attr("class","label usecase-json-value"),bbox:bt.bbox}})}let b=Math.max(0,...f.map(({key:et})=>et.bbox.width))+zc*2,T=Math.max(0,...f.map(({value:et})=>et.bbox.width))+zc*2,w=l.width+zc*2,v=Math.max(w,b+T),E=T+Math.max(0,v-b-T),P=l.height+Pg*2,W=f.map(({key:et,value:ot})=>Math.max(et.bbox.height,ot.bbox.height)+Pg*2),H=P+W.reduce((et,ot)=>et+ot,0),V=lS(a.get("stroke-width")),Q=v+V*2,J=H+V*2,st=-v/2,lt=-H/2,pt=t.look==="handDrawn"?g.svg(c):void 0,ft=pt?Vt(t,{}):void 0,wt=e((et,ot,bt,it,Lt,Et)=>{if(pt&&ft){let yt=pt.rectangle(bt,it,Lt,Et,ft);return et.insert(()=>yt,":first-child").attr("class",ot)}return et.insert("rect",":first-child").attr("class",ot).attr("x",bt).attr("y",it).attr("width",Lt).attr("height",Et).attr("style",o)},"insertCell"),_t=wt(c,"label-container usecase-json-border",-Q/2,-J/2,Q,J);wt(x,"usecase-json-cell usecase-json-title-cell",st,lt,v,P),x.node()?.append(d.node()),Hc(d,l,0,lt+P/2);let xt=lt+P;return f.forEach(({key:et,value:ot},bt)=>{let it=W[bt],Lt=x.append("g").attr("class","usecase-json-row").attr("data-row-index",bt).attr("transform",`translate(0,${xt})`);wt(Lt,"usecase-json-cell usecase-json-key-cell",st,0,b,it),wt(Lt,"usecase-json-cell usecase-json-value-cell",st+b,0,E,it),Lt.node()?.append(et.label.node(),ot.label.node()),Hc(et.label,et.bbox,st+b/2,it/2),Hc(ot.label,ot.bbox,st+b+E/2,it/2),xt+=it}),N(t,_t),t.intersect=(et)=>S.rect(t,et),c}e(jm,"usecaseJsonTable");async function Gm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o,l=t.look==="neo"?10:5;if(t.width||t.height)t.width=Math.max((t?.width??0)-a*2-2*l,10),t.height=Math.max((t?.height??0)-c*2-2*l,10);let{shapeSvg:d,bbox:x,label:f}=await U(r,t,re(t)),b=(t?.width?t?.width:x.width)+a*2+2*l,T=(t?.height?t?.height:x.height)+c*2+2*l,w=b-2*l,v=T-2*l,E=-w/2,P=-v/2,{cssStyles:W}=t,H=g.svg(d),V=Vt(t,{}),Q=[{x:E-l,y:P+l},{x:E-l,y:P+v+l},{x:E+w-l,y:P+v+l},{x:E+w-l,y:P+v},{x:E+w,y:P+v},{x:E+w,y:P+v-l},{x:E+w+l,y:P+v-l},{x:E+w+l,y:P-l},{x:E+l,y:P-l},{x:E+l,y:P},{x:E,y:P},{x:E,y:P+l}],J=[{x:E,y:P+l},{x:E+w-l,y:P+l},{x:E+w-l,y:P+v},{x:E+w,y:P+v},{x:E+w,y:P},{x:E,y:P}];if(t.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let st=Ee(Q),lt=H.path(st,V),pt=Ee(J),ft=H.path(pt,V);if(t.look!=="handDrawn")lt=Uc(lt),ft=Uc(ft);let wt=d.insert("g",":first-child");if(wt.insert(()=>lt),wt.insert(()=>ft),wt.attr("class","basic label-container outer-path"),W&&t.look!=="handDrawn")wt.selectAll("path").attr("style",W);if(s&&t.look!=="handDrawn")wt.selectAll("path").attr("style",s);return f.attr("transform",`translate(${-(x.width/2)-l-(x.x-(x.left??0))}, ${-(x.height/2)+l-(x.y-(x.top??0))})`),N(t,wt),t.intersect=function(_t){return S.polygon(t,Q,_t)},d}e(Gm,"multiRect");async function Xm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=t.padding??0,d=t.look==="neo"?16:l,x=t.look==="neo"?12:l,f=!0;if(t.width||t.height)f=!1,t.width=(t?.width??0)-d*2,t.height=(t?.height??0)-x*3;let b=Math.max(a.width,t?.width??0)+d*2,T=Math.max(a.height,t?.height??0)+x*3,w=t.look==="neo"?T/4:T/8,v=T+(f?w/2:-w/2),E=-b/2,P=-v/2,W=10,{cssStyles:H}=t,V=Wi(E-W,P+v+W,E+b-W,P+v+W,w,0.8),Q=V?.[V.length-1],J=[{x:E-W,y:P+W},{x:E-W,y:P+v+W},...V,{x:E+b-W,y:Q.y-W},{x:E+b,y:Q.y-W},{x:E+b,y:Q.y-2*W},{x:E+b+W,y:Q.y-2*W},{x:E+b+W,y:P-W},{x:E+W,y:P-W},{x:E+W,y:P},{x:E,y:P},{x:E,y:P+W}],st=[{x:E,y:P+W},{x:E+b-W,y:P+W},{x:E+b-W,y:Q.y-W},{x:E+b,y:Q.y-W},{x:E+b,y:P},{x:E,y:P}],lt=g.svg(o),pt=Vt(t,{});if(t.look!=="handDrawn")pt.roughness=0,pt.fillStyle="solid";let ft=Ee(J),wt=lt.path(ft,pt),_t=Ee(st),xt=lt.path(_t,pt),et=o.insert(()=>wt,":first-child");if(et.insert(()=>xt),et.attr("class","basic label-container outer-path"),H&&t.look!=="handDrawn")et.selectAll("path").attr("style",H);if(s&&t.look!=="handDrawn")et.selectAll("path").attr("style",s);return et.attr("transform",`translate(0,${-w/2})`),c.attr("transform",`translate(${-(a.width/2)-W-(a.x-(a.left??0))}, ${-(a.height/2)+W-w-(a.y-(a.top??0))})`),N(t,et),t.intersect=function(ot){return S.polygon(t,J,ot)},o}e(Xm,"multiWaveEdgedRectangle");async function Vm(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);if(t.labelStyle=s,!(t.useHtmlLabels||Ne(k())))t.centerLabel=!0;let{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=Math.max(l.width+(t.padding??0)*2,t?.width??0),f=Math.max(l.height+(t.padding??0)*2,t?.height??0),b=-x/2,T=-f/2,{cssStyles:w}=t,v=g.svg(c),E=Vt(t,{fill:i.noteBkgColor,stroke:i.noteBorderColor});if(t.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let P=v.rectangle(b,T,x,f,E),W=c.insert(()=>P,":first-child");if(W.attr("class","basic label-container outer-path"),d.attr("class","label noteLabel"),w&&t.look!=="handDrawn")W.selectAll("path").attr("style",w);if(o&&t.look!=="handDrawn")W.selectAll("path").attr("style",o);return d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),N(t,W),t.intersect=function(H){return S.rect(t,H)},c}e(Vm,"note");var hS=e((r,t,i)=>[`M${r+i/2},${t}`,`L${r+i},${t-i/2}`,`L${r+i/2},${t-i}`,`L${r},${t-i/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Km(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a}=await U(r,t,re(t)),c=a.width+(t.padding??0),l=a.height+(t.padding??0),d=c+l,x=0.5,f=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],b,{cssStyles:T}=t;if(t.look==="handDrawn"){let w=g.svg(o),v=Vt(t,{}),E=hS(0,0,d),P=w.path(E,v);if(b=o.insert(()=>P,":first-child").attr("transform",`translate(${-d/2+x}, ${d/2})`),T)b.attr("style",T)}else b=fi(o,d,d,f),b.attr("transform",`translate(${-d/2+x}, ${d/2})`);if(s)b.attr("style",s);return N(t,b),t.calcIntersect=function(w,v){let E=w.width,P=[{x:E/2,y:0},{x:E,y:-E/2},{x:E/2,y:-E},{x:0,y:-E/2}];return S.polygon(w,P,v)},t.intersect=function(w){return this.calcIntersect(t,w)},o}e(Km,"question");async function Zm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?21:o??0,c=t.look==="neo"?12:o??0,{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=d.width+(t.look==="neo"?a*2:a),b=Math.max(d.height+(t.look==="neo"?c*2:c),t.height??0),T=b/4,v=-Math.max(f,(t.width??0)-T)/2,E=-b/2,P=E/2,W=[{x:v+P,y:E},{x:v,y:0},{x:v+P,y:-E},{x:-v,y:-E},{x:-v,y:E}],{cssStyles:H}=t,V=g.svg(l),Q=Vt(t,{});if(t.look!=="handDrawn")Q.roughness=0,Q.fillStyle="solid";let J=Ee(W),st=V.path(J,Q),lt=l.insert(()=>st,":first-child");if(lt.attr("class","basic label-container outer-path"),H&&t.look!=="handDrawn")lt.selectAll("path").attr("style",H);if(s&&t.look!=="handDrawn")lt.selectAll("path").attr("style",s);return lt.attr("transform",`translate(${-P/2},0)`),x.attr("transform",`translate(${-P/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),N(t,lt),t.intersect=function(pt){return S.polygon(t,W,pt)},l}e(Zm,"rect_left_inv_arrow");async function Qm(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o;if(!t.cssClasses)o="node default";else o="node "+t.cssClasses;let a=r.insert("g").attr("class",o).attr("id",t.domId||t.id),c=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",s),{description:d,label:x}=t,f=await ei(l,x,t.labelStyle,!0,!0),b={width:0,height:0};if(Ne(u())){let pt=f.children[0],ft=m(f);b=pt.getBoundingClientRect(),ft.attr("width",b.width),ft.attr("height",b.height)}n.info("Text 2",d);let T=d||[],w=f.getBBox(),v=await ei(l,Array.isArray(T)?T.join("<br/>"):T,t.labelStyle,!0,!0),E=v.children[0],P=m(v);b=E.getBoundingClientRect(),P.attr("width",b.width),P.attr("height",b.height);let W=(t.padding||0)/2;m(v).attr("transform","translate( "+(b.width>w.width?0:(w.width-b.width)/2)+", "+(w.height+W+5)+")"),m(f).attr("transform","translate( "+(b.width<w.width?0:-(w.width-b.width)/2)+", 0)"),b=l.node().getBBox(),l.attr("transform","translate("+-b.width/2+", "+(-b.height/2-W+3)+")");let H=b.width+(t.padding||0),V=b.height+(t.padding||0),Q=-b.width/2-W,J=-b.height/2-W,st,lt;if(t.look==="handDrawn"){let pt=g.svg(a),ft=Vt(t,{}),wt=pt.path(Fr(Q,J,H,V,t.rx||0),ft),_t=pt.line(-b.width/2-W,-b.height/2-W+w.height+W,b.width/2+W,-b.height/2-W+w.height+W,ft);lt=a.insert(()=>(n.debug("Rough node insert CXC",wt),_t),":first-child"),st=a.insert(()=>(n.debug("Rough node insert CXC",wt),wt),":first-child")}else st=c.insert("rect",":first-child"),lt=c.insert("line"),st.attr("class","outer title-state").attr("style",s).attr("x",-b.width/2-W).attr("y",-b.height/2-W).attr("width",b.width+(t.padding||0)).attr("height",b.height+(t.padding||0)),lt.attr("class","divider").attr("x1",-b.width/2-W).attr("x2",b.width/2+W).attr("y1",-b.height/2-W+w.height+W).attr("y2",-b.height/2-W+w.height+W);return N(t,st),t.intersect=function(pt){return S.rect(t,pt)},a}e(Qm,"rectWithTitle");async function Jm(r,t,{config:{themeVariables:i}}){let s=i?.radius??5,o={rx:s,ry:s,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return is(r,t,o)}e(Jm,"roundedRect");var Ki=8;async function ty(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=(t?.width??l.width)+o*2+(t.look==="neo"?Ki:Ki*2),f=(t?.height??l.height)+a*2,b=x-Ki,T=f,w=Ki-x/2,v=-f/2,{cssStyles:E}=t,P=g.svg(c),W=Vt(t,{});if(t.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let H=[{x:w,y:v},{x:w+b,y:v},{x:w+b,y:v+T},{x:w-Ki,y:v+T},{x:w-Ki,y:v},{x:w,y:v},{x:w,y:v+T}],V=P.polygon(H.map((J)=>[J.x,J.y]),W),Q=c.insert(()=>V,":first-child");if(Q.attr("class","basic label-container outer-path").attr("style",He(E)),s&&t.look!=="handDrawn")Q.selectAll("path").attr("style",s);if(E&&t.look!=="handDrawn")Q.selectAll("path").attr("style",s);return d.attr("transform",`translate(${Ki/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),N(t,Q),t.intersect=function(J){return S.rect(t,J)},c}e(ty,"shadedProcess");async function ey(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o;if(t.width||t.height)t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-c*2,10);let{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=(t?.width?t?.width:d.width)+a*2,b=((t?.height?t?.height:d.height)+c*2)*1.5,T=f,w=b/1.5,v=-T/2,E=-w/2,{cssStyles:P}=t,W=g.svg(l),H=Vt(t,{});if(t.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let V=[{x:v,y:E},{x:v,y:E+w},{x:v+T,y:E+w},{x:v+T,y:E-w/2}],Q=Ee(V),J=W.path(Q,H),st=l.insert(()=>J,":first-child");if(st.attr("class","basic label-container outer-path"),P&&t.look!=="handDrawn")st.selectChildren("path").attr("style",P);if(s&&t.look!=="handDrawn")st.selectChildren("path").attr("style",s);return st.attr("transform",`translate(0, ${w/4})`),x.attr("transform",`translate(${-T/2+(t.padding??0)-(d.x-(d.left??0))}, ${-w/4+(t.padding??0)-(d.y-(d.top??0))})`),N(t,st),t.intersect=function(lt){return S.polygon(t,V,lt)},l}e(ey,"slopedRect");async function ry(r,t){let i=t.padding??0,s=t.look==="neo"?16:i*2,o=t.look==="neo"?12:i,a={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??s,labelPaddingY:o},c=await is(r,t,a);if(t.colorIndex!==void 0){let{theme:l,themeVariables:d}=u();rt(c,t.colorIndex,l,d.borderColorArray)}return c}e(ry,"squareRect");var Xc=50,cS=e((r,t,i)=>{let s=r.height+i,o=s*Math.cos(Math.PI/(2*(Xc-1))),a=Math.sqrt(Math.max(0,o**2-r.height**2));return{w:Math.max(r.width+s/4+t,1.5*s+(s-o),r.width+t+s-a),h:s}},"stadiumDimensions");async function iy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?40:o,c=t.look==="neo"?24:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),{w:x,h:f}=cS(d,a,c),b=f/2,{cssStyles:T}=t,w=g.svg(l),v=Vt(t,{});if(t.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let E=[{x:-x/2+b,y:-f/2},{x:x/2-b,y:-f/2},...di(-x/2+b,0,b,Xc,90,270),{x:x/2-b,y:f/2},...di(x/2-b,0,b,Xc,270,450)],P=Ee(E),W=w.path(P,v),H=l.insert(()=>W,":first-child");if(H.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn")H.selectChildren("path").attr("style",T);if(s&&t.look!=="handDrawn")H.selectChildren("path").attr("style",s);return N(t,H),t.intersect=function(V){return S.polygon(t,E,V)},l}e(iy,"stadium");async function oy(r,t){let i={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return is(r,t,i)}e(oy,"state");function sy(r,t,{config:{themeVariables:i}}){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{cssStyles:a}=t,{lineColor:c,stateBorder:l,nodeBorder:d,nodeShadow:x}=i;if(t.width||t.height){if((t.width??0)<14)t.width=14;if((t.height??0)<14)t.height=14}if(!t.width)t.width=14;if(!t.height)t.height=14;let f=r.insert("g").attr("class","node default").attr("id",t.domId??t.id),b=g.svg(f),T=Vt(t,{});if(t.look!=="handDrawn")T.roughness=0,T.fillStyle="solid";let w=b.circle(0,0,t.width,{...T,stroke:c,strokeWidth:2}),v=l??d,E=(t.width??0)*5/14,P=b.circle(0,0,E,{...T,fill:v,stroke:v,strokeWidth:2,fillStyle:"solid"}),W=f.insert(()=>w,":first-child");if(W.insert(()=>P),t.look!=="handDrawn")W.attr("class","outer-path");if(a)W.selectAll("path").attr("style",a);if(o)W.selectAll("path").attr("style",o);if(t.width<25&&x&&t.look!=="handDrawn"){let H=r.node()?.ownerSVGElement?.id??"",V=H?`${H}-drop-shadow-small`:"drop-shadow-small";W.attr("style",`filter:url(#${V})`)}return N(t,W),t.intersect=function(H){return S.circle(t,(t.width??0)/2,H)},f}e(sy,"stateEnd");function ay(r,t,{config:{themeVariables:i}}){let{lineColor:s,nodeShadow:o}=i;if(t.width||t.height){if((t.width??0)<14)t.width=14;if((t.height??0)<14)t.height=14}if(!t.width)t.width=14;if(!t.height)t.height=14;let a=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),c;if(t.look==="handDrawn"){let d=g.svg(a).circle(0,0,t.width,zp(s));c=a.insert(()=>d),c.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else c=a.insert("circle",":first-child"),c.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&o&&t.look!=="handDrawn"){let l=r.node()?.ownerSVGElement?.id??"",d=l?`${l}-drop-shadow-small`:"drop-shadow-small";c.attr("style",`filter:url(#${d})`)}return N(t,c),t.intersect=function(l){return S.circle(t,(t.width??7)/2,l)},a}e(ay,"stateStart");var Zo=8;async function ny(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t?.padding??8,a=t.look==="neo"?28:o,c=t.look==="neo"?12:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=Math.max(d.width+2*Zo+a,t.width??0),f=Math.max(d.height+c,t.height??0),b=x-2*Zo,T=f,w=-x/2,v=-f/2,E=[{x:0,y:0},{x:b,y:0},{x:b,y:-T},{x:0,y:-T},{x:0,y:0},{x:-8,y:0},{x:b+8,y:0},{x:b+8,y:-T},{x:-8,y:-T},{x:-8,y:0}];if(t.look==="handDrawn"){let P=g.svg(l),W=Vt(t,{}),H=P.rectangle(w,v,b+16,T,W),V=P.line(w+Zo,v,w+Zo,v+T,W),Q=P.line(w+Zo+b,v,w+Zo+b,v+T,W);l.insert(()=>V,":first-child"),l.insert(()=>Q,":first-child");let J=l.insert(()=>H,":first-child"),{cssStyles:st}=t;J.attr("class","basic label-container").attr("style",He(st)),N(t,J)}else{let P=fi(l,b,T,E);if(s)P.attr("style",s);N(t,P)}return t.intersect=function(P){return S.polygon(t,E,P)},l}e(ny,"subroutine");var Yc=0.2;async function ly(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o;if(t.width||t.height)t.height=Math.max((t?.height??0)-c*2,10),t.width=Math.max((t?.width??0)-a*2-Yc*(t.height+c*2),10);let{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=(t?.height?t?.height:d.height)+c*2,f=Yc*x,b=Yc*x,w=(t?.width?t?.width:d.width)+a*2+f-f,v=x,E=-w/2,P=-v/2,{cssStyles:W}=t,H=g.svg(l),V=Vt(t,{}),Q=[{x:E-f/2,y:P},{x:E+w+f/2,y:P},{x:E+w+f/2,y:P+v},{x:E-f/2,y:P+v}],J=[{x:E+w-f/2,y:P+v},{x:E+w+f/2,y:P+v},{x:E+w+f/2,y:P+v-b}];if(t.look!=="handDrawn")V.roughness=0,V.fillStyle="solid";let st=Ee(Q),lt=H.path(st,V),pt=Ee(J),ft=H.path(pt,{...V,fillStyle:"solid"}),wt=l.insert(()=>ft,":first-child");if(wt.insert(()=>lt,":first-child"),wt.attr("class","basic label-container outer-path"),W&&t.look!=="handDrawn")wt.selectAll("path").attr("style",W);if(s&&t.look!=="handDrawn")wt.selectAll("path").attr("style",s);return N(t,wt),t.intersect=function(_t){return S.polygon(t,Q,_t)},l}e(ly,"taggedRect");async function hy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),d=Math.max(a.height+(t.padding??0)*2,t?.height??0),x=d/8,f=0.2*l,b=0.2*d,T=d+x,{cssStyles:w}=t,v=g.svg(o),E=Vt(t,{});if(t.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let P=[{x:-l/2-l/2*0.1,y:T/2},...Wi(-l/2-l/2*0.1,T/2,l/2+l/2*0.1,T/2,x,0.8),{x:l/2+l/2*0.1,y:-T/2},{x:-l/2-l/2*0.1,y:-T/2}],W=-l/2+l/2*0.1,H=-T/2-b*0.4,V=[{x:W+l-f,y:(H+d)*1.3},{x:W+l,y:H+d-b},{x:W+l,y:(H+d)*0.9},...Wi(W+l,(H+d)*1.25,W+l-f,(H+d)*1.3,-d*0.02,0.5)],Q=Ee(P),J=v.path(Q,E),st=Ee(V),lt=v.path(st,{...E,fillStyle:"solid"}),pt=o.insert(()=>lt,":first-child");if(pt.insert(()=>J,":first-child"),pt.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn")pt.selectAll("path").attr("style",w);if(s&&t.look!=="handDrawn")pt.selectAll("path").attr("style",s);return pt.attr("transform",`translate(0,${-x/2})`),c.attr("transform",`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-d/2+(t.padding??0)-x/2-(a.y-(a.top??0))})`),N(t,pt),t.intersect=function(ft){return S.polygon(t,P,ft)},o}e(hy,"taggedWaveEdgedRectangle");async function cy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a}=await U(r,t,re(t)),c=Math.max(a.width+(t.padding??0),t?.width||0),l=Math.max(a.height+(t.padding??0),t?.height||0),d=-c/2,x=-l/2,f=o.insert("rect",":first-child");return f.attr("class","text").attr("style",s).attr("rx",0).attr("ry",0).attr("x",d).attr("y",x).attr("width",c).attr("height",l),N(t,f),t.intersect=function(b){return S.rect(t,b)},o}e(cy,"text");var uS=e((r,t,i,s,o,a)=>`M${r},${t}
|
|
234
|
+
a${o},${a} 0,0,1 0,${-s}
|
|
235
|
+
l${i},0
|
|
236
|
+
a${o},${a} 0,0,1 0,${s}
|
|
237
|
+
M${i},${-s}
|
|
238
|
+
a${o},${a} 0,0,0 0,${s}
|
|
239
|
+
l${-i},0`,"createCylinderPathD"),dS=e((r,t,i,s,o,a)=>[`M${r},${t}`,`M${r+i},${t}`,`a${o},${a} 0,0,0 0,${-s}`,`l${-i},0`,`a${o},${a} 0,0,0 0,${s}`,`l${i},0`].join(" "),"createOuterCylinderPathD"),pS=e((r,t,i,s,o,a)=>[`M${r+i/2},${-s/2}`,`a${o},${a} 0,0,0 0,${s}`].join(" "),"createInnerCylinderPathD"),Rg=5,Ng=10;async function uy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?12:o/2,c=t.height??0;if(t.height){if(t.height=t.height-a,t.height<Rg)t.height=Rg}if(t.width){let W=c/2/(2.5+c/50);if(t.width=t.width-a-W*3,t.width<Ng)t.width=Ng}let{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=Math.max(t.height??0,d.height)+a,b=f/2,T=b/(2.5+f/50),w=Math.max(t.width??0,d.width)+T+a,{cssStyles:v}=t,E;if(t.look==="handDrawn"){let P=g.svg(l),W=dS(0,0,w,f,T,b),H=pS(0,0,w,f,T,b),V=P.path(W,Vt(t,{})),Q=P.path(H,Vt(t,{fill:"none"}));if(E=l.insert(()=>Q,":first-child"),E=l.insert(()=>V,":first-child"),E.attr("class","basic label-container"),v)E.attr("style",v)}else{let P=uS(0,0,w,f,T,b);if(E=l.insert("path",":first-child").attr("d",P).attr("class","basic label-container").attr("style",He(v)).attr("style",s),E.attr("class","basic label-container outer-path"),v)E.selectAll("path").attr("style",v);if(s)E.selectAll("path").attr("style",s)}return E.attr("label-offset-x",T),E.attr("transform",`translate(${-w/2}, ${f/2} )`),x.attr("transform",`translate(${-(d.width/2)-T-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),N(t,E),t.intersect=function(P){let W=S.rect(t,P),H=W.y-(t.y??0);if(b!=0&&(Math.abs(H)<(t.height??0)/2||Math.abs(H)==(t.height??0)/2&&Math.abs(W.x-(t.x??0))>(t.width??0)/2-T)){let V=T*T*(1-H*H/(b*b));if(V!=0)V=Math.sqrt(Math.abs(V));if(V=T-V,P.x-(t.x??0)>0)V=-V;W.x+=V}return W},l}e(uy,"tiltedCylinder");async function dy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?o:o,c=t.look==="neo"?o*2:o,{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=Math.max(d.height+a,t.height??0),f=Math.max(d.width+c,(t.width??0)-x),b=[{x:-3*x/6,y:0},{x:f+3*x/6,y:0},{x:f,y:-x},{x:0,y:-x}],T,{cssStyles:w}=t;if(t.look==="handDrawn"){let v=g.svg(l),E=Vt(t,{}),P=Ee(b),W=v.path(P,E);if(T=l.insert(()=>W,":first-child").attr("transform",`translate(${-f/2}, ${x/2})`),w)T.attr("style",w)}else T=fi(l,f,x,b);if(s)T.attr("style",s);return t.width=f,t.height=x,N(t,T),t.intersect=function(v){return S.polygon(t,b,v)},l}e(dy,"trapezoid");async function py(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o,l=15,d=5;if(t.width||t.height){if(t.height=(t.height??0)-c*2,t.height<d)t.height=d;if(t.width=(t.width??0)-a*2,t.width<l)t.width=l}let{shapeSvg:x,bbox:f}=await U(r,t,re(t)),b=(t?.width?t?.width:f.width)+a*2,T=(t?.height?t?.height:f.height)+c*2,{cssStyles:w}=t,v=g.svg(x),E=Vt(t,{});if(t.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let P=[{x:-b/2*0.8,y:-T/2},{x:b/2*0.8,y:-T/2},{x:b/2,y:-T/2*0.6},{x:b/2,y:T/2},{x:-b/2,y:T/2},{x:-b/2,y:-T/2*0.6}],W=Ee(P),H=v.path(W,E),V=x.insert(()=>H,":first-child");if(V.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn")V.selectChildren("path").attr("style",w);if(s&&t.look!=="handDrawn")V.selectChildren("path").attr("style",s);return N(t,V),t.intersect=function(Q){return S.polygon(t,P,Q)},x}e(py,"trapezoidalPentagon");var qg=10,Wg=10;async function fy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?o*2:o;if(t.width||t.height){if(t.width=((t?.width??0)-a)/2,t.width<Wg)t.width=Wg;if(t.height=t?.height??0,t.height<qg)t.height=qg}let{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=kt(u().flowchart?.htmlLabels),f=(t?.width?t?.width:l.width)+a,b=t?.height?t?.height:f+l.height,T=b,w=[{x:0,y:0},{x:T,y:0},{x:T/2,y:-b}],{cssStyles:v}=t,E=g.svg(c),P=Vt(t,{});if(t.look!=="handDrawn")P.roughness=0,P.fillStyle="solid";let W=Ee(w),H=E.path(W,P),V=c.insert(()=>H,":first-child").attr("transform",`translate(${-b/2}, ${b/2})`).attr("class","outer-path");if(v&&t.look!=="handDrawn")V.selectChildren("path").attr("style",v);if(s&&t.look!=="handDrawn")V.selectChildren("path").attr("style",s);return t.width=f,t.height=b,N(t,V),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${b/2-(l.height+(t.padding??0)/(x?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(Q){return n.info("Triangle intersect",t,w,Q),S.polygon(t,w,Q)},c}e(fy,"triangle");async function gy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?12:o,l=!0;if(t.width||t.height){if(l=!1,t.width=(t?.width??0)-a*2,t.width<10)t.width=10;if(t.height=(t?.height??0)-c*2,t.height<10)t.height=10}let{shapeSvg:d,bbox:x,label:f}=await U(r,t,re(t)),b=(t?.width?t?.width:x.width)+(a??0)*2,T=(t?.height?t?.height:x.height)+(c??0)*2,w=t.look==="neo"?T/4:T/8,v=T+(l?w:-w),{cssStyles:E}=t,W=14-b,H=W>0?W/2:0,V=g.svg(d),Q=Vt(t,{});if(t.look!=="handDrawn")Q.roughness=0,Q.fillStyle="solid";let J=[{x:-b/2-H,y:v/2},...Wi(-b/2-H,v/2,b/2+H,v/2,w,0.8),{x:b/2+H,y:-v/2},{x:-b/2-H,y:-v/2}],st=Ee(J),lt=V.path(st,Q),pt=d.insert(()=>lt,":first-child");if(pt.attr("class","basic label-container outer-path"),E&&t.look!=="handDrawn")pt.selectAll("path").attr("style",E);if(s&&t.look!=="handDrawn")pt.selectAll("path").attr("style",s);return pt.attr("transform",`translate(0,${-w/2})`),f.attr("transform",`translate(${-b/2+(t.padding??0)-(x.x-(x.left??0))},${-T/2+(t.padding??0)-w-(x.y-(x.top??0))})`),N(t,pt),t.intersect=function(ft){return S.polygon(t,J,ft)},d}e(gy,"waveEdgedRectangle");async function my(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.padding??0,a=t.look==="neo"?16:o,c=t.look==="neo"?20:o;if(t.width||t.height){if(t.width=t?.width??0,t.width<20)t.width=20;if(t.height=t?.height??0,t.height<10)t.height=10;let Q=Math.min(t.height*0.2,t.height/4);t.height=Math.ceil(t.height-c-Q*2.2222222222222223),t.width=t.width-a*2}let{shapeSvg:l,bbox:d}=await U(r,t,re(t)),x=(t?.width?t?.width:d.width)+a*2,f=(t?.height?t?.height:d.height)+c,b=f/8,T=f+b*2,{cssStyles:w}=t,v=g.svg(l),E=Vt(t,{});if(t.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let P=[{x:-x/2,y:T/2},...Wi(-x/2,T/2,x/2,T/2,b,1),{x:x/2,y:-T/2},...Wi(x/2,-T/2,-x/2,-T/2,b,-1)],W=Ee(P),H=v.path(W,E),V=l.insert(()=>H,":first-child");if(V.attr("class","basic label-container"),w&&t.look!=="handDrawn")V.selectAll("path").attr("style",w);if(s&&t.look!=="handDrawn")V.selectAll("path").attr("style",s);return N(t,V),t.intersect=function(Q){return S.polygon(t,P,Q)},l}e(my,"waveRectangle");var Ye=10;async function yy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;if(t.width||t.height)t.width=Math.max((t?.width??0)-o*2-Ye,10),t.height=Math.max((t?.height??0)-a*2-Ye,10);let{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t)),x=(t?.width?t?.width:l.width)+o*2+Ye,f=(t?.height?t?.height:l.height)+a*2+Ye,b=x-Ye,T=f-Ye,w=-b/2,v=-T/2,{cssStyles:E}=t,P=g.svg(c),W=Vt(t,{}),H=[{x:w-Ye,y:v-Ye},{x:w-Ye,y:v+T},{x:w+b,y:v+T},{x:w+b,y:v-Ye}],V=`M${w-Ye},${v-Ye} L${w+b},${v-Ye} L${w+b},${v+T} L${w-Ye},${v+T} L${w-Ye},${v-Ye}
|
|
240
|
+
M${w-Ye},${v} L${w+b},${v}
|
|
241
|
+
M${w},${v-Ye} L${w},${v+T}`;if(t.look!=="handDrawn")W.roughness=0,W.fillStyle="solid";let Q=P.path(V,W),J=c.insert(()=>Q,":first-child");if(J.attr("transform",`translate(${Ye/2}, ${Ye/2})`),J.attr("class","basic label-container outer-path"),E&&t.look!=="handDrawn")J.selectAll("path").attr("style",E);if(s&&t.look!=="handDrawn")J.selectAll("path").attr("style",s);return d.attr("transform",`translate(${-(l.width/2)+Ye/2-(l.x-(l.left??0))}, ${-(l.height/2)+Ye/2-(l.y-(l.top??0))})`),N(t,J),t.intersect=function(st){return S.polygon(t,H,st)},c}e(yy,"windowPane");var zg=new Set(["redux-color","redux-dark-color"]),fS=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function eu(r,t){let i=t;if(i.alias)t.label=i.alias;let{theme:s,themeVariables:o}=k(),{rowEven:a,rowOdd:c,nodeBorder:l,borderColorArray:d}=o;if(t.look==="handDrawn"){let{themeVariables:zt}=k(),{background:te}=zt,ee={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${te}`]};await eu(r,ee)}let x=k();t.useHtmlLabels=x.htmlLabels;let f=x.er?.diagramPadding??10,b=x.er?.entityPadding??6,{cssStyles:T}=t,{labelStyles:w,nodeStyles:v}=C(t);if(i.attributes.length===0&&t.label){let zt={rx:0,ry:0,labelPaddingX:f,labelPaddingY:f*1.5,classes:""};if(at(t.label,x)+zt.labelPaddingX*2<x.er.minEntityWidth)t.width=x.er.minEntityWidth;let te=await is(r,t,zt);if(s!=null&&zg.has(s)){let ee=i.colorIndex??0;te.attr("data-color-id",`color-${ee%d.length}`)}if(!kt(x.htmlLabels)){let ee=te.select("text"),de=ee.node()?.getBBox();ee.attr("transform",`translate(${-de.width/2}, 0)`)}return te}if(!x.htmlLabels)f*=1.25,b*=1.25;let E=re(t);if(!E)E="node default";let P=r.insert("g").attr("class",E).attr("id",t.domId||t.id),W=await ts(P,t.label??"",x,0,0,["name"],w);W.height+=b;let H=0,V=[],Q=[],J=0,st=0,lt=0,pt=0,ft=!0,wt=!0;for(let zt of i.attributes){let te=await ts(P,zt.type,x,0,H,["attribute-type"],w);J=Math.max(J,te.width+f);let ee=await ts(P,zt.name,x,0,H,["attribute-name"],w);st=Math.max(st,ee.width+f);let de=await ts(P,zt.keys.join(),x,0,H,["attribute-keys"],w);lt=Math.max(lt,de.width+f);let me=await ts(P,zt.comment,x,0,H,["attribute-comment"],w);pt=Math.max(pt,me.width+f);let Te=Math.max(te.height,ee.height,de.height,me.height)+b;Q.push({yOffset:H,rowHeight:Te}),H+=Te}let _t=4;if(lt<=f)ft=!1,lt=0,_t--;if(pt<=f)wt=!1,pt=0,_t--;let xt=P.node().getBBox();if(W.width+f*2-(J+st+lt+pt)>0){let zt=W.width+f*2-(J+st+lt+pt);if(J+=zt/_t,st+=zt/_t,lt>0)lt+=zt/_t;if(pt>0)pt+=zt/_t}let et=J+st+lt+pt,ot=g.svg(P),bt=Vt(t,{});if(t.look!=="handDrawn")bt.roughness=0,bt.fillStyle="solid";let it=0;if(Q.length>0)it=Q.reduce((zt,te)=>zt+(te?.rowHeight??0),0);let Lt=Math.max(xt.width+f*2,t?.width||0,et),Et=Math.max((it??0)+W.height,t?.height||0),yt=-Lt/2,qt=-Et/2;if(P.selectAll("g:not(:first-child)").each((zt,te,ee)=>{let de=m(ee[te]),me=de.attr("transform"),Te=0,Ve=0;if(me){let qr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(me);if(qr){if(Te=parseFloat(qr[1]),Ve=parseFloat(qr[2]),de.attr("class").includes("attribute-name"))Te+=J;else if(de.attr("class").includes("attribute-keys"))Te+=J+st;else if(de.attr("class").includes("attribute-comment"))Te+=J+st+lt}}de.attr("transform",`translate(${yt+f/2+Te}, ${Ve+qt+W.height+b/2})`)}),P.select(".name").attr("transform","translate("+-W.width/2+", "+(qt+b/2)+")"),s!=null&&zg.has(s)){let zt=i.colorIndex??0;P.attr("data-color-id",`color-${zt%d.length}`)}let Wt=ot.rectangle(yt,qt,Lt,Et,bt),Xt=P.insert(()=>Wt,":first-child").attr("class","outer-path").attr("style",T.join(""));V.push(0);for(let[zt,te]of Q.entries()){let de=(zt+1)%2===0&&te.yOffset!==0,me=ot.rectangle(yt,W.height+qt+te?.yOffset,Lt,te?.rowHeight,{...bt,fill:de?a:c,stroke:l});P.insert(()=>me,"g.label").attr("style",T.join("")).attr("class",`row-rect-${de?"even":"odd"}`)}let oe=0.0001,ne=es(yt,W.height+qt,Lt+yt,W.height+qt,oe),Kt=ot.polygon(ne.map((zt)=>[zt.x,zt.y]),bt);if(P.insert(()=>Kt).attr("class","divider"),ne=es(J+yt,W.height+qt,J+yt,Et+qt,oe),Kt=ot.polygon(ne.map((zt)=>[zt.x,zt.y]),bt),P.insert(()=>Kt).attr("class","divider"),ft){let zt=J+st+yt;ne=es(zt,W.height+qt,zt,Et+qt,oe),Kt=ot.polygon(ne.map((te)=>[te.x,te.y]),bt),P.insert(()=>Kt).attr("class","divider")}if(wt){let zt=J+st+lt+yt;ne=es(zt,W.height+qt,zt,Et+qt,oe),Kt=ot.polygon(ne.map((te)=>[te.x,te.y]),bt),P.insert(()=>Kt).attr("class","divider")}for(let zt of V){let te=W.height+qt+zt;ne=es(yt,te,Lt+yt,te,oe),Kt=ot.polygon(ne.map((ee)=>[ee.x,ee.y]),bt),P.insert(()=>Kt).attr("class","divider")}if(N(t,Xt),v&&t.look!=="handDrawn")if(s!=null&&fS.has(s))P.selectAll("path").attr("style",v);else{let te=v.split(";")?.filter((ee)=>ee.includes("stroke"))?.map((ee)=>`${ee}`).join("; ");P.selectAll("path").attr("style",te??""),P.selectAll(".row-rect-even path").attr("style",v)}return t.intersect=function(zt){return S.rect(t,zt)},P}e(eu,"erBox");async function ts(r,t,i,s=0,o=0,a=[],c=""){let l=r.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${s}, ${o})`).attr("style",c);if(t!==hr(t))t=hr(t),t=t.replaceAll("<","<").replaceAll(">",">");let d=l.node().appendChild(await Be(l,t,{width:at(t,i)+100,style:c,useHtmlLabels:i.htmlLabels},i));if(t.includes("<")||t.includes(">")){let f=d.children[0];f.textContent=f.textContent.replaceAll("<","<").replaceAll(">",">");while(f.childNodes[0])f=f.childNodes[0],f.textContent=f.textContent.replaceAll("<","<").replaceAll(">",">")}let x=d.getBBox();if(kt(i.htmlLabels)){let f=d.children[0];f.style.textAlign="start";let b=m(d);x=f.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}return x}e(ts,"addText");function es(r,t,i,s,o){if(r===i)return[{x:r-o/2,y:t},{x:r+o/2,y:t},{x:i+o/2,y:s},{x:i-o/2,y:s}];return[{x:r,y:t-o/2},{x:r,y:t+o/2},{x:i,y:s+o/2},{x:i,y:s-o/2}]}e(es,"lineToPolygon");async function xy(r,t,i,s,o=i.class.padding??12){let a=!s?3:0,c=r.insert("g").attr("class",re(t)).attr("id",t.domId||t.id),l=null,d=null,x=null,f=null,b=0,T=0,w=0;if(l=c.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let H=t.annotations[0];await Ks(l,{text:`«${H}»`},0),b=l.node().getBBox().height}d=c.insert("g").attr("class","label-group text"),await Ks(d,t,0,["font-weight: bolder"]);let v=d.node().getBBox();T=v.height,x=c.insert("g").attr("class","members-group text");let E=0;for(let H of t.members){let V=await Ks(x,H,E,[H.parseClassifier()]);E+=V+a}if(w=x.node().getBBox().height,w<=0)w=o/2;f=c.insert("g").attr("class","methods-group text");let P=0;for(let H of t.methods){let V=await Ks(f,H,P,[H.parseClassifier()]);P+=V+a}let W=c.node().getBBox();if(l!==null){let H=l.node().getBBox();l.attr("transform",`translate(${-H.width/2})`)}return d.attr("transform",`translate(${-v.width/2}, ${b})`),W=c.node().getBBox(),x.attr("transform",`translate(0, ${b+T+o*2})`),W=c.node().getBBox(),f.attr("transform",`translate(0, ${b+T+(w?w+o*4:o*2)})`),W=c.node().getBBox(),{shapeSvg:c,bbox:W}}e(xy,"textHelper");async function Ks(r,t,i,s=[]){let o=r.insert("g").attr("class","label").attr("style",s.join("; ")),a=k(),c="useHtmlLabels"in t?t.useHtmlLabels:kt(a.htmlLabels)??!0,l="";if("text"in t)l=t.text;else l=t.label;if(!c&&l.startsWith("\\"))l=l.substring(1);if(Ce(l))c=!0;let d=await Be(o,ja(Jt(l)),{width:at(l,a)+50,classes:"markdown-node-label",useHtmlLabels:c},a),x,f=1;if(!c){if(s.includes("font-weight: bolder"))m(d).selectAll("tspan").attr("font-weight","");f=d.children.length;let b=d.children[0];if(d.textContent===""||d.textContent.includes(">")){if(b.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" ")b.textContent=b.textContent[0]+" "+b.textContent.substring(1)}if(b.textContent==="undefined")b.textContent="";x=d.getBBox()}else{let b=d.children[0],T=m(d);if(f=b.innerHTML.split("<br>").length,b.innerHTML.includes("</math>"))f+=b.innerHTML.split("<mrow>").length-1;await Vc(b),x=b.getBoundingClientRect(),T.attr("width",x.width),T.attr("height",x.height)}return o.attr("transform","translate(0,"+(-x.height/(2*f)+i)+")"),x.height}e(Ks,"addText");async function Cy(r,t){let i=u(),{theme:s,themeVariables:o}=i,{useGradient:a,borderColorArray:c}=o,l=i.class.padding??12,d=l,x=t.useHtmlLabels??kt(i.htmlLabels)??!0,f=t;f.annotations=f.annotations??[],f.members=f.members??[],f.methods=f.methods??[];let{shapeSvg:b,bbox:T}=await xy(r,t,i,x,d);rt(b,t.colorIndex,s,c);let{labelStyles:w,nodeStyles:v}=C(t);t.labelStyle=w,t.cssStyles=f.styles||"";let E=f.styles?.join(";")||v||"";if(!t.cssStyles)t.cssStyles=E.replaceAll("!important","").split(";");let P=f.members.length===0&&f.methods.length===0&&!i.class?.hideEmptyMembersBox,W=g.svg(b),H=Vt(t,{});if(t.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let V=Math.max(t.width??0,T.width),Q=Math.max(t.height??0,T.height),J=(t.height??0)>T.height;if(f.members.length===0&&f.methods.length===0)Q+=d;else if(f.members.length>0&&f.methods.length===0)Q+=d*2;let st=-V/2,lt=-Q/2,pt=P?l*2:f.members.length===0&&f.methods.length===0?-l:0;if(J)pt=l*2;let ft=W.rectangle(st-l,lt-l-(P?l:f.members.length===0&&f.methods.length===0?-l/2:0),V+2*l,Q+2*l+pt,H),wt=b.insert(()=>ft,":first-child");wt.attr("class","basic label-container outer-path");let _t=wt.node().getBBox(),xt=b.select(".annotation-group").node().getBBox().height-(P?l/2:0)||0,et=b.select(".label-group").node().getBBox().height-(P?l/2:0)||0,ot=b.select(".members-group").node().getBBox().height-(P?l/2:0)||0,bt=(xt+et+lt+l-(lt-l-(P?l:f.members.length===0&&f.methods.length===0?-l/2:0)))/2;if(b.selectAll(".text").each((it,Lt,Et)=>{let yt=m(Et[Lt]),qt=yt.attr("transform"),Wt=0;if(qt){let Kt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(qt);if(Kt)Wt=parseFloat(Kt[2])}let Xt=Wt+lt+l-(P?l:f.members.length===0&&f.methods.length===0?-l/2:0);if(yt.attr("class").includes("methods-group")){let ne=Math.max(ot,d/2);if(J)Xt=Math.max(bt,xt+et+ne+lt+d*2+l)+d*2;else Xt=xt+et+ne+lt+d*4+l}if(f.members.length===0&&f.methods.length===0&&i.class?.hideEmptyMembersBox)if(f.annotations.length>0)Xt=Wt-d;else Xt=Wt;if(!x)Xt-=4;let oe=st;if(yt.attr("class").includes("label-group")||yt.attr("class").includes("annotation-group"))oe=-yt.node()?.getBBox().width/2||0,b.selectAll("text").each(function(ne,Kt,zt){if(window.getComputedStyle(zt[Kt]).textAnchor==="middle")oe=0});yt.attr("transform",`translate(${oe}, ${Xt})`)}),f.members.length>0||f.methods.length>0||P){let it=xt+et+lt+l,Lt=W.line(_t.x,it,_t.x+_t.width,it+0.001,H);b.insert(()=>Lt).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",E)}if(P||f.members.length>0||f.methods.length>0){let it=xt+et+ot+lt+d*2+l,Lt=W.line(_t.x,J?Math.max(bt,it):it,_t.x+_t.width,(J?Math.max(bt,it):it)+0.001,H);b.insert(()=>Lt).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",E)}if(f.look!=="handDrawn")b.selectAll("path").attr("style",E);if(wt.select(":nth-child(2)").attr("style",E),b.selectAll(".divider").select("path").attr("style",E),t.labelStyle)b.selectAll("span").attr("style",t.labelStyle);else b.selectAll("span").attr("style",E);if(!x){let it=RegExp(/color\s*:\s*([^;]*)/),Lt=it.exec(E);if(Lt){let Et=Lt[0].replace("color","fill");b.selectAll("tspan").attr("style",Et)}else if(w){let Et=it.exec(w);if(Et){let yt=Et[0].replace("color","fill");b.selectAll("tspan").attr("style",yt)}}}return N(t,wt),t.intersect=function(it){return S.rect(t,it)},b}e(Cy,"classBox");async function by(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let o=t,a=t,c=20,l=20,d="verifyMethod"in t,x=re(t),f=u(),{themeVariables:b}=f,{borderColorArray:T,requirementEdgeLabelBackground:w}=b,v=f.layout==="elk"?"start":"center",E=r.insert("g").attr("class",x).attr("id",t.domId??t.id),P;if(d)P=await ui(E,`<<${o.type}>>`,0,t.labelStyle);else P=await ui(E,"<<Element>>",0,t.labelStyle);let W=P,H=await ui(E,o.name,W,t.labelStyle+"; font-weight: bold;");if(W+=H+l,d){let _t=await ui(E,`${o.requirementId?`ID: ${o.requirementId}`:""}`,W,t.labelStyle,v);W+=_t;let xt=await ui(E,`${o.text?`Text: ${o.text}`:""}`,W,t.labelStyle,v);W+=xt;let et=await ui(E,`${o.risk?`Risk: ${o.risk}`:""}`,W,t.labelStyle,v);W+=et,await ui(E,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,W,t.labelStyle,v)}else{let _t=await ui(E,`${a.type?`Type: ${a.type}`:""}`,W,t.labelStyle,v);W+=_t,await ui(E,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,W,t.labelStyle,v)}let V=(E.node()?.getBBox().width??200)+c,Q=(E.node()?.getBBox().height??200)+c,J=-V/2,st=-Q/2,lt=g.svg(E),pt=Vt(t,{});if(t.look!=="handDrawn")pt.roughness=0,pt.fillStyle="solid";let ft=lt.rectangle(J,st,V,Q,pt),wt=E.insert(()=>ft,":first-child");if(wt.attr("class","basic label-container outer-path").attr("style",s),T?.length){let _t=t.colorIndex??0;E.attr("data-color-id",`color-${_t%T.length}`)}if(E.selectAll(".label").each((_t,xt,et)=>{let ot=m(et[xt]),bt=ot.attr("transform"),it=0,Lt=0;if(bt){let Wt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(bt);if(Wt)it=parseFloat(Wt[1]),Lt=parseFloat(Wt[2])}let Et=Lt-Q/2,yt=J+c/2;if(xt===0||xt===1)yt=it;ot.attr("transform",`translate(${yt}, ${Et+c})`)}),W>P+H+l){let _t=st+P+H+l,xt;if(t.look==="neo"){let bt=[[J,_t],[J+V,_t],[J+V,_t+0.001],[J,_t+0.001]];xt=lt.polygon(bt,pt)}else xt=lt.line(J,_t,J+V,_t,pt);E.insert(()=>xt).attr("class","divider")}if(N(t,wt),t.intersect=function(_t){return S.rect(t,_t)},s&&t.look!=="handDrawn"&&(w||T?.length))E.selectAll("path").attr("style",s);return E}e(by,"requirementBox");async function ui(r,t,i,s="",o="center"){if(t==="")return 0;let a=r.insert("g").attr("class","label").attr("style",s),c=u(),l=c.htmlLabels??!0,d=await Be(a,ja(Jt(t)),{width:at(t,c)+50,classes:"markdown-node-label",useHtmlLabels:l,style:s},c),x;if(!l){let f=d.children[0];for(let b of f.children)if(s)b.setAttribute("style",s);if(o==="start"){f.setAttribute("text-anchor","start");for(let b of f.children)b.setAttribute("text-anchor","start")}x=d.getBBox(),x.height+=6}else{let f=d.children[0],b=m(d);if(o==="start")m(f).style("text-align","left");x=f.getBoundingClientRect(),b.attr("width",x.width),b.attr("height",x.height)}return a.attr("transform",`translate(${-x.width/2},${-x.height/2+i})`),x.height}e(ui,"addText");var gS=e((r)=>{switch(r){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 ky(r,t,{config:i}){let{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s||"";let a=10,c=t.width;t.width=(t.width??200)-10;let{shapeSvg:l,bbox:d,label:x}=await U(r,t,re(t)),f=t.padding||10,b="",T;if("ticket"in t&&t.ticket&&i?.kanban?.ticketBaseUrl)b=i?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),T=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",b).attr("target","_blank");let w={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},v,E;if(T)({label:v,bbox:E}=await Fo(T,"ticket"in t&&t.ticket||"",w));else({label:v,bbox:E}=await Fo(l,"ticket"in t&&t.ticket||"",w));let{label:P,bbox:W}=await Fo(l,"assigned"in t&&t.assigned||"",w);t.width=c;let H=10,V=t?.width||0,Q=Math.max(E.height,W.height)/2,J=Math.max(d.height+H*2,t?.height||0)+Q,st=-V/2,lt=-J/2;x.attr("transform","translate("+(f-V/2)+", "+(-Q-d.height/2)+")"),v.attr("transform","translate("+(f-V/2)+", "+(-Q+d.height/2)+")"),P.attr("transform","translate("+(f+V/2-W.width-2*a)+", "+(-Q+d.height/2)+")");let pt,{rx:ft,ry:wt}=t,{cssStyles:_t}=t;if(t.look==="handDrawn"){let xt=g.svg(l),et=Vt(t,{}),ot=ft||wt?xt.path(Fr(st,lt,V,J,ft||0),et):xt.rectangle(st,lt,V,J,et);pt=l.insert(()=>ot,":first-child"),pt.attr("class","basic label-container").attr("style",_t?_t:null)}else{pt=l.insert("rect",":first-child"),pt.attr("class","basic label-container __APA__").attr("style",o).attr("rx",ft??5).attr("ry",wt??5).attr("x",st).attr("y",lt).attr("width",V).attr("height",J);let xt="priority"in t&&t.priority;if(xt){let et=l.append("line"),ot=st+2,bt=lt+Math.floor((ft??0)/2),it=lt+J-Math.floor((ft??0)/2);et.attr("x1",ot).attr("y1",bt).attr("x2",ot).attr("y2",it).attr("stroke-width","4").attr("stroke",gS(xt))}}return N(t,pt),t.height=J,t.intersect=function(xt){return S.rect(t,xt)},l}e(ky,"kanbanItem");async function Sy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,halfPadding:c,label:l}=await U(r,t,re(t)),d=a.width+10*c,x=a.height+8*c,f=0.15*d,{cssStyles:b}=t,T=a.width+20,w=a.height+20,v=Math.max(d,T),E=Math.max(x,w);l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let P,W=`M0 0
|
|
242
|
+
a${f},${f} 1 0,0 ${v*0.25},${-1*E*0.1}
|
|
243
|
+
a${f},${f} 1 0,0 ${v*0.25},0
|
|
244
|
+
a${f},${f} 1 0,0 ${v*0.25},0
|
|
245
|
+
a${f},${f} 1 0,0 ${v*0.25},${E*0.1}
|
|
246
|
+
|
|
247
|
+
a${f},${f} 1 0,0 ${v*0.15},${E*0.33}
|
|
248
|
+
a${f*0.8},${f*0.8} 1 0,0 0,${E*0.34}
|
|
249
|
+
a${f},${f} 1 0,0 ${-1*v*0.15},${E*0.33}
|
|
250
|
+
|
|
251
|
+
a${f},${f} 1 0,0 ${-1*v*0.25},${E*0.15}
|
|
252
|
+
a${f},${f} 1 0,0 ${-1*v*0.25},0
|
|
253
|
+
a${f},${f} 1 0,0 ${-1*v*0.25},0
|
|
254
|
+
a${f},${f} 1 0,0 ${-1*v*0.25},${-1*E*0.15}
|
|
255
|
+
|
|
256
|
+
a${f},${f} 1 0,0 ${-1*v*0.1},${-1*E*0.33}
|
|
257
|
+
a${f*0.8},${f*0.8} 1 0,0 0,${-1*E*0.34}
|
|
258
|
+
a${f},${f} 1 0,0 ${v*0.1},${-1*E*0.33}
|
|
259
|
+
H0 V0 Z`;if(t.look==="handDrawn"){let H=g.svg(o),V=Vt(t,{}),Q=H.path(W,V);P=o.insert(()=>Q,":first-child"),P.attr("class","basic label-container").attr("style",He(b))}else P=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",W);return P.attr("transform",`translate(${-v/2}, ${-E/2})`),N(t,P),t.calcIntersect=function(H,V){return S.rect(H,V)},t.intersect=function(H){return n.info("Bang intersect",t,H),S.rect(t,H)},o}e(Sy,"bang");async function Ty(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,halfPadding:c,label:l}=await U(r,t,re(t)),d=a.width+2*c,x=a.height+2*c,f=0.15*d,b=0.25*d,T=0.35*d,w=0.2*d,{cssStyles:v}=t,E,P=`M0 0
|
|
260
|
+
a${f},${f} 0 0,1 ${d*0.25},${-1*d*0.1}
|
|
261
|
+
a${T},${T} 1 0,1 ${d*0.4},${-1*d*0.1}
|
|
262
|
+
a${b},${b} 1 0,1 ${d*0.35},${d*0.2}
|
|
263
|
+
|
|
264
|
+
a${f},${f} 1 0,1 ${d*0.15},${x*0.35}
|
|
265
|
+
a${w},${w} 1 0,1 ${-1*d*0.15},${x*0.65}
|
|
266
|
+
|
|
267
|
+
a${b},${f} 1 0,1 ${-1*d*0.25},${d*0.15}
|
|
268
|
+
a${T},${T} 1 0,1 ${-1*d*0.5},0
|
|
269
|
+
a${f},${f} 1 0,1 ${-1*d*0.25},${-1*d*0.15}
|
|
270
|
+
|
|
271
|
+
a${f},${f} 1 0,1 ${-1*d*0.1},${-1*x*0.35}
|
|
272
|
+
a${w},${w} 1 0,1 ${d*0.1},${-1*x*0.65}
|
|
273
|
+
H0 V0 Z`;if(t.look==="handDrawn"){let W=g.svg(o),H=Vt(t,{}),V=W.path(P,H);E=o.insert(()=>V,":first-child"),E.attr("class","basic label-container").attr("style",He(v))}else E=o.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",P);return l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),E.attr("transform",`translate(${-d/2}, ${-x/2})`),N(t,E),t.calcIntersect=function(W,H){return S.rect(W,H)},t.intersect=function(W){return n.info("Cloud intersect",t,W),S.rect(t,W)},o}e(Ty,"cloud");async function wy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,halfPadding:c,label:l}=await U(r,t,re(t)),d=a.width+8*c,x=a.height+2*c,f=5,b=t.look==="neo"?`
|
|
274
|
+
M${-d/2} ${x/2-f}
|
|
275
|
+
v${-x+2*f}
|
|
276
|
+
q0,-${f} ${f},-${f}
|
|
277
|
+
h${d-2*f}
|
|
278
|
+
q${f},0 ${f},${f}
|
|
279
|
+
v${x-f}
|
|
280
|
+
H${-d/2}
|
|
281
|
+
Z
|
|
282
|
+
`:`
|
|
283
|
+
M${-d/2} ${x/2-f}
|
|
284
|
+
v${-x+2*f}
|
|
285
|
+
q0,-${f} ${f},-${f}
|
|
286
|
+
h${d-2*f}
|
|
287
|
+
q${f},0 ${f},${f}
|
|
288
|
+
v${x-2*f}
|
|
289
|
+
q0,${f} ${-f},${f}
|
|
290
|
+
h${-(d-2*f)}
|
|
291
|
+
q${-f},0 ${-f},${-f}
|
|
292
|
+
Z
|
|
293
|
+
`;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);let T=o.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",s).attr("d",b);return o.append("line").attr("class","node-line-").attr("x1",-d/2).attr("y1",x/2).attr("x2",d/2).attr("y2",x/2),l.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),o.append(()=>l.node()),N(t,T),t.calcIntersect=function(w,v){return S.rect(w,v)},t.intersect=function(w){return S.rect(t,w)},o}e(wy,"defaultMindmapNode");async function By(r,t){let i={padding:t.padding??0};return Jc(r,t,i)}e(By,"mindmapCircle");var Qo=36,Bo=50,mS=100,yS=80,zi=6,rs=16,xS="bpmn",CS={start:{rings:1,strokeWidth:1.6},intermediate:{rings:2,strokeWidth:1.4},boundary:{rings:2,strokeWidth:1.4},end:{rings:1,strokeWidth:3.4}},Hg;async function _y(){return Hg??=(_("whh96nc8"),import("./bpmnIcons-APHXDYXF.whh96nc8.js")).then(({bpmnIcons:r})=>{if(Kp(r.prefix))return;mr([{name:r.prefix,icons:r}])}),Hg}e(_y,"ensureBpmnIcons");function vy(r){let t=r.metadata?.dataDirection;return t==="input"||t==="output"?t:void 0}e(vy,"dataDirectionOf");function Ly(r){return r.metadata?.isCollection===!0}e(Ly,"isCollectionData");async function el(r,t){return await _y(),nt(r,{height:t,width:t,fallbackPrefix:xS})}e(el,"glyphSvg");var Qs=e((r,t,i)=>{let s=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);r.attr("transform",`translate(${-t.width/2-s},${i-t.height/2-o})`)},"positionLabelBelow"),Ay=e(async(r,t,i)=>{if(!t)return;let s=r.append("g").attr("class","bpmn-glyph");s.html(`<g>${await el(t,i)}</g>`),s.attr("transform",`translate(${-i/2}, ${-i/2})`)},"appendGlyph"),Js=e((r,t,i,s,o)=>{if(o)t.metadata={...t.metadata??{},drawnExtent:o};let a=r.insert("rect",":first-child").attr("class","bpmn-bounds").attr("x",-i/2).attr("y",-s/2).attr("width",i).attr("height",s).attr("opacity",0).attr("aria-hidden","true");return N(t,a),a},"reserveBounds"),bS=8,rl=e((r,t,i)=>Math.min(Math.max(r,t),i),"clamp"),il=e((r,t,i,s,o)=>{let a=r.x??0,c=r.y??0,l=t/2,d=i/2,x=s.x-a,f=s.y-c,b=o??(Math.abs(x)*d>Math.abs(f)*l?x>=0?"right":"left":f>=0?"bottom":"top"),T=e((w)=>Math.max(0,w-Math.min(bS,w/2)),"reach");if(b==="left"||b==="right")return{x:a+(b==="right"?l:-l),y:rl(s.y,c-T(d),c+T(d))};return{x:rl(s.x,a-T(l),a+T(l)),y:c+(b==="bottom"?d:-d)}},"faceProjectIntersect"),kS=e((r,t,i)=>{let s=r.x??0,o=r.y??0,a=t/2,c=i.x-s,l=i.y-o,d=a*0.85;if(Math.abs(l)>=Math.abs(c)){let f=rl(c,-d,d);return{x:s+f,y:o+Math.sign(l||1)*Math.sqrt(a*a-f*f)}}let x=rl(l,-d,d);return{x:s+Math.sign(c||1)*Math.sqrt(a*a-x*x),y:o+x}},"ringIntersect"),SS=e((r,t,i,s)=>{let o=r.x??0,a=r.y??0,c=t/2,l=i/2,d=s.x-o,x=s.y-a;if(Math.abs(d)*l>Math.abs(x)*c)return{x:o+Math.sign(d)*c,y:a};return{x:o,y:a+Math.sign(x||1)*l}},"faceCentreIntersect");async function oa(r,t,i){let s=t,{labelStyles:o,nodeStyles:a}=C(t);t.labelStyle=o;let{rings:c,strokeWidth:l}=CS[i],d=Qo/2,{shapeSvg:x,bbox:f,label:b}=await U(r,t,re(t,`bpmn-event bpmn-event-${i}`)),T=x.insert("g",":first-child").attr("class","bpmn-event-body");T.attr("style",a);for(let W=0;W<c;W++)T.append("circle").attr("class",W===0?"bpmn-event-ring":"bpmn-event-ring bpmn-event-ring-inner").attr("r",d-W*3).style("stroke-width",`${l}px`);await Ay(T,s.icon,rs);let w=f.height>0&&Boolean(t.label),v=w?zi+f.height:0,E=Qo+2*v,P=Math.max(Qo,w?f.width:0);if(w)Qs(b,f,d+zi+f.height/2);return Js(x,t,P,E,{width:Qo,height:Qo}),t.intersect=function(W){return kS(t,Qo,W)},x}e(oa,"renderBpmnEvent");async function Fy(r,t){return oa(r,t,"start")}e(Fy,"bpmnStart");async function My(r,t){return oa(r,t,"intermediate")}e(My,"bpmnIntermediate");async function Ey(r,t){return oa(r,t,"boundary")}e(Ey,"bpmnBoundary");async function Oy(r,t){return oa(r,t,"end")}e(Oy,"bpmnEnd");async function Iy(r,t){let i=t,{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let a=Bo/2,{shapeSvg:c,bbox:l,label:d}=await U(r,t,re(t,"bpmn-gateway")),x=c.insert("g",":first-child").attr("class","bpmn-gateway-body");x.append("polygon").attr("class","bpmn-gateway-diamond").attr("points",`0,${-a} ${a},0 0,${a} ${-a},0`).attr("style",o),await Ay(x,i.icon,rs+2);let f=l.height>0&&Boolean(t.label),b=f?zi+l.height:0,T=Bo+2*b,w=Math.max(Bo,f?l.width:0);if(f)Qs(d,l,a+zi+l.height/2);return Js(c,t,w,T,{width:Bo,height:Bo}),t.intersect=function(v){return SS(t,Bo,Bo,v)},c}e(Iy,"bpmnGateway");async function $y(r,t){let i=t,{labelStyles:s,nodeStyles:o}=C(t);t.labelStyle=s;let{shapeSvg:a,bbox:c,label:l}=await U(r,t,re(t,"bpmn-activity")),d=i.markers??[],x=i.icon,f=x?rs+6:10,b=d.length>0?rs+4:10,T=Math.max(mS,c.width+16),w=Math.max(yS,c.height+f+b),v=a.insert("g",":first-child").attr("class","bpmn-activity-body");if(v.append("rect").attr("class","bpmn-activity-rect").attr("x",-T/2).attr("y",-w/2).attr("width",T).attr("height",w).attr("rx",10).attr("ry",10).attr("style",o),x){let E=v.append("g").attr("class","bpmn-activity-icon");E.html(`<g>${await el(x,rs)}</g>`),E.attr("transform",`translate(${-T/2+6}, ${-w/2+6})`)}if(d.length>0){let E=v.append("g").attr("class","bpmn-activity-markers"),P=rs-2,W=d.length*P;for(let[H,V]of d.entries()){let Q=E.append("g");Q.html(`<g>${await el(V,P)}</g>`),Q.attr("transform",`translate(${-W/2+H*P}, 0)`)}E.attr("transform",`translate(0, ${w/2-P-3})`)}if(c.height>0){let E=-w/2+f,P=w/2-b;Qs(l,c,(E+P)/2)}return N(t,v),t.intersect=function(E){return il(t,T,w,E)},a}e($y,"bpmnActivity");var Vs=36,Jo=50,tl=10;async function Dy(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t,"bpmn-data-object")),l=o.insert("g",":first-child").attr("class","bpmn-data-body"),d=-Vs/2,x=-Jo/2,f=Vs/2,b=Jo/2;l.append("path").attr("class","bpmn-data-page").attr("d",`M${d},${x} H${f-tl} L${f},${x+tl} V${b} H${d} Z`).attr("style",s),l.append("path").attr("class","bpmn-data-fold").attr("d",`M${f-tl},${x} V${x+tl} H${f}`);let T=vy(t);if(T)l.append("path").attr("class",`bpmn-data-arrow bpmn-data-arrow-${T}`).attr("d",`M${d+4},${x+9} h7 v-3 l5,4.5 -5,4.5 v-3 h-7 Z`);if(Ly(t))l.append("path").attr("class","bpmn-data-collection").attr("d",`M-4,${b-11} v9 M0,${b-11} v9 M4,${b-11} v9`);let w=a.height>0&&Boolean(t.label),v=w?zi+a.height:0,E=Jo+2*v,P=Math.max(Vs,w?a.width:0);if(w)Qs(c,a,Jo/2+zi+a.height/2);return Js(o,t,P,E,{width:Vs,height:Jo}),t.intersect=function(W){return il(t,Vs,Jo,W)},o}e(Dy,"bpmnDataObject");var ci=50;async function Py(r,t){let{labelStyles:i,nodeStyles:s}=C(t);t.labelStyle=i;let{shapeSvg:o,bbox:a,label:c}=await U(r,t,re(t,"bpmn-data-store")),l=o.insert("g",":first-child").attr("class","bpmn-data-body"),d=ci/2,x=6;l.append("path").attr("class","bpmn-store-body").attr("d",`M${-d},${-d+x} a${d},${x} 0 0 1 ${ci},0 V${d-x} a${d},${x} 0 0 1 ${-ci},0 Z`).attr("style",s);for(let v of[0,5,10])l.append("path").attr("class","bpmn-store-rings").attr("d",`M${-d},${-d+x+v} a${d},${x} 0 0 0 ${ci},0`);let f=a.height>0&&Boolean(t.label),b=f?zi+a.height:0,T=ci+2*b,w=Math.max(ci,f?a.width:0);if(f)Qs(c,a,d+zi+a.height/2);return Js(o,t,w,T,{width:ci,height:ci}),t.intersect=function(v){return il(t,ci,ci,v)},o}e(Py,"bpmnDataStore");async function Ry(r,t){let{labelStyles:i}=C(t);t.labelStyle=i,t.wrappingWidth=160;let{shapeSvg:s,bbox:o,label:a}=await U(r,t,re(t,"bpmn-annotation")),c=8,l=Math.max(28,o.height+c*2),d=o.width+c*2+6,x=t.metadata?.attachFace==="right"?"right":"left";s.insert("g",":first-child").attr("class","bpmn-annotation-body").append("path").attr("class","bpmn-annotation-bracket").attr("d",x==="right"?`M${d/2-6},${-l/2} h6 V${l/2} h-6`:`M${-d/2+6},${-l/2} h-6 V${l/2} h6`);let b=x==="right"?-d/2+c:-d/2+c+6;return a.attr("transform",`translate(${b-(o.x??0)+(o.left??0)},${-o.height/2-((o.y??0)-(o.top??0))})`),Js(s,t,d,l),t.intersect=function(T){return il(t,d,l,T,x)},s}e(Ry,"bpmnAnnotation");var TS=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ry},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Jm},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:iy},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ny},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ym},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:xm},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:wm},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:em},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:hm},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:sm},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:mm},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Jc},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Sy},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ty},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Km},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:vm},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Pm},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Dm},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:dy},{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:Im},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:bm},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:cy},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:am},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ty},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:ay},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:sy},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Lm},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:dm},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:pm},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:fm},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Rm},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:gy},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:_m},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:uy},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Nm},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:gm},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Cm},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:fy},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:yy},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Sm},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:py},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Tm},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:ey},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Xm},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Gm},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:tm},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:um},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:hy},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ly},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:my},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Zm},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:qm}];var wS=e(()=>{let t=[...Object.entries({state:oy,choice:nm,note:Vm,composite:lm,rectWithTitle:Qm,labelRect:$m,block_arrow:om,collapsedGroup:im,iconSquare:Em,iconCircle:Fm,icon:Am,iconRounded:Mm,imageSquare:Om,anchor:Qg,kanbanItem:ky,mindmapCircle:By,defaultMindmapNode:wy,classBox:Cy,erBox:eu,requirementBox:by,usecaseActor:Wm,usecaseActorHollow:Hm,usecaseActorAwesome:zm,usecaseActorIcon:Ym,usecaseBusiness:Um,usecaseEllipse:km,usecaseJsonTable:jm,"bpmn-start":Fy,"bpmn-intermediate":My,"bpmn-boundary":Ey,"bpmn-end":Oy,"bpmn-gateway":Iy,"bpmn-activity":$y,"bpmn-data":Dy,"bpmn-data-store":Py,"bpmn-annotation":Ry}),...TS.flatMap((i)=>[i.shortName,..."aliases"in i?i.aliases:[],..."internalAliases"in i?i.internalAliases:[]].map((o)=>[o,i.handler]))];return Object.fromEntries(t)},"generateShapeMap"),$a=wS();function aa(r){return r in $a}e(aa,"isValidShape");var Bt=e(({flowchart:r})=>{let t=r?.subGraphTitleMargin?.top??0,i=r?.subGraphTitleMargin?.bottom??0,s=t+i;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:s}},"getSubGraphTitleMargins"),ol=new Map;async function Ft(r,t,i){let s,o;if(t.shape==="rect")if(t.rx&&t.ry)t.shape="roundedRect";else t.shape="squareRect";let a=t.shape?$a[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let c;if(i.config.securityLevel==="sandbox")c="_top";else if(t.linkTarget)c=t.linkTarget||"_blank";s=r.insert("svg:a").attr("xlink:href",t.link).attr("target",c??null),o=await a(s,t,i)}else o=await a(r,t,i),s=o;if(s.attr("data-look",He(t.look)),t.tooltip)o.attr("title",t.tooltip);if(ol.set(t.id,s),t.haveCallback)s.attr("class",s.attr("class")+" clickable");return s}e(Ft,"insertNode");var wl=e((r,t)=>{ol.set(t.id,r)},"setNodeElem"),kl=e(()=>{ol.clear()},"clear"),St=e((r)=>{let t=ol.get(r.id);n.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let i=8,s=r.diff||0;if(r.clusterNode)t.attr("transform","translate("+(r.x+s-r.width/2)+", "+(r.y-r.height/2-i)+")");else t.attr("transform","translate("+r.x+", "+r.y+")");return s},"positionNode");var Ny=e(async(r,t,{variant:i="swimlane"}={})=>{let s=i==="pool",o=s?"pool swimlane":"swimlane",a=s?"pool-label swimlane-label":"swimlane-label",c=s?"pool-title swimlane-title":"swimlane-title",l=s?"pool-body swimlane-body":"swimlane-body",d=u(),{theme:x,themeVariables:f,handDrawnSeed:b}=d,{clusterBkg:T,clusterBorder:w,borderColorArray:v}=f,E=w,{labelStyles:P,nodeStyles:W,borderStyles:H,backgroundStyles:V}=C(t),Q=r.insert("g").attr("class","cluster "+o+" "+(t.cssClasses||"")).attr("id",t.domId??t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look);rt(Q,t.colorIndex,x,v);let J=kt(d.flowchart.htmlLabels),st=t.direction==="LR",lt=Q.insert("g").attr("class","cluster-label "+a),pt=await Be(lt,t.label,{style:t.labelStyle,useHtmlLabels:J,isNode:!0,width:t.width}),ft=pt.getBBox();if(J){let Wt=pt.children[0],Xt=m(pt);ft=Wt.getBoundingClientRect(),Xt.attr("width",ft.width),Xt.attr("height",ft.height)}let wt=t.padding??0,_t=t.width<=ft.width+wt?ft.width+wt:t.width;if(t.width<=ft.width+wt)t.diff=(_t-t.width)/2-wt;else t.diff=-wt;let xt=t.height,et=t.y-xt/2,ot=t.y+xt/2,bt=t.x-_t/2,it=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:et+xt/3,Lt=st?4:0,Et=ft.height+2*Lt,yt,qt;if(st){let Wt=Math.max(Et,ft.height+2*Lt),Xt=bt+Wt,oe=Math.max(0,_t-Wt);if(t.look==="handDrawn"){let zt=g.svg(Q),te=Vt(t,{roughness:0.7,fill:T,stroke:E,seed:b}),ee=Vt(t,{roughness:0.7,fill:"none",stroke:E,seed:b}),de=zt.rectangle(bt,et,Wt,xt,te);yt=Q.insert(()=>de,":first-child").attr("class",c);let me=zt.rectangle(Xt,et,oe,xt,ee);qt=Q.insert(()=>me,":first-child").attr("class",l),yt.select("path:nth-child(2)").attr("style",H.join(";")),yt.select("path").attr("style",V.join(";").replace("fill","stroke"))}else yt=Q.insert("rect",":first-child"),qt=Q.insert("rect",":first-child"),yt.attr("class",c).attr("style",W).attr("x",bt).attr("y",et).attr("width",Wt).attr("height",xt).attr("fill",T).attr("stroke",E),qt.attr("class",l).attr("style",W).attr("x",Xt).attr("y",et).attr("width",oe).attr("height",xt).attr("fill","none").attr("stroke",E);let ne=bt+Wt/2,Kt=t.y;lt.attr("transform",`translate(${ne}, ${Kt}) rotate(-90) translate(${-ft.width/2}, ${-ft.height/2})`)}else{let Wt=Math.max(0,it-et),Xt=Math.min(Et,Wt),oe=et+Xt,ne=Math.max(0,ot-oe),Kt=t.x-_t/2;if(t.look==="handDrawn"){let ee=g.svg(Q),de=Vt(t,{roughness:0.7,fill:T,stroke:E,fillWeight:3,seed:b}),me=Vt(t,{roughness:0.7,fill:"none",stroke:E,seed:b}),Te=ee.rectangle(Kt,et,_t,Xt,de);yt=Q.insert(()=>Te,":first-child").attr("class",c);let Ve=ee.rectangle(Kt,oe,_t,ne,me);qt=Q.insert(()=>Ve,":first-child").attr("class",l),yt.select("path:nth-child(2)").attr("style",H.join(";")),yt.select("path").attr("style",V.join(";").replace("fill","stroke"))}else yt=Q.insert("rect",":first-child"),qt=Q.insert("rect",":first-child"),yt.attr("class",c).attr("style",W).attr("x",Kt).attr("y",et).attr("width",_t).attr("height",Xt).attr("fill",T).attr("stroke",E),qt.attr("class",l).attr("style",W).attr("x",Kt).attr("y",oe).attr("width",_t).attr("height",ne).attr("fill","none").attr("stroke",E);let zt=t.x-ft.width/2,te=et+(Xt-ft.height)/2;lt.attr("transform",`translate(${zt}, ${te})`)}if(n.trace("Swimlane data ",t,JSON.stringify(t)),P){let Wt=lt.select("span");if(Wt)Wt.attr("style",P)}return t.offsetX=0,t.width=_t,t.height=xt,t.offsetY=ft.height-wt/2,t.intersect=function(Wt){return pi(t,Wt)},{cluster:Q,labelBBox:ft}},"swimlane"),qy=e(async(r,t)=>{n.info("Creating subgraph rect for ",t.id,t);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:a}=i,{clusterBkg:c,clusterBorder:l,borderColorArray:d}=o,{labelStyles:x,nodeStyles:f,borderStyles:b,backgroundStyles:T}=C(t),w=r.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look);rt(w,t.colorIndex,s,d);let v=Ne(i),E=w.insert("g").attr("class","cluster-label "),P;if(t.labelType==="markdown")P=await Be(E,t.label,{style:t.labelStyle,useHtmlLabels:v,isNode:!0,width:t.width});else P=await ei(E,t.label,t.labelStyle||"",!1,!0);let W=P.getBBox();if(Ne(i)){let ft=P.children[0],wt=m(P);W=ft.getBoundingClientRect(),wt.attr("width",W.width),wt.attr("height",W.height)}let H=t.width<=W.width+t.padding?W.width+t.padding:t.width;if(t.width<=W.width+t.padding)t.diff=(H-t.width)/2-t.padding;else t.diff=-t.padding;let V=t.height,Q=t.x-H/2,J=t.y-V/2;n.trace("Data ",t,JSON.stringify(t));let st;if(t.look==="handDrawn"){let ft=g.svg(w),wt=Vt(t,{roughness:0.7,fill:c,stroke:l,fillWeight:3,seed:a}),_t=ft.path(Fr(Q,J,H,V,0),wt);st=w.insert(()=>(n.debug("Rough node insert CXC",_t),_t),":first-child"),st.select("path:nth-child(2)").attr("style",b.join(";")),st.select("path").attr("style",T.join(";").replace("fill","stroke"))}else st=w.insert("rect",":first-child"),st.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",Q).attr("y",J).attr("width",H).attr("height",V);let{subGraphTitleTopMargin:lt}=Bt(i);if(E.attr("transform",`translate(${t.x-W.width/2}, ${t.y-t.height/2+lt})`),x){let ft=E.select("span");if(ft)ft.attr("style",x)}let pt=st.node().getBBox();return t.offsetX=0,t.width=pt.width,t.height=pt.height,t.offsetY=W.height-t.padding/2,t.intersect=function(ft){return pi(t,ft)},{cluster:w,labelBBox:W}},"rect"),BS=e((r,t)=>{let i=r.insert("g").attr("class","note-cluster").attr("id",t.domId),s=i.insert("rect",":first-child"),o=0*t.padding,a=o/2;s.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");let c=s.node().getBBox();return t.width=c.width,t.height=c.height,t.intersect=function(l){return pi(t,l)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),_S=e(async(r,t)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:a}=i,{altBackground:c,borderColorArray:l,compositeBackground:d,compositeTitleBackground:x,nodeBorder:f}=o,b=r.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look);rt(b,t.colorIndex,s,l);let T=b.insert("g",":first-child"),w=b.insert("g").attr("class","cluster-label"),v=b.append("rect"),E=await ei(w,t.label,t.labelStyle,void 0,!0),P=E.getBBox();if(Ne(i)){let _t=E.children[0],xt=m(E);P=_t.getBoundingClientRect(),xt.attr("width",P.width),xt.attr("height",P.height)}let W=0*t.padding,H=W/2,V=(t.width<=P.width+t.padding?P.width+t.padding:t.width)+W;if(t.width<=P.width+t.padding)t.diff=(V-t.width)/2-t.padding;else t.diff=-t.padding;let Q=t.height+W,J=t.height+W-P.height-6,st=t.x-V/2,lt=t.y-Q/2;t.width=V;let pt=t.y-t.height/2-H+P.height+2,ft;if(t.look==="handDrawn"){let _t=t.cssClasses.includes("statediagram-cluster-alt"),xt=g.svg(b),et=t.rx||t.ry?xt.path(Fr(st,lt,V,Q,10),{roughness:0.7,fill:x,fillStyle:"solid",stroke:f,seed:a}):xt.rectangle(st,lt,V,Q,{seed:a});ft=b.insert(()=>et,":first-child");let ot=xt.rectangle(st,pt,V,J,{fill:_t?c:d,fillStyle:_t?"hachure":"solid",stroke:f,seed:a});ft=b.insert(()=>et,":first-child"),v=b.insert(()=>ot),ft.attr("class","outer"),v.attr("class","inner")}else{ft=T.insert("rect",":first-child");let _t="outer";ft.attr("class",_t).attr("x",st).attr("y",lt).attr("width",V).attr("height",Q).attr("data-look",t.look),v.attr("class","inner").attr("x",st).attr("y",pt).attr("width",V).attr("height",J)}w.attr("transform",`translate(${t.x-P.width/2}, ${lt+1-(Ne(i)?0:3)})`);let wt=ft.node().getBBox();return t.height=wt.height,t.offsetX=0,t.offsetY=P.height-t.padding/2,t.labelBBox=P,t.intersect=function(_t){return pi(t,_t)},{cluster:b,labelBBox:P}},"roundedWithTitle"),vS=e(async(r,t)=>{n.info("Creating subgraph rect for ",t.id,t);let i=u(),{themeVariables:s,handDrawnSeed:o}=i,{clusterBkg:a,clusterBorder:c}=s,{labelStyles:l,nodeStyles:d,borderStyles:x,backgroundStyles:f}=C(t),b=r.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),T=Ne(i),w=b.insert("g").attr("class","cluster-label "),v=await Be(w,t.label,{style:t.labelStyle,useHtmlLabels:T,isNode:!0,width:t.width}),E=v.getBBox();if(Ne(i)){let lt=v.children[0],pt=m(v);E=lt.getBoundingClientRect(),pt.attr("width",E.width),pt.attr("height",E.height)}let P=t.width<=E.width+t.padding?E.width+t.padding:t.width;if(t.width<=E.width+t.padding)t.diff=(P-t.width)/2-t.padding;else t.diff=-t.padding;let W=t.height,H=t.x-P/2,V=t.y-W/2;n.trace("Data ",t,JSON.stringify(t));let Q;if(t.look==="handDrawn"){let lt=g.svg(b),pt=Vt(t,{roughness:0.7,fill:a,stroke:c,fillWeight:4,seed:o}),ft=lt.path(Fr(H,V,P,W,t.rx),pt);Q=b.insert(()=>(n.debug("Rough node insert CXC",ft),ft),":first-child"),Q.select("path:nth-child(2)").attr("style",x.join(";")),Q.select("path").attr("style",f.join(";").replace("fill","stroke"))}else Q=b.insert("rect",":first-child"),Q.attr("style",d).attr("rx",t.rx).attr("ry",t.ry).attr("x",H).attr("y",V).attr("width",P).attr("height",W);let{subGraphTitleTopMargin:J}=Bt(i);if(w.attr("transform",`translate(${t.x-E.width/2}, ${t.y-t.height/2+J})`),l){let lt=w.select("span");if(lt)lt.attr("style",l)}let st=Q.node().getBBox();return t.offsetX=0,t.width=st.width,t.height=st.height,t.offsetY=E.height-t.padding/2,t.intersect=function(lt){return pi(t,lt)},{cluster:b,labelBBox:E}},"kanbanSection"),LS=e((r,t)=>{let i=u(),{theme:s,themeVariables:o,handDrawnSeed:a}=i,{altBackground:c,nodeBorder:l,borderColorArray:d}=o,x=r.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look);rt(x,t.colorIndex,s,d);let f=x.insert("g",":first-child"),b=0*t.padding,T=t.width+b;t.diff=-t.padding;let w=t.height+b,v=t.x-T/2,E=t.y-w/2;t.width=T;let P;if(t.look==="handDrawn"){let V=g.svg(x).rectangle(v,E,T,w,{fill:c??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:l,seed:a});P=x.insert(()=>V,":first-child").attr("class","divider")}else{P=f.insert("rect",":first-child");let H="outer";if(t.look==="neo")H="divider";else H="divider";P.attr("class",H).attr("x",v).attr("y",E).attr("width",T).attr("height",w).attr("data-look",t.look)}let W=P.node().getBBox();return t.height=W.height,t.offsetX=0,t.offsetY=0,t.intersect=function(H){return pi(t,H)},{cluster:x,labelBBox:{}}},"divider"),AS=e(async(r,t,i)=>{n.info(`Creating ${i.cssClass} for `,t.id,t);let s=u(),{theme:o,themeVariables:a,handDrawnSeed:c}=s,{borderColorArray:l}=a,{labelStyles:d,borderStyles:x}=C(t),f=r.insert("g").attr("class","cluster "+i.cssClass+" "+t.cssClasses).attr("id",t.domId??t.id).attr("data-look",t.look);rt(f,t.colorIndex,o,l);let b=Ne(s),T=f.insert("g").attr("class","cluster-label"),w={width:0,height:0},v=t.label?.trim();if(v){let J;if(t.labelType==="markdown")J=await Be(T,t.label,{style:t.labelStyle,useHtmlLabels:b,isNode:!0,width:t.width});else J=await ei(T,t.label,t.labelStyle||"",!1,!0);if(w=J.getBBox(),b){let st=J.children[0],lt=m(J);w=st.getBoundingClientRect(),lt.attr("width",w.width),lt.attr("height",w.height)}}let E=t.width<=w.width+t.padding?w.width+t.padding:t.width;if(t.width<=w.width+t.padding)t.diff=(E-t.width)/2-t.padding;else t.diff=-t.padding;let P=t.height,W=t.x-E/2,H=t.y-P/2,V;if(t.look==="handDrawn"){let J=g.svg(f),st=Vt(t,{roughness:i.roughness,fill:i.fill,stroke:i.stroke,strokeWidth:i.strokeWidth,seed:c,...i.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...i.strokeDash?{strokeLineDash:i.strokeDash}:{}}),lt=J.path(Fr(W,H,E,P,i.rx),st);V=f.insert(()=>lt,":first-child"),V.select("path:nth-child(2)").attr("style",x.join(";"))}else if(V=f.insert("rect",":first-child"),V.attr("rx",i.rx).attr("ry",i.rx).attr("x",W).attr("y",H).attr("width",E).attr("height",P).attr("fill",i.fill).attr("stroke",i.stroke).attr("stroke-width",i.strokeWidth+"px"),i.strokeDash)V.attr("stroke-dasharray",i.strokeDash.join(", "));if(v){let{subGraphTitleTopMargin:J}=Bt(s);if(T.attr("transform",`translate(${t.x-w.width/2}, ${t.y-t.height/2+J})`),d){let st=T.select("span");if(st)st.attr("style",d)}}let Q=V.node().getBBox();return t.offsetX=0,t.width=Q.width,t.height=Q.height,t.offsetY=w.height-t.padding/2,t.intersect=function(J){return pi(t,J)},{cluster:f,labelBBox:w}},"createContainerGroup"),FS=e(async(r,t)=>{let{themeVariables:i}=u(),s=i.flowContainerStroke||i.secondaryBorderColor;return AS(r,t,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:s,strokeWidth:0.75,roughness:0.7})},"flowGroup"),MS=e((r,t)=>{let i=r.boundaryType||"rect",s=i==="package"?20:r.padding,o=i==="package"?t.height+10:0,a=Math.max(r.width,t.width+s),c=i==="package"?Math.max(r.height,o+r.padding*2):r.height,l=r.x-a/2,d=r.y-c/2;return{boundaryType:i,width:a,height:c,x:l,y:d,bodyY:d+o,bodyHeight:c-o,tabHeight:o,tabWidth:i==="package"?Math.min(a,Math.max(80,t.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),ES=e(async(r,t)=>{n.info("Creating usecase system boundary for ",t.id,t);let i=u(),{theme:s,themeVariables:o,handDrawnSeed:a}=i,{clusterBkg:c,clusterBorder:l,borderColorArray:d}=o,{labelStyles:x,nodeStyles:f}=C(t),{stylesMap:b}=li(t),T=t.boundaryType||"rect",w=r.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${T} ${t.cssClasses}`).attr("id",typeof t.domId==="string"?t.domId:t.id).attr("data-boundary-type",T).attr("data-look",t.look);rt(w,t.colorIndex,s,d);let v=Ne(i),E=w.insert("g").attr("class","cluster-label system-boundary-title"),P=await Be(E,t.label,{style:x,useHtmlLabels:v,isNode:!0}),W=P.getBBox();if(v){let et=P.children[0],ot=m(P);W=et.getBoundingClientRect(),ot.attr("width",W.width),ot.attr("height",W.height)}let H=MS(t,W),{width:V,height:Q,x:J,y:st,bodyY:lt,bodyHeight:pt,tabHeight:ft,tabWidth:wt}=H;t.diff=t.width<=W.width+t.padding?(V-t.width)/2-t.padding:-t.padding;let _t=Vt(t,{fill:b.get("fill")||c,stroke:b.get("stroke")||l,strokeWidth:b.get("stroke-width")?.replace("px","")||1,seed:a});if(t.look==="handDrawn"){let et=g.svg(w),ot=et.rectangle(J,lt,V,pt,_t);if(w.insert(()=>ot,":first-child").attr("class","boundary-body label-container"),T==="package"){let bt=et.rectangle(J,st,wt,ft,_t);w.insert(()=>bt,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(w.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",f).attr("x",J).attr("y",lt).attr("width",V).attr("height",pt),T==="package")w.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",f).attr("x",J).attr("y",st).attr("width",wt).attr("height",ft);let{subGraphTitleTopMargin:xt}=Bt(i);if(T==="package")E.attr("transform",`translate(${J+(wt-W.width)/2}, ${st+(ft-W.height)/2})`);else E.attr("transform",`translate(${t.x-W.width/2}, ${st+xt})`);if(x)E.attr("style",x),E.select("span").attr("style",x);return t.offsetX=0,t.width=V,t.height=Q,t.offsetY=W.height-t.padding/2,t.labelBBox=W,t.intersect=function(et){return pi(t,et)},{cluster:w,labelBBox:W}},"usecaseSystemBoundary"),OS=qy,IS=e((r,t)=>Ny(r,t,{variant:"pool"}),"pool"),$S={rect:qy,squareRect:OS,roundedWithTitle:_S,noteGroup:BS,divider:LS,kanbanSection:vS,flowGroup:FS,usecaseSystemBoundary:ES,swimlane:Ny,pool:IS},DS=new Set(["noteGroup","divider"]),Ts=e((r)=>!DS.has(r??"rect"),"clusterPaintsTitle"),Wy=new Map,gr=e(async(r,t)=>{let i=t.shape||"rect",s=await $S[i](r,t);return Wy.set(t.id,s),s},"insertCluster"),Tl=e(()=>{Wy=new Map},"clear");var sa=e((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let i=r.x??0,s=r.y??0;return"translate("+-(i+r.width/2)+", "+-(s+r.height/2)+")"},"computeLabelTransform"),we={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Lo={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function ha(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=ze(r),t=ze(t);let[i,s]=[r.x,r.y],[o,a]=[t.x,t.y],c=o-i,l=a-s;return{angle:Math.atan(l/c),deltaX:c,deltaY:l}}e(ha,"calculateDeltaAndAngle");var ze=e((r)=>{if(Array.isArray(r))return{x:r[0],y:r[1]};return r},"pointTransformer"),PS=e((r)=>({x:e(function(t,i,s){let o=0,a=ze(s[0]).x<ze(s[s.length-1]).x?"left":"right";if(i===0&&Object.hasOwn(we,r.arrowTypeStart)){let{angle:w,deltaX:v}=ha(s[0],s[1]);o=we[r.arrowTypeStart]*Math.cos(w)*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(we,r.arrowTypeEnd)){let{angle:w,deltaX:v}=ha(s[s.length-1],s[s.length-2]);o=we[r.arrowTypeEnd]*Math.cos(w)*(v>=0?1:-1)}let c=Math.abs(ze(t).x-ze(s[s.length-1]).x),l=Math.abs(ze(t).y-ze(s[s.length-1]).y),d=Math.abs(ze(t).x-ze(s[0]).x),x=Math.abs(ze(t).y-ze(s[0]).y),f=we[r.arrowTypeStart],b=we[r.arrowTypeEnd],T=1;if(c<b&&c>0&&l<b){let w=b+T-c;w*=a==="right"?-1:1,o-=w}if(d<f&&d>0&&x<f){let w=f+T-d;w*=a==="right"?-1:1,o+=w}return ze(t).x+o},"x"),y:e(function(t,i,s){let o=0,a=ze(s[0]).y<ze(s[s.length-1]).y?"down":"up";if(i===0&&Object.hasOwn(we,r.arrowTypeStart)){let{angle:w,deltaY:v}=ha(s[0],s[1]);o=we[r.arrowTypeStart]*Math.abs(Math.sin(w))*(v>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(we,r.arrowTypeEnd)){let{angle:w,deltaY:v}=ha(s[s.length-1],s[s.length-2]);o=we[r.arrowTypeEnd]*Math.abs(Math.sin(w))*(v>=0?1:-1)}let c=Math.abs(ze(t).y-ze(s[s.length-1]).y),l=Math.abs(ze(t).x-ze(s[s.length-1]).x),d=Math.abs(ze(t).y-ze(s[0]).y),x=Math.abs(ze(t).x-ze(s[0]).x),f=we[r.arrowTypeStart],b=we[r.arrowTypeEnd],T=1;if(c<b&&c>0&&l<b){let w=b+T-c;w*=a==="up"?-1:1,o-=w}if(d<f&&d>0&&x<f){let w=f+T-d;w*=a==="up"?-1:1,o+=w}return ze(t).y+o},"y")}),"getLineFunctionsWithOffset"),ex=1,Cs=e((r)=>typeof r==="number"&&Number.isFinite(r)&&r>0?r:ex,"getStepDuration"),bn=e((r)=>typeof r.step==="number"&&Number.isInteger(r.step)&&r.step>0,"isStepEdge"),zy=[0.25,0.35,0.15,0.65,0.75,0.5,0.85,0.1,0.9],ru=9,RS=11,NS=2,qS="#333333",Hy=12,Yy=6,Uy=14,jy=0.01,WS=4.5,rx=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,zS=4,HS=0.6,YS=4,US=e((r,t,i=ex)=>{let s=Math.max(t,r);return{begin:(r-1)*i,dur:i,gap:(s-1)*i}},"getEdgeStepTiming"),jS=e((r)=>`step_${Array.from(r,(t)=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),GS=e((r)=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(r.trim());return t?`translate(${t[1]},${t[2]}) `:""},"pathStartTranslate"),XS=e((r)=>Array.from(r,(t,i)=>{let s=t.codePointAt(0)??0;if(s===0)return"�";let o=s<=31||s===127,a=/\d/.test(t)&&(i===0||i===1&&r.startsWith("-"));if(o||a)return`\\${s.toString(16)} `;if(r==="-")return"\\-";return s>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(""),"escapeCssIdentifierFallback"),Ss=e((r)=>typeof CSS<"u"&&typeof CSS.escape==="function"?CSS.escape(r):XS(r),"escapeCssIdentifier"),VS=e((r,t)=>{let i=r.node(),s=i?.ownerSVGElement??i?.closest?.("svg")??i,o=t||s?.getAttribute("id");if(!s||!o||s.querySelector("style.edge-step-style"))return;let a=`#${Ss(o)} `,c=s.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");c.setAttribute("class","edge-step-style"),c.textContent=`@media (prefers-reduced-motion: reduce) { ${a}.edge-step-dot, ${a}.edge-step-highlight { display: none; } }`,s.appendChild(c)},"ensureReducedMotionStyle"),KS=e((r,t)=>{let i=r.filter((a)=>Number.isFinite(a.x)&&Number.isFinite(a.y));if(i.length===0)return;let s=i.slice(1).map((a,c)=>Math.hypot(a.x-i[c].x,a.y-i[c].y)),o=s.reduce((a,c)=>a+c,0)*t;for(let[a,c]of s.entries()){if(o<=c&&c>0){let l=o/c,d=i[a],x=i[a+1];return{x:d.x+(x.x-d.x)*l,y:d.y+(x.y-d.y)*l}}o-=c}return i[i.length-1]},"pointAlongPolyline"),ZS=e((r,t)=>{let i=typeof t?.getTotalLength==="function"?t.getTotalLength():0,s=t?.getPointAtLength?.bind(t);if(i>0&&s)return(o)=>{let{x:a,y:c}=s(i*o);return{x:a,y:c}};return(o)=>KS(r,o)},"createPathSampler"),QS=e((r,t)=>Math.min(Number.POSITIVE_INFINITY,...t.map((i)=>{let s=Math.max(Math.abs(r.x-i.x)-i.halfWidth,0),o=Math.max(Math.abs(r.y-i.y)-i.halfHeight,0);return Math.hypot(s,o)-ru})),"roomAround"),JS=e((r,t)=>{let i=r(t),s=r(Math.max(t-jy,0)),o=r(Math.min(t+jy,1));if(!i||!s||!o)return[];let a=Math.hypot(o.x-s.x,o.y-s.y);if(a===0)return[];let c={x:-(o.y-s.y)/a,y:(o.x-s.x)/a};return[1,-1].map((l)=>({x:i.x+c.x*Uy*l,y:i.y+c.y*Uy*l}))},"besideThePath"),tT=e((r,t)=>{let i=[...zy.map(r),...zy.flatMap((a)=>JS(r,a))],s,o=Number.NEGATIVE_INFINITY;for(let a of i){if(!a||!Number.isFinite(a.x)||!Number.isFinite(a.y))continue;let c=QS(a,t);if(c>=NS)return a;if(c>o)s=a,o=c}return s},"chooseBadgePosition"),ix=e((r,t)=>({...r,halfWidth:t,halfHeight:t}),"square"),eT=e((r)=>{let t=rx.exec(r.getAttribute("transform")??"");return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},"translationOf"),au=e((r)=>{let t={x:0,y:0};for(let i=r;i&&i.localName!=="svg";i=i.parentElement){let{x:s,y:o}=eT(i);t.x+=s,t.y+=o}return t},"offsetInSvg"),rT=e((r,t)=>{if(!rx.test(r.getAttribute("transform")??""))return;let i=au(r),s=i.x-t.x,o=i.y-t.y,a=r.getBBox?.();if(!a)return;return{x:s+a.x+a.width/2,y:o+a.y+a.height/2,halfWidth:a.width/2,halfHeight:a.height/2}},"boxedObstacle"),iT=e((r)=>{try{let t=JSON.parse(atob(r.getAttribute("data-points")??""));return Array.isArray(t)?t:[]}catch{return[]}},"readPoints"),Gy=e((r,t)=>{let i=Math.hypot(r.x-t.x,r.y-t.y);if(i===0)return ix(r,Hy);let s={x:(r.x-t.x)/i,y:(r.y-t.y)/i},o=Hy/2;return{x:r.x-s.x*o,y:r.y-s.y*o,halfWidth:Math.abs(s.x)*o+Math.abs(s.y)*Yy,halfHeight:Math.abs(s.y)*o+Math.abs(s.x)*Yy}},"arrowheadObstacle"),Xy=e((r,t)=>{let i=r.getAttribute(t);return!!i&&i!=="none"},"hasMarker"),oT=e((r,t)=>{let i=iT(r).filter((l)=>Number.isFinite(l?.x)&&Number.isFinite(l?.y));if(i.length===0)return[];let s=au(r),o=e((l)=>({x:l.x+s.x-t.x,y:l.y+s.y-t.y}),"toSvg"),a=i.length-1,c=[];if(Xy(r,"marker-start"))c.push(Gy(o(i[0]),o(i[Math.min(1,a)])));if(Xy(r,"marker-end"))c.push(Gy(o(i[a]),o(i[Math.max(a-1,0)])));return c},"arrowheadObstacles"),ox=e((r)=>{let t={x:0,y:0},i=[...r?.querySelectorAll(".edgeLabel, .node")??[]].map((o)=>rT(o,t)).filter((o)=>o!==void 0),s=[...r?.querySelectorAll('path[data-edge="true"]')??[]].flatMap((o)=>oT(o,t));return[...i,...s]},"collectBadgeObstacles"),sT=e((r,t)=>{if(!r.label||t.length===0)return[];let{x:i,y:s}=z.calcLabelPosition(t);return[{x:i,y:s,halfWidth:(r.width??0)/2,halfHeight:(r.height??0)/2}]},"edgeLabelObstacles"),aT=e((r)=>{let t=r/255;return t<=0.03928?t/12.92:((t+0.055)/1.055)**2.4},"linearChannel"),Vy=e((r)=>{try{let[t,i,s]=["r","g","b"].map((o)=>aT(gt(r,o)));return 0.2126*t+0.7152*i+0.0722*s}catch{return}},"relativeLuminance"),nT=e((r,t)=>{let i=Vy(r),s=Vy(t);if(i===void 0||s===void 0)return 0;return(Math.max(i,s)+0.05)/(Math.min(i,s)+0.05)},"contrastRatio"),lT=e((r,t)=>{let s=[...t.filter((a)=>!!a),"#ffffff","#000000"].map((a)=>({color:a,ratio:nT(r,a)}));return(s.find(({ratio:a})=>a>=WS)??s.reduce((a,c)=>c.ratio>a.ratio?c:a)).color},"pickBadgeTextColor"),hT=e((r)=>{let t=r?.replace(/^stroke:\s*/,"").trim();return t===""?void 0:t},"bareColor"),cT=e((r,t,i,s=ox(r.node()?.closest("svg")))=>{if(!bn(t)||!t.showStepNumber)return;let o=au(r.node()),a=s.map((x)=>({...x,x:x.x-o.x,y:x.y-o.y})),c=tT(ZS(i.points,i.pathNode),[...a,...sT(t,i.points)]);if(!c)return;let l=hT(i.color)??qS,d=r.append("g").attr("class","edge-step-badge").attr("transform",`translate(${c.x},${c.y})`).attr("pointer-events","none").attr("data-step",t.step);return d.append("circle").attr("r",ru).attr("fill",l),d.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",RS).attr("fill",lT(l,i.textColors??[])).text(String(t.step)),ix({x:c.x+o.x,y:c.y+o.y},ru)},"insertEdgeStepBadge"),Ky=e((r,t,i)=>{r.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${i}s`).attr("begin",`${t}.begin`).attr("fill","remove")},"showWhileStepPlays"),uT=e((r,t,i,s,o)=>{if(!bn(t)||!i)return;let{begin:a,dur:c,gap:l}=US(t.step,t.stepCount??t.step,Cs(t.stepDuration)),d=jS(`${s}-${t.id}-step`),x=`${GS(i)}scale(0)`,f=o?.replace(/^stroke:\s*/,""),b=r.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",i).attr("fill","none").attr("stroke",f??"currentColor").attr("stroke-width",zS).attr("stroke-linecap","round").attr("stroke-opacity",HS).attr("pointer-events","none").attr("transform",x).attr("data-step",t.step);Ky(b,d,c);let T=r.append("circle").attr("class","edge-step-dot").attr("r",YS).attr("aria-hidden","true").attr("transform",x).attr("data-step",t.step);if(f)T.attr("fill",f).attr("stroke","none");T.append("animateMotion").attr("id",d).attr("path",i).attr("dur",`${c}s`).attr("begin",`${a}s;${d}.end+${l}s`).attr("fill","remove"),Ky(T,d,c),VS(r,s)},"insertEdgeStepDot"),al=new WeakMap,dT=e((r)=>{let t=r.querySelector(":scope > g.edge-step-badges");if(t)return t;let i=r.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return i.setAttribute("class","edge-step-badges"),r.appendChild(i)},"badgeLayer"),sx=e((r)=>{let t=r?al.get(r):void 0;if(!r||!t)return;al.delete(r);let i=ox(r);for(let{elem:s,edge:o,options:a}of t){let c=s.node()?.parentElement;if(!c)continue;let l=m(dT(c)),d=cT(l,o,a,i);if(d)i.push(d)}},"placeQueuedStepBadges"),pT=e((r,t,i,s,o)=>{uT(r,t,i,s,o.color);let a=r.node(),c=a?.ownerSVGElement??a;if(!c||!bn(t)||!t.showStepNumber)return;al.set(c,[...al.get(c)??[],{elem:r,edge:t,options:o}])},"insertEdgeStepMarks"),Es=5;function Qr(r){return typeof r==="number"&&Number.isFinite(r)&&r>=0?r:Es}e(Qr,"resolveEdgeCornerRadius");var ax=e(({cssCompiledStyles:r})=>Object.entries(r??{}).filter(([t])=>!Ra(t)).map(([,t])=>t),"edgeClassStyles"),nx=e((r)=>r.animate===!0||!!r.animation||ax(r).join(";").includes("animation"),"isAnimatedEdge"),As=e((r)=>r.look==="neo"&&!nx(r),"drawsMarginMarkers"),fT=e((r,t,i,s,o,a=!1,c)=>{if(t.arrowTypeStart)Zy(r,"start",t.arrowTypeStart,i,s,o,a,c);if(t.arrowTypeEnd)Zy(r,"end",t.arrowTypeEnd,i,s,o,a,c)},"addEdgeMarkers"),gT={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},mT=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Zy=e((r,t,i,s,o,a,c=!1,l)=>{if(!i||i==="none")return;let d=gT[i],x=d&&mT.includes(d.type);if(!d){n.warn(`Unknown arrow type: ${i}`);return}let f=d.type,w=`${o}_${a}-${f}${t==="start"?"Start":"End"}${c&&x?"-margin":""}`;if(l&&l.trim()!==""){let v=l.replace(/[^\dA-Za-z]/g,"_"),E=`${w}_${v}`;if(!document.getElementById(E)){let P=document.getElementById(w);if(P){let W=P.cloneNode(!0);W.id=E,W.querySelectorAll("path, circle, line").forEach((V)=>{if(V.setAttribute("stroke",l),d.fill)V.setAttribute("fill",l)}),P.parentNode?.appendChild(W)}}r.attr(`marker-${t}`,`url(${s}#${E})`)}else r.attr(`marker-${t}`,`url(${s}#${w})`)},"addEdgeMarker"),_i=0.000001,yT=e((r)=>r&&Number.isFinite(r.x)&&Number.isFinite(r.y),"isFinitePoint"),lx=e((r,t)=>Math.abs(r.x-t.x)<=_i&&Math.abs(r.y-t.y)<=_i,"samePoint"),Nr=e((r,t)=>{if(!r.length||!lx(r.at(-1),t))r.push(t)},"appendDistinctPoint"),Qy=e((r,t,i)=>{if(!r?.intersect)return;let s=Math.abs(t.x-i.x)<=_i,o=Math.abs(t.y-i.y)<=_i;if(!s&&!o)return;let a=s?Math.sign(t.y-i.y):Math.sign(t.x-i.x);if(!a)return;let c=s?r.height:r.width,l=s?Math.abs(t.y-i.y):Math.abs(t.x-i.x),d=Number.isFinite(r.width)&&r.width>0&&Number.isFinite(r.height)&&r.height>0&&Number.isFinite(c)&&Number.isFinite(l),x=s?{x:t.x,y:t.y+a*(c+l+1)}:{x:t.x+a*(c+l+1),y:t.y},f=r.intersect(d?_o(i,x):i);if(!yT(f)||Number.isFinite(r.x)&&Number.isFinite(r.y)&&lx(f,{x:r.x,y:r.y}))return;if(s&&Math.abs(f.x-t.x)>_i||o&&Math.abs(f.y-t.y)>_i)return;if((s?(f.y-t.y)*a:(f.x-t.x)*a)<=_i)return;return{outline:f,elbow:s?{x:f.x,y:i.y}:{x:i.x,y:f.y}}},"outlineEndpoint"),xT=e((r,t,i)=>{if(!Array.isArray(r)||r.length<2)return r;let s=r[0],o=r[1],a=r[r.length-2],c=r[r.length-1],l=Qy(t,s,o),d=Qy(i,c,a);if(!l&&!d)return r;let x=[];if(r.length===2){let f=l?.outline??s,b=d?.outline??c,T=Math.abs(s.x-c.x)<=_i,w=Math.abs(s.y-c.y)<=_i;if(!T&&!w)return r;if(Nr(x,f),T){let v=(f.y+b.y)/2;Nr(x,{x:f.x,y:v}),Nr(x,{x:b.x,y:v})}else{let v=(f.x+b.x)/2;Nr(x,{x:v,y:f.y}),Nr(x,{x:v,y:b.y})}return Nr(x,b),x}if(l)Nr(x,l.outline),Nr(x,l.elbow);else Nr(x,s);for(let f of r.slice(1,-1))Nr(x,f);if(d)Nr(x,d.elbow),Nr(x,d.outline);else Nr(x,c);return x},"clipOrthogonalEndpointsToNodeOutlines");function Ro(r){return Array.isArray(r)&&r.length>=2&&r.every((t)=>t!==null&&typeof t==="object"&&(t.axis==="v"||t.axis==="h"))}e(Ro,"isAxisTaggedRoute");function ia(r,t){return Math.max(0.25,Math.min(0.5,4*Math.abs(t)/(Math.abs(r)||1)))}e(ia,"ease");var CT=6,bT=12,kT=5,sl=0.62;function hx(r){return r==="linear"||r==="step"||r==="stepBefore"||r==="stepAfter"||r==="rounded"?r:"curved"}e(hx,"curveKind");function iu(r){return r?we[r]??0:0}e(iu,"markerTrim");function Je(r){if(!Number.isFinite(r))throw RangeError(`Cannot write the number ${r} into SVG`);let t=Math.round(r*100)/100;return t===0?"0":String(t)}e(Je,"num");var ST=class{constructor(){this.d=""}static{e(this,"PathBuilder")}moveTo(r,t){return this.d+="M"+Je(r)+","+Je(t),this}lineTo(r,t){return this.d+="L"+Je(r)+","+Je(t),this}curveTo(r,t,i,s,o,a){return this.d+="C"+Je(r)+","+Je(t)+" "+Je(i)+","+Je(s)+" "+Je(o)+","+Je(a),this}quadTo(r,t,i,s){return this.d+="Q"+Je(r)+","+Je(t)+" "+Je(i)+","+Je(s),this}arcTo(r,t,i,s,o,a,c){return this.d+="A"+Je(r)+","+Je(t)+" "+Je(i)+" "+(s?"1":"0")+","+(o?"1":"0")+" "+Je(a)+","+Je(c),this}done(){return this.d}};function ou(r,t,i){if(r==="stepBefore")return t;if(r==="stepAfter")return i;return(t+i)/2}e(ou,"stepCorner");function cx(r,t,i,s){let o=t==="linear",a=t==="step"||t==="stepBefore"||t==="stepAfter",c=a||t==="rounded",l=[],d=[],x=[],f=e((yt,qt,Wt,Xt)=>Math.abs(yt-Wt)<0.01&&Math.abs(qt-Xt)<0.01,"near");for(let yt of r){let qt=yt.axis==="h"?1:0,Wt=l.length-1;if(a&&Wt>=0&&Math.abs(yt.x-l[Wt])>=0.01&&Math.abs(yt.y-d[Wt])>=0.01){let Xt=l[Wt],oe=d[Wt],ne=ou(t,oe,yt.y),Kt=ou(t,Xt,yt.x),zt=qt===0?[Xt,ne,yt.x,ne]:[Kt,oe,Kt,yt.y];for(let te=0;te<4;te+=2){if(f(zt[te],zt[te+1],Xt,oe)||f(zt[te],zt[te+1],yt.x,yt.y))continue;l.push(zt[te]),d.push(zt[te+1]),x.push(qt)}}l.push(yt.x),d.push(yt.y),x.push(qt)}let b=l.length-1,T=e((yt)=>l[yt],"X"),w=e((yt)=>d[yt],"Y"),v=e((yt)=>Math.abs(T(yt)-T(yt-1))<0.01||Math.abs(w(yt)-w(yt-1))<0.01,"aligned"),E=e((yt)=>o||t==="rounded"||v(yt),"straight"),P=e((yt,qt,Wt)=>{if(!E(Math.max(yt,qt)))return Wt===0?[0,Math.sign(w(qt)-w(yt))||1]:[Math.sign(T(qt)-T(yt))||1,0];let Xt=T(qt)-T(yt),oe=w(qt)-w(yt),ne=Math.hypot(Xt,oe)||1;return[Xt/ne,oe/ne]},"unit"),[W,H]=P(0,1,x[1]??0),[V,Q]=P(b-1,b,x[b]??0),J=T(0),st=w(0),lt=T(b),pt=w(b);l[0]=J+W*i,d[0]=st+H*i,l[b]=lt-V*s,d[b]=pt-Q*s;let ft=e((yt)=>Math.abs(T(yt)-T(yt-1))+Math.abs(w(yt)-w(yt-1)),"length"),wt=e((yt)=>!o&&yt>0&&yt<b&&v(yt)&&v(yt+1)&&ft(yt)>=0.01&&ft(yt+1)>=0.01&&Math.abs(T(yt)-T(yt-1))<0.01!==Math.abs(T(yt+1)-T(yt))<0.01,"turns"),_t=e((yt,qt,Wt)=>Math.abs(T(yt)-T(yt-1))*Math.abs(qt)+Math.abs(w(yt)-w(yt-1))*Math.abs(Wt),"along"),xt=e((yt)=>Math.min(CT,yt/4),"lead"),et=s>0&&(!E(b)||wt(b-1))?xt(_t(b,V,Q)):0,ot=i>0&&(!E(1)||wt(1))?xt(_t(1,W,H)):0;if(et>=1)l.splice(b,0,T(b)-V*et),d.splice(b,0,w(b)-Q*et),x.splice(b,0,x[b]),b++;if(ot>=1)l.splice(1,0,T(0)+W*ot),d.splice(1,0,w(0)+H*ot),x.splice(1,0,x[1]),b++;let bt=new ST().moveTo(T(0),w(0)),it=T(0),Lt=w(0),Et=e((yt,qt)=>{if(f(yt,qt,it,Lt))return;bt.lineTo(yt,qt),it=yt,Lt=qt},"lineTo");for(let yt=1;yt<=b;yt++){let qt=T(yt),Wt=w(yt);if(!E(yt)){let ee=x[yt]===0,de=ee?Wt-Lt:qt-it,me=Math.abs(de)*ia(ee?qt-it:Wt-Lt,de),Te=ee?0:Math.sign(de)*me,Ve=ee?Math.sign(de)*me:0;bt.curveTo(it+Te,Lt+Ve,qt-Te,Wt-Ve,qt,Wt),it=qt,Lt=Wt;continue}if(!wt(yt)){if(yt<b&&v(yt)&&v(yt+1)&&(qt-T(yt-1))*(T(yt+1)-qt)+(Wt-w(yt-1))*(w(yt+1)-Wt)>0)continue;Et(qt,Wt);continue}let Xt=wt(yt-1)?ft(yt)/2:ft(yt),oe=wt(yt+1)?ft(yt+1)/2:ft(yt+1);if(c)Xt=oe=Math.min(t==="rounded"?kT:bT,Xt,oe);let[ne,Kt]=P(yt-1,yt,x[yt]),[zt,te]=P(yt,yt+1,x[yt+1]);if(Et(qt-ne*Xt,Wt-Kt*Xt),it=qt+zt*oe,Lt=Wt+te*oe,t==="rounded")bt.arcTo(Xt,Xt,0,!1,ne*te-Kt*zt>0,it,Lt);else if(c)bt.quadTo(qt,Wt,it,Lt);else bt.curveTo(qt-ne*Xt*(1-sl),Wt-Kt*Xt*(1-sl),qt+zt*oe*(1-sl),Wt+te*oe*(1-sl),it,Lt)}return{d:bt.done(),sx:J,sy:st,sdx:-W,sdy:-H,ex:lt,ey:pt,edx:V,edy:Q}}e(cx,"routePath");var TT=e((r)=>typeof r==="string"?r:u()?.flowchart?.curve,"resolveEdgeCurveType"),vn=new Map,Ue=new Map,Cl=e(()=>{vn.clear(),Ue.clear()},"clear"),_s=e((r)=>Boolean(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),la=e((r)=>{if(!r)return"";if(typeof r==="string")return r;return r.reduce((t,i)=>t+";"+i,"")},"getLabelStyles"),$t=e(async(r,t)=>{let i=u(),s=Ne(i),{labelStyles:o}=C(t);t.labelStyle=o;let a=r.insert("g").attr("class","edgeLabel"),c=a.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",d=void 0,x=await Be(r,t.label,{style:la(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:l,width:l?d:void 0},i);c.node().appendChild(x),n.info("abc82",t,t.labelType);let f,b;if(s){let w=x.children[0],v=m(x);f=await Ti.measure(()=>w.getBoundingClientRect()),b=f,v.attr("width",f.width),v.attr("height",f.height)}else{let w=m(x).select("text").node();await Ti.measure(()=>{if(f=x.getBBox(),w&&typeof w.getBBox==="function")b=w.getBBox();else b=f})}c.attr("transform",sa(b,s)),vn.set(t.id,a),t.width=f.width,t.height=f.height;let T;if(t.startLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),v=w.insert("g").attr("class","inner"),E=await ei(v,t.startLabelLeft,la(t.labelStyle)||"",!1,!1);T=E;let P=E.getBBox();if(s){let W=E.children[0],H=m(E);P=W.getBoundingClientRect(),H.attr("width",P.width),H.attr("height",P.height)}if(v.attr("transform",sa(P,s)),!Ue.get(t.id))Ue.set(t.id,{});Ue.get(t.id).startLeft=w,ua(T,t.startLabelLeft,P),ca(t,"startLeft",P)}if(t.startLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),v=w.insert("g").attr("class","inner"),E=await ei(v,t.startLabelRight,la(t.labelStyle)||"",!1,!1);T=E;let P=E.getBBox();if(s){let W=E.children[0],H=m(E);P=W.getBoundingClientRect(),H.attr("width",P.width),H.attr("height",P.height)}if(v.attr("transform",sa(P,s)),!Ue.get(t.id))Ue.set(t.id,{});Ue.get(t.id).startRight=w,ua(T,t.startLabelRight,P),ca(t,"startRight",P)}if(t.endLabelLeft){let w=r.insert("g").attr("class","edgeTerminals"),v=w.insert("g").attr("class","inner"),E=await ei(v,t.endLabelLeft,la(t.labelStyle)||"",!1,!1);T=E;let P=E.getBBox();if(s){let W=E.children[0],H=m(E);P=W.getBoundingClientRect(),H.attr("width",P.width),H.attr("height",P.height)}if(v.attr("transform",sa(P,s)),!Ue.get(t.id))Ue.set(t.id,{});Ue.get(t.id).endLeft=w,ua(T,t.endLabelLeft,P),ca(t,"endLeft",P)}if(t.endLabelRight){let w=r.insert("g").attr("class","edgeTerminals"),v=w.insert("g").attr("class","inner"),E=await ei(v,t.endLabelRight,la(t.labelStyle)||"",!1,!1);T=E;let P=E.getBBox();if(s){let W=E.children[0],H=m(E);P=W.getBoundingClientRect(),H.attr("width",P.width),H.attr("height",P.height)}if(v.attr("transform",sa(P,s)),!Ue.get(t.id))Ue.set(t.id,{});Ue.get(t.id).endRight=w,ua(T,t.endLabelRight,P),ca(t,"endRight",P)}return x},"insertEdgeLabel");function ca(r,t,i){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:i.width,height:i.height}}e(ca,"recordTerminalLabelSize");function ua(r,t,i){if(Ne(u())&&r)r.style.width=Math.max(t.length*9,i.width)+"px",r.style.height=i.height+"px"}e(ua,"setTerminalWidth");var Ls=e((r,t)=>{let{x:i,y:s}=r;if(t?.updatedPath){let o=z.calcLabelPosition(t.updatedPath);if(t.originalPath){let a=z.calcLabelPosition(t.originalPath);i=r.x+(o.x-a.x),s=r.y+(o.y-a.y)}else i=o.x,s=o.y}return{x:i,y:s}},"resolveEdgeLabelPosition"),yn=e((r,t)=>{n.debug("Moving label abc88 ",r.id,r.label,vn.get(r.id),t);let i=u(),{subGraphTitleTotalMargin:s}=Bt(i);if(r.label){let a=vn.get(r.id),{x:c,y:l}=Ls(r,t);n.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",c,",",l,") abc88"),a.attr("transform",`translate(${c}, ${l+s/2})`)}let o=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let a=Ue.get(r.id).startLeft,{x:c,y:l}=r;if(o){let d=z.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",o);c=d.x,l=d.y}a.attr("transform",`translate(${c}, ${l})`)}if(r.startLabelRight){let a=Ue.get(r.id).startRight,{x:c,y:l}=r;if(o){let d=z.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",o);c=d.x,l=d.y}a.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelLeft){let a=Ue.get(r.id).endLeft,{x:c,y:l}=r;if(o){let d=z.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",o);c=d.x,l=d.y}a.attr("transform",`translate(${c}, ${l})`)}if(r.endLabelRight){let a=Ue.get(r.id).endRight,{x:c,y:l}=r;if(o){let d=z.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",o);c=d.x,l=d.y}a.attr("transform",`translate(${c}, ${l})`)}},"positionEdgeLabel"),os=0.5,vi=e((r,t)=>Math.abs(r.x-t.x)<os,"sharesColumn"),Li=e((r,t)=>Math.abs(r.y-t.y)<os,"sharesRow"),ux=e((r,t)=>vi(r,t)&&Li(r,t),"coincides");function dx(r,t,i){if(vi(r,t)&&!Li(r,t))return vi(i,t);if(Li(r,t)&&!vi(r,t))return Li(i,t);return vi(i,t)||Li(i,t)}e(dx,"keepsArrivalAxis");function px(r,t,i){return ux(r,t)?{heading:t,from:i}:{heading:r,from:t}}e(px,"arrivalSegment");function fx({heading:r,from:t},i,s){return(r.x-t.x)*(s.x-i.x)+(r.y-t.y)*(s.y-i.y)<0}e(fx,"runsAgainstHeading");function gx({heading:r,from:t},i,s){if(Li(r,t)&&!vi(r,t))return{x:s.x,y:i.y};if(vi(r,t)&&!Li(r,t))return{x:i.x,y:s.y};return s}e(gx,"snapToArrivalAxis");function mx(r,t,i,s){if((vi(r,t)||Li(r,t))&&!dx(r,t,s))return r;let a=px(r,t,i);if(fx(a,t,s))return t;return gx(a,t,s)}e(mx,"dockFinalPoint");function yx(r){let t=Object.hasOwn(we,r)?we[r]:0;return Number.isFinite(t)?t:0}e(yx,"markerPullBack");function xx({originalLast:r,lastInner:t,newLast:i,minLength:s}){let o=!ux(r,t),a=Math.hypot(i.x-t.x,i.y-t.y);if(a>=Math.max(os,s))return i;return o&&a>=os?r:void 0}e(xx,"finalDockPoint");var wT=e((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t))return t;if(t.length!==2)return t;let[i,s]=t,o=Math.abs(s.x-i.x),a=Math.abs(s.y-i.y);if(o<0.001||a<0.001)return t;if(a>=o)return[i,{x:i.x,y:s.y},s];return[i,{x:s.x,y:i.y},s]},"orthogonalizeToLabelClippedPoints"),BT=e((r,t)=>{let{x:i,y:s}=r,o=Math.abs(t.x-i),a=Math.abs(t.y-s),c=r.width/2,l=r.height/2;return o>=c||a>=l},"outsideNode"),_T=e((r,t,i)=>{n.debug(`intersection calc abc89:
|
|
294
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
295
|
+
insidePoint : ${JSON.stringify(i)}
|
|
296
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let{x:s,y:o}=r,a=Math.abs(s-i.x),c=r.width/2,l=i.x<t.x?c-a:c+a,d=r.height/2,x=Math.abs(t.y-i.y),f=Math.abs(t.x-i.x);if(Math.abs(o-t.y)*c>Math.abs(s-t.x)*d){let b=i.y<t.y?t.y-d-o:o-d-t.y;l=f*b/x;let T={x:i.x<t.x?i.x+l:i.x-f+l,y:i.y<t.y?i.y+x-b:i.y-x+b};if(l===0)T.x=t.x,T.y=t.y;if(f===0)T.x=t.x;if(x===0)T.y=t.y;return n.debug(`abc89 top/bottom calc, Q ${x}, q ${b}, R ${f}, r ${l}`,T),T}else{if(i.x<t.x)l=t.x-c-s;else l=s-c-t.x;let b=x*l/f,T=i.x<t.x?i.x+f-l:i.x-f+l,w=i.y<t.y?i.y+b:i.y-b;if(n.debug(`sides calc abc89, Q ${x}, q ${b}, R ${f}, r ${l}`,{_x:T,_y:w}),l===0)T=t.x,w=t.y;if(f===0)T=t.x;if(x===0)w=t.y;return{x:T,y:w}}},"intersection"),Jy=e((r,t)=>{n.warn("abc88 cutPathAtIntersect",r,t);let i=[],s=r[0],o=!1;return r.forEach((a)=>{if(n.info("abc88 checking point",a,t),!BT(t,a)&&!o){let c=_T(t,s,a);n.debug("abc88 inside",a,s,c),n.debug("abc88 intersection",c,t);let l=!1;if(i.forEach((d)=>{l=l||d.x===c.x&&d.y===c.y}),!i.some((d)=>d.x===c.x&&d.y===c.y))i.push(c);else n.warn("abc88 no intersect",c,i);o=!0}else if(n.warn("abc88 outside",a,s),s=a,!o)i.push(a)}),n.debug("returning points",i),i},"cutPathAtIntersect");function Cx(r){let t=[],i=[];for(let s=1;s<r.length-1;s++){let o=r[s-1],a=r[s],c=r[s+1];if(o.x===a.x&&a.y===c.y&&Math.abs(a.x-c.x)>5&&Math.abs(a.y-o.y)>5)t.push(a),i.push(s);else if(o.y===a.y&&a.x===c.x&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-c.y)>5)t.push(a),i.push(s)}return{cornerPoints:t,cornerPointPositions:i}}e(Cx,"extractCornerPoints");var tx=e(function(r,t,i){let s=t.x-r.x,o=t.y-r.y,a=Math.sqrt(s*s+o*o),c=i/a;return{x:t.x-c*s,y:t.y-c*o}},"findAdjacentPoint"),vT=e(function(r){let{cornerPointPositions:t}=Cx(r),i=[];for(let s=0;s<r.length;s++)if(t.includes(s)){let o=r[s-1],a=r[s+1],c=r[s],l=tx(o,c,5),d=tx(a,c,5),x=d.x-l.x,f=d.y-l.y;i.push(l);let b=Math.sqrt(2)*2,T={x:c.x,y:c.y};if(Math.abs(a.x-o.x)>10&&Math.abs(a.y-o.y)>=10){n.debug("Corner point fixing",Math.abs(a.x-o.x),Math.abs(a.y-o.y));let w=5;if(c.x===l.x)T={x:x<0?l.x-w+b:l.x+w-b,y:f<0?l.y-b:l.y+b};else T={x:x<0?l.x-b:l.x+b,y:f<0?l.y-w+b:l.y+w-b}}else n.debug("Corner point skipping fixing",Math.abs(a.x-o.x),Math.abs(a.y-o.y));i.push(T,d)}else i.push(r[s]);return i},"fixCorners"),LT=e((r,t,i)=>{let s=r-t-i,o=2,a=2,c=4,l=Math.floor(s/4),d=Number.isFinite(l)?Math.max(0,l):0,x=Array(d).fill("2 2").join(" ");return`0 ${t} ${x} ${i}`},"generateDashArray"),br=e(function(r,t,i,s,o,a,c,l=!1,d=void 0){if(!c)throw Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:x,layout:f}=u(),b=d??f,T=t.points,w=!1,v=o;var E=a;let P=ax(t),W=Ro(T);if(!W&&t.portClipping==="outline-orthogonal"&&!l)T=xT(T,v,E);else if(!W&&b==="swimlane"){if(!l&&E.intersect&&v.intersect&&Array.isArray(T)&&T.length>=2)if(T.length===2){let[Wt,Xt]=T;T=vi(Wt,Xt)||Li(Wt,Xt)?[v.intersect(Wt),E.intersect(Xt)]:[v.intersect(Xt),E.intersect(Wt)]}else{let Wt=T.slice(1,-1),Xt=Wt[0],oe=Wt[Wt.length-1],ne=v.intersect(Xt),Kt=T[T.length-1],zt=E.intersect(oe),te=Wt.at(-2)??T[0],ee=mx(Kt,oe,te,zt),de=xx({originalLast:Kt,lastInner:oe,newLast:ee,minLength:yx(t.arrowTypeEnd)}),Te=Math.abs(ne.x-Xt.x)<os&&Math.abs(ne.y-Xt.y)<os?[]:[ne],Ve=de?[de]:[];T=[...Te,...Wt,...Ve]}T=wT(t,T)}else if(!W&&E.intersect&&v.intersect&&!l)T=T.slice(1,t.points.length-1),T.unshift(v.intersect(T[0])),T.push(E.intersect(T[T.length-1]));let H=btoa(JSON.stringify(T));if(t.toCluster&&!W)n.info("to cluster abc88",i.get(t.toCluster)),T=Jy(t.points,i.get(t.toCluster).node),w=!0;if(t.fromCluster&&!W)n.debug("from cluster abc88",i.get(t.fromCluster),JSON.stringify(T,null,2)),T=Jy(T.reverse(),i.get(t.fromCluster).node).reverse(),w=!0;let V=T.filter((Wt)=>!Number.isNaN(Wt.y)),Q=TT(t.curve);if(Q!=="rounded"&&!W&&!t.skipCornerFix)V=vT(V);let J=pr;switch(Q){case"linear":J=pr;break;case"basis":J=Ps;break;case"cardinal":J=rn;break;case"bumpX":J=Ja;break;case"bumpY":J=tn;break;case"catmullRom":J=on;break;case"monotoneX":J=sn;break;case"monotoneY":J=an;break;case"natural":J=nn;break;case"step":J=cn;break;case"stepAfter":J=dn;break;case"stepBefore":J=un;break;case"rounded":J=pr;break;default:J=Ps}let{x:st,y:lt}=PS(t),pt=La().x(st).y(lt).curve(J),ft;switch(t.thickness){case"normal":ft="edge-thickness-normal";break;case"thick":ft="edge-thickness-thick";break;case"invisible":ft="edge-thickness-invisible";break;default:ft="edge-thickness-normal"}switch(t.pattern){case"solid":ft+=" edge-pattern-solid";break;case"dotted":ft+=" edge-pattern-dotted";break;case"dashed":ft+=" edge-pattern-dashed";break;default:ft+=" edge-pattern-solid"}let wt,_t=W?cx(V,hx(Q),iu(t.arrowTypeStart),iu(t.arrowTypeEnd)).d:Q==="rounded"?bx(kx(V,t),Qr(t.cornerRadius)):pt(V),xt=Array.isArray(t.style)?t.style:[t.style],et=xt.find((Wt)=>Wt?.startsWith("stroke:")),ot="";if(t.animate)ot="edge-animation-fast";if(t.animation)ot="edge-animation-"+t.animation;let bt=!1;if(t.look==="handDrawn"){let Wt=g.svg(r);Object.assign([],V);let Xt=Wt.path(_t,{roughness:0.3,seed:x});ft+=" transition",wt=m(Xt).select("path").attr("id",`${c}-${t.id}`).attr("class"," "+ft+(t.classes?" "+t.classes:"")+(ot?" "+ot:"")).attr("style",xt?xt.reduce((ne,Kt)=>ne+";"+Kt,""):"");let oe=wt.attr("d");wt.attr("d",oe),r.node().appendChild(wt.node())}else{let Wt=P.join(";"),Xt=xt?xt.reduce((ee,de)=>ee+de+";",""):"",oe=(Wt?Wt+";"+Xt+";":Xt)+";"+(xt?xt.reduce((ee,de)=>ee+";"+de,""):"");wt=r.append("path").attr("d",_t).attr("id",`${c}-${t.id}`).attr("class"," "+ft+(t.classes?" "+t.classes:"")+(ot?" "+ot:"")).attr("style",oe),et=oe.match(/stroke:([^;]+)/)?.[1],bt=nx(t);let ne=wt.node(),Kt=typeof ne.getTotalLength==="function"?ne.getTotalLength():0,zt=Lo[t.arrowTypeStart]||0,te=Lo[t.arrowTypeEnd]||0;if(t.look==="neo"&&!bt){let de=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?LT(Kt,zt,te):`0 ${zt} ${Kt-zt-te} ${te}`}; stroke-dashoffset: 0;`;wt.attr("style",de+wt.attr("style"))}}if(wt.attr("data-edge",!0),wt.attr("data-et","edge"),wt.attr("data-id",t.id),wt.attr("data-points",H),wt.attr("data-look",He(t.look)),t.step!==void 0){let{themeVariables:Wt}=u(),Xt=et??Wt?.lineColor;pT(r,t,_t,c,{points:V,pathNode:wt.node(),color:Xt,textColors:[Wt?.background,Wt?.primaryTextColor]})}if(t.showPoints)V.forEach((Wt)=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Wt.x).attr("cy",Wt.y)});let it="";if(u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)it=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,it=it.replace(/\(/g,"\\(").replace(/\)/g,"\\)");n.info("arrowTypeStart",t.arrowTypeStart),n.info("arrowTypeEnd",t.arrowTypeEnd);let Lt=As(t);fT(wt,t,it,c,s,Lt,et);let Et=Math.floor(T.length/2),yt=T[Et];if(!z.isLabelCoordinateInPath(yt,wt.attr("d")))w=!0;let qt={};if(w)qt.updatedPath=T;return qt.originalPath=t.points,qt},"insertEdge");function bx(r,t){if(r.length<2)return"";let i="",s=r.length,o=0.00001;for(let a=0;a<s;a++){let c=r[a],l=r[a-1],d=r[a+1];if(a===0)i+=`M${c.x},${c.y}`;else if(a===s-1)i+=`L${c.x},${c.y}`;else{let x=c.x-l.x,f=c.y-l.y,b=d.x-c.x,T=d.y-c.y,w=Math.hypot(x,f),v=Math.hypot(b,T);if(w<o||v<o){i+=`L${c.x},${c.y}`;continue}let E=x/w,P=f/w,W=b/v,H=T/v,V=E*W+P*H,Q=Math.max(-1,Math.min(1,V)),J=Math.acos(Q);if(J<o||Math.abs(Math.PI-J)<o){i+=`L${c.x},${c.y}`;continue}let st=Math.min(t/Math.sin(J/2),w/2,v/2),lt=c.x-E*st,pt=c.y-P*st,ft=c.x+W*st,wt=c.y+H*st;i+=`L${lt},${pt}`,i+=`Q${c.x},${c.y} ${ft},${wt}`}}return i}e(bx,"generateRoundedPath");function su(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let i=t.x-r.x,s=t.y-r.y;return{angle:Math.atan2(s,i),deltaX:i,deltaY:s}}e(su,"calculateDeltaAndAngle");function kx(r,t){let i=r.map((o)=>({...o}));if(r.length>=2&&we[t.arrowTypeStart]){let o=we[t.arrowTypeStart],a=r[0],c=r[1],{angle:l}=su(a,c),d=o*Math.cos(l),x=o*Math.sin(l);i[0].x=a.x+d,i[0].y=a.y+x}let s=r.length;if(s>=2&&we[t.arrowTypeEnd]){let o=we[t.arrowTypeEnd],a=r[s-1],c=r[s-2],{angle:l}=su(c,a),d=o*Math.cos(l),x=o*Math.sin(l);i[s-1].x=a.x-d,i[s-1].y=a.y-x}return i}e(kx,"applyMarkerOffsetsToPoints");var AT=e((r,t,i,s)=>{t.forEach((o)=>{ew[o](r,i,s)})},"insertMarkers"),FT=e((r,t,i)=>{n.trace("Making markers for ",i),r.append("defs").append("marker").attr("id",i+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",i+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",i+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),MT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ET=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),OT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),IT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),$T=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),DT=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),PT=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",i+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",i+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),RT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),NT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{transitionColor:a}=o;r.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),qT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),WT=e((r,t,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).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"),zT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),HT=e((r,t,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).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"),YT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a}=o;r.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),r.append("defs").append("marker").attr("id",i+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),UT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a,mainBkg:c}=o,l=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",c??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let d=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",c??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),jT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a}=o;r.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),r.append("defs").append("marker").attr("id",i+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),GT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a,mainBkg:c}=o,l=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",c??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let d=r.append("defs").append("marker").attr("id",i+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",c??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),XT=e((r,t,i)=>{r.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
297
|
+
L20,10
|
|
298
|
+
M20,10
|
|
299
|
+
L0,20`)},"requirement_arrow"),VT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a}=o;r.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
300
|
+
L20,10
|
|
301
|
+
M20,10
|
|
302
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),KT=e((r,t,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").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)},"requirement_contains"),ZT=e((r,t,i)=>{let s=k(),{themeVariables:o}=s,{strokeWidth:a}=o,c=r.append("defs").append("marker").attr("id",i+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),QT=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),JT=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),tw=e((r,t,i)=>{r.append("marker").attr("id",i+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),ew={extension:FT,composition:MT,aggregation:ET,dependency:OT,lollipop:IT,point:$T,circle:DT,cross:PT,barb:RT,barbNeo:NT,hierarchy:QT,only_one:qT,zero_or_one:WT,one_or_more:zT,zero_or_more:HT,only_one_neo:YT,zero_or_one_neo:UT,one_or_more_neo:jT,zero_or_more_neo:GT,requirement_arrow:XT,requirement_contains:KT,requirement_arrow_neo:VT,requirement_contains_neo:ZT,openArrow:JT,hollowCircle:tw},xn=AT;var rw={common:y,getConfig:k,insertCluster:gr,insertEdge:br,insertEdgeLabel:$t,insertMarkers:xn,insertNode:Ft,interpolateToCurve:Fn,labelHelper:U,log:n,positionEdgeLabel:yn},iw=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],da=Object.create(null),Rs=e((r)=>{for(let t of r)da[t.name]=t},"registerLayoutLoaders"),ow=e(()=>{let r=e(async()=>await (_("vy7cdqps"),import("./elk-O5DQBFGD.vy7cdqps.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...iw.map((t)=>({name:t,loader:r,algorithm:t}))]},"elkLayoutLoaders"),sw=e(()=>{Rs([{name:"dagre",loader:e(async()=>await (_("7n7s7vq2"),import("./dagre-KIHZ2IZ3.7n7s7vq2.js")),"loader")},{name:"swimlane",loader:e(async()=>await (_("j7j7c6ex"),import("./swimlanes-YQL5WMAO.j7j7c6ex.js")),"loader")},{name:"grid",loader:e(async()=>await (_("q51enfx7"),import("./grid-E2QIVN74.q51enfx7.js")),"loader")},{name:"layered",loader:e(async()=>await (_("rn9hpsbx"),import("./render-VIF2ZAQL.rn9hpsbx.js")),"loader")},{name:"cose-bilkent",loader:e(async()=>await (_("gb18dr42"),import("./cose-bilkent-JH36ORCC.gb18dr42.js")),"loader")},...ow()])},"registerDefaultLayoutLoaders");sw();var Ae=e(async(r,t)=>{if(!Object.hasOwn(da,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let a of r.nodes){let c=a.domId||a.id;a.domId=`${r.diagramId}-${c}`}let i=da[r.layoutAlgorithm],s=await i.loader();no(t,r.config);let o=await s.render(r,t,rw,{algorithm:i.algorithm});return sx(t.node()),o},"render"),nu="dagre",_e=e((r="",{fallback:t=nu}={})=>{if(Object.hasOwn(da,r))return r;for(let i of[t,nu])if(Object.hasOwn(da,i))return n.warn(`Layout algorithm ${r} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${r}, ${t}, nor ${nu} is registered.`)},"getRegisteredLayoutAlgorithm");
|
|
303
|
+
export{e,dr,Qi,n,Sa,be,gt,ae,Qn,h,p,Pe,ds,fs,Wr,Zn,Zi,dl,fe,Me,fr,F,Ea,Aa,Lr,Rr,hs,Ir,kt,Ji,fl,hl,pl,ps,ms,k,ml,Jn,gl,Ne,hn,q,gs,hr,Ce,ea,ta,y,j,Tt,eo,bl,to,A,L,I,R,M,O,D,u,Pt,Kr,ra,_a,ro,m,Qt,pr,La,vl,Y,ut,dt,no,Ra,C,Ia,ve,he,pe,Ct,tt,rt,bs,mr,nt,pn,Yr,mn,ao,Ma,Na,Da,Oa,io,oo,so,lo,co,uo,fo,ho,po,mo,go,bo,vo,yo,xo,wo,ko,gn,Zt,na,Pa,To,vs,yl,Co,ys,xs,Xr,Ba,at,Fa,So,ws,Qe,K,z,xl,Jt,We,Eo,Ao,ks,Be,g,U,N,_o,S,$a,aa,Bt,Ft,wl,kl,St,Ts,gr,Tl,we,Lo,Cs,bn,Ss,Es,Qr,As,Ro,ia,vn,Ue,Cl,_s,$t,Ls,yn,br,xn,Rs,Ae,_e};
|