const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-15b5d702-nz-BtkXK.js","assets/svgDrawCommon-3ba9043b-Dj33Fd2X.js","assets/app-BvgF5LHD.js","assets/flowDiagram-cbd28bf7-BdkHYlhr.js","assets/flowDb-7c981674-BgM4HUPd.js","assets/graph-B0gtIY9Q.js","assets/layout-D_KaEfZi.js","assets/styles-2ab5d517-B1uQd-Av.js","assets/index-6079d271-B7oLWnxt.js","assets/clone-C2xnqaLE.js","assets/edges-332bd1c7-Cm7Y-kYC.js","assets/createText-d213de94-BphW6GBF.js","assets/line--XM3FrQK.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-Dv97RYfs.js","assets/flowDiagram-v2-ffc7f31a-oT57zLdK.js","assets/erDiagram-880f2ed8-_nL7fT9L.js","assets/gitGraphDiagram-21fc4d3e-kKI1CMH_.js","assets/ganttDiagram-04f9e578-DrdHQXyM.js","assets/linear-DIc_HnuJ.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-4a4f5b27-Z2nexi56.js","assets/pieDiagram-421022e6-Dz9AktKn.js","assets/arc-B1gkfxyK.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-0957ecba-DnJ5KUuW.js","assets/xychartDiagram-b6496bcd-2V-AR7s3.js","assets/requirementDiagram-23d650b8-B3YTrKUE.js","assets/sequenceDiagram-17ac3bff-Boh3EGUI.js","assets/classDiagram-d40c83e7-CcfGFzSp.js","assets/styles-5f03d8d2-CaPpsqcL.js","assets/classDiagram-v2-d5a6b087-BqvCLeAS.js","assets/stateDiagram-9c5f0230-Bu4UMq6s.js","assets/styles-edf9a4b0-B7FGlYnL.js","assets/stateDiagram-v2-51a3dcff-Br0b5QDx.js","assets/journeyDiagram-29694f62-BXvSR98i.js","assets/flowchart-elk-definition-36e2d292-Cb06phD7.js","assets/timeline-definition-7e6b55e7-87bASmGK.js","assets/mindmap-definition-ac74a2e8-CW32B5h4.js","assets/sankeyDiagram-23345273-uAnSg17F.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-68f4deed-0aCkQCtn.js"])))=>i.map(i=>d[i]); import{_ as K}from"./app-BvgF5LHD.js";function _h(t){for(var e=[],i=1;i=T?M:""+Array(T+1-w.length).join(y)+M},N={s:U,z:function(M){var T=-M.utcOffset(),y=Math.abs(T),w=Math.floor(y/60),x=y%60;return(T<=0?"+":"-")+U(w,2,"0")+":"+U(x,2,"0")},m:function M(T,y){if(T.date()1)return M(D[0])}else{var $=T.name;G[$]=T,x=$}return!w&&x&&(j=x),x||!w&&j},Z=function(M,T){if(Jt(M))return M.clone();var y=typeof T=="object"?T:{};return y.date=M,y.args=arguments,new St(y)},R=N;R.l=Qt,R.i=Jt,R.w=function(M,T){return Z(M,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var St=function(){function M(y){this.$L=Qt(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[q]=!0}var T=M.prototype;return T.parse=function(y){this.$d=function(w){var x=w.date,F=w.utc;if(x===null)return new Date(NaN);if(R.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var D=x.match(k);if(D){var $=D[2]-1||0,X=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)):new Date(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)}}return new Date(x)}(y),this.init()},T.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==b},T.isSame=function(y,w){var x=Z(y);return this.startOf(w)<=x&&x<=this.endOf(w)},T.isAfter=function(y,w){return Z(y)-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(c,p){return String.fromCharCode(p)})}function h(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var c=f.match(o);if(!c)return f;var p=c[0];return e.test(p)?t.BLANK_URL:f}t.sanitizeUrl=h})(Hs);var Th={value:()=>{}};function js(){for(var t=0,e=arguments.length,i={},r;t=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Pi.prototype=js.prototype={constructor:Pi,on:function(t,e){var i=this._,r=vh(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var i=new Array(n),r=0,n,o;r=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Ao.hasOwnProperty(e)?{space:Ao[e],local:t}:t}function Sh(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===nn&&e.documentElement.namespaceURI===nn?e.createElement(t):e.createElementNS(i,t)}}function wh(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Us(t){var e=mr(t);return(e.local?wh:Sh)(e)}function Bh(){}function Sn(t){return t==null?Bh:function(){return this.querySelector(t)}}function Ah(t){typeof t!="function"&&(t=Sn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n=U&&(U=v+1);!(j=k[U])&&++U<_;);N._next=j||null}}return s=new _t(s,r),s._enter=a,s._exit=l,s}function Gh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Xh(){return new _t(this._exit||this._groups.map(Xs),this._parents)}function Kh(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function Zh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Qh(t){t||(t=tc);function e(f,c){return f&&c?t(f.__data__,c.__data__):!f-!c}for(var i=this._groups,r=i.length,n=new Array(r),o=0;oe?1:t>=e?0:NaN}function ec(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ic(){return Array.from(this)}function rc(){for(var t=this._groups,e=0,i=t.length;e1?this.each((e==null?pc:typeof e=="function"?mc:gc)(t,e,i??"")):Ie(this.node(),t)}function Ie(t,e){return t.style.getPropertyValue(e)||Ks(t).getComputedStyle(t,null).getPropertyValue(e)}function yc(t){return function(){delete this[t]}}function Cc(t,e){return function(){this[t]=e}}function xc(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function bc(t,e){return arguments.length>1?this.each((e==null?yc:typeof e=="function"?xc:Cc)(t,e)):this.node()[t]}function Zs(t){return t.trim().split(/^|\s+/)}function wn(t){return t.classList||new Js(t)}function Js(t){this._node=t,this._names=Zs(t.getAttribute("class")||"")}Js.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Qs(t,e){for(var i=wn(t),r=-1,n=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Xc(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Oi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Oi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=nu.exec(t))?new gt(e[1],e[2],e[3],1):(e=ou.exec(t))?new gt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=su.exec(t))?Oi(e[1],e[2],e[3],e[4]):(e=au.exec(t))?Oi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=lu.exec(t))?$o(e[1],e[2]/100,e[3]/100,1):(e=hu.exec(t))?$o(e[1],e[2]/100,e[3]/100,e[4]):Lo.hasOwnProperty(t)?Oo(Lo[t]):t==="transparent"?new gt(NaN,NaN,NaN,0):null}function Oo(t){return new gt(t>>16&255,t>>8&255,t&255,1)}function Oi(t,e,i,r){return r<=0&&(t=e=i=NaN),new gt(t,e,i,r)}function fu(t){return t instanceof Ti||(t=gi(t)),t?(t=t.rgb(),new gt(t.r,t.g,t.b,t.opacity)):new gt}function on(t,e,i,r){return arguments.length===1?fu(t):new gt(t,e,i,r??1)}function gt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Bn(gt,on,ra(Ti,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?di:Math.pow(di,t),new gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new gt(ge(this.r),ge(this.g),ge(this.b),Ki(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mo,formatHex:Mo,formatHex8:du,formatRgb:Io,toString:Io}));function Mo(){return`#${de(this.r)}${de(this.g)}${de(this.b)}`}function du(){return`#${de(this.r)}${de(this.g)}${de(this.b)}${de((isNaN(this.opacity)?1:this.opacity)*255)}`}function Io(){const t=Ki(this.opacity);return`${t===1?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${t===1?")":`, ${t})`}`}function Ki(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ge(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function de(t){return t=ge(t),(t<16?"0":"")+t.toString(16)}function $o(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ft(t,e,i,r)}function na(t){if(t instanceof Ft)return new Ft(t.h,t.s,t.l,t.opacity);if(t instanceof Ti||(t=gi(t)),!t)return new Ft;if(t instanceof Ft)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i0&&l<1?0:s,new Ft(s,a,l,t.opacity)}function pu(t,e,i,r){return arguments.length===1?na(t):new Ft(t,e,i,r??1)}function Ft(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Bn(Ft,pu,ra(Ti,{brighter(t){return t=t==null?Xi:Math.pow(Xi,t),new Ft(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?di:Math.pow(di,t),new Ft(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new gt(zr(t>=240?t-240:t+120,n,r),zr(t,n,r),zr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ft(Do(this.h),Mi(this.s),Mi(this.l),Ki(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ki(this.opacity);return`${t===1?"hsl(":"hsla("}${Do(this.h)}, ${Mi(this.s)*100}%, ${Mi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Do(t){return t=(t||0)%360,t<0?t+360:t}function Mi(t){return Math.max(0,Math.min(1,t||0))}function zr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const An=t=>()=>t;function oa(t,e){return function(i){return t+i*e}}function gu(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function bb(t,e){var i=e-t;return i?oa(t,i>180||i<-180?i-360*Math.round(i/360):i):An(isNaN(t)?e:t)}function mu(t){return(t=+t)==1?sa:function(e,i){return i-e?gu(e,i,t):An(isNaN(e)?i:e)}}function sa(t,e){var i=e-t;return i?oa(t,i):An(isNaN(t)?e:t)}const No=function t(e){var i=mu(e);function r(n,o){var s=i((n=on(n)).r,(o=on(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),h=sa(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=h(u),n+""}}return r.gamma=t,r}(1);function ne(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var sn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wr=new RegExp(sn.source,"g");function _u(t){return function(){return t}}function yu(t){return function(e){return t(e)+""}}function Cu(t,e){var i=sn.lastIndex=Wr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=sn.exec(t))&&(n=Wr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:ne(r,n)})),i=Wr.lastIndex;return i180?u+=360:u-h>180&&(h+=360),c.push({i:f.push(n(f)+"rotate(",null,r)-2,x:ne(h,u)})):u&&f.push(n(f)+"rotate("+u+r)}function a(h,u,f,c){h!==u?c.push({i:f.push(n(f)+"skewX(",null,r)-2,x:ne(h,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(h,u,f,c,p,_){if(h!==f||u!==c){var b=p.push(n(p)+"scale(",null,",",null,")");_.push({i:b-4,x:ne(h,f)},{i:b-2,x:ne(u,c)})}else(f!==1||c!==1)&&p.push(n(p)+"scale("+f+","+c+")")}return function(h,u){var f=[],c=[];return h=t(h),u=t(u),o(h.translateX,h.translateY,u.translateX,u.translateY,f,c),s(h.rotate,u.rotate,f,c),a(h.skewX,u.skewX,f,c),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,f,c),h=u=null,function(p){for(var _=-1,b=c.length,k;++_=0&&t._call.call(void 0,e),t=t._next;--$e}function Po(){_e=(Ji=mi.now())+_r,$e=ri=0;try{Su()}finally{$e=0,Bu(),_e=0}}function wu(){var t=mi.now(),e=t-Ji;e>ha&&(_r-=e,Ji=t)}function Bu(){for(var t,e=Zi,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Zi=i);ni=t,ln(r)}function ln(t){if(!$e){ri&&(ri=clearTimeout(ri));var e=t-_e;e>24?(t<1/0&&(ri=setTimeout(Po,t-mi.now()-_r)),Ke&&(Ke=clearInterval(Ke))):(Ke||(Ji=mi.now(),Ke=setInterval(wu,ha)),$e=1,ca(Po))}}function qo(t,e,i){var r=new Qi;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Au=js("start","end","cancel","interrupt"),Lu=[],fa=0,zo=1,hn=2,qi=3,Wo=4,cn=5,zi=6;function yr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Fu(t,i,{name:e,index:r,group:n,on:Au,tween:Lu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fa})}function Fn(t,e){var i=Mt(t,e);if(i.state>fa)throw new Error("too late; already scheduled");return i}function zt(t,e){var i=Mt(t,e);if(i.state>qi)throw new Error("too late; already running");return i}function Mt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Fu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=ua(o,0,i.time);function o(h){i.state=zo,i.timer.restart(s,i.delay,i.time),i.delay<=h&&s(h-i.delay)}function s(h){var u,f,c,p;if(i.state!==zo)return l();for(u in r)if(p=r[u],p.name===i.name){if(p.state===qi)return qo(s);p.state===Wo?(p.state=zi,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[u]):+uhn&&r.state=0&&(e=e.slice(0,i)),!e||e==="start"})}function lf(t,e,i){var r,n,o=af(e)?Fn:zt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function hf(t,e){var i=this._id;return arguments.length<2?Mt(this.node(),i).on.on(t):this.each(lf(i,t,e))}function cf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function uf(){return this.on("end.remove",cf(this._id))}function ff(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Sn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s1?0:t<-1?On:Math.acos(t)}function Eb(t){return t>=1?jo:t<=-1?-jo:Math.asin(t)}function ma(t){this._context=t}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Nf(t){return new ma(t)}class _a{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Rf(t){return new _a(t,!0)}function Pf(t){return new _a(t,!1)}function ae(){}function tr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Cr(t){this._context=t}Cr.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:tr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function qf(t){return new Cr(t)}function ya(t){this._context=t}ya.prototype={areaStart:ae,areaEnd:ae,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zf(t){return new ya(t)}function Ca(t){this._context=t}Ca.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:tr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wf(t){return new Ca(t)}function xa(t,e){this._basis=new Cr(t),this._beta=e}xa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Hf=function t(e){function i(r){return e===1?new Cr(r):new xa(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function er(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Mn(t,e){this._context=t,this._k=(1-e)/6}Mn.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:er(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jf=function t(e){function i(r){return new Mn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function In(t,e){this._context=t,this._k=(1-e)/6}In.prototype={areaStart:ae,areaEnd:ae,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Uf=function t(e){function i(r){return new In(r,e)}return i.tension=function(r){return t(+r)},i}(0);function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:er(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yf=function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Ho){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ho){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function ba(t,e){this._context=t,this._alpha=e}ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Dn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Vf=function t(e){function i(r){return e?new ba(r,e):new Mn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Ta(t,e){this._context=t,this._alpha=e}Ta.prototype={areaStart:ae,areaEnd:ae,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(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Dn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gf=function t(e){function i(r){return e?new Ta(r,e):new In(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function va(t,e){this._context=t,this._alpha=e}va.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:Dn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xf=function t(e){function i(r){return e?new va(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ka(t){this._context=t}ka.prototype={areaStart:ae,areaEnd:ae,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Kf(t){return new ka(t)}function Uo(t){return t<0?-1:1}function Yo(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Uo(o)+Uo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Vo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Hr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function ir(t){this._context=t}ir.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:Hr(this,this._t0,Vo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Hr(this,Vo(this,i=Yo(this,t,e)),i);break;default:Hr(this,this._t0,i=Yo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Sa(t){this._context=new wa(t)}(Sa.prototype=Object.create(ir.prototype)).point=function(t,e){ir.prototype.point.call(this,e,t)};function wa(t){this._context=t}wa.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function Zf(t){return new ir(t)}function Jf(t){return new Sa(t)}function Ba(t){this._context=t}Ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Go(t),n=Go(e),o=0,s=1;s=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function td(t){return new xr(t,.5)}function ed(t){return new xr(t,0)}function id(t){return new xr(t,1)}function oi(t,e,i){this.k=t,this.x=e,this.y=i}oi.prototype={constructor:oi,scale:function(t){return t===1?this:new oi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new oi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};oi.prototype;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Aa,setPrototypeOf:Xo,isFrozen:rd,getPrototypeOf:nd,getOwnPropertyDescriptor:od}=Object;let{freeze:ft,seal:vt,create:La}=Object,{apply:un,construct:fn}=typeof Reflect<"u"&&Reflect;ft||(ft=function(e){return e});vt||(vt=function(e){return e});un||(un=function(e,i,r){return e.apply(i,r)});fn||(fn=function(e,i){return new e(...i)});const $i=yt(Array.prototype.forEach),Ko=yt(Array.prototype.pop),Ze=yt(Array.prototype.push),Wi=yt(String.prototype.toLowerCase),jr=yt(String.prototype.toString),Zo=yt(String.prototype.match),Je=yt(String.prototype.replace),sd=yt(String.prototype.indexOf),ad=yt(String.prototype.trim),Lt=yt(Object.prototype.hasOwnProperty),ht=yt(RegExp.prototype.test),Qe=ld(TypeError);function yt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Wi;Xo&&Xo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(rd(e)||(e[r]=o),n=o)}t[n]=!0}return t}function hd(t){for(let e=0;e/gm),pd=vt(/\${[\w\W]*}/gm),gd=vt(/^data-[\-\w.\u00B7-\uFFFF]/),md=vt(/^aria-[\-\w]+$/),Fa=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_d=vt(/^(?:\w+script|data):/i),yd=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ea=vt(/^html$/i),Cd=vt(/^[a-z][.\w]*(-[.\w]+)+$/i);var is=Object.freeze({__proto__:null,MUSTACHE_EXPR:fd,ERB_EXPR:dd,TMPLIT_EXPR:pd,DATA_ATTR:gd,ARIA_ATTR:md,IS_ALLOWED_URI:Fa,IS_SCRIPT_OR_DATA:_d,ATTR_WHITESPACE:yd,DOCTYPE_NAME:Ea,CUSTOM_ELEMENT:Cd});const ei={element:1,text:3,progressingInstruction:7,comment:8,document:9},xd=function(){return typeof window>"u"?null:window},bd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Oa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xd();const e=B=>Oa(B);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==ei.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:c,trustedTypes:p}=t,_=l.prototype,b=ti(_,"cloneNode"),k=ti(_,"remove"),P=ti(_,"nextSibling"),v=ti(_,"childNodes"),U=ti(_,"parentNode");if(typeof s=="function"){const B=i.createElement("template");B.content&&B.content.ownerDocument&&(i=B.content.ownerDocument)}let N,j="";const{implementation:G,createNodeIterator:q,createDocumentFragment:Jt,getElementsByTagName:Qt}=i,{importNode:Z}=r;let R={};e.isSupported=typeof Aa=="function"&&typeof U=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:St,ERB_EXPR:te,TMPLIT_EXPR:M,DATA_ATTR:T,ARIA_ATTR:y,IS_SCRIPT_OR_DATA:w,ATTR_WHITESPACE:x,CUSTOM_ELEMENT:F}=is;let{IS_ALLOWED_URI:D}=is,$=null;const X=W({},[...Jo,...Ur,...Yr,...Vr,...Qo]);let z=null;const tt=W({},[...ts,...Gr,...es,...Di]);let H=Object.seal(La(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}})),Ct=null,wt=null,ee=!0,Bt=!0,it=!1,At=!0,xt=!1,ie=!0,ce=!1,Ir=!1,$r=!1,ve=!1,Bi=!1,Ai=!1,oo=!0,so=!1;const hh="user-content-";let Dr=!0,Ve=!1,ke={},Se=null;const ao=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lo=null;const ho=W({},["audio","video","img","source","image","track"]);let Nr=null;const co=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Li="http://www.w3.org/1998/Math/MathML",Fi="http://www.w3.org/2000/svg",Ht="http://www.w3.org/1999/xhtml";let we=Ht,Rr=!1,Pr=null;const ch=W({},[Li,Fi,Ht],jr);let Ge=null;const uh=["application/xhtml+xml","text/html"],fh="text/html";let et=null,Be=null;const dh=i.createElement("form"),uo=function(d){return d instanceof RegExp||d instanceof Function},qr=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===d)){if((!d||typeof d!="object")&&(d={}),d=ue(d),Ge=uh.indexOf(d.PARSER_MEDIA_TYPE)===-1?fh:d.PARSER_MEDIA_TYPE,et=Ge==="application/xhtml+xml"?jr:Wi,$=Lt(d,"ALLOWED_TAGS")?W({},d.ALLOWED_TAGS,et):X,z=Lt(d,"ALLOWED_ATTR")?W({},d.ALLOWED_ATTR,et):tt,Pr=Lt(d,"ALLOWED_NAMESPACES")?W({},d.ALLOWED_NAMESPACES,jr):ch,Nr=Lt(d,"ADD_URI_SAFE_ATTR")?W(ue(co),d.ADD_URI_SAFE_ATTR,et):co,lo=Lt(d,"ADD_DATA_URI_TAGS")?W(ue(ho),d.ADD_DATA_URI_TAGS,et):ho,Se=Lt(d,"FORBID_CONTENTS")?W({},d.FORBID_CONTENTS,et):ao,Ct=Lt(d,"FORBID_TAGS")?W({},d.FORBID_TAGS,et):{},wt=Lt(d,"FORBID_ATTR")?W({},d.FORBID_ATTR,et):{},ke=Lt(d,"USE_PROFILES")?d.USE_PROFILES:!1,ee=d.ALLOW_ARIA_ATTR!==!1,Bt=d.ALLOW_DATA_ATTR!==!1,it=d.ALLOW_UNKNOWN_PROTOCOLS||!1,At=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xt=d.SAFE_FOR_TEMPLATES||!1,ie=d.SAFE_FOR_XML!==!1,ce=d.WHOLE_DOCUMENT||!1,ve=d.RETURN_DOM||!1,Bi=d.RETURN_DOM_FRAGMENT||!1,Ai=d.RETURN_TRUSTED_TYPE||!1,$r=d.FORCE_BODY||!1,oo=d.SANITIZE_DOM!==!1,so=d.SANITIZE_NAMED_PROPS||!1,Dr=d.KEEP_CONTENT!==!1,Ve=d.IN_PLACE||!1,D=d.ALLOWED_URI_REGEXP||Fa,we=d.NAMESPACE||Ht,H=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&uo(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&uo(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xt&&(Bt=!1),Bi&&(ve=!0),ke&&($=W({},Qo),z=[],ke.html===!0&&(W($,Jo),W(z,ts)),ke.svg===!0&&(W($,Ur),W(z,Gr),W(z,Di)),ke.svgFilters===!0&&(W($,Yr),W(z,Gr),W(z,Di)),ke.mathMl===!0&&(W($,Vr),W(z,es),W(z,Di))),d.ADD_TAGS&&($===X&&($=ue($)),W($,d.ADD_TAGS,et)),d.ADD_ATTR&&(z===tt&&(z=ue(z)),W(z,d.ADD_ATTR,et)),d.ADD_URI_SAFE_ATTR&&W(Nr,d.ADD_URI_SAFE_ATTR,et),d.FORBID_CONTENTS&&(Se===ao&&(Se=ue(Se)),W(Se,d.FORBID_CONTENTS,et)),Dr&&($["#text"]=!0),ce&&W($,["html","head","body"]),$.table&&(W($,["tbody"]),delete Ct.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=d.TRUSTED_TYPES_POLICY,j=N.createHTML("")}else N===void 0&&(N=bd(p,n)),N!==null&&typeof j=="string"&&(j=N.createHTML(""));ft&&ft(d),Be=d}},fo=W({},["mi","mo","mn","ms","mtext"]),po=W({},["foreignobject","annotation-xml"]),ph=W({},["title","style","font","a","script"]),go=W({},[...Ur,...Yr,...cd]),mo=W({},[...Vr,...ud]),gh=function(d){let m=U(d);(!m||!m.tagName)&&(m={namespaceURI:we,tagName:"template"});const S=Wi(d.tagName),Y=Wi(m.tagName);return Pr[d.namespaceURI]?d.namespaceURI===Fi?m.namespaceURI===Ht?S==="svg":m.namespaceURI===Li?S==="svg"&&(Y==="annotation-xml"||fo[Y]):!!go[S]:d.namespaceURI===Li?m.namespaceURI===Ht?S==="math":m.namespaceURI===Fi?S==="math"&&po[Y]:!!mo[S]:d.namespaceURI===Ht?m.namespaceURI===Fi&&!po[Y]||m.namespaceURI===Li&&!fo[Y]?!1:!mo[S]&&(ph[S]||!go[S]):!!(Ge==="application/xhtml+xml"&&Pr[d.namespaceURI]):!1},It=function(d){Ze(e.removed,{element:d});try{U(d).removeChild(d)}catch{k(d)}},Ei=function(d,m){try{Ze(e.removed,{attribute:m.getAttributeNode(d),from:m})}catch{Ze(e.removed,{attribute:null,from:m})}if(m.removeAttribute(d),d==="is"&&!z[d])if(ve||Bi)try{It(m)}catch{}else try{m.setAttribute(d,"")}catch{}},_o=function(d){let m=null,S=null;if($r)d=""+d;else{const rt=Zo(d,/^[\r\n\t ]+/);S=rt&&rt[0]}Ge==="application/xhtml+xml"&&we===Ht&&(d=' '+d+"");const Y=N?N.createHTML(d):d;if(we===Ht)try{m=new c().parseFromString(Y,Ge)}catch{}if(!m||!m.documentElement){m=G.createDocument(we,"template",null);try{m.documentElement.innerHTML=Rr?j:Y}catch{}}const nt=m.body||m.documentElement;return d&&S&&nt.insertBefore(i.createTextNode(S),nt.childNodes[0]||null),we===Ht?Qt.call(m,ce?"html":"body")[0]:ce?m.documentElement:nt},yo=function(d){return q.call(d.ownerDocument||d,d,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Co=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof u)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},xo=function(d){return typeof a=="function"&&d instanceof a},jt=function(d,m,S){R[d]&&$i(R[d],Y=>{Y.call(e,m,S,Be)})},bo=function(d){let m=null;if(jt("beforeSanitizeElements",d,null),Co(d))return It(d),!0;const S=et(d.nodeName);if(jt("uponSanitizeElement",d,{tagName:S,allowedTags:$}),d.hasChildNodes()&&!xo(d.firstElementChild)&&ht(/<[/\w]/g,d.innerHTML)&&ht(/<[/\w]/g,d.textContent)||d.nodeType===ei.progressingInstruction||ie&&d.nodeType===ei.comment&&ht(/<[/\w]/g,d.data))return It(d),!0;if(!$[S]||Ct[S]){if(!Ct[S]&&vo(S)&&(H.tagNameCheck instanceof RegExp&&ht(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S)))return!1;if(Dr&&!Se[S]){const Y=U(d)||d.parentNode,nt=v(d)||d.childNodes;if(nt&&Y){const rt=nt.length;for(let dt=rt-1;dt>=0;--dt){const $t=b(nt[dt],!0);$t.__removalCount=(d.__removalCount||0)+1,Y.insertBefore($t,P(d))}}}return It(d),!0}return d instanceof l&&!gh(d)||(S==="noscript"||S==="noembed"||S==="noframes")&&ht(/<\/no(script|embed|frames)/i,d.innerHTML)?(It(d),!0):(xt&&d.nodeType===ei.text&&(m=d.textContent,$i([St,te,M],Y=>{m=Je(m,Y," ")}),d.textContent!==m&&(Ze(e.removed,{element:d.cloneNode()}),d.textContent=m)),jt("afterSanitizeElements",d,null),!1)},To=function(d,m,S){if(oo&&(m==="id"||m==="name")&&(S in i||S in dh))return!1;if(!(Bt&&!wt[m]&&ht(T,m))){if(!(ee&&ht(y,m))){if(!z[m]||wt[m]){if(!(vo(d)&&(H.tagNameCheck instanceof RegExp&&ht(H.tagNameCheck,d)||H.tagNameCheck instanceof Function&&H.tagNameCheck(d))&&(H.attributeNameCheck instanceof RegExp&&ht(H.attributeNameCheck,m)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(m))||m==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ht(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S))))return!1}else if(!Nr[m]){if(!ht(D,Je(S,x,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&d!=="script"&&sd(S,"data:")===0&&lo[d])){if(!(it&&!ht(w,Je(S,x,"")))){if(S)return!1}}}}}}return!0},vo=function(d){return d!=="annotation-xml"&&Zo(d,F)},ko=function(d){jt("beforeSanitizeAttributes",d,null);const{attributes:m}=d;if(!m)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};let Y=m.length;for(;Y--;){const nt=m[Y],{name:rt,namespaceURI:dt,value:$t}=nt,Xe=et(rt);let lt=rt==="value"?$t:ad($t);if(S.attrName=Xe,S.attrValue=lt,S.keepAttr=!0,S.forceKeepAttr=void 0,jt("uponSanitizeAttribute",d,S),lt=S.attrValue,ie&&ht(/((--!?|])>)|<\/(style|title)/i,lt)){Ei(rt,d);continue}if(S.forceKeepAttr||(Ei(rt,d),!S.keepAttr))continue;if(!At&&ht(/\/>/i,lt)){Ei(rt,d);continue}xt&&$i([St,te,M],wo=>{lt=Je(lt,wo," ")});const So=et(d.nodeName);if(To(So,Xe,lt)){if(so&&(Xe==="id"||Xe==="name")&&(Ei(rt,d),lt=hh+lt),N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!dt)switch(p.getAttributeType(So,Xe)){case"TrustedHTML":{lt=N.createHTML(lt);break}case"TrustedScriptURL":{lt=N.createScriptURL(lt);break}}try{dt?d.setAttributeNS(dt,rt,lt):d.setAttribute(rt,lt),Co(d)?It(d):Ko(e.removed)}catch{}}}jt("afterSanitizeAttributes",d,null)},mh=function B(d){let m=null;const S=yo(d);for(jt("beforeSanitizeShadowDOM",d,null);m=S.nextNode();)jt("uponSanitizeShadowNode",m,null),!bo(m)&&(m.content instanceof o&&B(m.content),ko(m));jt("afterSanitizeShadowDOM",d,null)};return e.sanitize=function(B){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,S=null,Y=null,nt=null;if(Rr=!B,Rr&&(B=""),typeof B!="string"&&!xo(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw Qe("dirty is not a string, aborting")}else throw Qe("toString is not a function");if(!e.isSupported)return B;if(Ir||qr(d),e.removed=[],typeof B=="string"&&(Ve=!1),Ve){if(B.nodeName){const $t=et(B.nodeName);if(!$[$t]||Ct[$t])throw Qe("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)m=_o(""),S=m.ownerDocument.importNode(B,!0),S.nodeType===ei.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?m=S:m.appendChild(S);else{if(!ve&&!xt&&!ce&&B.indexOf("<")===-1)return N&&Ai?N.createHTML(B):B;if(m=_o(B),!m)return ve?null:Ai?j:""}m&&$r&&It(m.firstChild);const rt=yo(Ve?B:m);for(;Y=rt.nextNode();)bo(Y)||(Y.content instanceof o&&mh(Y.content),ko(Y));if(Ve)return B;if(ve){if(Bi)for(nt=Jt.call(m.ownerDocument);m.firstChild;)nt.appendChild(m.firstChild);else nt=m;return(z.shadowroot||z.shadowrootmode)&&(nt=Z.call(r,nt,!0)),nt}let dt=ce?m.outerHTML:m.innerHTML;return ce&&$["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&ht(Ea,m.ownerDocument.doctype.name)&&(dt=" `+dt),xt&&$i([St,te,M],$t=>{dt=Je(dt,$t," ")}),N&&Ai?N.createHTML(dt):dt},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(B),Ir=!0},e.clearConfig=function(){Be=null,Ir=!1},e.isValidAttribute=function(B,d,m){Be||qr({});const S=et(B),Y=et(d);return To(S,Y,m)},e.addHook=function(B,d){typeof d=="function"&&(R[B]=R[B]||[],Ze(R[B],d))},e.removeHook=function(B){if(R[B])return Ko(R[B])},e.removeHooks=function(B){R[B]&&(R[B]=[])},e.removeAllHooks=function(){R={}},e}var De=Oa();const Hi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return Hi.hue2rgb(o,n,t+1/3)*255;case"g":return Hi.hue2rgb(o,n,t)*255;case"b":return Hi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(ee>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},vd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},I={channel:Hi,lang:Td,unit:vd},re={};for(let t=0;t<=255;t++)re[t]=I.unit.dec2hex(t);const ot={ALL:0,RGB:1,HSL:2};class kd{constructor(){this.type=ot.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ot.ALL}is(e){return this.type===e}}class Sd{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new kd}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ot.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=I.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=I.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=I.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=I.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=I.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=I.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ot.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ot.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ot.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ot.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ot.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ot.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const br=new Sd({r:0,g:0,b:0,a:0},"transparent"),Oe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Oe.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,u=s?255:15;return br.set({r:(r>>l*(h+3)&u)*a,g:(r>>l*(h+2)&u)*a,b:(r>>l*(h+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${re[Math.round(e)]}${re[Math.round(i)]}${re[Math.round(r)]}${re[Math.round(n*255)]}`:`#${re[Math.round(e)]}${re[Math.round(i)]}${re[Math.round(r)]}`}},pe={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(pe.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return I.channel.clamp.h(parseFloat(i)*.9);case"rad":return I.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return I.channel.clamp.h(parseFloat(i)*360)}}return I.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(pe.re);if(!i)return;const[,r,n,o,s,a]=i;return br.set({h:pe._hue2deg(r),s:I.channel.clamp.s(parseFloat(n)),l:I.channel.clamp.l(parseFloat(o)),a:s?I.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%, ${n})`:`hsl(${I.lang.round(e)}, ${I.lang.round(i)}%, ${I.lang.round(r)}%)`}},ai={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:t=>{t=t.toLowerCase();const e=ai.colors[t];if(e)return Oe.parse(e)},stringify:t=>{const e=Oe.stringify(t);for(const i in ai.colors)if(ai.colors[i]===e)return i}},si={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(si.re);if(!i)return;const[,r,n,o,s,a,l,h,u]=i;return br.set({r:I.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:I.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:I.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?I.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)}, ${I.lang.round(n)})`:`rgb(${I.lang.round(e)}, ${I.lang.round(i)}, ${I.lang.round(r)})`}},Pt={format:{keyword:ai,hex:Oe,rgb:si,rgba:si,hsl:pe,hsla:pe},parse:t=>{if(typeof t!="string")return t;const e=Oe.parse(t)||si.parse(t)||pe.parse(t)||ai.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ot.HSL)||t.data.r===void 0?pe.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?si.stringify(t):Oe.stringify(t)},Ma=(t,e)=>{const i=Pt.parse(t);for(const r in e)i[r]=I.channel.clamp[r](e[r]);return Pt.stringify(i)},li=(t,e,i=0,r=1)=>{if(typeof t!="number")return Ma(t,{a:e});const n=br.set({r:I.channel.clamp.r(t),g:I.channel.clamp.g(e),b:I.channel.clamp.b(i),a:I.channel.clamp.a(r)});return Pt.stringify(n)},wd=t=>{const{r:e,g:i,b:r}=Pt.parse(t),n=.2126*I.channel.toLinear(e)+.7152*I.channel.toLinear(i)+.0722*I.channel.toLinear(r);return I.lang.round(n)},Bd=t=>wd(t)>=.5,vi=t=>!Bd(t),Ia=(t,e,i)=>{const r=Pt.parse(t),n=r[e],o=I.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Pt.stringify(r)},A=(t,e)=>Ia(t,"l",e),O=(t,e)=>Ia(t,"l",-e),g=(t,e)=>{const i=Pt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return Ma(t,r)},Ad=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Pt.parse(t),{r:a,g:l,b:h,a:u}=Pt.parse(e),f=i/100,c=f*2-1,p=s-u,b=((c*p===-1?c:(c+p)/(1+c*p))+1)/2,k=1-b,P=r*b+a*k,v=n*b+l*k,U=o*b+h*k,N=s*f+u*(1-f);return li(P,v,U,N)},C=(t,e=100)=>{const i=Pt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Ad(i,t,e)};var $a=typeof global=="object"&&global&&global.Object===Object&&global,Ld=typeof self=="object"&&self&&self.Object===Object&&self,Wt=$a||Ld||Function("return this")(),rr=Wt.Symbol,Da=Object.prototype,Fd=Da.hasOwnProperty,Ed=Da.toString,ii=rr?rr.toStringTag:void 0;function Od(t){var e=Fd.call(t,ii),i=t[ii];try{t[ii]=void 0;var r=!0}catch{}var n=Ed.call(t);return r&&(e?t[ii]=i:delete t[ii]),n}var Md=Object.prototype,Id=Md.toString;function $d(t){return Id.call(t)}var Dd="[object Null]",Nd="[object Undefined]",rs=rr?rr.toStringTag:void 0;function je(t){return t==null?t===void 0?Nd:Dd:rs&&rs in Object(t)?Od(t):$d(t)}function xe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Rd="[object AsyncFunction]",Pd="[object Function]",qd="[object GeneratorFunction]",zd="[object Proxy]";function Nn(t){if(!xe(t))return!1;var e=je(t);return e==Pd||e==qd||e==Rd||e==zd}var Xr=Wt["__core-js_shared__"],ns=function(){var t=/[^.]+$/.exec(Xr&&Xr.keys&&Xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Wd(t){return!!ns&&ns in t}var Hd=Function.prototype,jd=Hd.toString;function be(t){if(t!=null){try{return jd.call(t)}catch{}try{return t+""}catch{}}return""}var Ud=/[\\^$.*+?()[\]{}|]/g,Yd=/^\[object .+?Constructor\]$/,Vd=Function.prototype,Gd=Object.prototype,Xd=Vd.toString,Kd=Gd.hasOwnProperty,Zd=RegExp("^"+Xd.call(Kd).replace(Ud,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jd(t){if(!xe(t)||Wd(t))return!1;var e=Nn(t)?Zd:Yd;return e.test(be(t))}function Qd(t,e){return t==null?void 0:t[e]}function Te(t,e){var i=Qd(t,e);return Jd(i)?i:void 0}var _i=Te(Object,"create");function tp(){this.__data__=_i?_i(null):{},this.size=0}function ep(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ip="__lodash_hash_undefined__",rp=Object.prototype,np=rp.hasOwnProperty;function op(t){var e=this.__data__;if(_i){var i=e[t];return i===ip?void 0:i}return np.call(e,t)?e[t]:void 0}var sp=Object.prototype,ap=sp.hasOwnProperty;function lp(t){var e=this.__data__;return _i?e[t]!==void 0:ap.call(e,t)}var hp="__lodash_hash_undefined__";function cp(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=_i&&e===void 0?hp:e,this}function ye(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1}function _p(t,e){var i=this.__data__,r=vr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Zt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=jp}function wr(t){return t!=null&&za(t.length)&&!Nn(t)}function Up(t){return Si(t)&&wr(t)}function Yp(){return!1}var Wa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,us=Wa&&typeof module=="object"&&module&&!module.nodeType&&module,Vp=us&&us.exports===Wa,fs=Vp?Wt.Buffer:void 0,Gp=fs?fs.isBuffer:void 0,Pn=Gp||Yp,Xp="[object Object]",Kp=Function.prototype,Zp=Object.prototype,Ha=Kp.toString,Jp=Zp.hasOwnProperty,Qp=Ha.call(Object);function tg(t){if(!Si(t)||je(t)!=Xp)return!1;var e=Pa(t);if(e===null)return!0;var i=Jp.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ha.call(i)==Qp}var eg="[object Arguments]",ig="[object Array]",rg="[object Boolean]",ng="[object Date]",og="[object Error]",sg="[object Function]",ag="[object Map]",lg="[object Number]",hg="[object Object]",cg="[object RegExp]",ug="[object Set]",fg="[object String]",dg="[object WeakMap]",pg="[object ArrayBuffer]",gg="[object DataView]",mg="[object Float32Array]",_g="[object Float64Array]",yg="[object Int8Array]",Cg="[object Int16Array]",xg="[object Int32Array]",bg="[object Uint8Array]",Tg="[object Uint8ClampedArray]",vg="[object Uint16Array]",kg="[object Uint32Array]",V={};V[mg]=V[_g]=V[yg]=V[Cg]=V[xg]=V[bg]=V[Tg]=V[vg]=V[kg]=!0;V[eg]=V[ig]=V[pg]=V[rg]=V[gg]=V[ng]=V[og]=V[sg]=V[ag]=V[lg]=V[hg]=V[cg]=V[ug]=V[fg]=V[dg]=!1;function Sg(t){return Si(t)&&za(t.length)&&!!V[je(t)]}function wg(t){return function(e){return t(e)}}var ja=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hi=ja&&typeof module=="object"&&module&&!module.nodeType&&module,Bg=hi&&hi.exports===ja,Kr=Bg&&$a.process,ds=function(){try{var t=hi&&hi.require&&hi.require("util").types;return t||Kr&&Kr.binding&&Kr.binding("util")}catch{}}(),ps=ds&&ds.isTypedArray,qn=ps?wg(ps):Sg;function pn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Ag=Object.prototype,Lg=Ag.hasOwnProperty;function Fg(t,e,i){var r=t[e];(!(Lg.call(t,e)&&Tr(r,i))||i===void 0&&!(e in t))&&Rn(t,e,i)}function Eg(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o-1&&t%1==0&&t0){if(++e>=Gg)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Jg=Zg(Vg);function Qg(t,e){return Jg(Ug(t,e,Ga),t+"")}function tm(t,e,i){if(!xe(i))return!1;var r=typeof e;return(r=="number"?wr(i)&&Ua(e,i.length):r=="string"&&e in i)?Tr(i[e],t):!1}function em(t){return Qg(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&tm(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r0?Me(Ye,--kt):0,Re--,J===10&&(Re=1,Br--),J}function Et(){return J=kt2||Ci(J)>3?"":" "}function pm(t,e){for(;--e&&Et()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Ar(t,Ui()+(e<6&&oe()==32&&Et()==32))}function gn(t){for(;Et();)switch(J){case t:return kt;case 34:case 39:t!==34&&t!==39&&gn(J);break;case 40:t===41&&gn(t);break;case 92:Et();break}return kt}function gm(t,e){for(;Et()&&t+J!==57;)if(t+J===84&&oe()===47)break;return"/*"+Ar(e,kt-1)+"*"+zn(t===47?t:Et())}function mm(t){for(;!Ci(oe());)Et();return Ar(t,kt)}function _m(t){return fm(Yi("",null,null,null,[""],t=um(t),0,[0],t))}function Yi(t,e,i,r,n,o,s,a,l){for(var h=0,u=0,f=s,c=0,p=0,_=0,b=1,k=1,P=1,v=0,U="",N=n,j=o,G=r,q=U;k;)switch(_=v,v=Et()){case 40:if(_!=108&&Me(q,f-1)==58){am(q+=ji(Zr(v),"&","&\f"),"&\f",Ja(h?a[h-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:q+=Zr(v);break;case 9:case 10:case 13:case 32:q+=dm(_);break;case 92:q+=pm(Ui()-1,7);continue;case 47:switch(oe()){case 42:case 47:Ni(ym(gm(Et(),Ui()),e,i,l),l),(Ci(_||1)==5||Ci(oe()||1)==5)&&Dt(q)&&Ne(q,-1,void 0)!==" "&&(q+=" ");break;default:q+="/"}break;case 123*b:a[h++]=Dt(q)*P;case 125*b:case 59:case 0:switch(v){case 0:case 125:k=0;case 59+u:P==-1&&(q=ji(q,/\f/g,"")),p>0&&(Dt(q)-f||b===0&&_===47)&&Ni(p>32?_s(q+";",r,i,f-1,l):_s(ji(q," ","")+";",r,i,f-2,l),l);break;case 59:q+=";";default:if(Ni(G=ms(q,e,i,h,u,n,a,U,N=[],j=[],f,o),o),v===123)if(u===0)Yi(q,e,G,G,N,o,f,a,j);else{switch(c){case 99:if(Me(q,3)===110)break;case 108:if(Me(q,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Yi(t,G,G,r&&Ni(ms(t,G,G,0,0,n,a,U,n,N=[],f,j),j),n,j,f,a,r?N:j):Yi(q,G,G,G,[""],j,0,a,j)}}h=u=p=0,b=P=1,U=q="",f=s;break;case 58:f=1+Dt(q),p=_;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&cm()==125)continue}switch(q+=zn(v),v*b){case 38:P=u>0?1:(q+="\f",-1);break;case 44:a[h++]=(Dt(q)-1)*P,P=1;break;case 64:oe()===45&&(q+=Zr(Et())),c=oe(),u=f=Dt(U=q+=mm(Ui())),v++;break;case 45:_===45&&Dt(q)==2&&(b=0)}}return o}function ms(t,e,i,r,n,o,s,a,l,h,u,f){for(var c=n-1,p=n===0?o:[""],_=lm(p),b=0,k=0,P=0;b0?p[v]+" "+U:ji(U,/&\f/g,p[v])))&&(l[P++]=N);return Wn(t,e,i,n===0?Ka:a,l,h,u,f)}function ym(t,e,i,r){return Wn(t,e,i,Xa,zn(hm()),Ne(t,2,-2),0,r)}function _s(t,e,i,r,n){return Wn(t,e,i,Za,Ne(t,0,r),Ne(t,r+1,-1),r,n)}function mn(t,e){for(var i="",r=0;r{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Hn=function(t="fatal"){let e=Yt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Yt&&(e=Yt[t])):typeof t=="number"&&(e=t),E.trace=()=>{},E.debug=()=>{},E.info=()=>{},E.warn=()=>{},E.error=()=>{},E.fatal=()=>{},e<=Yt.fatal&&(E.fatal=console.error?console.error.bind(console,bt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",bt("FATAL"))),e<=Yt.error&&(E.error=console.error?console.error.bind(console,bt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",bt("ERROR"))),e<=Yt.warn&&(E.warn=console.warn?console.warn.bind(console,bt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",bt("WARN"))),e<=Yt.info&&(E.info=console.info?console.info.bind(console,bt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",bt("INFO"))),e<=Yt.debug&&(E.debug=console.debug?console.debug.bind(console,bt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bt("DEBUG"))),e<=Yt.trace&&(E.trace=console.debug?console.debug.bind(console,bt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bt("TRACE")))},bt=t=>`%c${bh().format("ss.SSS")} : ${t} : `,wi=//gi,Im=t=>t?il(t).replace(/\\n/g,"#br#").split("#br#"):[""],$m=(()=>{let t=!1;return()=>{t||(Dm(),t=!0)}})();function Dm(){const t="data-temp-href-target";De.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),De.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const el=t=>($m(),De.sanitize(t)),vs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=el(t):r!=="loose"&&(t=il(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=qm(t))}return t},Pe=(t,e)=>t&&(e.dompurifyConfig?t=De.sanitize(vs(t,e),e.dompurifyConfig).toString():t=De.sanitize(vs(t,e),{FORBID_TAGS:["style"]}).toString(),t),Nm=(t,e)=>typeof t=="string"?Pe(t,e):t.flat().map(i=>Pe(i,e)),Rm=t=>wi.test(t),Pm=t=>t.split(wi),qm=t=>t.replace(/#br#/g,"
"),il=t=>t.replace(wi,"#br#"),zm=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},rl=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Wm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},Hm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},Ob=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r0&&r+1Math.max(0,t.split(e).length-1),jm=(t,e)=>{const i=bn(t,"~"),r=bn(e,"~");return i===1&&r===1},Um=t=>{const e=bn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ks=()=>window.MathMLElement!==void 0,Tn=/\$\$(.*)\$\$/g,Ss=t=>{var e;return(((e=t.match(Tn))==null?void 0:e.length)??0)>0},Mb=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await Vm(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Ym=async(t,e)=>{if(!Ss(t))return t;if(!ks()&&!e.legacyMathML)return t.replace(Tn,"MathML is unsupported in this environment.");const{default:i}=await K(async()=>{const{default:r}=await import("./katex-Fb4EP0Ss.js");return{default:r}},[]);return t.split(wi).map(r=>Ss(r)?`
${r}
`:`
${r}
`).join("").replace(Tn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ks()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))},Vm=async(t,e)=>Pe(await Ym(t,e),e),jn={getRows:Im,sanitizeText:Pe,sanitizeTextOrArray:Nm,hasBreaks:Rm,splitBreaks:Pm,lineBreakRegex:wi,removeScript:el,getUrl:zm,evaluate:rl,getMax:Wm,getMin:Hm},ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Lr="#ffffff",Fr="#f2f2f2";let Gm=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||C(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||C(this.tertiaryColor),this.lineColor=this.lineColor||C(this.background),this.arrowheadColor=this.arrowheadColor||C(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",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||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||C(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||A(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.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||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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Xm=t=>{const e=new Gm;return e.calculate(t),e};let Km=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=C(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(C("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=li(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=li(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=li(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.secondBkg=A(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=A(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Zm=t=>{const e=new Km;return e.calculate(t),e};let Jm=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=li(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Qm=t=>{const e=new Jm;return e.calculate(t),e};let t0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=A("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.primaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.actorBorder=O(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const e0=t=>{const e=new t0;return e.calculate(t),e};class i0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=C(this.primaryColor),this.secondaryTextColor=C(this.secondaryColor),this.tertiaryTextColor=C(this.tertiaryColor),this.lineColor=C(this.background),this.textColor=C(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,f;this.secondBkg=A(this.contrast,55),this.border2=this.contrast,this.actorBorder=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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 c=0;c{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const r0=t=>{const e=new i0;return e.calculate(t),e},Xt={base:{getThemeVariables:Xm},dark:{getThemeVariables:Zm},default:{getThemeVariables:Qm},forest:{getThemeVariables:e0},neutral:{getThemeVariables:r0}},Vt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,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"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},nl={...Vt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Xt.default.getThemeVariables(),sequence:{...Vt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Vt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Vt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Vt.pie,useWidth:984},xyChart:{...Vt.xyChart,useWidth:void 0},requirement:{...Vt.requirement,useWidth:void 0},gitGraph:{...Vt.gitGraph,useMaxWidth:!1},sankey:{...Vt.sankey,useMaxWidth:!1}},ol=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...ol(t[r],"")]:[...i,e+r],[]),n0=new Set(ol(nl,"")),o0=nl,ar=t=>{if(E.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ar(e));return}for(const e of Object.keys(t)){if(E.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!n0.has(e)||t[e]==null){E.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){E.debug("sanitizing object",e),ar(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(E.debug("sanitizing css option",e),t[e]=s0(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}E.debug("After sanitization",t)}},s0=t=>{let e=0,i=0;for(const r of t){if(e{for(const{id:e,detector:i,loader:r}of t)hl(e,i,r)},hl=(t,e,i)=>{qe[t]?E.error(`Detector with key ${t} already exists`):qe[t]={detector:e,loader:i},E.debug(`Detector with key ${t} added${i?" with loader":""}`)},l0=t=>qe[t].loader,vn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>vn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=vn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},st=vn,h0="​",c0={curveBasis:qf,curveBasisClosed:zf,curveBasisOpen:Wf,curveBumpX:Rf,curveBumpY:Pf,curveBundle:Hf,curveCardinalClosed:Uf,curveCardinalOpen:Yf,curveCardinal:jf,curveCatmullRomClosed:Gf,curveCatmullRomOpen:Xf,curveCatmullRom:Vf,curveLinear:Nf,curveLinearClosed:Kf,curveMonotoneX:Zf,curveMonotoneY:Jf,curveNatural:Qf,curveStep:td,curveStepAfter:id,curveStepBefore:ed},u0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,f0=function(t,e){const i=cl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);ar(s),r=st(r,[...s])}else r=i.args;if(!r)return;let n=Er(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},cl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${u0.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),E.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ci.exec(t))!==null;)if(r.index===ci.lastIndex&&ci.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return E.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},d0=function(t){return t.replace(ci,"")},p0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function g0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return c0[i]??e}function m0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Hs.sanitizeUrl(i):i}const _0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s{i+=ul(n,e),e=n});const r=i/2;return Un(t,r)}function C0(t){return t.length===1?t[0]:y0(t)}const ws=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Un=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=ul(n,i);if(o=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:ws((1-s)*i.x+s*n.x,5),y:ws((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},x0=(t,e,i)=>{E.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Un(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function b0(t,e,i){const r=structuredClone(i);E.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Un(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function T0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Bs=0;const v0=()=>(Bs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Bs);function k0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;nk0(t.length),w0=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:""}},B0=function(t,e){const i=e.text.replace(jn.lineBreakRegex," "),[,r]=Vn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},A0=ki((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),jn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=lr(`${s} `,i),h=lr(o,i);if(l>e){const{hyphenatedStrings:c,remainingWord:p}=L0(s,e,"-",i);n.push(o,...c),o=p}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),L0=ki((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(lr(h,r)>=e){const f=l+1,c=n.length===f,p=`${h}${i}`;o.push(c?h:p),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function F0(t,e){return Yn(t,e).height}function lr(t,e){return Yn(t,e).width}const Yn=ki((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Vn(i),s=["sans-serif",r],a=t.split(jn.lineBreakRegex),l=[],h=Tt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const u=h.append("svg");for(const c of s){let p=0;const _={width:0,height:0,lineHeight:0};for(const b of a){const k=w0();k.text=b||h0;const P=B0(u,k).style("font-size",o).style("font-weight",n).style("font-family",c),v=(P._groups||P)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,v.width)),p=Math.round(v.height),_.height+=p,_.lineHeight=Math.round(Math.max(_.lineHeight,p))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class E0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ri;const O0=function(t){return Ri=Ri||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ri.innerHTML=t,unescape(Ri.textContent)};function fl(t){return"str"in t}const M0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Vn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function dl(t,e){return im({},t,e)}const ui={assignWithDepth:st,wrapLabel:A0,calculateTextHeight:F0,calculateTextWidth:lr,calculateTextDimensions:Yn,cleanAndMerge:dl,detectInit:f0,detectDirective:cl,isSubstringInArray:p0,interpolateToCurve:g0,calcLabelPosition:C0,calcCardinalityPosition:x0,calcTerminalLabelPosition:b0,formatUrl:m0,getStylesFromArray:T0,generateId:v0,random:S0,runFunc:_0,entityDecode:O0,insertTitle:M0,parseFontSize:Vn,InitIDGenerator:E0},I0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},$0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},As="10.9.4",ze=Object.freeze(o0);let pt=st({},ze),pl,We=[],fi=st({},ze);const Or=(t,e)=>{let i=st({},t),r={};for(const n of e)_l(n),r=st(r,n);if(i=st(i,r),r.theme&&r.theme in Xt){const n=st({},pl),o=st(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Xt&&(i.themeVariables=Xt[i.theme].getThemeVariables(o))}return fi=i,yl(fi),fi},D0=t=>(pt=st({},ze),pt=st(pt,t),t.theme&&Xt[t.theme]&&(pt.themeVariables=Xt[t.theme].getThemeVariables(t.themeVariables)),Or(pt,We),pt),N0=t=>{pl=st({},t)},R0=t=>(pt=st(pt,t),Or(pt,We),pt),gl=()=>st({},pt),ml=t=>(yl(t),st(fi,t),qt()),qt=()=>st({},fi),_l=t=>{t&&(["secure",...pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(E.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&_l(t[e])}))},P0=t=>{ar(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),We.push(t),Or(pt,We)},hr=(t=pt)=>{We=[],Or(t,We)},q0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ls={},z0=t=>{Ls[t]||(E.warn(q0[t]),Ls[t]=!0)},yl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&z0("LAZY_LOAD_DEPRECATED")},Cl="c4",W0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),H0=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./c4Diagram-15b5d702-nz-BtkXK.js");return{diagram:e}},__vite__mapDeps([0,1,2]));return{id:Cl,diagram:t}},j0={id:Cl,detector:W0,loader:H0},U0=j0,xl="flowchart",Y0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},V0=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-cbd28bf7-BdkHYlhr.js");return{diagram:e}},__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13,14,15,2]));return{id:xl,diagram:t}},G0={id:xl,detector:Y0,loader:V0},X0=G0,bl="flowchart-v2",K0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},Z0=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowDiagram-v2-ffc7f31a-oT57zLdK.js");return{diagram:e}},__vite__mapDeps([16,4,7,5,8,6,9,10,11,12,13,14,15,2]));return{id:bl,diagram:t}},J0={id:bl,detector:K0,loader:Z0},Q0=J0,Tl="er",t_=t=>/^\s*erDiagram/.test(t),e_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./erDiagram-880f2ed8-_nL7fT9L.js");return{diagram:e}},__vite__mapDeps([17,5,6,12,13,14,2]));return{id:Tl,diagram:t}},i_={id:Tl,detector:t_,loader:e_},r_=i_,vl="gitGraph",n_=t=>/^\s*gitGraph/.test(t),o_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./gitGraphDiagram-21fc4d3e-kKI1CMH_.js");return{diagram:e}},__vite__mapDeps([18,2]));return{id:vl,diagram:t}},s_={id:vl,detector:n_,loader:o_},a_=s_,kl="gantt",l_=t=>/^\s*gantt/.test(t),h_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./ganttDiagram-04f9e578-DrdHQXyM.js");return{diagram:e}},__vite__mapDeps([19,20,21,2]));return{id:kl,diagram:t}},c_={id:kl,detector:l_,loader:h_},u_=c_,Sl="info",f_=t=>/^\s*info/.test(t),d_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./infoDiagram-4a4f5b27-Z2nexi56.js");return{diagram:e}},__vite__mapDeps([22,2]));return{id:Sl,diagram:t}},p_={id:Sl,detector:f_,loader:d_},wl="pie",g_=t=>/^\s*pie/.test(t),m_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./pieDiagram-421022e6-Dz9AktKn.js");return{diagram:e}},__vite__mapDeps([23,24,14,25,21,13,2]));return{id:wl,diagram:t}},__={id:wl,detector:g_,loader:m_},Bl="quadrantChart",y_=t=>/^\s*quadrantChart/.test(t),C_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./quadrantDiagram-0957ecba-DnJ5KUuW.js");return{diagram:e}},__vite__mapDeps([26,20,21,2]));return{id:Bl,diagram:t}},x_={id:Bl,detector:y_,loader:C_},b_=x_,Al="xychart",T_=t=>/^\s*xychart-beta/.test(t),v_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./xychartDiagram-b6496bcd-2V-AR7s3.js");return{diagram:e}},__vite__mapDeps([27,11,21,25,20,12,13,14,2]));return{id:Al,diagram:t}},k_={id:Al,detector:T_,loader:v_},S_=k_,Ll="requirement",w_=t=>/^\s*requirement(Diagram)?/.test(t),B_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./requirementDiagram-23d650b8-B3YTrKUE.js");return{diagram:e}},__vite__mapDeps([28,5,6,12,13,14,2]));return{id:Ll,diagram:t}},A_={id:Ll,detector:w_,loader:B_},L_=A_,Fl="sequence",F_=t=>/^\s*sequenceDiagram/.test(t),E_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./sequenceDiagram-17ac3bff-Boh3EGUI.js");return{diagram:e}},__vite__mapDeps([29,1,2]));return{id:Fl,diagram:t}},O_={id:Fl,detector:F_,loader:E_},M_=O_,El="class",I_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},$_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-d40c83e7-CcfGFzSp.js");return{diagram:e}},__vite__mapDeps([30,31,5,6,12,13,14,2]));return{id:El,diagram:t}},D_={id:El,detector:I_,loader:$_},N_=D_,Ol="classDiagram",R_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},P_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./classDiagram-v2-d5a6b087-BqvCLeAS.js");return{diagram:e}},__vite__mapDeps([32,31,5,8,6,9,10,11,12,13,14,2]));return{id:Ol,diagram:t}},q_={id:Ol,detector:R_,loader:P_},z_=q_,Ml="state",W_=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},H_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-9c5f0230-Bu4UMq6s.js");return{diagram:e}},__vite__mapDeps([33,34,5,6,12,13,14,2]));return{id:Ml,diagram:t}},j_={id:Ml,detector:W_,loader:H_},U_=j_,Il="stateDiagram",Y_=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},V_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./stateDiagram-v2-51a3dcff-Br0b5QDx.js");return{diagram:e}},__vite__mapDeps([35,34,5,8,6,9,10,11,12,13,14,2]));return{id:Il,diagram:t}},G_={id:Il,detector:Y_,loader:V_},X_=G_,$l="journey",K_=t=>/^\s*journey/.test(t),Z_=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./journeyDiagram-29694f62-BXvSR98i.js");return{diagram:e}},__vite__mapDeps([36,1,24,14,2]));return{id:$l,diagram:t}},J_={id:$l,detector:K_,loader:Z_},Q_=J_,ty=function(t,e){for(let i of e)t.attr(i[0],i[1])},ey=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Dl=function(t,e,i,r){const n=ey(e,i,r);ty(t,n)},iy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;E.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;E.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,E.info(`Calculated bounds: ${a}x${l}`),Dl(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},Vi={},ry=(t,e,i)=>{let r="";return t in Vi&&Vi[t]?r=Vi[t](i):E.warn(`No theme found for ${t}`),` & { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${i.errorBkgColor}; } & .error-text { fill: ${i.errorTextColor}; stroke: ${i.errorTextColor}; } & .edge-thickness-normal { stroke-width: 2px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${i.lineColor}; stroke: ${i.lineColor}; } & .marker.cross { stroke: ${i.lineColor}; } & svg { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; } ${r} ${e} `},ny=(t,e)=>{e!==void 0&&(Vi[t]=e)},oy=ry;let Gn="",Xn="",Kn="";const Zn=t=>Pe(t,qt()),sy=()=>{Gn="",Kn="",Xn=""},ay=t=>{Gn=Zn(t).replace(/^\s+/g,"")},ly=()=>Gn,hy=t=>{Kn=Zn(t).replace(/\n\s+/g,` `)},cy=()=>Kn,uy=t=>{Xn=Zn(t)},fy=()=>Xn,dy=Object.freeze(Object.defineProperty({__proto__:null,clear:sy,getAccDescription:cy,getAccTitle:ly,getDiagramTitle:fy,setAccDescription:hy,setAccTitle:ay,setDiagramTitle:uy},Symbol.toStringTag,{value:"Module"})),py=E,gy=Hn,Jn=qt,Rb=ml,Pb=ze,my=t=>Pe(t,Jn()),_y=iy,yy=()=>dy,cr={},ur=(t,e,i)=>{var r;if(cr[t])throw new Error(`Diagram ${t} already registered.`);cr[t]=e,i&&hl(t,i),ny(t,e.styles),(r=e.injectUtils)==null||r.call(e,py,gy,Jn,my,_y,yy(),()=>{})},Qn=t=>{if(t in cr)return cr[t];throw new Cy(t)};class Cy extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const xy=t=>{var e;const{securityLevel:i}=Jn();let r=Tt("body");if(i==="sandbox"){const s=((e=Tt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=Tt(s.body)}return r.select(`#${t}`)},by=(t,e,i)=>{E.debug(`rendering svg for syntax error `);const r=xy(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),Dl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Nl={draw:by},Ty=Nl,vy={db:{},renderer:Nl,parser:{parser:{yy:{}},parse:()=>{}}},ky=vy,Rl="flowchart-elk",Sy=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},wy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-36e2d292-Cb06phD7.js");return{diagram:e}},__vite__mapDeps([37,4,10,11,12,13,14,2]));return{id:Rl,diagram:t}},By={id:Rl,detector:Sy,loader:wy},Ay=By,Pl="timeline",Ly=t=>/^\s*timeline/.test(t),Fy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./timeline-definition-7e6b55e7-87bASmGK.js");return{diagram:e}},__vite__mapDeps([38,24,14,2]));return{id:Pl,diagram:t}},Ey={id:Pl,detector:Ly,loader:Fy},Oy=Ey,ql="mindmap",My=t=>/^\s*mindmap/.test(t),Iy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./mindmap-definition-ac74a2e8-CW32B5h4.js");return{diagram:e}},__vite__mapDeps([39,11,2]));return{id:ql,diagram:t}},$y={id:ql,detector:My,loader:Iy},Dy=$y,zl="sankey",Ny=t=>/^\s*sankey-beta/.test(t),Ry=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./sankeyDiagram-23345273-uAnSg17F.js");return{diagram:e}},__vite__mapDeps([40,25,21,41,2]));return{id:zl,diagram:t}},Py={id:zl,detector:Ny,loader:Ry},qy=Py,Wl="block",zy=t=>/^\s*block-beta/.test(t),Wy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./blockDiagram-68f4deed-0aCkQCtn.js");return{diagram:e}},__vite__mapDeps([42,9,5,10,11,12,13,14,15,25,21,41,2]));return{id:Wl,diagram:t}},Hy={id:Wl,detector:zy,loader:Wy},jy=Hy;let Fs=!1;const to=()=>{Fs||(Fs=!0,ur("error",ky,t=>t.toLowerCase().trim()==="error"),ur("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),ll(U0,z_,N_,r_,u_,p_,__,L_,M_,Ay,Q0,X0,Dy,Oy,a_,X_,U_,Q_,b_,qy,S_,jy))};class Hl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=I0(e),this.text+=` `;const r=qt();try{this.type=Er(e,r)}catch(o){this.type="error",this.detectError=o}const n=Qn(this.type);E.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=qt();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const Uy=async(t,e={})=>{const i=Er(t,qt());try{Qn(i)}catch{const n=l0(i);if(!n)throw new al(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();ur(o,s)}return new Hl(t,e)};let Es=[];const Yy=()=>{Es.forEach(t=>{t()}),Es=[]},Vy="graphics-document document";function Gy(t,e){t.attr("role",Vy),e!==""&&t.attr("aria-roledescription",e)}function Xy(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const Ky=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function jl(t){return typeof t>"u"||t===null}function Zy(t){return typeof t=="object"&&t!==null}function Jy(t){return Array.isArray(t)?t:jl(t)?[]:[t]}function Qy(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;ia&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function tn(t,e){return ct.repeat(" ",e-t.length)+t}function lC(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,h,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=Qr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=ct.repeat(" ",e.indent)+tn((t.line-l+1).toString(),u)+" | "+h.str+` `+a;for(h=Qr(t.buffer,r[s],n[s],t.position,f),a+=ct.repeat(" ",e.indent)+tn((t.line+1).toString(),u)+" | "+h.str+` `,a+=ct.repeat("-",e.indent+u+3+h.pos)+`^ `,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)h=Qr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=ct.repeat(" ",e.indent)+tn((t.line+l+1).toString(),u)+" | "+h.str+` `;return a.replace(/\n$/,"")}var hC=lC,cC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],uC=["scalar","sequence","mapping"];function fC(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function dC(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(cC.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=fC(e.styleAliases||null),uC.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var at=dC;function Os(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function pC(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),$C=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function DC(t){return!(t===null||!$C.test(t)||t[t.length-1]==="_")}function NC(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var RC=/^[-+]?[0-9]+e/;function PC(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ct.isNegativeZero(t))return"-0.0";return i=t.toString(10),RC.test(i)?i.replace("e",".e"):i}function qC(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ct.isNegativeZero(t))}var zC=new at("tag:yaml.org,2002:float",{kind:"scalar",resolve:DC,construct:NC,predicate:qC,represent:PC,defaultStyle:"lowercase"}),Yl=CC.extend({implicit:[vC,BC,IC,zC]}),WC=Yl,Vl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gl=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 HC(t){return t===null?!1:Vl.exec(t)!==null||Gl.exec(t)!==null}function jC(t){var e,i,r,n,o,s,a,l=0,h=null,u,f,c;if(e=Vl.exec(t),e===null&&(e=Gl.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),h=(u*60+f)*6e4,e[9]==="-"&&(h=-h)),c=new Date(Date.UTC(i,r,n,o,s,a,l)),h&&c.setTime(c.getTime()-h),c}function UC(t){return t.toISOString()}var YC=new at("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HC,construct:jC,instanceOf:Date,represent:UC});function VC(t){return t==="<<"||t===null}var GC=new at("tag:yaml.org,2002:merge",{kind:"scalar",resolve:VC}),eo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function XC(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=eo;for(i=0;i64)){if(e<0)return!1;r+=6}return r%8===0}function KC(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=eo,s=0,a=[];for(e=0;e>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function ZC(t){var e="",i=0,r,n,o=t.length,s=eo;for(r=0;r>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function JC(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var QC=new at("tag:yaml.org,2002:binary",{kind:"scalar",resolve:XC,construct:KC,predicate:JC,represent:ZC}),tx=Object.prototype.hasOwnProperty,ex=Object.prototype.toString;function ix(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i>10)+55296,(t-65536&1023)+56320)}var Ql=new Array(256),th=new Array(256);for(var Ae=0;Ae<256;Ae++)Ql[Ae]=$s(Ae)?1:0,th[Ae]=$s(Ae);function Tx(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||dx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function eh(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=hC(i),new Gt(e,i)}function L(t,e){throw eh(t,e)}function pr(t,e){t.onWarning&&t.onWarning.call(null,eh(t,e))}var Ds={YAML:function(e,i,r){var n,o,s;e.version!==null&&L(e,"duplication of %YAML directive"),r.length!==1&&L(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&L(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&L(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&pr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&L(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],Zl.test(n)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),le.call(e.tagMap,n)&&L(e,'there is a previously declared suffix for "'+n+'" tag handle'),Jl.test(o)||L(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{L(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function se(t,e,i,r){var n,o,s,a;if(e1&&(t.result+=ct.repeat(` `,e-1))}function vx(t,e,i){var r,n,o,s,a,l,h,u,f=t.kind,c=t.result,p;if(p=t.input.charCodeAt(t.position),mt(p)||Le(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),mt(r))break}else{if(t.position===t.lineStart&&Mr(t)||i&&Le(p))break;if(Rt(p))if(l=t.line,h=t.lineStart,u=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=h,t.lineIndent=u;break}}a&&(se(t,o,s,!1),ro(t,t.line-l),o=s=t.position,a=!1),me(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return se(t,o,s,!1),t.result?!0:(t.kind=f,t.result=c,!1)}function kx(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(se(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Rt(i)?(se(t,r,n,!0),ro(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);L(t,"unexpected end of the stream within a single quoted scalar")}function Sx(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return se(t,i,t.position,!0),t.position++,!0;if(a===92){if(se(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Rt(a))Q(t,!1,e);else if(a<256&&Ql[a])t.result+=th[a],t.position++;else if((s=Cx(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=yx(a))>=0?o=(o<<4)+s:L(t,"expected hexadecimal character");t.result+=bx(o),t.position++}else L(t,"unknown escape sequence");i=r=t.position}else Rt(a)?(se(t,i,r,!0),ro(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}L(t,"unexpected end of the stream within a double quoted scalar")}function wx(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,h,u,f,c,p,_=Object.create(null),b,k,P,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,p=!1,a=[];else if(v===123)u=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),v=t.input.charCodeAt(++t.position);v!==0;){if(Q(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;i?v===44&&L(t,"expected the node content, but found ','"):L(t,"missed comma between flow collection entries"),k=b=P=null,f=c=!1,v===63&&(h=t.input.charCodeAt(t.position+1),mt(h)&&(f=c=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,He(t,e,fr,!1,!0),k=t.tag,b=t.result,Q(t,!0,e),v=t.input.charCodeAt(t.position),(c||t.line===r)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),Q(t,!0,e),He(t,e,fr,!1,!0),P=t.result),p?Fe(t,a,_,k,b,P,r,n,o):f?a.push(Fe(t,null,_,k,b,P,r,n,o)):a.push(b),Q(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(i=!0,v=t.input.charCodeAt(++t.position)):i=!1}L(t,"unexpected end of the stream within a flow collection")}function Bx(t,e){var i,r,n=en,o=!1,s=!1,a=e,l=0,h=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)en===n?n=f===43?Ms:px:L(t,"repeat of a chomping mode identifier");else if((u=xx(f))>=0)u===0?L(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?L(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(me(f)){do f=t.input.charCodeAt(++t.position);while(me(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Rt(f)&&f!==0)}for(;f!==0;){for(io(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndenta&&(a=t.lineIndent),Rt(f)){l++;continue}if(t.lineIndente)&&l!==0)L(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(k&&(s=t.line,a=t.lineStart,l=t.position),He(t,e,dr,!0,n)&&(k?_=t.result:b=t.result),k||(Fe(t,f,c,p,_,b,s,a,l),p=_=b=null),Q(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)L(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,c=t.implicitTypes.length;f"),t.result!==null&&_.kind!==t.kind&&L(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):L(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Ox(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!mt(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&L(t,"directive name must not be less than one character in length");s!==0;){for(;me(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Rt(s));break}if(Rt(s))break;for(i=t.position;s!==0&&!mt(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&io(t),le.call(Ds,r)?Ds[r](t,r,n):pr(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):o&&L(t,"directives end mark is expected"),He(t,t.lineIndent-1,dr,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&mx.test(t.input.slice(e,t.position))&&pr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Mr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.positiont.replace(/\r\n?/g,` `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),zx=t=>{const{text:e,metadata:i}=Px(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},Wx=t=>{const e=ui.detectInit(t)??{},i=ui.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:d0(t),directive:e}};function ih(t){const e=qx(t),i=zx(e),r=Wx(i.text),n=dl(i.config,r.directive);return t=Ky(r.text),{code:t,title:i.title,config:n}}const Hx=5e4,jx="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Ux="sandbox",Yx="loose",Vx="http://www.w3.org/2000/svg",Gx="http://www.w3.org/1999/xlink",Xx="http://www.w3.org/1999/xhtml",Kx="100%",Zx="100%",Jx="border:0;margin:0;",Qx="margin:0",tb="allow-top-navigation-by-user-activation allow-popups",eb='The "iframe" tag is not supported by your browser.',ib=["foreignobject"],rb=["dominant-baseline"];function rh(t){const e=ih(t);return hr(),P0(e.config??{}),e}async function nb(t,e){to(),t=rh(t).code;try{await no(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Ps=(t,e,i=[])=>` .${t} ${e} { ${i.join(" !important; ")} !important; }`,ob=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=` ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Jr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const h=e[l];Jr(h.styles)||a.forEach(u=>{r+=Ps(h.id,u,h.styles)}),Jr(h.textStyles)||(r+=Ps(h.id,"tspan",h.textStyles))}}return r},sb=(t,e,i,r)=>{const n=ob(t,i),o=oy(e,n,t.themeVariables);return mn(_m(`${r}{${o}}`),Cm)},ab=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=$0(r),r=r.replace(/
/g,"
"),r},lb=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Zx,o=btoa(''+t+"");return``},qs=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Vx);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function zs(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const hb=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},cb=async function(t,e,i){var r,n,o,s,a,l;to();const h=rh(e);e=h.code;const u=qt();E.debug(u),e.length>((u==null?void 0:u.maxTextSize)??Hx)&&(e=jx);const f="#"+t,c="i"+t,p="#"+c,_="d"+t,b="#"+_;let k=Tt("body");const P=u.securityLevel===Ux,v=u.securityLevel===Yx,U=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),P){const F=zs(Tt(i),c);k=Tt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=Tt(i);qs(k,t,_,`font-family: ${U}`,Gx)}else{if(hb(document,t,_,c),P){const F=zs(Tt("body"),c);k=Tt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=Tt("body");qs(k,t,_)}let N,j;try{N=await no(e,{title:h.title})}catch(F){N=new Hl("error"),j=F}const G=k.select(b).node(),q=N.type,Jt=G.firstChild,Qt=Jt.firstChild,Z=(n=(r=N.renderer).getClasses)==null?void 0:n.call(r,e,N),R=sb(u,q,Z,f),St=document.createElement("style");St.innerHTML=R,Jt.insertBefore(St,Qt);try{await N.renderer.draw(e,t,As,N)}catch(F){throw Ty.draw(e,t,As),F}const te=k.select(`${b} svg`),M=(s=(o=N.db).getAccTitle)==null?void 0:s.call(o),T=(l=(a=N.db).getAccDescription)==null?void 0:l.call(a);fb(q,te,M,T),k.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Xx);let y=k.select(b).node().innerHTML;if(E.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),y=ab(y,P,rl(u.arrowMarkerAbsolute)),P){const F=k.select(b+" svg").node();y=lb(y,F)}else v||(y=De.sanitize(y,{ADD_TAGS:ib,ADD_ATTR:rb}));if(Yy(),j)throw j;const x=Tt(P?p:b).node();return x&&"remove"in x&&x.remove(),{svg:y,bindFunctions:N.db.bindFunctions}};function ub(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),N0(t),t!=null&&t.theme&&t.theme in Xt?t.themeVariables=Xt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Xt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?D0(t):gl();Hn(i.logLevel),to()}const no=(t,e={})=>{const{code:i}=ih(t);return Uy(i,e)};function fb(t,e,i,r){Gy(e,t),Xy(e,i,r,e.attr("id"))}const Ce=Object.freeze({render:cb,parse:nb,getDiagramFromText:no,initialize:ub,getConfig:qt,setConfig:ml,getSiteConfig:gl,updateSiteConfig:R0,reset:()=>{hr()},globalReset:()=>{hr(ze)},defaultConfig:ze});Hn(qt().logLevel);hr(qt());const db=async()=>{E.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(qe).map(async([i,{detector:r,loader:n}])=>{if(n)try{Qn(i)}catch{try{const{diagram:s,id:a}=await n();ur(a,s,r)}catch(s){throw E.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete qe[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){E.error(`Failed to load ${e.length} external diagrams`);for(const i of e)E.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},pb=(t,e,i)=>{E.warn(t),fl(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},nh=async function(t={querySelector:".mermaid"}){try{await gb(t)}catch(e){if(fl(e)&&E.error(e.str),Ot.parseError&&Ot.parseError(e),!t.suppressErrors)throw E.error("Use the suppressErrors option to suppress these errors"),e}},gb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Ce.getConfig();E.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");E.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(E.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Ce.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ui.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){E.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=l.innerHTML,s=_h(ui.entityDecode(s)).trim().replace(//gi,"
");const u=ui.detectInit(s);u&&E.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:c}=await lh(h,s,l);l.innerHTML=f,t&&await t(h),c&&c(l)}catch(f){pb(f,a,Ot.parseError)}}if(a.length>0)throw a[0]},oh=function(t){Ce.initialize(t)},mb=async function(t,e,i){E.warn("mermaid.init is deprecated. Please use run instead."),t&&oh(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await nh(r)},_b=async(t,{lazyLoad:e=!0}={})=>{ll(...t),e===!1&&await db()},sh=function(){if(Ot.startOnLoad){const{startOnLoad:t}=Ce.getConfig();t&&Ot.run().catch(e=>E.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*! * Wait for document loaded before starting the execution */window.addEventListener("load",sh,!1)}const yb=function(t){Ot.parseError=t},gr=[];let rn=!1;const ah=async()=>{if(!rn){for(rn=!0;gr.length>0;){const t=gr.shift();if(t)try{await t()}catch(e){E.error("Error executing queue",e)}}rn=!1}},Cb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{Ce.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;E.error("Error parsing",a),(l=Ot.parseError)==null||l.call(Ot,a),s(a),r(a)})});gr.push(n),ah().catch(r)}),lh=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{Ce.render(t,e,i).then(l=>{s(l),r(l)},l=>{var h;E.error("Error parsing",l),(h=Ot.parseError)==null||h.call(Ot,l),a(l),n(l)})});gr.push(o),ah().catch(n)}),Ot={startOnLoad:!0,mermaidAPI:Ce,parse:Cb,render:lh,init:mb,run:nh,registerExternalDiagrams:_b,initialize:oh,parseError:void 0,contentLoaded:sh,setParseErrorHandler:yb,detectType:Er},qb=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"}));export{Ng as $,li as A,ui as B,fy as C,uy as D,sy as E,qf as F,Ob as G,_y as H,S0 as I,fu as J,Bn as K,ra as L,Ti as M,sa as N,bb as O,yh as P,Ch as Q,gt as R,_t as S,bh as T,xy as U,wi as V,Pb as W,Si as X,je as Y,sr as Z,rr as _,cy as a,Qm as a$,vm as a0,wr as a1,ki as a2,or as a3,Eg as a4,Ya as a5,Pa as a6,$p as a7,Dp as a8,fe as a9,im as aA,I as aB,Pt as aC,$0 as aD,qt as aE,_h as aF,An as aG,ne as aH,No as aI,Cu as aJ,gi as aK,Lb as aL,dl as aM,Vn as aN,o0 as aO,On as aP,kb as aQ,Bb as aR,jo as aS,Ho as aT,Ab as aU,wb as aV,Tb as aW,vb as aX,Eb as aY,Sb as aZ,Fb as a_,wg as aa,ds as ab,xe as ac,Np as ad,Pn as ae,Ip as af,qp as ag,Ue as ah,Fg as ai,he as aj,Tr as ak,ls as al,qn as am,za as an,Ua as ao,Ga as ap,Op as aq,Cn as ar,Qg as as,Up as at,Yg as au,Jr as av,Jg as aw,Ug as ax,tm as ay,Rn as az,ly as b,Ss as b0,Mb as b1,h0 as b2,v0 as b3,vi as b4,A as b5,O as b6,dy as b7,qb as b8,ay as c,Tt as d,Dl as e,st as f,Jn as g,lr as h,Pe as i,Hs as j,jn as k,E as l,F0 as m,Nf as n,iy as o,T0 as p,g0 as q,rl as r,hy as s,Vm as t,Rb as u,ia as v,A0 as w,Lh as x,tg as y,Nn as z};