/*! For license information please see 700.b39b468c2a0234ff00e0.js.LICENSE.txt */ (self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[700],{16750:(t,e)=>{"use strict";var r;r={value:true};e.Jf=e.dz=void 0;var i=/^([^\w]*)(javascript|data|vbscript)/im;var n=/&#(\w+)(^\w|;)?/g;var o=/&(newline|tab);/gi;var s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;var a=/^.+(:|:)/gim;var l=[".","/"];e.dz="about:blank";function c(t){return l.indexOf(t[0])>-1}function h(t){var e=t.replace(s,"");return e.replace(n,(function(t,e){return String.fromCharCode(e)}))}function u(t){if(!t){return e.dz}var r=h(t).replace(o,"").replace(s,"").trim();if(!r){return e.dz}if(c(r)){return r}var n=r.match(a);if(!n){return r}var l=n[0];if(i.test(l)){return e.dz}return r}e.Jf=u},92935:(t,e,r)=>{"use strict";r.d(e,{JLW:()=>Zi.A,l78:()=>b,tlR:()=>y,qrM:()=>an.Ay,Yu4:()=>on.A,IA3:()=>sn.A,Wi0:()=>hn,PGM:()=>un,OEq:()=>dn.A,y8u:()=>mn.Ay,olC:()=>pn.A,IrU:()=>gn.A,oDi:()=>bn.A,Q7f:()=>yn.A,cVp:()=>Cn.A,lUB:()=>xn.A,Lx9:()=>vn.A,nVG:()=>kn.G,uxU:()=>kn.N,Xf2:()=>An.A,GZz:()=>Tn.Ay,UPb:()=>Tn.Ps,dyv:()=>Tn.Ko,bEH:()=>Di.interpolateHcl,n8j:()=>Ki.A,T9B:()=>i.A,jkA:()=>n.A,rLf:()=>nn,WH:()=>$i,m4Y:()=>Hi.A,UMr:()=>Pi.A,w7C:()=>Ui.A,zt:()=>Gi,Ltv:()=>Vi,Ubm:()=>Xi,JWy:()=>qi,UAC:()=>Fn.UA,DCK:()=>Mn.DC,TUC:()=>Ln.TU,Agd:()=>Bn.Ag,t6C:()=>_n.y,wXd:()=>Sn.wX,ABi:()=>Ln.AB,Ui6:()=>En.Ui,rGn:()=>Ln.rG,ucG:()=>wn.R,YPH:()=>Ln.YP,Mol:()=>Ln.Mo,PGu:()=>Ln.PG,GuW:()=>Ln.Gu});var i=r(21671);var n=r(44317);function o(t){return t}var s=1,a=2,l=3,c=4,h=1e-6;function u(t){return"translate("+t+",0)"}function f(t){return"translate(0,"+t+")"}function d(t){return e=>+t(e)}function p(t,e){e=Math.max(0,t.bandwidth()-e*2)/2;if(t.round())e=Math.round(e);return r=>+t(r)+e}function g(){return!this.__axis}function m(t,e){var r=[],i=null,n=null,m=6,y=6,C=3,b=typeof window!=="undefined"&&window.devicePixelRatio>1?0:.5,v=t===s||t===c?-1:1,x=t===c||t===a?"x":"y",k=t===s||t===l?u:f;function A(u){var f=i==null?e.ticks?e.ticks.apply(e,r):e.domain():i,A=n==null?e.tickFormat?e.tickFormat.apply(e,r):o:n,T=Math.max(m,0)+C,_=e.range(),w=+_[0]+b,S=+_[_.length-1]+b,B=(e.bandwidth?p:d)(e.copy(),b),F=u.selection?u.selection():u,L=F.selectAll(".domain").data([null]),E=F.selectAll(".tick").data(f,e).order(),M=E.exit(),O=E.enter().append("g").attr("class","tick"),I=E.select("line"),z=E.select("text");L=L.merge(L.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));E=E.merge(O);I=I.merge(O.append("line").attr("stroke","currentColor").attr(x+"2",v*m));z=z.merge(O.append("text").attr("fill","currentColor").attr(x,v*T).attr("dy",t===s?"0em":t===l?"0.71em":"0.32em"));if(u!==F){L=L.transition(u);E=E.transition(u);I=I.transition(u);z=z.transition(u);M=M.transition(u).attr("opacity",h).attr("transform",(function(t){return isFinite(t=B(t))?k(t+b):this.getAttribute("transform")}));O.attr("opacity",h).attr("transform",(function(t){var e=this.parentNode.__axis;return k((e&&isFinite(e=e(t))?e:B(t))+b)}))}M.remove();L.attr("d",t===c||t===a?y?"M"+v*y+","+w+"H"+b+"V"+S+"H"+v*y:"M"+b+","+w+"V"+S:y?"M"+w+","+v*y+"V"+b+"H"+S+"V"+v*y:"M"+w+","+b+"H"+S);E.attr("opacity",1).attr("transform",(function(t){return k(B(t)+b)}));I.attr(x+"2",v*m);z.attr(x,v*T).text(A);F.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===c?"end":"middle");F.each((function(){this.__axis=B}))}A.scale=function(t){return arguments.length?(e=t,A):e};A.ticks=function(){return r=Array.from(arguments),A};A.tickArguments=function(t){return arguments.length?(r=t==null?[]:Array.from(t),A):r.slice()};A.tickValues=function(t){return arguments.length?(i=t==null?null:Array.from(t),A):i&&i.slice()};A.tickFormat=function(t){return arguments.length?(n=t,A):n};A.tickSize=function(t){return arguments.length?(m=y=+t,A):m};A.tickSizeInner=function(t){return arguments.length?(m=+t,A):m};A.tickSizeOuter=function(t){return arguments.length?(y=+t,A):y};A.tickPadding=function(t){return arguments.length?(C=+t,A):C};A.offset=function(t){return arguments.length?(b=+t,A):b};return A}function y(t){return m(s,t)}function C(t){return m(a,t)}function b(t){return m(l,t)}function v(t){return m(c,t)}function x(){}function k(t){return t==null?x:function(){return this.querySelector(t)}}function A(t){if(typeof t!=="function")t=k(t);for(var e=this._groups,r=e.length,i=new Array(r),n=0;n=b)b=C+1;while(!(x=m[b])&&++b=0;){if(s=i[n]){if(o&&s.compareDocumentPosition(o)^4)o.parentNode.insertBefore(s,o);o=s}}}return this}function Q(t){if(!t)t=tt;function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}for(var r=this._groups,i=r.length,n=new Array(i),o=0;oe?1:t>=e?0:NaN}function et(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function rt(){return Array.from(this)}function it(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns")t=t.slice(r+1);return lt.hasOwnProperty(e)?{space:lt[e],local:t}:t}function ht(t){return function(){this.removeAttribute(t)}}function ut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ft(t,e){return function(){this.setAttribute(t,e)}}function dt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function pt(t,e){return function(){var r=e.apply(this,arguments);if(r==null)this.removeAttribute(t);else this.setAttribute(t,r)}}function gt(t,e){return function(){var r=e.apply(this,arguments);if(r==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,r)}}function mt(t,e){var r=ct(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?ut:ht:typeof e==="function"?r.local?gt:pt:r.local?dt:ft)(r,e))}function yt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ct(t){return function(){this.style.removeProperty(t)}}function bt(t,e,r){return function(){this.style.setProperty(t,e,r)}}function vt(t,e,r){return function(){var i=e.apply(this,arguments);if(i==null)this.style.removeProperty(t);else this.style.setProperty(t,i,r)}}function xt(t,e,r){return arguments.length>1?this.each((e==null?Ct:typeof e==="function"?vt:bt)(t,e,r==null?"":r)):kt(this.node(),t)}function kt(t,e){return t.style.getPropertyValue(e)||yt(t).getComputedStyle(t,null).getPropertyValue(e)}function At(t){return function(){delete this[t]}}function Tt(t,e){return function(){this[t]=e}}function _t(t,e){return function(){var r=e.apply(this,arguments);if(r==null)delete this[t];else this[t]=r}}function wt(t,e){return arguments.length>1?this.each((e==null?At:typeof e==="function"?_t:Tt)(t,e)):this.node()[t]}function St(t){return t.trim().split(/^|\s+/)}function Bt(t){return t.classList||new Ft(t)}function Ft(t){this._node=t;this._names=St(t.getAttribute("class")||"")}Ft.prototype={add:function(t){var e=this._names.indexOf(t);if(e<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function(t){var e=this._names.indexOf(t);if(e>=0){this._names.splice(e,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function(t){return this._names.indexOf(t)>=0}};function Lt(t,e){var r=Bt(t),i=-1,n=e.length;while(++i=0)e=t.slice(r+1),t=t.slice(0,r);return{type:t,name:e}}))}function le(t){return function(){var e=this.__on;if(!e)return;for(var r=0,i=-1,n=e.length,o;r{i.stop();t(r+e)}),e,r);return i}var Te=(0,xe.A)("start","end","cancel","interrupt");var _e=[];var we=0;var Se=1;var Be=2;var Fe=3;var Le=4;var Ee=5;var Me=6;function Oe(t,e,r,i,n,o){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;De(t,r,{name:e,index:i,group:n,on:Te,tween:_e,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:we})}function Ie(t,e){var r=qe(t,e);if(r.state>we)throw new Error("too late; already scheduled");return r}function ze(t,e){var r=qe(t,e);if(r.state>Fe)throw new Error("too late; already running");return r}function qe(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function De(t,e,r){var i=t.__transition,n;i[e]=r;r.timer=(0,ke.O1)(o,0,r.time);function o(t){r.state=Se;r.timer.restart(s,r.delay,r.time);if(r.delay<=t)s(t-r.delay)}function s(o){var c,h,u,f;if(r.state!==Se)return l();for(c in i){f=i[c];if(f.name!==r.name)continue;if(f.state===Fe)return Ae(s);if(f.state===Le){f.state=Me;f.timer.stop();f.on.call("interrupt",t,t.__data__,f.index,f.group);delete i[c]}else if(+cBe&&i.state=0)t=t.slice(0,e);return!t||t==="start"}))}function xr(t,e,r){var i,n,o=vr(e)?Ie:ze;return function(){var s=o(this,t),a=s.on;if(a!==i)(n=(i=a).copy()).on(e,r);s.on=n}}function kr(t,e){var r=this._id;return arguments.length<2?qe(this.node(),r).on.on(t):this.each(xr(r,t,e))}function Ar(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;if(e)e.removeChild(this)}}function Tr(){return this.on("end.remove",Ar(this._id))}function _r(t){var e=this._name,r=this._id;if(typeof t!=="function")t=k(t);for(var i=this._groups,n=i.length,o=new Array(n),s=0;s{const e=t.identifier;t=pointer(t,i);t.point0=t.slice();t.identifier=e;return t}));interrupt(i);var I=h(i,arguments,true).beforestart();if(o==="overlay"){if(p)F=true;const r=[O[0],O[1]||O[0]];f.selection=p=[[m=t===di?g:ci(r[0][0],r[1][0]),b=t===fi?C:ci(r[0][1],r[1][1])],[k=t===di?x:li(r[0][0],r[1][0]),_=t===fi?T:li(r[0][1],r[1][1])]];if(O.length>1)j(e)}else{m=p[0][0];b=p[0][1];k=p[1][0];_=p[1][1]}y=m;v=b;A=k;w=_;var z=select(i).attr("pointer-events","none");var q=z.selectAll(".overlay").attr("cursor",gi[o]);if(e.touches){I.moved=N;I.ended=P}else{var D=select(e.view).on("mousemove.brush",N,true).on("mouseup.brush",P,true);if(n)D.on("keydown.brush",$,true).on("keyup.brush",R,true);dragDisable(e.view)}c.call(i);I.start(e,s.name);function N(t){for(const e of t.changedTouches||[t]){for(const t of O)if(t.identifier===e.identifier)t.cur=pointer(e,i)}if(L&&!E&&!M&&O.length===1){const t=O[0];if(ai(t.cur[0]-t[0])>ai(t.cur[1]-t[1]))M=true;else E=true}for(const e of O)if(e.cur)e[0]=e.cur[0],e[1]=e.cur[1];F=true;noevent(t);j(t)}function j(t){const e=O[0],r=e.point0;var n;S=e[0]-r[0];B=e[1]-r[1];switch(s){case ni:case ii:{if(l)S=li(g-m,ci(x-k,S)),y=m+S,A=k+S;if(u)B=li(C-b,ci(T-_,B)),v=b+B,w=_+B;break}case oi:{if(O[1]){if(l)y=li(g,ci(x,O[0][0])),A=li(g,ci(x,O[1][0])),l=1;if(u)v=li(C,ci(T,O[0][1])),w=li(C,ci(T,O[1][1])),u=1}else{if(l<0)S=li(g-m,ci(x-m,S)),y=m+S,A=k;else if(l>0)S=li(g-k,ci(x-k,S)),y=m,A=k+S;if(u<0)B=li(C-b,ci(T-b,B)),v=b+B,w=_;else if(u>0)B=li(C-_,ci(T-_,B)),v=b,w=_+B}break}case si:{if(l)y=li(g,ci(x,m-S*l)),A=li(g,ci(x,k+S*l));if(u)v=li(C,ci(T,b-B*u)),w=li(C,ci(T,_+B*u));break}}if(A0)m=y-S;if(u<0)_=w-B;else if(u>0)b=v-B;s=ni;q.attr("cursor",gi.selection);j(t)}break}default:return}noevent(t)}function R(t){switch(t.keyCode){case 16:{if(L){E=M=L=false;j(t)}break}case 18:{if(s===si){if(l<0)k=A;else if(l>0)m=y;if(u<0)_=w;else if(u>0)b=v;s=oi;j(t)}break}case 32:{if(s===ni){if(t.altKey){if(l)k=A-S*l,m=y+S*l;if(u)_=w-B*u,b=v+B*u;s=si}else{if(l<0)k=A;else if(l>0)m=y;if(u<0)_=w;else if(u>0)b=v;s=oi}q.attr("cursor",gi[o]);j(t)}break}default:return}noevent(t)}}function d(t){h(this,arguments).moved(t)}function p(t){h(this,arguments).ended(t)}function g(){var r=this.__brush||{selection:null};r.extent=ui(e.apply(this,arguments));r.dim=t;return r}l.extent=function(t){return arguments.length?(e=typeof t==="function"?t:constant(ui(t)),l):e};l.filter=function(t){return arguments.length?(r=typeof t==="function"?t:constant(!!t),l):r};l.touchable=function(t){return arguments.length?(i=typeof t==="function"?t:constant(!!t),l):i};l.handleSize=function(t){return arguments.length?(s=+t,l):s};l.keyModifiers=function(t){return arguments.length?(n=!!t,l):n};l.on=function(){var t=o.on.apply(o,arguments);return t===o?l:t};return l}function Ei(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Mi(t,e){return fetch(t,e).then(Ei)}function Oi(t){return(e,r)=>Mi(e,r).then((e=>(new DOMParser).parseFromString(e,t)))}const Ii=Oi("application/xml");var zi=Oi("text/html");var qi=Oi("image/svg+xml");var Di=r(67360);var Ni=r(18312);var ji=r(25758);var Pi=r(16527);function $i(){var t=(0,Pi.A)().unknown(undefined),e=t.domain,r=t.range,i=0,n=1,o,s,a=false,l=0,c=0,h=.5;delete t.unknown;function u(){var t=e().length,u=nt?1:e>=t?0:NaN}function en(t){return t}var rn=r(98247);function nn(){var t=en,e=tn,r=null,i=(0,Qi.A)(0),n=(0,Qi.A)(rn.FA),o=(0,Qi.A)(0);function s(s){var a,l=(s=(0,Ji.A)(s)).length,c,h,u=0,f=new Array(l),d=new Array(l),p=+i.apply(this,arguments),g=Math.min(rn.FA,Math.max(-rn.FA,n.apply(this,arguments)-p)),m,y=Math.min(Math.abs(g)/l,o.apply(this,arguments)),C=y*(g<0?-1:1),b;for(a=0;a0){u+=b}}if(e!=null)f.sort((function(t,r){return e(d[t],d[r])}));else if(r!=null)f.sort((function(t,e){return r(s[t],s[e])}));for(a=0,h=u?(g-l*C)/u:0;a0?b*h:0)+C,d[c]={data:s[c],index:a,value:b,startAngle:p,endAngle:m,padAngle:y}}return d}s.value=function(e){return arguments.length?(t=typeof e==="function"?e:(0,Qi.A)(+e),s):t};s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e};s.sort=function(t){return arguments.length?(r=t,e=null,s):r};s.startAngle=function(t){return arguments.length?(i=typeof t==="function"?t:(0,Qi.A)(+t),s):i};s.endAngle=function(t){return arguments.length?(n=typeof t==="function"?t:(0,Qi.A)(+t),s):n};s.padAngle=function(t){return arguments.length?(o=typeof t==="function"?t:(0,Qi.A)(+t),s):o};return s}var on=r(60075);var sn=r(69683);var an=r(24363);class ln{constructor(t,e){this._context=t;this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(t,e){t=+t,e=+e;switch(this._point){case 0:{this._point=1;if(this._line)this._context.lineTo(t,e);else this._context.moveTo(t,e);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e);break}}this._x0=t,this._y0=e}}class cn{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){t=+t,e=+e;if(this._point===0){this._point=1}else{const r=pointRadial(this._x0,this._y0);const i=pointRadial(this._x0,this._y0=(this._y0+e)/2);const n=pointRadial(t,this._y0);const o=pointRadial(t,e);this._context.moveTo(...r);this._context.bezierCurveTo(...i,...n,...o)}this._x0=t,this._y0=e}}function hn(t){return new ln(t,true)}function un(t){return new ln(t,false)}function fn(t){return new cn(t)}var dn=r(54545);var pn=r(13893);var gn=r(46457);var mn=r(43793);var yn=r(25633);var Cn=r(13309);var bn=r(76413);var vn=r(43272);var xn=r(71228);var kn=r(67694);var An=r(29944);var Tn=r(79011);var _n=r(26530);var wn=r(61147);var Sn=r(23383);var Bn=r(9017);var Fn=r(20293);var Ln=r(61779);var En=r(77849);var Mn=r(82692);function On(t,e,r){this.k=t;this.x=e;this.y=r}On.prototype={constructor:On,scale:function(t){return t===1?this:new On(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new On(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+")"}};var In=new On(1,0,0);zn.prototype=On.prototype;function zn(t){while(!t.__zoom)if(!(t=t.parentNode))return In;return t.__zoom}function qn(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Dn(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function Nn(){return this.__zoom||identity}function jn(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Pn(){return navigator.maxTouchPoints||"ontouchstart"in this}function $n(t,e,r){var i=t.invertX(e[0][0])-r[0][0],n=t.invertX(e[1][0])-r[1][0],o=t.invertY(e[0][1])-r[0][1],s=t.invertY(e[1][1])-r[1][1];return t.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function Rn(){var t=qn,e=Dn,r=$n,i=jn,n=Pn,o=[0,Infinity],s=[[-Infinity,-Infinity],[Infinity,Infinity]],a=250,l=interpolateZoom,c=dispatch("start","zoom","end"),h,u,f,d=500,p=150,g=0,m=10;function y(t){t.property("__zoom",Nn).on("wheel.zoom",T,{passive:false}).on("mousedown.zoom",_).on("dblclick.zoom",w).filter(n).on("touchstart.zoom",S).on("touchmove.zoom",B).on("touchend.zoom touchcancel.zoom",F).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(t,e,r,i){var n=t.selection?t.selection():t;n.property("__zoom",Nn);if(t!==n){x(t,e,r,i)}else{n.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,typeof e==="function"?e.apply(this,arguments):e).end()}))}};y.scaleBy=function(t,e,r,i){y.scaleTo(t,(function(){var t=this.__zoom.k,r=typeof e==="function"?e.apply(this,arguments):e;return t*r}),r,i)};y.scaleTo=function(t,i,n,o){y.transform(t,(function(){var t=e.apply(this,arguments),o=this.__zoom,a=n==null?v(t):typeof n==="function"?n.apply(this,arguments):n,l=o.invert(a),c=typeof i==="function"?i.apply(this,arguments):i;return r(b(C(o,c),a,l),t,s)}),n,o)};y.translateBy=function(t,i,n,o){y.transform(t,(function(){return r(this.__zoom.translate(typeof i==="function"?i.apply(this,arguments):i,typeof n==="function"?n.apply(this,arguments):n),e.apply(this,arguments),s)}),null,o)};y.translateTo=function(t,i,n,o,a){y.transform(t,(function(){var t=e.apply(this,arguments),a=this.__zoom,l=o==null?v(t):typeof o==="function"?o.apply(this,arguments):o;return r(identity.translate(l[0],l[1]).scale(a.k).translate(typeof i==="function"?-i.apply(this,arguments):-i,typeof n==="function"?-n.apply(this,arguments):-n),t,s)}),o,a)};function C(t,e){e=Math.max(o[0],Math.min(o[1],e));return e===t.k?t:new Transform(e,t.x,t.y)}function b(t,e,r){var i=e[0]-r[0]*t.k,n=e[1]-r[1]*t.k;return i===t.x&&n===t.y?t:new Transform(t.k,i,n)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,r,i,n){t.on("start.zoom",(function(){k(this,arguments).event(n).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(n).end()})).tween("zoom",(function(){var t=this,o=arguments,s=k(t,o).event(n),a=e.apply(t,o),c=i==null?v(a):typeof i==="function"?i.apply(t,o):i,h=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=t.__zoom,f=typeof r==="function"?r.apply(t,o):r,d=l(u.invert(c).concat(h/u.k),f.invert(c).concat(h/f.k));return function(t){if(t===1)t=f;else{var e=d(t),r=h/e[2];t=new Transform(r,c[0]-e[0]*r,c[1]-e[1]*r)}s.zoom(null,t)}}))}function k(t,e,r){return!r&&t.__zooming||new A(t,e)}function A(t,r){this.that=t;this.args=r;this.active=0;this.sourceEvent=null;this.extent=e.apply(t,r);this.taps=0}A.prototype={event:function(t){if(t)this.sourceEvent=t;return this},start:function(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function(t,e){if(this.mouse&&t!=="mouse")this.mouse[1]=e.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=e.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=e.invert(this.touch1[0]);this.that.__zoom=e;this.emit("zoom");return this},end:function(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function(t){var e=select(this.that).datum();c.call(t,this.that,new ZoomEvent(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:c}),e)}};function T(e,...n){if(!t.apply(this,arguments))return;var a=k(this,n).event(e),l=this.__zoom,c=Math.max(o[0],Math.min(o[1],l.k*Math.pow(2,i.apply(this,arguments)))),h=pointer(e);if(a.wheel){if(a.mouse[0][0]!==h[0]||a.mouse[0][1]!==h[1]){a.mouse[1]=l.invert(a.mouse[0]=h)}clearTimeout(a.wheel)}else if(l.k===c)return;else{a.mouse=[h,l.invert(h)];interrupt(this);a.start()}noevent(e);a.wheel=setTimeout(u,p);a.zoom("mouse",r(b(C(l,c),a.mouse[0],a.mouse[1]),a.extent,s));function u(){a.wheel=null;a.end()}}function _(e,...i){if(f||!t.apply(this,arguments))return;var n=e.currentTarget,o=k(this,i,true).event(e),a=select(e.view).on("mousemove.zoom",u,true).on("mouseup.zoom",d,true),l=pointer(e,n),c=e.clientX,h=e.clientY;dragDisable(e.view);nopropagation(e);o.mouse=[l,this.__zoom.invert(l)];interrupt(this);o.start();function u(t){noevent(t);if(!o.moved){var e=t.clientX-c,i=t.clientY-h;o.moved=e*e+i*i>g}o.event(t).zoom("mouse",r(b(o.that.__zoom,o.mouse[0]=pointer(t,n),o.mouse[1]),o.extent,s))}function d(t){a.on("mousemove.zoom mouseup.zoom",null);dragEnable(t.view,o.moved);noevent(t);o.event(t).end()}}function w(i,...n){if(!t.apply(this,arguments))return;var o=this.__zoom,l=pointer(i.changedTouches?i.changedTouches[0]:i,this),c=o.invert(l),h=o.k*(i.shiftKey?.5:2),u=r(b(C(o,h),l,c),e.apply(this,n),s);noevent(i);if(a>0)select(this).transition().duration(a).call(x,u,l,i);else select(this).call(y.transform,u,l,i)}function S(e,...r){if(!t.apply(this,arguments))return;var i=e.touches,n=i.length,o=k(this,r,e.changedTouches.length===n).event(e),s,a,l,c;nopropagation(e);for(a=0;a=e?t:""+Array(e+1-i.length).join(r)+t},C={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),n=r%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(n,2,"0")},m:function t(e,r){if(e.date()1)return t(s[0])}else{var a=e.name;v[a]=e,n=a}return!i&&n&&(b=n),n||!i&&b},A=function(t,e){if(x(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},T=C;T.l=k,T.i=x,T.w=function(t,e){return A(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function m(t){this.$L=k(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var r=A(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return A(t)1?r-1:0),n=1;n2&&arguments[2]!==undefined?arguments[2]:d;if(e){e(t,null)}let o=i.length;while(o--){let e=i[o];if(typeof e==="string"){const t=n(e);if(t!==e){if(!r(i)){i[o]=t}e=t}}t[e]=true}return t}function _(t){for(let e=0;e/gm);const $=s(/\${[\w\W]*}/gm);const R=s(/^data-[\-\w.\u00B7-\uFFFF]/);const W=s(/^aria-[\-\w]+$/);const H=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const U=s(/^(?:\w+script|data):/i);const Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const G=s(/^html$/i);const V=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:P,TMPLIT_EXPR:$,DATA_ATTR:R,ARIA_ATTR:W,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:V});const Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const K=function t(){return typeof window==="undefined"?null:window};const J=function t(e,r){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let i=null;const n="data-tt-policy-suffix";if(r&&r.hasAttribute(n)){i=r.getAttribute(n)}const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(t){return t},createScriptURL(t){return t}})}catch(s){console.warn("TrustedTypes policy "+o+" could not be created.");return null}};function Q(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:K();const r=t=>Q(t);r.version="3.1.6";r.removed=[];if(!e||!e.document||e.document.nodeType!==Z.document){r.isSupported=false;return r}let{document:i}=e;const n=i;const s=n.currentScript;const{DocumentFragment:l,HTMLTemplateElement:c,Node:k,Element:A,NodeFilter:_,NamedNodeMap:j=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:P,DOMParser:$,trustedTypes:R}=e;const W=A.prototype;const U=S(W,"cloneNode");const Y=S(W,"remove");const V=S(W,"nextSibling");const tt=S(W,"childNodes");const et=S(W,"parentNode");if(typeof c==="function"){const t=i.createElement("template");if(t.content&&t.content.ownerDocument){i=t.content.ownerDocument}}let rt;let it="";const{implementation:nt,createNodeIterator:ot,createDocumentFragment:st,getElementsByTagName:at}=i;const{importNode:lt}=n;let ct={};r.isSupported=typeof t==="function"&&typeof et==="function"&&nt&&nt.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:ht,ERB_EXPR:ut,TMPLIT_EXPR:ft,DATA_ATTR:dt,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:gt,ATTR_WHITESPACE:mt,CUSTOM_ELEMENT:yt}=X;let{IS_ALLOWED_URI:Ct}=X;let bt=null;const vt=T({},[...B,...F,...L,...M,...I]);let xt=null;const kt=T({},[...z,...q,...D,...N]);let At=Object.seal(a(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Tt=null;let _t=null;let wt=true;let St=true;let Bt=false;let Ft=true;let Lt=false;let Et=true;let Mt=false;let Ot=false;let It=false;let zt=false;let qt=false;let Dt=false;let Nt=true;let jt=false;const Pt="user-content-";let $t=true;let Rt=false;let Wt={};let Ht=null;const Ut=T({},["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 Yt=null;const Gt=T({},["audio","video","img","source","image","track"]);let Vt=null;const Xt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Zt="http://www.w3.org/1998/Math/MathML";const Kt="http://www.w3.org/2000/svg";const Jt="http://www.w3.org/1999/xhtml";let Qt=Jt;let te=false;let ee=null;const re=T({},[Zt,Kt,Jt],p);let ie=null;const ne=["application/xhtml+xml","text/html"];const oe="text/html";let se=null;let ae=null;const le=i.createElement("form");const ce=function t(e){return e instanceof RegExp||e instanceof Function};const he=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(ae&&ae===e){return}if(!e||typeof e!=="object"){e={}}e=w(e);ie=ne.indexOf(e.PARSER_MEDIA_TYPE)===-1?oe:e.PARSER_MEDIA_TYPE;se=ie==="application/xhtml+xml"?p:d;bt=b(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,se):vt;xt=b(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,se):kt;ee=b(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,p):re;Vt=b(e,"ADD_URI_SAFE_ATTR")?T(w(Xt),e.ADD_URI_SAFE_ATTR,se):Xt;Yt=b(e,"ADD_DATA_URI_TAGS")?T(w(Gt),e.ADD_DATA_URI_TAGS,se):Gt;Ht=b(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,se):Ut;Tt=b(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,se):{};_t=b(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,se):{};Wt=b(e,"USE_PROFILES")?e.USE_PROFILES:false;wt=e.ALLOW_ARIA_ATTR!==false;St=e.ALLOW_DATA_ATTR!==false;Bt=e.ALLOW_UNKNOWN_PROTOCOLS||false;Ft=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Lt=e.SAFE_FOR_TEMPLATES||false;Et=e.SAFE_FOR_XML!==false;Mt=e.WHOLE_DOCUMENT||false;zt=e.RETURN_DOM||false;qt=e.RETURN_DOM_FRAGMENT||false;Dt=e.RETURN_TRUSTED_TYPE||false;It=e.FORCE_BODY||false;Nt=e.SANITIZE_DOM!==false;jt=e.SANITIZE_NAMED_PROPS||false;$t=e.KEEP_CONTENT!==false;Rt=e.IN_PLACE||false;Ct=e.ALLOWED_URI_REGEXP||H;Qt=e.NAMESPACE||Jt;At=e.CUSTOM_ELEMENT_HANDLING||{};if(e.CUSTOM_ELEMENT_HANDLING&&ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){At.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){At.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){At.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Lt){St=false}if(qt){zt=true}if(Wt){bt=T({},I);xt=[];if(Wt.html===true){T(bt,B);T(xt,z)}if(Wt.svg===true){T(bt,F);T(xt,q);T(xt,N)}if(Wt.svgFilters===true){T(bt,L);T(xt,q);T(xt,N)}if(Wt.mathMl===true){T(bt,M);T(xt,D);T(xt,N)}}if(e.ADD_TAGS){if(bt===vt){bt=w(bt)}T(bt,e.ADD_TAGS,se)}if(e.ADD_ATTR){if(xt===kt){xt=w(xt)}T(xt,e.ADD_ATTR,se)}if(e.ADD_URI_SAFE_ATTR){T(Vt,e.ADD_URI_SAFE_ATTR,se)}if(e.FORBID_CONTENTS){if(Ht===Ut){Ht=w(Ht)}T(Ht,e.FORBID_CONTENTS,se)}if($t){bt["#text"]=true}if(Mt){T(bt,["html","head","body"])}if(bt.table){T(bt,["tbody"]);delete Tt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}rt=e.TRUSTED_TYPES_POLICY;it=rt.createHTML("")}else{if(rt===undefined){rt=J(R,s)}if(rt!==null&&typeof it==="string"){it=rt.createHTML("")}}if(o){o(e)}ae=e};const ue=T({},["mi","mo","mn","ms","mtext"]);const fe=T({},["foreignobject","annotation-xml"]);const de=T({},["title","style","font","a","script"]);const pe=T({},[...F,...L,...E]);const ge=T({},[...M,...O]);const me=function t(e){let r=et(e);if(!r||!r.tagName){r={namespaceURI:Qt,tagName:"template"}}const i=d(e.tagName);const n=d(r.tagName);if(!ee[e.namespaceURI]){return false}if(e.namespaceURI===Kt){if(r.namespaceURI===Jt){return i==="svg"}if(r.namespaceURI===Zt){return i==="svg"&&(n==="annotation-xml"||ue[n])}return Boolean(pe[i])}if(e.namespaceURI===Zt){if(r.namespaceURI===Jt){return i==="math"}if(r.namespaceURI===Kt){return i==="math"&&fe[n]}return Boolean(ge[i])}if(e.namespaceURI===Jt){if(r.namespaceURI===Kt&&!fe[n]){return false}if(r.namespaceURI===Zt&&!ue[n]){return false}return!ge[i]&&(de[i]||!pe[i])}if(ie==="application/xhtml+xml"&&ee[e.namespaceURI]){return true}return false};const ye=function t(e){f(r.removed,{element:e});try{et(e).removeChild(e)}catch(i){Y(e)}};const Ce=function t(e,i){try{f(r.removed,{attribute:i.getAttributeNode(e),from:i})}catch(n){f(r.removed,{attribute:null,from:i})}i.removeAttribute(e);if(e==="is"&&!xt[e]){if(zt||qt){try{ye(i)}catch(n){}}else{try{i.setAttribute(e,"")}catch(n){}}}};const be=function t(e){let r=null;let n=null;if(It){e=""+e}else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}if(ie==="application/xhtml+xml"&&Qt===Jt){e=''+e+""}const o=rt?rt.createHTML(e):e;if(Qt===Jt){try{r=(new $).parseFromString(o,ie)}catch(a){}}if(!r||!r.documentElement){r=nt.createDocument(Qt,"template",null);try{r.documentElement.innerHTML=te?it:o}catch(a){}}const s=r.body||r.documentElement;if(e&&n){s.insertBefore(i.createTextNode(n),s.childNodes[0]||null)}if(Qt===Jt){return at.call(r,Mt?"html":"body")[0]}return Mt?r.documentElement:s};const ve=function t(e){return ot.call(e.ownerDocument||e,e,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)};const xe=function t(e){return e instanceof P&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof j)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const ke=function t(e){return typeof k==="function"&&e instanceof k};const Ae=function t(e,i,n){if(!ct[e]){return}h(ct[e],(t=>{t.call(r,i,n,ae)}))};const Te=function t(e){let i=null;Ae("beforeSanitizeElements",e,null);if(xe(e)){ye(e);return true}const n=se(e.nodeName);Ae("uponSanitizeElement",e,{tagName:n,allowedTags:bt});if(e.hasChildNodes()&&!ke(e.firstElementChild)&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent)){ye(e);return true}if(e.nodeType===Z.progressingInstruction){ye(e);return true}if(Et&&e.nodeType===Z.comment&&v(/<[/\w]/g,e.data)){ye(e);return true}if(!bt[n]||Tt[n]){if(!Tt[n]&&we(n)){if(At.tagNameCheck instanceof RegExp&&v(At.tagNameCheck,n)){return false}if(At.tagNameCheck instanceof Function&&At.tagNameCheck(n)){return false}}if($t&&!Ht[n]){const t=et(e)||e.parentNode;const r=tt(e)||e.childNodes;if(r&&t){const i=r.length;for(let n=i-1;n>=0;--n){const i=U(r[n],true);i.__removalCount=(e.__removalCount||0)+1;t.insertBefore(i,V(e))}}}ye(e);return true}if(e instanceof A&&!me(e)){ye(e);return true}if((n==="noscript"||n==="noembed"||n==="noframes")&&v(/<\/no(script|embed|frames)/i,e.innerHTML)){ye(e);return true}if(Lt&&e.nodeType===Z.text){i=e.textContent;h([ht,ut,ft],(t=>{i=m(i,t," ")}));if(e.textContent!==i){f(r.removed,{element:e.cloneNode()});e.textContent=i}}Ae("afterSanitizeElements",e,null);return false};const _e=function t(e,r,n){if(Nt&&(r==="id"||r==="name")&&(n in i||n in le)){return false}if(St&&!_t[r]&&v(dt,r));else if(wt&&v(pt,r));else if(!xt[r]||_t[r]){if(we(e)&&(At.tagNameCheck instanceof RegExp&&v(At.tagNameCheck,e)||At.tagNameCheck instanceof Function&&At.tagNameCheck(e))&&(At.attributeNameCheck instanceof RegExp&&v(At.attributeNameCheck,r)||At.attributeNameCheck instanceof Function&&At.attributeNameCheck(r))||r==="is"&&At.allowCustomizedBuiltInElements&&(At.tagNameCheck instanceof RegExp&&v(At.tagNameCheck,n)||At.tagNameCheck instanceof Function&&At.tagNameCheck(n)));else{return false}}else if(Vt[r]);else if(v(Ct,m(n,mt,"")));else if((r==="src"||r==="xlink:href"||r==="href")&&e!=="script"&&y(n,"data:")===0&&Yt[e]);else if(Bt&&!v(gt,m(n,mt,"")));else if(n){return false}else;return true};const we=function t(e){return e!=="annotation-xml"&&g(e,yt)};const Se=function t(e){Ae("beforeSanitizeAttributes",e,null);const{attributes:i}=e;if(!i){return}const n={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:xt};let o=i.length;while(o--){const t=i[o];const{name:a,namespaceURI:l,value:c}=t;const f=se(a);let d=a==="value"?c:C(c);n.attrName=f;n.attrValue=d;n.keepAttr=true;n.forceKeepAttr=undefined;Ae("uponSanitizeAttribute",e,n);d=n.attrValue;if(Et&&v(/((--!?|])>)|<\/(style|title)/i,d)){Ce(a,e);continue}if(n.forceKeepAttr){continue}Ce(a,e);if(!n.keepAttr){continue}if(!Ft&&v(/\/>/i,d)){Ce(a,e);continue}if(Lt){h([ht,ut,ft],(t=>{d=m(d,t," ")}))}const p=se(e.nodeName);if(!_e(p,f,d)){continue}if(jt&&(f==="id"||f==="name")){Ce(a,e);d=Pt+d}if(rt&&typeof R==="object"&&typeof R.getAttributeType==="function"){if(l);else{switch(R.getAttributeType(p,f)){case"TrustedHTML":{d=rt.createHTML(d);break}case"TrustedScriptURL":{d=rt.createScriptURL(d);break}}}}try{if(l){e.setAttributeNS(l,a,d)}else{e.setAttribute(a,d)}if(xe(e)){ye(e)}else{u(r.removed)}}catch(s){}}Ae("afterSanitizeAttributes",e,null)};const Be=function t(e){let r=null;const i=ve(e);Ae("beforeSanitizeShadowDOM",e,null);while(r=i.nextNode()){Ae("uponSanitizeShadowNode",r,null);if(Te(r)){continue}if(r.content instanceof l){t(r.content)}Se(r)}Ae("afterSanitizeShadowDOM",e,null)};r.sanitize=function(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i=null;let o=null;let s=null;let a=null;te=!t;if(te){t="\x3c!--\x3e"}if(typeof t!=="string"&&!ke(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw x("dirty is not a string, aborting")}}else{throw x("toString is not a function")}}if(!r.isSupported){return t}if(!Ot){he(e)}r.removed=[];if(typeof t==="string"){Rt=false}if(Rt){if(t.nodeName){const e=se(t.nodeName);if(!bt[e]||Tt[e]){throw x("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof k){i=be("\x3c!----\x3e");o=i.ownerDocument.importNode(t,true);if(o.nodeType===Z.element&&o.nodeName==="BODY"){i=o}else if(o.nodeName==="HTML"){i=o}else{i.appendChild(o)}}else{if(!zt&&!Lt&&!Mt&&t.indexOf("<")===-1){return rt&&Dt?rt.createHTML(t):t}i=be(t);if(!i){return zt?null:Dt?it:""}}if(i&&It){ye(i.firstChild)}const c=ve(Rt?t:i);while(s=c.nextNode()){if(Te(s)){continue}if(s.content instanceof l){Be(s.content)}Se(s)}if(Rt){return t}if(zt){if(qt){a=st.call(i.ownerDocument);while(i.firstChild){a.appendChild(i.firstChild)}}else{a=i}if(xt.shadowroot||xt.shadowrootmode){a=lt.call(n,a,true)}return a}let u=Mt?i.outerHTML:i.innerHTML;if(Mt&&bt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&v(G,i.ownerDocument.doctype.name)){u="\n"+u}if(Lt){h([ht,ut,ft],(t=>{u=m(u,t," ")}))}return rt&&Dt?rt.createHTML(u):u};r.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};he(t);Ot=true};r.clearConfig=function(){ae=null;Ot=false};r.isValidAttribute=function(t,e,r){if(!ae){he({})}const i=se(t);const n=se(e);return _e(i,n,r)};r.addHook=function(t,e){if(typeof e!=="function"){return}ct[t]=ct[t]||[];f(ct[t],e)};r.removeHook=function(t){if(ct[t]){return u(ct[t])}};r.removeHooks=function(t){if(ct[t]){ct[t]=[]}};r.removeAllHooks=function(){ct={}};return r}var tt=Q();return tt}))},25e3:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var n=r(59773);class o{constructor(){this.type=n.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=n.Z.ALL}is(t){return this.type===t}}const s=o;class a{constructor(t,e){this.color=e;this.changed=false;this.data=t;this.type=new s}set(t,e){this.color=e;this.changed=false;this.data=t;this.type.type=n.Z.ALL;return this}_ensureHSL(){const t=this.data;const{h:e,s:r,l:n}=t;if(e===undefined)t.h=i.A.channel.rgb2hsl(t,"h");if(r===undefined)t.s=i.A.channel.rgb2hsl(t,"s");if(n===undefined)t.l=i.A.channel.rgb2hsl(t,"l")}_ensureRGB(){const t=this.data;const{r:e,g:r,b:n}=t;if(e===undefined)t.r=i.A.channel.hsl2rgb(t,"r");if(r===undefined)t.g=i.A.channel.hsl2rgb(t,"g");if(n===undefined)t.b=i.A.channel.hsl2rgb(t,"b")}get r(){const t=this.data;const e=t.r;if(!this.type.is(n.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"r")}get g(){const t=this.data;const e=t.g;if(!this.type.is(n.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"g")}get b(){const t=this.data;const e=t.b;if(!this.type.is(n.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"b")}get h(){const t=this.data;const e=t.h;if(!this.type.is(n.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"h")}get s(){const t=this.data;const e=t.s;if(!this.type.is(n.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"s")}get l(){const t=this.data;const e=t.l;if(!this.type.is(n.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"l")}get a(){return this.data.a}set r(t){this.type.set(n.Z.RGB);this.changed=true;this.data.r=t}set g(t){this.type.set(n.Z.RGB);this.changed=true;this.data.g=t}set b(t){this.type.set(n.Z.RGB);this.changed=true;this.data.b=t}set h(t){this.type.set(n.Z.HSL);this.changed=true;this.data.h=t}set s(t){this.type.set(n.Z.HSL);this.changed=true;this.data.s=t}set l(t){this.type.set(n.Z.HSL);this.changed=true;this.data.l=t}set a(t){this.changed=true;this.data.a=t}}const l=a;const c=new l({r:0,g:0,b:0,a:0},"transparent");const h=c},63221:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var i=r(25e3);var n=r(59773);const o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(o.re);if(!e)return;const r=e[1];const n=parseInt(r,16);const s=r.length;const a=s%4===0;const l=s>4;const c=l?1:17;const h=l?8:4;const u=a?0:-1;const f=l?255:15;return i.A.set({r:(n>>h*(u+3)&f)*c,g:(n>>h*(u+2)&f)*c,b:(n>>h*(u+1)&f)*c,a:a?(n&f)*c/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:o}=t;if(o<1){return`#${n.Y[Math.round(e)]}${n.Y[Math.round(r)]}${n.Y[Math.round(i)]}${n.Y[Math.round(o*255)]}`}else{return`#${n.Y[Math.round(e)]}${n.Y[Math.round(r)]}${n.Y[Math.round(i)]}`}}};const s=o;var a=r(57991);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(l.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return a.A.channel.clamp.h(parseFloat(t)*.9);case"rad":return a.A.channel.clamp.h(parseFloat(t)*180/Math.PI);case"turn":return a.A.channel.clamp.h(parseFloat(t)*360)}}return a.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(l.re);if(!r)return;const[,n,o,s,c,h]=r;return i.A.set({h:l._hue2deg(n),s:a.A.channel.clamp.s(parseFloat(o)),l:a.A.channel.clamp.l(parseFloat(s)),a:c?a.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;if(n<1){return`hsla(${a.A.lang.round(e)}, ${a.A.lang.round(r)}%, ${a.A.lang.round(i)}%, ${n})`}else{return`hsl(${a.A.lang.round(e)}, ${a.A.lang.round(r)}%, ${a.A.lang.round(i)}%)`}}};const c=l;const h={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=h.colors[t];if(!e)return;return s.parse(e)},stringify:t=>{const e=s.stringify(t);for(const r in h.colors){if(h.colors[r]===e)return r}return}};const u=h;const f={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 r=t.match(f.re);if(!r)return;const[,n,o,s,l,c,h,u,d]=r;return i.A.set({r:a.A.channel.clamp.r(o?parseFloat(n)*2.55:parseFloat(n)),g:a.A.channel.clamp.g(l?parseFloat(s)*2.55:parseFloat(s)),b:a.A.channel.clamp.b(h?parseFloat(c)*2.55:parseFloat(c)),a:u?a.A.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;if(n<1){return`rgba(${a.A.lang.round(e)}, ${a.A.lang.round(r)}, ${a.A.lang.round(i)}, ${a.A.lang.round(n)})`}else{return`rgb(${a.A.lang.round(e)}, ${a.A.lang.round(r)}, ${a.A.lang.round(i)})`}}};const d=f;const p={format:{keyword:u,hex:s,rgb:d,rgba:d,hsl:c,hsla:c},parse:t=>{if(typeof t!=="string")return t;const e=s.parse(t)||d.parse(t)||c.parse(t)||u.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>{if(!t.changed&&t.color)return t.color;if(t.type.is(n.Z.HSL)||t.data.r===undefined){return c.stringify(t)}else if(t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)){return d.stringify(t)}else{return s.stringify(t)}}};const g=p},59773:(t,e,r)=>{"use strict";r.d(e,{Y:()=>n,Z:()=>o});var i=r(57991);const n={};for(let s=0;s<=255;s++)n[s]=i.A.unit.dec2hex(s);const o={ALL:0,RGB:1,HSL:2}},42198:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(57991);var n=r(63221);const o=(t,e,r)=>{const o=n.A.parse(t);const s=o[e];const a=i.A.channel.clamp[e](s+r);if(s!==a)o[e]=a;return n.A.stringify(o)};const s=o},69745:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(57991);var n=r(63221);const o=(t,e)=>{const r=n.A.parse(t);for(const n in e){r[n]=i.A.channel.clamp[n](e[n])}return n.A.stringify(r)};const s=o},48750:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(42198);const n=(t,e)=>(0,i.A)(t,"l",-e);const o=n},63170:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var n=r(63221);const o=t=>{const{r:e,g:r,b:o}=n.A.parse(t);const s=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(o);return i.A.lang.round(s)};const s=o;const a=t=>s(t)>=.5;const l=a;const c=t=>!l(t);const h=c},77470:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(42198);const n=(t,e)=>(0,i.A)(t,"l",e);const o=n},3635:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var i=r(57991);var n=r(25e3);var o=r(63221);var s=r(69745);const a=(t,e,r=0,a=1)=>{if(typeof t!=="number")return(0,s.A)(t,{a:e});const l=n.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(a)});return o.A.stringify(l)};const l=a},57991:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});const i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>{if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t},hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360;e/=100;r/=100;const o=r<.5?r*(1+e):r+e-r*e;const s=2*r-o;switch(n){case"r":return i.hue2rgb(s,o,t+1/3)*255;case"g":return i.hue2rgb(s,o,t)*255;case"b":return i.hue2rgb(s,o,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255;e/=255;r/=255;const n=Math.max(t,e,r);const o=Math.min(t,e,r);const s=(n+o)/2;if(i==="l")return s*100;if(n===o)return 0;const a=n-o;const l=s>.5?a/(2-n-o):a/(n+o);if(i==="s")return l*100;switch(n){case t:return((e-r)/a+(e{if(e>r)return Math.min(e,Math.max(r,t));return Math.min(r,Math.max(e,t))},round:t=>Math.round(t*1e10)/1e10};const s=o;const a={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}};const l=a;const c={channel:n,lang:s,unit:l};const h=c},54951:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});function i(){this.__data__=[];this.size=0}const n=i;var o=r(24461);function s(t,e){var r=t.length;while(r--){if((0,o.A)(t[r][0],e)){return r}}return-1}const a=s;var l=Array.prototype;var c=l.splice;function h(t){var e=this.__data__,r=a(e,t);if(r<0){return false}var i=e.length-1;if(r==i){e.pop()}else{c.call(e,r,1)}--this.size;return true}const u=h;function f(t){var e=this.__data__,r=a(e,t);return r<0?undefined:e[r][1]}const d=f;function p(t){return a(this.__data__,t)>-1}const g=p;function m(t,e){var r=this.__data__,i=a(r,t);if(i<0){++this.size;r.push([t,e])}else{r[i][1]=e}return this}const y=m;function C(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>s});var i=r(39023);var n=r(24606);var o=(0,i.A)(n.A,"Map");const s=o},9883:(t,e,r)=>{"use strict";r.d(e,{A:()=>$});var i=r(39023);var n=(0,i.A)(Object,"create");const o=n;function s(){this.__data__=o?o(null):{};this.size=0}const a=s;function l(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}const c=l;var h="__lodash_hash_undefined__";var u=Object.prototype;var f=u.hasOwnProperty;function d(t){var e=this.__data__;if(o){var r=e[t];return r===h?undefined:r}return f.call(e,t)?e[t]:undefined}const p=d;var g=Object.prototype;var m=g.hasOwnProperty;function y(t){var e=this.__data__;return o?e[t]!==undefined:m.call(e,t)}const C=y;var b="__lodash_hash_undefined__";function v(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=o&&e===undefined?b:e;return this}const x=v;function k(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>s});var i=r(39023);var n=r(24606);var o=(0,i.A)(n.A,"Set");const s=o},28478:(t,e,r)=>{"use strict";r.d(e,{A:()=>C});var i=r(54951);function n(){this.__data__=new i.A;this.size=0}const o=n;function s(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}const a=s;function l(t){return this.__data__.get(t)}const c=l;function h(t){return this.__data__.has(t)}const u=h;var f=r(51482);var d=r(9883);var p=200;function g(t,e){var r=this.__data__;if(r instanceof i.A){var n=r.__data__;if(!f.A||n.length{"use strict";r.d(e,{A:()=>o});var i=r(24606);var n=i.A.Symbol;const o=n},92615:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(24606);var n=i.A.Uint8Array;const o=n},74578:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});function i(t,e){var r=-1,i=Array(t);while(++r{"use strict";r.d(e,{A:()=>l});var i=r(48657);var n=r(24461);var o=Object.prototype;var s=o.hasOwnProperty;function a(t,e,r){var o=t[e];if(!(s.call(t,e)&&(0,n.A)(o,r))||r===undefined&&!(e in t)){(0,i.A)(t,e,r)}}const l=a},48657:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(51348);function n(t,e,r){if(e=="__proto__"&&i.A){(0,i.A)(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}const o=n},40283:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});function i(t){return function(e,r,i){var n=-1,o=Object(e),s=i(e),a=s.length;while(a--){var l=s[t?a:++n];if(r(o[l],l,o)===false){break}}return e}}const n=i;var o=n();const s=o},64128:(t,e,r)=>{"use strict";r.d(e,{A:()=>C});var i=r(38066);var n=Object.prototype;var o=n.hasOwnProperty;var s=n.toString;var a=i.A?i.A.toStringTag:undefined;function l(t){var e=o.call(t,a),r=t[a];try{t[a]=undefined;var i=true}catch(l){}var n=s.call(t);if(i){if(e){t[a]=r}else{delete t[a]}}return n}const c=l;var h=Object.prototype;var u=h.toString;function f(t){return u.call(t)}const d=f;var p="[object Null]",g="[object Undefined]";var m=i.A?i.A.toStringTag:undefined;function y(t){if(t==null){return t===undefined?g:p}return m&&m in Object(t)?c(t):d(t)}const C=y},30568:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(690);var n=r(24630);var o=(0,n.A)(Object.keys,Object);const s=o;var a=Object.prototype;var l=a.hasOwnProperty;function c(t){if(!(0,i.A)(t)){return s(t)}var e=[];for(var r in Object(t)){if(l.call(t,r)&&r!="constructor"){e.push(r)}}return e}const h=c},55881:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var i=r(63077);var n=r(27401);var o=r(4596);function s(t,e){return(0,o.A)((0,n.A)(t,e,i.A),t+"")}const a=s},26132:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t){return function(e){return t(e)}}const n=i},53458:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(92615);function n(t){var e=new t.constructor(t.byteLength);new i.A(e).set(new i.A(t));return e}const o=n},65963:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(24606);t=r.hmd(t);var n=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var o=n&&"object"=="object"&&t&&!t.nodeType&&t;var s=o&&o.exports===n;var a=s?i.A.Buffer:undefined,l=a?a.allocUnsafe:undefined;function c(t,e){if(e){return t.slice()}var r=t.length,i=l?l(r):new t.constructor(r);t.copy(i);return i}const h=c},93672:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(53458);function n(t,e){var r=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}const o=n},91810:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t,e){var r=-1,i=t.length;e||(e=Array(i));while(++r{"use strict";r.d(e,{A:()=>s});var i=r(16542);var n=r(48657);function o(t,e,r,o){var s=!r;r||(r={});var a=-1,l=e.length;while(++a{"use strict";r.d(e,{A:()=>o});var i=r(39023);var n=function(){try{var t=(0,i.A)(Object,"defineProperty");t({},"",{});return t}catch(e){}}();const o=n},7767:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;const n=i},39023:(t,e,r)=>{"use strict";r.d(e,{A:()=>T});var i=r(58807);var n=r(24606);var o=n.A["__core-js_shared__"];const s=o;var a=function(){var t=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function l(t){return!!a&&a in t}const c=l;var h=r(85356);var u=r(62210);var f=/[\\^$.*+?()[\]{}|]/g;var d=/^\[object .+?Constructor\]$/;var p=Function.prototype,g=Object.prototype;var m=p.toString;var y=g.hasOwnProperty;var C=RegExp("^"+m.call(y).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(t){if(!(0,h.A)(t)||c(t)){return false}var e=(0,i.A)(t)?C:d;return e.test((0,u.A)(t))}const v=b;function x(t,e){return t==null?undefined:t[e]}const k=x;function A(t,e){var r=k(t,e);return v(r)?r:undefined}const T=A},86848:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(24630);var n=(0,i.A)(Object.getPrototypeOf,Object);const o=n},88753:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var i=r(39023);var n=r(24606);var o=(0,i.A)(n.A,"DataView");const s=o;var a=r(51482);var l=(0,i.A)(n.A,"Promise");const c=l;var h=r(88224);var u=(0,i.A)(n.A,"WeakMap");const f=u;var d=r(64128);var p=r(62210);var g="[object Map]",m="[object Object]",y="[object Promise]",C="[object Set]",b="[object WeakMap]";var v="[object DataView]";var x=(0,p.A)(s),k=(0,p.A)(a.A),A=(0,p.A)(c),T=(0,p.A)(h.A),_=(0,p.A)(f);var w=d.A;if(s&&w(new s(new ArrayBuffer(1)))!=v||a.A&&w(new a.A)!=g||c&&w(c.resolve())!=y||h.A&&w(new h.A)!=C||f&&w(new f)!=b){w=function(t){var e=(0,d.A)(t),r=e==m?t.constructor:undefined,i=r?(0,p.A)(r):"";if(i){switch(i){case x:return v;case k:return g;case A:return y;case T:return C;case _:return b}}return e}}const S=w},92768:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(85356);var n=Object.create;var o=function(){function t(){}return function(e){if(!(0,i.A)(e)){return{}}if(n){return n(e)}t.prototype=e;var r=new t;t.prototype=undefined;return r}}();const s=o;var a=r(86848);var l=r(690);function c(t){return typeof t.constructor=="function"&&!(0,l.A)(t)?s((0,a.A)(t)):{}}const h=c},78912:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function o(t,e){var r=typeof t;e=e==null?i:e;return!!e&&(r=="number"||r!="symbol"&&n.test(t))&&(t>-1&&t%1==0&&t{"use strict";r.d(e,{A:()=>l});var i=r(24461);var n=r(21585);var o=r(78912);var s=r(85356);function a(t,e,r){if(!(0,s.A)(r)){return false}var a=typeof e;if(a=="number"?(0,n.A)(r)&&(0,o.A)(e,r.length):a=="string"&&e in r){return(0,i.A)(r[e],t)}return false}const l=a},690:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=Object.prototype;function n(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||i;return t===r}const o=n},89986:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var i=r(7767);t=r.hmd(t);var n=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var o=n&&"object"=="object"&&t&&!t.nodeType&&t;var s=o&&o.exports===n;var a=s&&i.A.process;var l=function(){try{var t=o&&o.require&&o.require("util").types;if(t){return t}return a&&a.binding&&a.binding("util")}catch(e){}}();const c=l},24630:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t,e){return function(r){return t(e(r))}}const n=i},27401:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}const n=i;var o=Math.max;function s(t,e,r){e=o(e===undefined?t.length-1:e,0);return function(){var i=arguments,s=-1,a=o(i.length-e,0),l=Array(a);while(++s{"use strict";r.d(e,{A:()=>s});var i=r(7767);var n=typeof self=="object"&&self&&self.Object===Object&&self;var o=i.A||n||Function("return this")();const s=o},4596:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(33659);var n=r(51348);var o=r(63077);var s=!n.A?o.A:function(t,e){return(0,n.A)(t,"toString",{configurable:true,enumerable:false,value:(0,i.A)(e),writable:true})};const a=s;var l=800,c=16;var h=Date.now;function u(t){var e=0,r=0;return function(){var i=h(),n=c-(i-r);r=i;if(n>0){if(++e>=l){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}const f=u;var d=f(a);const p=d},62210:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=Function.prototype;var n=i.toString;function o(t){if(t!=null){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}const s=o},33659:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t){return function(){return t}}const n=i},24461:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t,e){return t===e||t!==t&&e!==e}const n=i},63077:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t){return t}const n=i},71528:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var i=r(64128);var n=r(53315);var o="[object Arguments]";function s(t){return(0,n.A)(t)&&(0,i.A)(t)==o}const a=s;var l=Object.prototype;var c=l.hasOwnProperty;var h=l.propertyIsEnumerable;var u=a(function(){return arguments}())?a:function(t){return(0,n.A)(t)&&c.call(t,"callee")&&!h.call(t,"callee")};const f=u},39990:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=Array.isArray;const n=i},21585:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(58807);var n=r(43627);function o(t){return t!=null&&(0,n.A)(t.length)&&!(0,i.A)(t)}const s=o},10654:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(21585);var n=r(53315);function o(t){return(0,n.A)(t)&&(0,i.A)(t)}const s=o},50895:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var i=r(24606);function n(){return false}const o=n;t=r.hmd(t);var s=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var a=s&&"object"=="object"&&t&&!t.nodeType&&t;var l=a&&a.exports===s;var c=l?i.A.Buffer:undefined;var h=c?c.isBuffer:undefined;var u=h||o;const f=u},74650:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var i=r(30568);var n=r(88753);var o=r(71528);var s=r(39990);var a=r(21585);var l=r(50895);var c=r(690);var h=r(82818);var u="[object Map]",f="[object Set]";var d=Object.prototype;var p=d.hasOwnProperty;function g(t){if(t==null){return true}if((0,a.A)(t)&&((0,s.A)(t)||typeof t=="string"||typeof t.splice=="function"||(0,l.A)(t)||(0,h.A)(t)||(0,o.A)(t))){return!t.length}var e=(0,n.A)(t);if(e==u||e==f){return!t.size}if((0,c.A)(t)){return!(0,i.A)(t).length}for(var r in t){if(p.call(t,r)){return false}}return true}const m=g},58807:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(64128);var n=r(85356);var o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!(0,n.A)(t)){return false}var e=(0,i.A)(t);return e==s||e==a||e==o||e==l}const h=c},43627:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=9007199254740991;function n(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=i}const o=n},85356:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}const n=i},53315:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function i(t){return t!=null&&typeof t=="object"}const n=i},78696:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var i=r(64128);var n=r(86848);var o=r(53315);var s="[object Object]";var a=Function.prototype,l=Object.prototype;var c=a.toString;var h=l.hasOwnProperty;var u=c.call(Object);function f(t){if(!(0,o.A)(t)||(0,i.A)(t)!=s){return false}var e=(0,n.A)(t);if(e===null){return true}var r=h.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&c.call(r)==u}const d=f},82818:(t,e,r)=>{"use strict";r.d(e,{A:()=>D});var i=r(64128);var n=r(43627);var o=r(53315);var s="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",u="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",C="[object WeakMap]";var b="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",k="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]";var L={};L[x]=L[k]=L[A]=L[T]=L[_]=L[w]=L[S]=L[B]=L[F]=true;L[s]=L[a]=L[b]=L[l]=L[v]=L[c]=L[h]=L[u]=L[f]=L[d]=L[p]=L[g]=L[m]=L[y]=L[C]=false;function E(t){return(0,o.A)(t)&&(0,n.A)(t.length)&&!!L[(0,i.A)(t)]}const M=E;var O=r(26132);var I=r(89986);var z=I.A&&I.A.isTypedArray;var q=z?(0,O.A)(z):M;const D=q},13839:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(74578);var n=r(85356);var o=r(690);function s(t){var e=[];if(t!=null){for(var r in Object(t)){e.push(r)}}return e}const a=s;var l=Object.prototype;var c=l.hasOwnProperty;function h(t){if(!(0,n.A)(t)){return a(t)}var e=(0,o.A)(t),r=[];for(var i in t){if(!(i=="constructor"&&(e||!c.call(t,i)))){r.push(i)}}return r}const u=h;var f=r(21585);function d(t){return(0,f.A)(t)?(0,i.A)(t,true):u(t)}const p=d},307:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(9883);var n="Expected a function";function o(t,e){if(typeof t!="function"||e!=null&&typeof e!="function"){throw new TypeError(n)}var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=r.cache;if(o.has(n)){return o.get(n)}var s=t.apply(this,i);r.cache=o.set(n,s)||o;return s};r.cache=new(o.Cache||i.A);return r}o.Cache=i.A;const s=o},775:(t,e,r)=>{"use strict";r.d(e,{A:()=>q});var i=r(28478);var n=r(48657);var o=r(24461);function s(t,e,r){if(r!==undefined&&!(0,o.A)(t[e],r)||r===undefined&&!(e in t)){(0,n.A)(t,e,r)}}const a=s;var l=r(40283);var c=r(65963);var h=r(93672);var u=r(91810);var f=r(92768);var d=r(71528);var p=r(39990);var g=r(10654);var m=r(50895);var y=r(58807);var C=r(85356);var b=r(78696);var v=r(82818);function x(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}const k=x;var A=r(376);var T=r(13839);function _(t){return(0,A.A)(t,(0,T.A)(t))}const w=_;function S(t,e,r,i,n,o,s){var l=k(t,r),x=k(e,r),A=s.get(x);if(A){a(t,r,A);return}var T=o?o(l,x,r+"",t,e,s):undefined;var _=T===undefined;if(_){var S=(0,p.A)(x),B=!S&&(0,m.A)(x),F=!S&&!B&&(0,v.A)(x);T=x;if(S||B||F){if((0,p.A)(l)){T=l}else if((0,g.A)(l)){T=(0,u.A)(l)}else if(B){_=false;T=(0,c.A)(x,true)}else if(F){_=false;T=(0,h.A)(x,true)}else{T=[]}}else if((0,b.A)(x)||(0,d.A)(x)){T=l;if((0,d.A)(l)){T=w(l)}else if(!(0,C.A)(l)||(0,y.A)(l)){T=(0,f.A)(x)}}else{_=false}}if(_){s.set(x,T);n(T,x,i,o,s);s["delete"](x)}a(t,r,T)}const B=S;function F(t,e,r,n,o){if(t===e){return}(0,l.A)(e,(function(s,l){o||(o=new i.A);if((0,C.A)(s)){B(t,e,l,r,F,n,o)}else{var c=n?n(k(t,l),s,l+"",t,e,o):undefined;if(c===undefined){c=s}a(t,l,c)}}),T.A)}const L=F;var E=r(55881);var M=r(31943);function O(t){return(0,E.A)((function(e,r){var i=-1,n=r.length,o=n>1?r[n-1]:undefined,s=n>2?r[2]:undefined;o=t.length>3&&typeof o=="function"?(n--,o):undefined;if(s&&(0,M.A)(r[0],r[1],s)){o=n<3?undefined:o;n=1}e=Object(e);while(++i{"use strict";r.d(e,{A:()=>_e,B:()=>vr,C:()=>br,D:()=>ge,E:()=>qr,F:()=>Lo,G:()=>nr,H:()=>Rt,I:()=>Hn,J:()=>Ar,K:()=>jn,L:()=>fc,Z:()=>je,a:()=>qn,b:()=>zn,c:()=>Rn,d:()=>Yt,e:()=>se,f:()=>Ne,g:()=>In,h:()=>fr,i:()=>kn,j:()=>ur,k:()=>rr,l:()=>jt,m:()=>Qt,n:()=>Ye,o:()=>An,p:()=>Wn,q:()=>Dn,r:()=>Nn,s:()=>On,t:()=>Mn,u:()=>xr,v:()=>re,w:()=>cr,x:()=>sr,y:()=>Yn,z:()=>Jn});var i=r(60513);var n=r(74353);var o=r.n(n);var s=r(16750);var a=r(92935);var l=r(42838);var c=r.n(l);var h=r(63221);var u=r(69745);const f=(t,e)=>{const r=h.A.parse(t);const i={};for(const n in e){if(!e[n])continue;i[n]=r[n]+e[n]}return(0,u.A)(t,i)};const d=f;var p=r(3635);const g=(t,e,r=50)=>{const{r:i,g:n,b:o,a:s}=h.A.parse(t);const{r:a,g:l,b:c,a:u}=h.A.parse(e);const f=r/100;const d=f*2-1;const g=s-u;const m=d*g===-1?d:(d+g)/(1+d*g);const y=(m+1)/2;const C=1-y;const b=i*y+a*C;const v=n*y+l*C;const x=o*y+c*C;const k=s*f+u*(1-f);return(0,p.A)(b,v,x,k)};const m=g;const y=(t,e=100)=>{const r=h.A.parse(t);r.r=255-r.r;r.g=255-r.g;r.b=255-r.b;return m(r,t,e)};const C=y;var b=r(48750);var v=r(77470);var x=r(63170);var k=r(307);var A=r(775);var T="-ms-";var _="-moz-";var w="-webkit-";var S="comm";var B="rule";var F="decl";var L="@page";var E="@media";var M="@import";var O="@charset";var I="@viewport";var z="@supports";var q="@document";var D="@namespace";var N="@keyframes";var j="@font-face";var P="@counter-style";var $="@font-feature-values";var R="@layer";var W=Math.abs;var H=String.fromCharCode;var U=Object.assign;function Y(t,e){return K(t,0)^45?(((e<<2^K(t,0))<<2^K(t,1))<<2^K(t,2))<<2^K(t,3):0}function G(t){return t.trim()}function V(t,e){return(t=e.exec(t))?t[0]:t}function X(t,e,r){return t.replace(e,r)}function Z(t,e){return t.indexOf(e)}function K(t,e){return t.charCodeAt(e)|0}function J(t,e,r){return t.slice(e,r)}function Q(t){return t.length}function tt(t){return t.length}function et(t,e){return e.push(t),t}function rt(t,e){return t.map(e).join("")}function it(t,e){return t.filter((function(t){return!V(t,e)}))}function nt(t,e){var r="";for(var i=0;i0?K(ut,--ct):0;if(at--,ht===10)at=1,st--;return ht}function yt(){ht=ct2||xt(ht)>3?"":" "}function St(t){while(yt())switch(xt(ht)){case 0:append(Et(ct-1),t);break;case 2:append(Tt(ht),t);break;default:append(from(ht),t)}return t}function Bt(t,e){while(--e&&yt())if(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97)break;return vt(t,bt()+(e<6&&Ct()==32&&yt()==32))}function Ft(t){while(yt())switch(ht){case t:return ct;case 34:case 39:if(t!==34&&t!==39)Ft(ht);break;case 40:if(t===41)Ft(t);break;case 92:yt();break}return ct}function Lt(t,e){while(yt())if(t+ht===47+10)break;else if(t+ht===42+42&&Ct()===47)break;return"/*"+vt(e,ct-1)+"*"+H(t===47?t:yt())}function Et(t){while(!xt(Ct()))yt();return vt(t,ct)}function Mt(t){return At(Ot("",null,null,null,[""],t=kt(t),0,[0],t))}function Ot(t,e,r,i,n,o,s,a,l){var c=0;var h=0;var u=s;var f=0;var d=0;var p=0;var g=1;var m=1;var y=1;var C=0;var b="";var v=n;var x=o;var k=i;var A=b;while(m)switch(p=C,C=yt()){case 40:if(p!=108&&K(A,u-1)==58){if(Z(A+=X(Tt(C),"&","&\f"),"&\f")!=-1)y=-1;break}case 34:case 39:case 91:A+=Tt(C);break;case 9:case 10:case 13:case 32:A+=wt(p);break;case 92:A+=Bt(bt()-1,7);continue;case 47:switch(Ct()){case 42:case 47:et(zt(Lt(yt(),bt()),e,r,l),l);break;default:A+="/"}break;case 123*g:a[c++]=Q(A)*y;case 125*g:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+h:if(y==-1)A=X(A,/\f/g,"");if(d>0&&Q(A)-u)et(d>32?qt(A+";",i,r,u-1,l):qt(X(A," ","")+";",i,r,u-2,l),l);break;case 59:A+=";";default:et(k=It(A,e,r,c,h,n,a,b,v=[],x=[],u,o),o);if(C===123)if(h===0)Ot(A,e,k,k,v,o,u,a,x);else switch(f===99&&K(A,3)===110?100:f){case 100:case 108:case 109:case 115:Ot(t,k,k,i&&et(It(t,k,k,0,0,n,a,b,n,v=[],u,x),x),n,x,u,a,i?v:x);break;default:Ot(A,k,k,k,[""],x,0,a,x)}}c=h=d=0,g=y=1,b=A="",u=s;break;case 58:u=1+Q(A),d=p;default:if(g<1)if(C==123)--g;else if(C==125&&g++==0&&mt()==125)continue;switch(A+=H(C),C*g){case 38:y=h>0?1:(A+="\f",-1);break;case 44:a[c++]=(Q(A)-1)*y,y=1;break;case 64:if(Ct()===45)A+=Tt(yt());f=Ct(),h=u=Q(b=A+=Et(bt())),C++;break;case 45:if(p===45&&Q(A)==2)g=0}}return o}function It(t,e,r,i,n,o,s,a,l,c,h,u){var f=n-1;var d=n===0?o:[""];var p=tt(d);for(var g=0,m=0,y=0;g0?d[C]+" "+b:X(b,/&\f/g,d[C])))l[y++]=v;return ft(t,e,r,n===0?B:a,l,c,h,u)}function zt(t,e,r,i){return ft(t,e,r,S,H(gt()),J(t,2,-2),0,i)}function qt(t,e,r,i,n){return ft(t,e,r,F,J(t,0,i),J(t,i+1,-1),i,n)}var Dt=r(74650);const Nt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};const jt={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}};const Pt=function(t="fatal"){let e=Nt.fatal;if(typeof t==="string"){t=t.toLowerCase();if(t in Nt){e=Nt[t]}}else if(typeof t==="number"){e=t}jt.trace=()=>{};jt.debug=()=>{};jt.info=()=>{};jt.warn=()=>{};jt.error=()=>{};jt.fatal=()=>{};if(e<=Nt.fatal){jt.fatal=console.error?console.error.bind(console,$t("FATAL"),"color: orange"):console.log.bind(console,"",$t("FATAL"))}if(e<=Nt.error){jt.error=console.error?console.error.bind(console,$t("ERROR"),"color: orange"):console.log.bind(console,"",$t("ERROR"))}if(e<=Nt.warn){jt.warn=console.warn?console.warn.bind(console,$t("WARN"),"color: orange"):console.log.bind(console,``,$t("WARN"))}if(e<=Nt.info){jt.info=console.info?console.info.bind(console,$t("INFO"),"color: lightblue"):console.log.bind(console,"",$t("INFO"))}if(e<=Nt.debug){jt.debug=console.debug?console.debug.bind(console,$t("DEBUG"),"color: lightgreen"):console.log.bind(console,"",$t("DEBUG"))}if(e<=Nt.trace){jt.trace=console.debug?console.debug.bind(console,$t("TRACE"),"color: lightgreen"):console.log.bind(console,"",$t("TRACE"))}};const $t=t=>{const e=o()().format("ss.SSS");return`%c${e} : ${t} : `};const Rt=//gi;const Wt=t=>{if(!t){return[""]}const e=Kt(t).replace(/\\n/g,"#br#");return e.split("#br#")};const Ht=t=>{const e="data-temp-href-target";c().addHook("beforeSanitizeAttributes",(t=>{if(t.tagName==="A"&&t.hasAttribute("target")){t.setAttribute(e,t.getAttribute("target")||"")}}));const r=c().sanitize(t);c().addHook("afterSanitizeAttributes",(t=>{if(t.tagName==="A"&&t.hasAttribute(e)){t.setAttribute("target",t.getAttribute(e)||"");t.removeAttribute(e);if(t.getAttribute("target")==="_blank"){t.setAttribute("rel","noopener")}}}));return r};const Ut=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==false){const r=e.securityLevel;if(r==="antiscript"||r==="strict"){t=Ht(t)}else if(r!=="loose"){t=Kt(t);t=t.replace(//g,">");t=t.replace(/=/g,"=");t=Zt(t)}}return t};const Yt=(t,e)=>{if(!t){return t}if(e.dompurifyConfig){t=c().sanitize(Ut(t,e),e.dompurifyConfig).toString()}else{t=c().sanitize(Ut(t,e),{FORBID_TAGS:["style"]}).toString()}return t};const Gt=(t,e)=>{if(typeof t==="string"){return Yt(t,e)}return t.flat().map((t=>Yt(t,e)))};const Vt=t=>Rt.test(t);const Xt=t=>t.split(Rt);const Zt=t=>t.replace(/#br#/g,"
");const Kt=t=>t.replace(Rt,"#br#");const Jt=t=>{let e="";if(t){e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;e=e.replaceAll(/\(/g,"\\(");e=e.replaceAll(/\)/g,"\\)")}return e};const Qt=t=>t===false||["false","null","0"].includes(String(t).trim().toLowerCase())?false:true;const te=function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)};const ee=function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)};const re=function(t){const e=t.split(/(,)/);const r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1);const ne=(t,e)=>{const r=ie(t,"~");const i=ie(e,"~");return r===1&&i===1};const oe=t=>{const e=ie(t,"~");let r=false;if(e<=1){return t}if(e%2!==0&&t.startsWith("~")){t=t.substring(1);r=true}const i=[...t];let n=i.indexOf("~");let o=i.lastIndexOf("~");while(n!==-1&&o!==-1&&n!==o){i[n]="<";i[o]=">";n=i.indexOf("~");o=i.lastIndexOf("~")}if(r){i.unshift("~")}return i.join("")};const se={getRows:Wt,sanitizeText:Yt,sanitizeTextOrArray:Gt,hasBreaks:Vt,splitBreaks:Xt,lineBreakRegex:Rt,removeScript:Ht,getUrl:Jt,evaluate:Qt,getMax:te,getMin:ee};const ae=(t,e)=>e?d(t,{s:-40,l:10}):d(t,{s:-40,l:-10});const le="#ffffff";const ce="#f2f2f2";let he=class t{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 t,e,r,i,n,o,s,a,l,c,h;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333");this.secondaryColor=this.secondaryColor||d(this.primaryColor,{h:-120});this.tertiaryColor=this.tertiaryColor||d(this.primaryColor,{h:180,l:5});this.primaryBorderColor=this.primaryBorderColor||ae(this.primaryColor,this.darkMode);this.secondaryBorderColor=this.secondaryBorderColor||ae(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=this.tertiaryBorderColor||ae(this.tertiaryColor,this.darkMode);this.noteBorderColor=this.noteBorderColor||ae(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?(0,b.A)(this.secondaryColor,30):this.secondaryColor);this.nodeTextColor=this.nodeTextColor||this.primaryTextColor;this.actorBorder=this.actorBorder||this.primaryBorderColor;this.actorBkg=this.actorBkg||this.mainBkg;this.actorTextColor=this.actorTextColor||this.primaryTextColor;this.actorLineColor=this.actorLineColor||"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||(0,b.A)(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||(0,v.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||d(this.primaryColor,{h:30});this.cScale4=this.cScale4||d(this.primaryColor,{h:60});this.cScale5=this.cScale5||d(this.primaryColor,{h:90});this.cScale6=this.cScale6||d(this.primaryColor,{h:120});this.cScale7=this.cScale7||d(this.primaryColor,{h:150});this.cScale8=this.cScale8||d(this.primaryColor,{h:210,l:150});this.cScale9=this.cScale9||d(this.primaryColor,{h:270});this.cScale10=this.cScale10||d(this.primaryColor,{h:300});this.cScale11=this.cScale11||d(this.primaryColor,{h:330});if(this.darkMode){for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};const ue=t=>{const e=new he;e.calculate(t);return e};let fe=class t{constructor(){this.background="#333";this.primaryColor="#1f2020";this.secondaryColor=(0,v.A)(this.primaryColor,16);this.tertiaryColor=d(this.primaryColor,{h:-160});this.primaryBorderColor=C(this.background);this.secondaryBorderColor=ae(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=ae(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=(0,v.A)(C("#323D47"),10);this.lineColor="calculated";this.border1="#81B1DB";this.border2=(0,p.A)(255,255,255,.25);this.arrowheadColor="calculated";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.labelBackground="#181818";this.textColor="#ccc";this.THEME_COLOR_LIMIT=12;this.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=(0,b.A)("#EAE8D9",30);this.altSectionBkgColor="calculated";this.sectionBkgColor2="#EAE8D9";this.excludeBkgColor=(0,b.A)(this.sectionBkgColor,10);this.taskBorderColor=(0,p.A)(255,255,255,70);this.taskBkgColor="calculated";this.taskTextColor="calculated";this.taskTextLightColor="calculated";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor=(0,p.A)(255,255,255,50);this.activeTaskBkgColor="#81B1DB";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="grey";this.critBorderColor="#E83737";this.critBkgColor="#E83737";this.taskTextDarkColor="calculated";this.todayLineColor="#DB5757";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.labelColor="calculated";this.errorBkgColor="#a44141";this.errorTextColor="#ddd"}updateColors(){var t,e,r,i,n,o,s,a,l,c,h;this.secondBkg=(0,v.A)(this.mainBkg,16);this.lineColor=this.mainContrastColor;this.arrowheadColor=this.mainContrastColor;this.nodeBkg=this.mainBkg;this.nodeBorder=this.border1;this.clusterBkg=this.secondBkg;this.clusterBorder=this.border2;this.defaultLinkColor=this.lineColor;this.edgeLabelBackground=(0,v.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=(0,v.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=d(this.primaryColor,{h:64});this.fillType3=d(this.secondaryColor,{h:64});this.fillType4=d(this.primaryColor,{h:-64});this.fillType5=d(this.secondaryColor,{h:-64});this.fillType6=d(this.primaryColor,{h:128});this.fillType7=d(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||d(this.primaryColor,{h:30});this.cScale4=this.cScale4||d(this.primaryColor,{h:60});this.cScale5=this.cScale5||d(this.primaryColor,{h:90});this.cScale6=this.cScale6||d(this.primaryColor,{h:120});this.cScale7=this.cScale7||d(this.primaryColor,{h:150});this.cScale8=this.cScale8||d(this.primaryColor,{h:210});this.cScale9=this.cScale9||d(this.primaryColor,{h:270});this.cScale10=this.cScale10||d(this.primaryColor,{h:300});this.cScale11=this.cScale11||d(this.primaryColor,{h:330});for(let u=0;u{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};const de=t=>{const e=new fe;e.calculate(t);return e};let pe=class t{constructor(){this.background="#f4f4f4";this.primaryColor="#ECECFF";this.secondaryColor=d(this.primaryColor,{h:120});this.secondaryColor="#ffffde";this.tertiaryColor=d(this.primaryColor,{h:-160});this.primaryBorderColor=ae(this.primaryColor,this.darkMode);this.secondaryBorderColor=ae(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=ae(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=(0,p.A)(102,102,255,.49);this.altSectionBkgColor="white";this.sectionBkgColor2="#fff400";this.taskBorderColor="#534fbc";this.taskBkgColor="#8a90dd";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="black";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="#534fbc";this.activeTaskBkgColor="#bfc7ff";this.gridColor="lightgrey";this.doneTaskBkgColor="lightgrey";this.doneTaskBorderColor="grey";this.critBorderColor="#ff8888";this.critBkgColor="red";this.todayLineColor="red";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222";this.updateColors()}updateColors(){var t,e,r,i,n,o,s,a,l,c,h;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||d(this.primaryColor,{h:30});this.cScale4=this.cScale4||d(this.primaryColor,{h:60});this.cScale5=this.cScale5||d(this.primaryColor,{h:90});this.cScale6=this.cScale6||d(this.primaryColor,{h:120});this.cScale7=this.cScale7||d(this.primaryColor,{h:150});this.cScale8=this.cScale8||d(this.primaryColor,{h:210});this.cScale9=this.cScale9||d(this.primaryColor,{h:270});this.cScale10=this.cScale10||d(this.primaryColor,{h:300});this.cScale11=this.cScale11||d(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,b.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,b.A)(this.tertiaryColor,40);for(let u=0;u{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};const ge=t=>{const e=new pe;e.calculate(t);return e};let me=class t{constructor(){this.background="#f4f4f4";this.primaryColor="#cde498";this.secondaryColor="#cdffb2";this.background="white";this.mainBkg="#cde498";this.secondBkg="#cdffb2";this.lineColor="green";this.border1="#13540c";this.border2="#6eaa49";this.arrowheadColor="green";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.tertiaryColor=(0,v.A)("#cde498",10);this.primaryBorderColor=ae(this.primaryColor,this.darkMode);this.secondaryBorderColor=ae(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=ae(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 t,e,r,i,n,o,s,a,l,c,h;this.actorBorder=(0,b.A)(this.mainBkg,20);this.actorBkg=this.mainBkg;this.labelBoxBkgColor=this.actorBkg;this.labelTextColor=this.actorTextColor;this.loopTextColor=this.actorTextColor;this.noteBorderColor=this.border2;this.noteTextColor=this.actorTextColor;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||d(this.primaryColor,{h:30});this.cScale4=this.cScale4||d(this.primaryColor,{h:60});this.cScale5=this.cScale5||d(this.primaryColor,{h:90});this.cScale6=this.cScale6||d(this.primaryColor,{h:120});this.cScale7=this.cScale7||d(this.primaryColor,{h:150});this.cScale8=this.cScale8||d(this.primaryColor,{h:210});this.cScale9=this.cScale9||d(this.primaryColor,{h:270});this.cScale10=this.cScale10||d(this.primaryColor,{h:300});this.cScale11=this.cScale11||d(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,b.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,b.A)(this.tertiaryColor,40);for(let u=0;u{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};const ye=t=>{const e=new me;e.calculate(t);return e};class Ce{constructor(){this.primaryColor="#eee";this.contrast="#707070";this.secondaryColor=(0,v.A)(this.contrast,55);this.background="#ffffff";this.tertiaryColor=d(this.primaryColor,{h:-160});this.primaryBorderColor=ae(this.primaryColor,this.darkMode);this.secondaryBorderColor=ae(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=ae(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 t,e,r,i,n,o,s,a,l,c,h;this.secondBkg=(0,v.A)(this.contrast,55);this.border2=this.contrast;this.actorBorder=(0,v.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 u=0;u{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}}const be=t=>{const e=new Ce;e.calculate(t);return e};const ve={base:{getThemeVariables:ue},dark:{getThemeVariables:de},default:{getThemeVariables:ge},forest:{getThemeVariables:ye},neutral:{getThemeVariables:be}};const xe={flowchart:{useMaxWidth:true,titleTopMargin:25,diagramPadding:8,htmlLabels:true,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:true,hideUnusedParticipants:false,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:true,forceMenus:false,bottomMarginAdj:1,rightAngles:false,showSequenceNumbers:false,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:false,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:true,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:false,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,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:true,titleTopMargin:25,arrowMarkerAbsolute:false,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:false},state:{useMaxWidth:true,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:true,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:true,textPosition:.75},quadrantChart:{useMaxWidth:true,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:true,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:true,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:true,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:true,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,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:false},gitGraph:{useMaxWidth:true,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:true,showBranches:true,rotateCommitLabel:true,arrowMarkerAbsolute:false},c4:{useMaxWidth:true,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:true,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:true,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:true,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:false,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:true,arrowMarkerAbsolute:false,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],deterministicIds:false,fontSize:16};const ke={...xe,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ve["default"].getThemeVariables(),sequence:{...xe.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:{...xe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...xe.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:{...xe.pie,useWidth:984},xyChart:{...xe.xyChart,useWidth:void 0},requirement:{...xe.requirement,useWidth:void 0},gitGraph:{...xe.gitGraph,useMaxWidth:false},sankey:{...xe.sankey,useMaxWidth:false}};const Ae=(t,e="")=>Object.keys(t).reduce(((r,i)=>{if(Array.isArray(t[i])){return r}else if(typeof t[i]==="object"&&t[i]!==null){return[...r,e+i,...Ae(t[i],"")]}return[...r,e+i]}),[]);const Te=new Set(Ae(ke,""));const _e=ke;const we=t=>{jt.debug("sanitizeDirective called with",t);if(typeof t!=="object"||t==null){return}if(Array.isArray(t)){t.forEach((t=>we(t)));return}for(const e of Object.keys(t)){jt.debug("Checking key",e);if(e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Te.has(e)||t[e]==null){jt.debug("sanitize deleting key: ",e);delete t[e];continue}if(typeof t[e]==="object"){jt.debug("sanitizing object",e);we(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r){if(e.includes(i)){jt.debug("sanitizing css option",e);t[e]=Se(t[e])}}}if(t.themeVariables){for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];if((r==null?void 0:r.match)&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)){t.themeVariables[e]=""}}}jt.debug("After sanitization",t)};const Se=t=>{let e=0;let r=0;for(const i of t){if(e{for(const{id:e,detector:r,loader:i}of t){ze(e,r,i)}};const ze=(t,e,r)=>{if(Me[t]){jt.error(`Detector with key ${t} already exists`)}else{Me[t]={detector:e,loader:r}}jt.debug(`Detector with key ${t} added${r?" with loader":""}`)};const qe=t=>Me[t].loader;const De=(t,e,{depth:r=2,clobber:i=false}={})=>{const n={depth:r,clobber:i};if(Array.isArray(e)&&!Array.isArray(t)){e.forEach((e=>De(t,e,n)));return t}else if(Array.isArray(e)&&Array.isArray(t)){e.forEach((e=>{if(!t.includes(e)){t.push(e)}}));return t}if(t===void 0||r<=0){if(t!==void 0&&t!==null&&typeof t==="object"&&typeof e==="object"){return Object.assign(t,e)}else{return e}}if(e!==void 0&&typeof t==="object"&&typeof e==="object"){Object.keys(e).forEach((n=>{if(typeof e[n]==="object"&&(t[n]===void 0||typeof t[n]==="object")){if(t[n]===void 0){t[n]=Array.isArray(e[n])?[]:{}}t[n]=De(t[n],e[n],{depth:r-1,clobber:i})}else if(i||typeof t[n]!=="object"&&typeof e[n]!=="object"){t[n]=e[n]}}))}return t};const Ne=De;const je="​";const Pe={curveBasis:a.qrM,curveBasisClosed:a.Yu4,curveBasisOpen:a.IA3,curveBumpX:a.Wi0,curveBumpY:a.PGM,curveBundle:a.OEq,curveCardinalClosed:a.olC,curveCardinalOpen:a.IrU,curveCardinal:a.y8u,curveCatmullRomClosed:a.Q7f,curveCatmullRomOpen:a.cVp,curveCatmullRom:a.oDi,curveLinear:a.lUB,curveLinearClosed:a.Lx9,curveMonotoneX:a.nVG,curveMonotoneY:a.uxU,curveNatural:a.Xf2,curveStep:a.GZz,curveStepAfter:a.UPb,curveStepBefore:a.dyv};const $e=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;const Re=function(t,e){const r=We(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const t=r.map((t=>t.args));we(t);i=Ne(i,[...t])}else{i=r.args}if(!i){return}let n=Oe(t,e);const o="config";if(i[o]!==void 0){if(n==="flowchart-v2"){n="flowchart"}i[n]=i[o];delete i[o]}return i};const We=function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${$e.source})(?=[}][%]{2}).*\n`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"');jt.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i;const n=[];while((i=Fe.exec(t))!==null){if(i.index===Fe.lastIndex){Fe.lastIndex++}if(i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){const t=i[1]?i[1]:i[2];const e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:t,args:e})}}if(n.length===0){return{type:t,args:null}}return n.length===1?n[0]:n}catch(r){jt.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`);return{type:void 0,args:null}}};const He=function(t){return t.replace(Fe,"")};const Ue=function(t,e){for(const[r,i]of e.entries()){if(i.match(t)){return r}}return-1};function Ye(t,e){if(!t){return e}const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Pe[r]??e}function Ge(t,e){const r=t.trim();if(!r){return void 0}if(e.securityLevel!=="loose"){return(0,s.Jf)(r)}return r}const Ve=(t,...e)=>{const r=t.split(".");const i=r.length-1;const n=r[i];let o=window;for(let s=0;s{r+=Xe(t,e);e=t}));const i=r/2;return Qe(t,i)}function Ke(t){if(t.length===1){return t[0]}return Ze(t)}const Je=(t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r};const Qe=(t,e)=>{let r=void 0;let i=e;for(const n of t){if(r){const t=Xe(n,r);if(t=1){return{x:n.x,y:n.y}}if(e>0&&e<1){return{x:Je((1-e)*r.x+e*n.x,5),y:Je((1-e)*r.y+e*n.y,5)}}}}r=n}throw new Error("Could not find a suitable point for the given distance")};const tr=(t,e,r)=>{jt.info(`our points ${JSON.stringify(e)}`);if(e[0]!==r){e=e.reverse()}const i=25;const n=Qe(e,i);const o=t?10:5;const s=Math.atan2(e[0].y-n.y,e[0].x-n.x);const a={x:0,y:0};a.x=Math.sin(s)*o+(e[0].x+n.x)/2;a.y=-Math.cos(s)*o+(e[0].y+n.y)/2;return a};function er(t,e,r){const i=structuredClone(r);jt.info("our points",i);if(e!=="start_left"&&e!=="start_right"){i.reverse()}const n=25+t;const o=Qe(i,n);const s=10+t*.5;const a=Math.atan2(i[0].y-o.y,i[0].x-o.x);const l={x:0,y:0};if(e==="start_left"){l.x=Math.sin(a+Math.PI)*s+(i[0].x+o.x)/2;l.y=-Math.cos(a+Math.PI)*s+(i[0].y+o.y)/2}else if(e==="end_right"){l.x=Math.sin(a-Math.PI)*s+(i[0].x+o.x)/2-5;l.y=-Math.cos(a-Math.PI)*s+(i[0].y+o.y)/2-5}else if(e==="end_left"){l.x=Math.sin(a)*s+(i[0].x+o.x)/2-5;l.y=-Math.cos(a)*s+(i[0].y+o.y)/2-5}else{l.x=Math.sin(a)*s+(i[0].x+o.x)/2;l.y=-Math.cos(a)*s+(i[0].y+o.y)/2}return l}function rr(t){let e="";let r="";for(const i of t){if(i!==void 0){if(i.startsWith("color:")||i.startsWith("text-align:")){r=r+i+";"}else{e=e+i+";"}}}return{style:e,labelStyle:r}}let ir=0;const nr=()=>{ir++;return"id-"+Math.random().toString(36).substr(2,12)+"-"+ir};function or(t){let e="";const r="0123456789abcdef";const i=r.length;for(let n=0;nor(t.length);const ar=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:""}};const lr=function(t,e){const r=e.text.replace(se.lineBreakRegex," ");const[,i]=br(e.fontSize);const 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",i);n.style("font-weight",e.fontWeight);n.attr("fill",e.fill);if(e.class!==void 0){n.attr("class",e.class)}const o=n.append("tspan");o.attr("x",e.x+e.textMargin*2);o.attr("fill",e.fill);o.text(r);return n};const cr=(0,k.A)(((t,e,r)=>{if(!t){return t}r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r);if(se.lineBreakRegex.test(t)){return t}const i=t.split(" ");const n=[];let o="";i.forEach(((t,s)=>{const a=fr(`${t} `,r);const l=fr(o,r);if(a>e){const{hyphenatedStrings:i,remainingWord:s}=hr(t,e,"-",r);n.push(o,...i);o=s}else if(l+a>=e){n.push(o);o=t}else{o=[o,t].filter(Boolean).join(" ")}const c=s+1;const h=c===i.length;if(h){n.push(o)}}));return n.filter((t=>t!=="")).join(r.joinWith)}),((t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`));const hr=(0,k.A)(((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...t];const o=[];let s="";n.forEach(((t,a)=>{const l=`${s}${t}`;const c=fr(l,i);if(c>=e){const t=a+1;const e=n.length===t;const i=`${l}${r}`;o.push(e?l:i);s=""}else{s=l}}));return{hyphenatedStrings:o,remainingWord:s}}),((t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function ur(t,e){return dr(t,e).height}function fr(t,e){return dr(t,e).width}const dr=(0,k.A)(((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t){return{width:0,height:0}}const[,o]=br(r);const s=["sans-serif",i];const l=t.split(se.lineBreakRegex);const c=[];const h=(0,a.Ltv)("body");if(!h.remove){return{width:0,height:0,lineHeight:0}}const u=h.append("svg");for(const a of s){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of l){const i=ar();i.text=r||je;const s=lr(u,i).style("font-size",o).style("font-weight",n).style("font-family",a);const l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0){throw new Error("svg element not in render tree")}e.width=Math.round(Math.max(e.width,l.width));t=Math.round(l.height);e.height+=t;e.lineHeight=Math.round(Math.max(e.lineHeight,t))}c.push(e)}u.remove();const f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));class pr{constructor(t=false,e){this.count=0;this.count=e?e.length:0;this.next=t?()=>this.count++:()=>Date.now()}}let gr;const mr=function(t){gr=gr||document.createElement("div");t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";");gr.innerHTML=t;return unescape(gr.textContent)};function yr(t){return"str"in t}const Cr=(t,e,r,i)=>{var n;if(!i){return}const o=(n=t.node())==null?void 0:n.getBBox();if(!o){return}t.append("text").text(i).attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)};const br=t=>{if(typeof t==="number"){return[t,t+"px"]}const e=parseInt(t??"",10);if(Number.isNaN(e)){return[void 0,void 0]}else if(t===String(e)){return[e,t+"px"]}else{return[e,t]}};function vr(t,e){return(0,A.A)({},t,e)}const xr={assignWithDepth:Ne,wrapLabel:cr,calculateTextHeight:ur,calculateTextWidth:fr,calculateTextDimensions:dr,cleanAndMerge:vr,detectInit:Re,detectDirective:We,isSubstringInArray:Ue,interpolateToCurve:Ye,calcLabelPosition:Ke,calcCardinalityPosition:tr,calcTerminalLabelPosition:er,formatUrl:Ge,getStylesFromArray:rr,generateId:nr,random:sr,runFunc:Ve,entityDecode:mr,insertTitle:Cr,parseFontSize:br,InitIDGenerator:pr};const kr=function(t){let e=t;e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);const r=/^\+?\d+$/.test(e);if(r){return"fl°°"+e+"¶ß"}else{return"fl°"+e+"¶ß"}}));return e};const Ar=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};const Tr="10.7.0";const _r=Object.freeze(_e);let wr=Ne({},_r);let Sr;let Br=[];let Fr=Ne({},_r);const Lr=(t,e)=>{let r=Ne({},t);let i={};for(const n of e){Dr(n);i=Ne(i,n)}r=Ne(r,i);if(i.theme&&i.theme in ve){const t=Ne({},Sr);const e=Ne(t.themeVariables||{},i.themeVariables);if(r.theme&&r.theme in ve){r.themeVariables=ve[r.theme].getThemeVariables(e)}}Fr=r;Wr(Fr);return Fr};const Er=t=>{wr=Ne({},_r);wr=Ne(wr,t);if(t.theme&&ve[t.theme]){wr.themeVariables=ve[t.theme].getThemeVariables(t.themeVariables)}Lr(wr,Br);return wr};const Mr=t=>{Sr=Ne({},t)};const Or=t=>{wr=Ne(wr,t);Lr(wr,Br);return wr};const Ir=()=>Ne({},wr);const zr=t=>{Wr(t);Ne(Fr,t);return qr()};const qr=()=>Ne({},Fr);const Dr=t=>{if(!t){return}["secure",...wr.secure??[]].forEach((e=>{if(Object.hasOwn(t,e)){jt.debug(`Denied attempt to modify a secure key ${e}`,t[e]);delete t[e]}}));Object.keys(t).forEach((e=>{if(e.startsWith("__")){delete t[e]}}));Object.keys(t).forEach((e=>{if(typeof t[e]==="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))){delete t[e]}if(typeof t[e]==="object"){Dr(t[e])}}))};const Nr=t=>{we(t);if(t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)){t.themeVariables={fontFamily:t.fontFamily}}Br.push(t);Lr(wr,Br)};const jr=(t=wr)=>{Br=[];Lr(t,Br)};const Pr={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."};const $r={};const Rr=t=>{if($r[t]){return}jt.warn(Pr[t]);$r[t]=true};const Wr=t=>{if(!t){return}if(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup){Rr("LAZY_LOAD_DEPRECATED")}};const Hr="c4";const Ur=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t);const Yr=async()=>{const{diagram:t}=await r.e(3330).then(r.bind(r,43330));return{id:Hr,diagram:t}};const Gr={id:Hr,detector:Ur,loader:Yr};const Vr=Gr;const Xr="flowchart";const Zr=(t,e)=>{var r,i;if(((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"){return false}return/^\s*graph/.test(t)};const Kr=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(8258),r.e(8768),r.e(1017),r.e(4050),r.e(7403)]).then(r.bind(r,87403));return{id:Xr,diagram:t}};const Jr={id:Xr,detector:Zr,loader:Kr};const Qr=Jr;const ti="flowchart-v2";const ei=(t,e)=>{var r,i,n;if(((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"){return false}if(/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"){return true}return/^\s*flowchart/.test(t)};const ri=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(8258),r.e(8768),r.e(1017),r.e(4050),r.e(7642)]).then(r.bind(r,7642));return{id:ti,diagram:t}};const ii={id:ti,detector:ei,loader:ri};const ni=ii;const oi="er";const si=t=>/^\s*erDiagram/.test(t);const ai=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(9908)]).then(r.bind(r,9908));return{id:oi,diagram:t}};const li={id:oi,detector:si,loader:ai};const ci=li;const hi="gitGraph";const ui=t=>/^\s*gitGraph/.test(t);const fi=async()=>{const{diagram:t}=await r.e(6483).then(r.bind(r,86483));return{id:hi,diagram:t}};const di={id:hi,detector:ui,loader:fi};const pi=di;const gi="gantt";const mi=t=>/^\s*gantt/.test(t);const yi=async()=>{const{diagram:t}=await r.e(5890).then(r.bind(r,55890));return{id:gi,diagram:t}};const Ci={id:gi,detector:mi,loader:yi};const bi=Ci;const vi="info";const xi=t=>/^\s*info/.test(t);const ki=async()=>{const{diagram:t}=await r.e(8).then(r.bind(r,80008));return{id:vi,diagram:t}};const Ai={id:vi,detector:xi,loader:ki};const Ti="pie";const _i=t=>/^\s*pie/.test(t);const wi=async()=>{const{diagram:t}=await r.e(9635).then(r.bind(r,19635));return{id:Ti,diagram:t}};const Si={id:Ti,detector:_i,loader:wi};const Bi="quadrantChart";const Fi=t=>/^\s*quadrantChart/.test(t);const Li=async()=>{const{diagram:t}=await r.e(5846).then(r.bind(r,85846));return{id:Bi,diagram:t}};const Ei={id:Bi,detector:Fi,loader:Li};const Mi=Ei;const Oi="xychart";const Ii=t=>/^\s*xychart-beta/.test(t);const zi=async()=>{const{diagram:t}=await Promise.all([r.e(8258),r.e(2624)]).then(r.bind(r,12624));return{id:Oi,diagram:t}};const qi={id:Oi,detector:Ii,loader:zi};const Di=qi;const Ni="requirement";const ji=t=>/^\s*requirement(Diagram)?/.test(t);const Pi=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(1162)]).then(r.bind(r,81162));return{id:Ni,diagram:t}};const $i={id:Ni,detector:ji,loader:Pi};const Ri=$i;const Wi="sequence";const Hi=t=>/^\s*sequenceDiagram/.test(t);const Ui=async()=>{const{diagram:t}=await r.e(2337).then(r.bind(r,52337));return{id:Wi,diagram:t}};const Yi={id:Wi,detector:Hi,loader:Ui};const Gi=Yi;const Vi="class";const Xi=(t,e)=>{var r;if(((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"){return false}return/^\s*classDiagram/.test(t)};const Zi=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(1786),r.e(5246)]).then(r.bind(r,65246));return{id:Vi,diagram:t}};const Ki={id:Vi,detector:Xi,loader:Zi};const Ji=Ki;const Qi="classDiagram";const tn=(t,e)=>{var r;if(/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"){return true}return/^\s*classDiagram-v2/.test(t)};const en=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(8258),r.e(8768),r.e(1017),r.e(1786),r.e(3788)]).then(r.bind(r,63788));return{id:Qi,diagram:t}};const rn={id:Qi,detector:tn,loader:en};const nn=rn;const on="state";const sn=(t,e)=>{var r;if(((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"){return false}return/^\s*stateDiagram/.test(t)};const an=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(3489),r.e(8896)]).then(r.bind(r,8896));return{id:on,diagram:t}};const ln={id:on,detector:sn,loader:an};const cn=ln;const hn="stateDiagram";const un=(t,e)=>{var r;if(/^\s*stateDiagram-v2/.test(t)){return true}if(/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"){return true}return false};const fn=async()=>{const{diagram:t}=await Promise.all([r.e(29),r.e(8258),r.e(8768),r.e(1017),r.e(3489),r.e(5446)]).then(r.bind(r,95446));return{id:hn,diagram:t}};const dn={id:hn,detector:un,loader:fn};const pn=dn;const gn="journey";const mn=t=>/^\s*journey/.test(t);const yn=async()=>{const{diagram:t}=await r.e(3415).then(r.bind(r,53415));return{id:gn,diagram:t}};const Cn={id:gn,detector:mn,loader:yn};const bn=Cn;const vn=function(t,e){for(let r of e){t.attr(r[0],r[1])}};const xn=function(t,e,r){let i=new Map;if(r){i.set("width","100%");i.set("style",`max-width: ${e}px;`)}else{i.set("height",t);i.set("width",e)}return i};const kn=function(t,e,r,i){const n=xn(e,r,i);vn(t,n)};const An=function(t,e,r,i){const n=e.node().getBBox();const o=n.width;const s=n.height;jt.info(`SVG bounds: ${o}x${s}`,n);let a=0;let l=0;jt.info(`Graph bounds: ${a}x${l}`,t);a=o+r*2;l=s+r*2;jt.info(`Calculated bounds: ${a}x${l}`);kn(e,l,a,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",c)};const Tn={};const _n=(t,e,r)=>{let i="";if(t in Tn&&Tn[t]){i=Tn[t](r)}else{jt.warn(`No theme found for ${t}`)}return` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n\n ${i}\n\n ${e}\n`};const wn=(t,e)=>{if(e!==void 0){Tn[t]=e}};const Sn=_n;let Bn="";let Fn="";let Ln="";const En=t=>Yt(t,qr());const Mn=()=>{Bn="";Ln="";Fn=""};const On=t=>{Bn=En(t).replace(/^\s+/g,"")};const In=()=>Bn;const zn=t=>{Ln=En(t).replace(/\n\s+/g,"\n")};const qn=()=>Ln;const Dn=t=>{Fn=En(t)};const Nn=()=>Fn;const jn=Object.freeze(Object.defineProperty({__proto__:null,clear:Mn,getAccDescription:qn,getAccTitle:In,getDiagramTitle:Nn,setAccDescription:zn,setAccTitle:On,setDiagramTitle:Dn},Symbol.toStringTag,{value:"Module"}));const Pn=jt;const $n=Pt;const Rn=qr;const Wn=zr;const Hn=_r;const Un=t=>Yt(t,Rn());const Yn=An;const Gn=()=>jn;const Vn={};const Xn=(t,e,r)=>{var i;if(Vn[t]){throw new Error(`Diagram ${t} already registered.`)}Vn[t]=e;if(r){ze(t,r)}wn(t,e.styles);(i=e.injectUtils)==null?void 0:i.call(e,Pn,$n,Rn,Un,Yn,Gn(),(()=>{}))};const Zn=t=>{if(t in Vn){return Vn[t]}throw new Kn(t)};class Kn extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const Jn=t=>{var e;const{securityLevel:r}=Rn();let i=(0,a.Ltv)("body");if(r==="sandbox"){const r=(0,a.Ltv)(`#i${t}`);const n=((e=r.node())==null?void 0:e.contentDocument)??document;i=(0,a.Ltv)(n.body)}const n=i.select(`#${t}`);return n};const Qn=(t,e,r)=>{jt.debug("renering svg for syntax error\n");const i=Jn(e);i.attr("viewBox","0 0 2412 512");kn(i,100,512,true);const n=i.append("g");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 ${r}`)};const to={draw:Qn};const eo=to;const ro={db:{},renderer:to,parser:{parser:{yy:{}},parse:()=>{}}};const io=ro;const no="flowchart-elk";const oo=(t,e)=>{var r;if(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"){return true}return false};const so=async()=>{const{diagram:t}=await Promise.all([r.e(8258),r.e(8768),r.e(4050),r.e(7114)]).then(r.bind(r,27114));return{id:no,diagram:t}};const ao={id:no,detector:oo,loader:so};const lo=ao;const co="timeline";const ho=t=>/^\s*timeline/.test(t);const uo=async()=>{const{diagram:t}=await r.e(4701).then(r.bind(r,94701));return{id:co,diagram:t}};const fo={id:co,detector:ho,loader:uo};const po=fo;const go="mindmap";const mo=t=>/^\s*mindmap/.test(t);const yo=async()=>{const{diagram:t}=await Promise.all([r.e(8258),r.e(2965)]).then(r.bind(r,2965));return{id:go,diagram:t}};const Co={id:go,detector:mo,loader:yo};const bo=Co;const vo="sankey";const xo=t=>/^\s*sankey-beta/.test(t);const ko=async()=>{const{diagram:t}=await r.e(3538).then(r.bind(r,13538));return{id:vo,diagram:t}};const Ao={id:vo,detector:xo,loader:ko};const To=Ao;let _o=false;const wo=()=>{if(_o){return}_o=true;Xn("error",io,(t=>t.toLowerCase().trim()==="error"));Xn("---",{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("---")));Ie(Vr,nn,Ji,ci,bi,Ai,Si,Ri,Gi,lo,ni,Qr,bo,po,pi,pn,cn,bn,Mi,To,Di)};class So{constructor(t,e={}){this.text=t;this.metadata=e;this.type="graph";this.text=kr(t);this.text+="\n";const r=qr();try{this.type=Oe(t,r)}catch(n){this.type="error";this.detectError=n}const i=Zn(this.type);jt.debug("Type "+this.type);this.db=i.db;this.renderer=i.renderer;this.parser=i.parser;this.parser.parser.yy=this.db;this.init=i.init;this.parse()}parse(){var t,e,r,i,n;if(this.detectError){throw this.detectError}(e=(t=this.db).clear)==null?void 0:e.call(t);const o=qr();(r=this.init)==null?void 0:r.call(this,o);if(this.metadata.title){(n=(i=this.db).setDiagramTitle)==null?void 0:n.call(i,this.metadata.title)}this.parser.parse(this.text)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}}const Bo=async(t,e={})=>{const r=Oe(t,qr());try{Zn(r)}catch(i){const t=qe(r);if(!t){throw new Ee(`Diagram ${r} not found.`)}const{id:e,diagram:n}=await t();Xn(e,n)}return new So(t,e)};let Fo=[];const Lo=t=>{Fo.push(t)};const Eo=()=>{Fo.forEach((t=>{t()}));Fo=[]};const Mo="graphics-document document";function Oo(t,e){t.attr("role",Mo);if(e!==""){t.attr("aria-roledescription",e)}}function Io(t,e,r,i){if(t.insert===void 0){return}if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e);t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r);t.insert("title",":first-child").attr("id",r).text(e)}}const zo=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function qo(t){return typeof t==="undefined"||t===null}function Do(t){return typeof t==="object"&&t!==null}function No(t){if(Array.isArray(t))return t;else if(qo(t))return[];return[t]}function jo(t,e){var r,i,n,o;if(e){o=Object.keys(e);for(r=0,i=o.length;ra){o=" ... ";e=i-a+o.length}if(r-i>a){s=" ...";r=i+a-s.length}return{str:o+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+o.length}}function Qo(t,e){return Vo.repeat(" ",e-t.length)+t}function ts(t,e){e=Object.create(e||null);if(!t.buffer)return null;if(!e.maxLength)e.maxLength=79;if(typeof e.indent!=="number")e.indent=1;if(typeof e.linesBefore!=="number")e.linesBefore=3;if(typeof e.linesAfter!=="number")e.linesAfter=2;var r=/\r?\n|\r|\0/g;var i=[0];var n=[];var o;var s=-1;while(o=r.exec(t.buffer)){n.push(o.index);i.push(o.index+o[0].length);if(t.position<=o.index&&s<0){s=i.length-2}}if(s<0)s=i.length-1;var a="",l,c;var h=Math.min(t.line+e.linesAfter,n.length).toString().length;var u=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore;l++){if(s-l<0)break;c=Jo(t.buffer,i[s-l],n[s-l],t.position-(i[s]-i[s-l]),u);a=Vo.repeat(" ",e.indent)+Qo((t.line-l+1).toString(),h)+" | "+c.str+"\n"+a}c=Jo(t.buffer,i[s],n[s],t.position,u);a+=Vo.repeat(" ",e.indent)+Qo((t.line+1).toString(),h)+" | "+c.str+"\n";a+=Vo.repeat("-",e.indent+h+3+c.pos)+"^\n";for(l=1;l<=e.linesAfter;l++){if(s+l>=n.length)break;c=Jo(t.buffer,i[s+l],n[s+l],t.position-(i[s]-i[s+l]),u);a+=Vo.repeat(" ",e.indent)+Qo((t.line+l+1).toString(),h)+" | "+c.str+"\n"}return a.replace(/\n$/,"")}var es=ts;var rs=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var is=["scalar","sequence","mapping"];function ns(t){var e={};if(t!==null){Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))}))}return e}function os(t,e){e=e||{};Object.keys(e).forEach((function(e){if(rs.indexOf(e)===-1){throw new Ko('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}}));this.options=e;this.tag=t;this.kind=e["kind"]||null;this.resolve=e["resolve"]||function(){return true};this.construct=e["construct"]||function(t){return t};this.instanceOf=e["instanceOf"]||null;this.predicate=e["predicate"]||null;this.represent=e["represent"]||null;this.representName=e["representName"]||null;this.defaultStyle=e["defaultStyle"]||null;this.multi=e["multi"]||false;this.styleAliases=ns(e["styleAliases"]||null);if(is.indexOf(this.kind)===-1){throw new Ko('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}var ss=os;function as(t,e){var r=[];t[e].forEach((function(t){var e=r.length;r.forEach((function(r,i){if(r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi){e=i}}));r[e]=t}));return r}function ls(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(e){if(e.multi){t.multi[e.kind].push(e);t.multi["fallback"].push(e)}else{t[e.kind][e.tag]=t["fallback"][e.tag]=e}}for(e=0,r=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"]}});var Ls=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Es(t){if(t===null)return false;if(!Ls.test(t)||t[t.length-1]==="_"){return false}return true}function Ms(t){var e,r;e=t.replace(/_/g,"").toLowerCase();r=e[0]==="-"?-1:1;if("+-".indexOf(e[0])>=0){e=e.slice(1)}if(e===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(e===".nan"){return NaN}return r*parseFloat(e,10)}var Os=/^[-+]?[0-9]+e/;function Is(t,e){var r;if(isNaN(t)){switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(Vo.isNegativeZero(t)){return"-0.0"}r=t.toString(10);return Os.test(r)?r.replace("e",".e"):r}function zs(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Vo.isNegativeZero(t))}var qs=new ss("tag:yaml.org,2002:float",{kind:"scalar",resolve:Es,construct:Ms,predicate:zs,represent:Is,defaultStyle:"lowercase"});var Ds=ps.extend({implicit:[Cs,ks,Fs,qs]});var Ns=Ds;var js=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");var Ps=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function $s(t){if(t===null)return false;if(js.exec(t)!==null)return true;if(Ps.exec(t)!==null)return true;return false}function Rs(t){var e,r,i,n,o,s,a,l=0,c=null,h,u,f;e=js.exec(t);if(e===null)e=Ps.exec(t);if(e===null)throw new Error("Date resolve error");r=+e[1];i=+e[2]-1;n=+e[3];if(!e[4]){return new Date(Date.UTC(r,i,n))}o=+e[4];s=+e[5];a=+e[6];if(e[7]){l=e[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(e[9]){h=+e[10];u=+(e[11]||0);c=(h*60+u)*6e4;if(e[9]==="-")c=-c}f=new Date(Date.UTC(r,i,n,o,s,a,l));if(c)f.setTime(f.getTime()-c);return f}function Ws(t){return t.toISOString()}var Hs=new ss("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$s,construct:Rs,instanceOf:Date,represent:Ws});function Us(t){return t==="<<"||t===null}var Ys=new ss("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Us});var Gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Vs(t){if(t===null)return false;var e,r,i=0,n=t.length,o=Gs;for(r=0;r64)continue;if(e<0)return false;i+=6}return i%8===0}function Xs(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,o=Gs,s=0,a=[];for(e=0;e>16&255);a.push(s>>8&255);a.push(s&255)}s=s<<6|o.indexOf(i.charAt(e))}r=n%4*6;if(r===0){a.push(s>>16&255);a.push(s>>8&255);a.push(s&255)}else if(r===18){a.push(s>>10&255);a.push(s>>2&255)}else if(r===12){a.push(s>>4&255)}return new Uint8Array(a)}function Zs(t){var e="",r=0,i,n,o=t.length,s=Gs;for(i=0;i>18&63];e+=s[r>>12&63];e+=s[r>>6&63];e+=s[r&63]}r=(r<<8)+t[i]}n=o%3;if(n===0){e+=s[r>>18&63];e+=s[r>>12&63];e+=s[r>>6&63];e+=s[r&63]}else if(n===2){e+=s[r>>10&63];e+=s[r>>4&63];e+=s[r<<2&63];e+=s[64]}else if(n===1){e+=s[r>>2&63];e+=s[r<<4&63];e+=s[64];e+=s[64]}return e}function Ks(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Js=new ss("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Vs,construct:Xs,predicate:Ks,represent:Zs});var Qs=Object.prototype.hasOwnProperty;var ta=Object.prototype.toString;function ea(t){if(t===null)return true;var e=[],r,i,n,o,s,a=t;for(r=0,i=a.length;r>10)+55296,(t-65536&1023)+56320)}var qa=new Array(256);var Da=new Array(256);for(var Na=0;Na<256;Na++){qa[Na]=Ia(Na)?1:0;Da[Na]=Ia(Na)}function ja(t,e){this.input=t;this.filename=e["filename"]||null;this.schema=e["schema"]||fa;this.onWarning=e["onWarning"]||null;this.legacy=e["legacy"]||false;this.json=e["json"]||false;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 Pa(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};r.snippet=es(r);return new Ko(e,r)}function $a(t,e){throw Pa(t,e)}function Ra(t,e){if(t.onWarning){t.onWarning.call(null,Pa(t,e))}}var Wa={YAML:function t(e,r,i){var n,o,s;if(e.version!==null){$a(e,"duplication of %YAML directive")}if(i.length!==1){$a(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(n===null){$a(e,"ill-formed argument of the YAML directive")}o=parseInt(n[1],10);s=parseInt(n[2],10);if(o!==1){$a(e,"unacceptable YAML version of the document")}e.version=i[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){Ra(e,"unsupported YAML version of the document")}},TAG:function t(e,r,i){var n,o;if(i.length!==2){$a(e,"TAG directive accepts exactly two arguments")}n=i[0];o=i[1];if(!Ta.test(n)){$a(e,"ill-formed tag handle (first argument) of the TAG directive")}if(da.call(e.tagMap,n)){$a(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!_a.test(o)){$a(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{o=decodeURIComponent(o)}catch(s){$a(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function Ha(t,e,r,i){var n,o,s,a;if(e1){t.result+=Vo.repeat("\n",e-1)}}function Ka(t,e,r){var i,n,o,s,a,l,c,h,u=t.kind,f=t.result,d;d=t.input.charCodeAt(t.position);if(Fa(d)||La(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){n=t.input.charCodeAt(t.position+1);if(Fa(n)||r&&La(n)){return false}}t.kind="scalar";t.result="";o=s=t.position;a=false;while(d!==0){if(d===58){n=t.input.charCodeAt(t.position+1);if(Fa(n)||r&&La(n)){break}}else if(d===35){i=t.input.charCodeAt(t.position-1);if(Fa(i)){break}}else if(t.position===t.lineStart&&Xa(t)||r&&La(d)){break}else if(Sa(d)){l=t.line;c=t.lineStart;h=t.lineIndent;Va(t,false,-1);if(t.lineIndent>=e){a=true;d=t.input.charCodeAt(t.position);continue}else{t.position=s;t.line=l;t.lineStart=c;t.lineIndent=h;break}}if(a){Ha(t,o,s,false);Za(t,t.line-l);o=s=t.position;a=false}if(!Ba(d)){s=t.position+1}d=t.input.charCodeAt(++t.position)}Ha(t,o,s,false);if(t.result){return true}t.kind=u;t.result=f;return false}function Ja(t,e){var r,i,n;r=t.input.charCodeAt(t.position);if(r!==39){return false}t.kind="scalar";t.result="";t.position++;i=n=t.position;while((r=t.input.charCodeAt(t.position))!==0){if(r===39){Ha(t,i,t.position,true);r=t.input.charCodeAt(++t.position);if(r===39){i=t.position;t.position++;n=t.position}else{return true}}else if(Sa(r)){Ha(t,i,n,true);Za(t,Va(t,false,e));i=n=t.position}else if(t.position===t.lineStart&&Xa(t)){$a(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;n=t.position}}$a(t,"unexpected end of the stream within a single quoted scalar")}function Qa(t,e){var r,i,n,o,s,a;a=t.input.charCodeAt(t.position);if(a!==34){return false}t.kind="scalar";t.result="";t.position++;r=i=t.position;while((a=t.input.charCodeAt(t.position))!==0){if(a===34){Ha(t,r,t.position,true);t.position++;return true}else if(a===92){Ha(t,r,t.position,true);a=t.input.charCodeAt(++t.position);if(Sa(a)){Va(t,false,e)}else if(a<256&&qa[a]){t.result+=Da[a];t.position++}else if((s=Ma(a))>0){n=s;o=0;for(;n>0;n--){a=t.input.charCodeAt(++t.position);if((s=Ea(a))>=0){o=(o<<4)+s}else{$a(t,"expected hexadecimal character")}}t.result+=za(o);t.position++}else{$a(t,"unknown escape sequence")}r=i=t.position}else if(Sa(a)){Ha(t,r,i,true);Za(t,Va(t,false,e));r=i=t.position}else if(t.position===t.lineStart&&Xa(t)){$a(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;i=t.position}}$a(t,"unexpected end of the stream within a double quoted scalar")}function tl(t,e){var r=true,i,n,o,s=t.tag,a,l=t.anchor,c,h,u,f,d,p=Object.create(null),g,m,y,C;C=t.input.charCodeAt(t.position);if(C===91){h=93;d=false;a=[]}else if(C===123){h=125;d=true;a={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=a}C=t.input.charCodeAt(++t.position);while(C!==0){Va(t,true,e);C=t.input.charCodeAt(t.position);if(C===h){t.position++;t.tag=s;t.anchor=l;t.kind=d?"mapping":"sequence";t.result=a;return true}else if(!r){$a(t,"missed comma between flow collection entries")}else if(C===44){$a(t,"expected the node content, but found ','")}m=g=y=null;u=f=false;if(C===63){c=t.input.charCodeAt(t.position+1);if(Fa(c)){u=f=true;t.position++;Va(t,true,e)}}i=t.line;n=t.lineStart;o=t.position;al(t,e,pa,false,true);m=t.tag;g=t.result;Va(t,true,e);C=t.input.charCodeAt(t.position);if((f||t.line===i)&&C===58){u=true;C=t.input.charCodeAt(++t.position);Va(t,true,e);al(t,e,pa,false,true);y=t.result}if(d){Ya(t,a,p,m,g,y,i,n,o)}else if(u){a.push(Ya(t,null,p,m,g,y,i,n,o))}else{a.push(g)}Va(t,true,e);C=t.input.charCodeAt(t.position);if(C===44){r=true;C=t.input.charCodeAt(++t.position)}else{r=false}}$a(t,"unexpected end of the stream within a flow collection")}function el(t,e){var r,i,n=Ca,o=false,s=false,a=e,l=0,c=false,h,u;u=t.input.charCodeAt(t.position);if(u===124){i=false}else if(u===62){i=true}else{return false}t.kind="scalar";t.result="";while(u!==0){u=t.input.charCodeAt(++t.position);if(u===43||u===45){if(Ca===n){n=u===43?va:ba}else{$a(t,"repeat of a chomping mode identifier")}}else if((h=Oa(u))>=0){if(h===0){$a(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!s){a=e+h-1;s=true}else{$a(t,"repeat of an indentation width identifier")}}else{break}}if(Ba(u)){do{u=t.input.charCodeAt(++t.position)}while(Ba(u));if(u===35){do{u=t.input.charCodeAt(++t.position)}while(!Sa(u)&&u!==0)}}while(u!==0){Ga(t);t.lineIndent=0;u=t.input.charCodeAt(t.position);while((!s||t.lineIndenta){a=t.lineIndent}if(Sa(u)){l++;continue}if(t.lineIndente)&&l!==0){$a(t,"bad indentation of a sequence entry")}else if(t.lineIndente){if(m){s=t.line;a=t.lineStart;l=t.position}if(al(t,e,ya,true,n)){if(m){p=t.result}else{g=t.result}}if(!m){Ya(t,u,f,d,p,g,s,a,l);d=p=g=null}Va(t,true,-1);C=t.input.charCodeAt(t.position)}if((t.line===o||t.lineIndent>e)&&C!==0){$a(t,"bad indentation of a mapping entry")}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndent tag; it should be "scalar", not "'+t.kind+'"')}for(u=0,f=t.implicitTypes.length;u")}if(t.result!==null&&p.kind!==t.kind){$a(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"')}if(!p.resolve(t.result,t.tag)){$a(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=p.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||h}function ll(t){var e=t.position,r,i,n,o=false,s;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((s=t.input.charCodeAt(t.position))!==0){Va(t,true,-1);s=t.input.charCodeAt(t.position);if(t.lineIndent>0||s!==37){break}o=true;s=t.input.charCodeAt(++t.position);r=t.position;while(s!==0&&!Fa(s)){s=t.input.charCodeAt(++t.position)}i=t.input.slice(r,t.position);n=[];if(i.length<1){$a(t,"directive name must not be less than one character in length")}while(s!==0){while(Ba(s)){s=t.input.charCodeAt(++t.position)}if(s===35){do{s=t.input.charCodeAt(++t.position)}while(s!==0&&!Sa(s));break}if(Sa(s))break;r=t.position;while(s!==0&&!Fa(s)){s=t.input.charCodeAt(++t.position)}n.push(t.input.slice(r,t.position))}if(s!==0)Ga(t);if(da.call(Wa,i)){Wa[i](t,i,n)}else{Ra(t,'unknown document directive "'+i+'"')}}Va(t,true,-1);if(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;Va(t,true,-1)}else if(o){$a(t,"directives end mark is expected")}al(t,t.lineIndent-1,ya,false,true);Va(t,true,-1);if(t.checkLineBreaks&&ka.test(t.input.slice(e,t.position))){Ra(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&Xa(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;Va(t,true,-1)}return}if(t.positiont.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"));const bl=t=>{const{text:e,metadata:r}=yl(t);const{displayMode:i,title:n,config:o={}}=r;if(i){if(!o.gantt){o.gantt={}}o.gantt.displayMode=i}return{title:n,config:o,text:e}};const vl=t=>{const e=xr.detectInit(t)??{};const r=xr.detectDirective(t,"wrap");if(Array.isArray(r)){e.wrap=r.some((({type:t})=>{}))}else if((r==null?void 0:r.type)==="wrap"){e.wrap=true}return{text:He(t),directive:e}};function xl(t){const e=Cl(t);const r=bl(e);const i=vl(r.text);const n=vr(r.config,i.directive);t=zo(i.text);return{code:t,title:r.title,config:n}}const kl=5e4;const Al="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa";const Tl="sandbox";const _l="loose";const wl="http://www.w3.org/2000/svg";const Sl="http://www.w3.org/1999/xlink";const Bl="http://www.w3.org/1999/xhtml";const Fl="100%";const Ll="100%";const El="border:0;margin:0;";const Ml="margin:0";const Ol="allow-top-navigation-by-user-activation allow-popups";const Il='The "iframe" tag is not supported by your browser.';const zl=["foreignobject"];const ql=["dominant-baseline"];function Dl(t){const e=xl(t);jr();Nr(e.config??{});return e}async function Nl(t,e){wo();t=Dl(t).code;try{await Xl(t)}catch(r){if(e==null?void 0:e.suppressErrors){return false}throw r}return true}const jl=(t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`;const Pl=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0){i+=`\n${t.themeCSS}`}if(t.fontFamily!==void 0){i+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`}if(t.altFontFamily!==void 0){i+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`}if(!(0,Dt.A)(e)){const n=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels);const o=["> *","span"];const s=["rect","polygon","ellipse","circle","path"];const a=n?o:s;for(const t in e){const r=e[t];if(!(0,Dt.A)(r.styles)){a.forEach((t=>{i+=jl(r.id,t,r.styles)}))}if(!(0,Dt.A)(r.textStyles)){i+=jl(r.id,"tspan",r.textStyles)}}}return i};const $l=(t,e,r,i)=>{const n=Pl(t,r);const o=Sn(e,n,t.themeVariables);return nt(Mt(`${i}{${o}}`),ot)};const Rl=(t="",e,r)=>{let i=t;if(!r&&!e){i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')}i=Ar(i);i=i.replace(/
/g,"
");return i};const Wl=(t="",e)=>{var r,i;const n=((i=(r=e==null?void 0:e.viewBox)==null?void 0:r.baseVal)==null?void 0:i.height)?e.viewBox.baseVal.height+"px":Ll;const o=btoa(''+t+"");return``};const Hl=(t,e,r,i,n)=>{const o=t.append("div");o.attr("id",r);if(i){o.attr("style",i)}const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",wl);if(n){s.attr("xmlns:xlink",n)}s.append("g");return t};function Ul(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Yl=(t,e,r,i)=>{var n,o,s;(n=t.getElementById(e))==null?void 0:n.remove();(o=t.getElementById(r))==null?void 0:o.remove();(s=t.getElementById(i))==null?void 0:s.remove()};const Gl=async function(t,e,r){var i,n,o,s,l,h;wo();const u=Dl(e);e=u.code;const f=qr();jt.debug(f);if(e.length>((f==null?void 0:f.maxTextSize)??kl)){e=Al}const d="#"+t;const p="i"+t;const g="#"+p;const m="d"+t;const y="#"+m;let C=(0,a.Ltv)("body");const b=f.securityLevel===Tl;const v=f.securityLevel===_l;const x=f.fontFamily;if(r!==void 0){if(r){r.innerHTML=""}if(b){const t=Ul((0,a.Ltv)(r),p);C=(0,a.Ltv)(t.nodes()[0].contentDocument.body);C.node().style.margin=0}else{C=(0,a.Ltv)(r)}Hl(C,t,m,`font-family: ${x}`,Sl)}else{Yl(document,t,m,p);if(b){const t=Ul((0,a.Ltv)("body"),p);C=(0,a.Ltv)(t.nodes()[0].contentDocument.body);C.node().style.margin=0}else{C=(0,a.Ltv)("body")}Hl(C,t,m)}let k;let A;try{k=await Xl(e,{title:u.title})}catch(D){k=new So("error");A=D}const T=C.select(y).node();const _=k.type;const w=T.firstChild;const S=w.firstChild;const B=(n=(i=k.renderer).getClasses)==null?void 0:n.call(i,e,k);const F=$l(f,_,B,d);const L=document.createElement("style");L.innerHTML=F;w.insertBefore(L,S);try{await k.renderer.draw(e,t,Tr,k)}catch(N){eo.draw(e,t,Tr);throw N}const E=C.select(`${y} svg`);const M=(s=(o=k.db).getAccTitle)==null?void 0:s.call(o);const O=(h=(l=k.db).getAccDescription)==null?void 0:h.call(l);Zl(_,E,M,O);C.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Bl);let I=C.select(y).node().innerHTML;jt.debug("config.arrowMarkerAbsolute",f.arrowMarkerAbsolute);I=Rl(I,b,Qt(f.arrowMarkerAbsolute));if(b){const t=C.select(y+" svg").node();I=Wl(I,t)}else if(!v){I=c().sanitize(I,{ADD_TAGS:zl,ADD_ATTR:ql})}Eo();if(A){throw A}const z=b?g:y;const q=(0,a.Ltv)(z).node();if(q&&"remove"in q){q.remove()}return{svg:I,bindFunctions:k.db.bindFunctions}};function Vl(t={}){var e;if((t==null?void 0:t.fontFamily)&&!((e=t.themeVariables)==null?void 0:e.fontFamily)){if(!t.themeVariables){t.themeVariables={}}t.themeVariables.fontFamily=t.fontFamily}Mr(t);if((t==null?void 0:t.theme)&&t.theme in ve){t.themeVariables=ve[t.theme].getThemeVariables(t.themeVariables)}else if(t){t.themeVariables=ve.default.getThemeVariables(t.themeVariables)}const r=typeof t==="object"?Er(t):Ir();Pt(r.logLevel);wo()}const Xl=(t,e={})=>{const{code:r}=xl(t);return Bo(r,e)};function Zl(t,e,r,i){Oo(e,t);Io(e,r,i,e.attr("id"))}const Kl=Object.freeze({render:Gl,parse:Nl,getDiagramFromText:Xl,initialize:Vl,getConfig:qr,setConfig:zr,getSiteConfig:Ir,updateSiteConfig:Or,reset:()=>{jr()},globalReset:()=>{jr(_r)},defaultConfig:_r});Pt(qr().logLevel);jr(qr());const Jl=async()=>{jt.debug(`Loading registered diagrams`);const t=await Promise.allSettled(Object.entries(Me).map((async([t,{detector:e,loader:r}])=>{if(r){try{Zn(t)}catch(i){try{const{diagram:t,id:i}=await r();Xn(i,t,e)}catch(n){jt.error(`Failed to load external diagram with key ${t}. Removing from detectors.`);delete Me[t];throw n}}}})));const e=t.filter((t=>t.status==="rejected"));if(e.length>0){jt.error(`Failed to load ${e.length} external diagrams`);for(const t of e){jt.error(t)}throw new Error(`Failed to load ${e.length} external diagrams`)}};const Ql=(t,e,r)=>{jt.warn(t);if(yr(t)){if(r){r(t.str,t.hash)}e.push({...t,message:t.str,error:t})}else{if(r){r(t)}if(t instanceof Error){e.push({str:t.message,message:t.message,hash:t.name,error:t})}}};const tc=async function(t={querySelector:".mermaid"}){try{await ec(t)}catch(e){if(yr(e)){jt.error(e.str)}if(fc.parseError){fc.parseError(e)}if(!t.suppressErrors){jt.error("Use the suppressErrors option to suppress these errors");throw e}}};const ec=async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Kl.getConfig();jt.debug(`${!t?"No ":""}Callback function found`);let o;if(r){o=r}else if(e){o=document.querySelectorAll(e)}else{throw new Error("Nodes and querySelector are both undefined")}jt.debug(`Found ${o.length} diagrams`);if((n==null?void 0:n.startOnLoad)!==void 0){jt.debug("Start On Load: "+(n==null?void 0:n.startOnLoad));Kl.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad})}const s=new xr.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let a;const l=[];for(const h of Array.from(o)){jt.info("Rendering diagram: "+h.id);if(h.getAttribute("data-processed")){continue}h.setAttribute("data-processed","true");const e=`mermaid-${s.next()}`;a=h.innerHTML;a=(0,i.T)(xr.entityDecode(a)).trim().replace(//gi,"
");const r=xr.detectInit(a);if(r){jt.debug("Detected early reinit: ",r)}try{const{svg:r,bindFunctions:i}=await uc(e,a,h);h.innerHTML=r;if(t){await t(e)}if(i){i(h)}}catch(c){Ql(c,l,fc.parseError)}}if(l.length>0){throw l[0]}};const rc=function(t){Kl.initialize(t)};const ic=async function(t,e,r){jt.warn("mermaid.init is deprecated. Please use run instead.");if(t){rc(t)}const i={postRenderCallback:r,querySelector:".mermaid"};if(typeof e==="string"){i.querySelector=e}else if(e){if(e instanceof HTMLElement){i.nodes=[e]}else{i.nodes=e}}await tc(i)};const nc=async(t,{lazyLoad:e=true}={})=>{Ie(...t);if(e===false){await Jl()}};const oc=function(){if(fc.startOnLoad){const{startOnLoad:t}=Kl.getConfig();if(t){fc.run().catch((t=>jt.error("Mermaid failed to initialize",t)))}}};if(typeof document!=="undefined"){window.addEventListener("load",oc,false)}const sc=function(t){fc.parseError=t};const ac=[];let lc=false;const cc=async()=>{if(lc){return}lc=true;while(ac.length>0){const e=ac.shift();if(e){try{await e()}catch(t){jt.error("Error executing queue",t)}}}lc=false};const hc=async(t,e)=>new Promise(((r,i)=>{const n=()=>new Promise(((n,o)=>{Kl.parse(t,e).then((t=>{n(t);r(t)}),(t=>{var e;jt.error("Error parsing",t);(e=fc.parseError)==null?void 0:e.call(fc,t);o(t);i(t)}))}));ac.push(n);cc().catch(i)}));const uc=(t,e,r)=>new Promise(((i,n)=>{const o=()=>new Promise(((o,s)=>{Kl.render(t,e,r).then((t=>{o(t);i(t)}),(t=>{var e;jt.error("Error parsing",t);(e=fc.parseError)==null?void 0:e.call(fc,t);s(t);n(t)}))}));ac.push(o);cc().catch(n)}));const fc={startOnLoad:true,mermaidAPI:Kl,parse:hc,render:uc,init:ic,run:tc,registerExternalDiagrams:nc,initialize:rc,parseError:void 0,contentLoaded:oc,setParseErrorHandler:sc,detectType:Oe}},20700:(t,e,r)=>{"use strict";r.r(e);r.d(e,{default:()=>i.L});var i=r(76235);var n=r(74353);var o=r.n(n);var s=r(16750);var a=r(92935);var l=r(42838);var c=r.n(l)},60513:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});function i(t){var e=[];for(var r=1;r