From 47fc02a8c71af4926148beb5d5cc0fc221aa5429 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 15 Dec 2024 14:37:33 +0300 Subject: Auto-commit 2024-12-15 --- .../js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 static/js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs (limited to 'static/js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs') diff --git a/static/js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs b/static/js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs new file mode 100644 index 0000000..1dae0c1 --- /dev/null +++ b/static/js/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs @@ -0,0 +1,64 @@ +import{a as i,b as fu,c as mu,e as pu}from"./chunk-GTKDMUJJ.mjs";var Ya=fu((qo,zo)=>{"use strict";(function(t,e){typeof qo=="object"&&typeof zo<"u"?zo.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(qo,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",s="minute",a="hour",l="day",c="week",h="month",u="quarter",d="year",f="date",g="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:i(function(k){var x=["th","st","nd","rd"],y=k%100;return"["+k+(x[(y-20)%10]||x[y]||x[0])+"]"},"ordinal")},z=i(function(k,x,y){var F=String(k);return!F||F.length>=x?k:""+Array(x+1-F.length).join(y)+k},"m"),G={s:z,z:i(function(k){var x=-k.utcOffset(),y=Math.abs(x),F=Math.floor(y/60),S=y%60;return(x<=0?"+":"-")+z(F,2,"0")+":"+z(S,2,"0")},"z"),m:i(function k(x,y){if(x.date()1)return k(O[0])}else{var U=x.name;B[U]=x,S=U}return!F&&S&&(E=S),S||!F&&E},"t"),j=i(function(k,x){if(w(k))return k.clone();var y=typeof x=="object"?x:{};return y.date=k,y.args=arguments,new it(y)},"O"),W=G;W.l=X,W.i=w,W.w=function(k,x){return j(k,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var it=function(){function k(y){this.$L=X(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[P]=!0}i(k,"M");var x=k.prototype;return x.parse=function(y){this.$d=function(F){var S=F.date,N=F.utc;if(S===null)return new Date(NaN);if(W.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var O=S.match(T);if(O){var U=O[2]-1||0,rt=(O[7]||"0").substring(0,3);return N?new Date(Date.UTC(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,rt)):new Date(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,rt)}}return new Date(S)}(y),this.init()},x.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},x.$utils=function(){return W},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(y,F){var S=j(y);return this.startOf(F)<=S&&S<=this.endOf(F)},x.isAfter=function(y,F){return j(y){},"trace"),debug:i((...t)=>{},"debug"),info:i((...t)=>{},"info"),warn:i((...t)=>{},"warn"),error:i((...t)=>{},"error"),fatal:i((...t)=>{},"fatal")},Va=i(function(t="fatal"){let e=oe.fatal;typeof t=="string"?t.toLowerCase()in oe&&(e=oe[t]):typeof t=="number"&&(e=t),tt.trace=()=>{},tt.debug=()=>{},tt.info=()=>{},tt.warn=()=>{},tt.error=()=>{},tt.fatal=()=>{},e<=oe.fatal&&(tt.fatal=console.error?console.error.bind(console,Pt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Pt("FATAL"))),e<=oe.error&&(tt.error=console.error?console.error.bind(console,Pt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Pt("ERROR"))),e<=oe.warn&&(tt.warn=console.warn?console.warn.bind(console,Pt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Pt("WARN"))),e<=oe.info&&(tt.info=console.info?console.info.bind(console,Pt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Pt("INFO"))),e<=oe.debug&&(tt.debug=console.debug?console.debug.bind(console,Pt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("DEBUG"))),e<=oe.trace&&(tt.trace=console.debug?console.debug.bind(console,Pt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("TRACE")))},"setLogLevel"),Pt=i(t=>`%c${(0,Ga.default)().format("ss.SSS")} : ${t} : `,"format");var Xa=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ja=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Za=/\s*%%.*\n/gm;var bi=class extends Error{static{i(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}};var Ti={},cx=i(function(t,e){t=t.replace(Xa,"").replace(ja,"").replace(Za,` +`);for(let[r,{detector:o}]of Object.entries(Ti))if(o(t,e))return r;throw new bi(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),ux=i((...t)=>{for(let{id:e,detector:r,loader:o}of t)Po(e,r,o)},"registerLazyLoadedDiagrams"),Po=i((t,e,r)=>{Ti[t]&&tt.warn(`Detector with key ${t} already exists. Overwriting.`),Ti[t]={detector:e,loader:r},tt.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),fx=i(t=>Ti[t].loader,"getDiagramLoader");var $o=i((t,e,{depth:r=2,clobber:o=!1}={})=>{let n={depth:r,clobber:o};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>$o(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=$o(t[s],e[s],{depth:r-1,clobber:o})):(o||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),Lt=$o;var ki={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:i(t=>t>=255?255:t<0?0:t,"r"),g:i(t=>t>=255?255:t<0?0:t,"g"),b:i(t=>t>=255?255:t<0?0:t,"b"),h:i(t=>t%360,"h"),s:i(t=>t>=100?100:t<0?0:t,"s"),l:i(t=>t>=100?100:t<0?0:t,"l"),a:i(t=>t>=1?1:t<0?0:t,"a")},toLinear:i(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:i((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:i(({h:t,s:e,l:r},o)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(o){case"r":return ki.hue2rgb(s,n,t+.3333333333333333)*255;case"g":return ki.hue2rgb(s,n,t)*255;case"b":return ki.hue2rgb(s,n,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:i(({r:t,g:e,b:r},o)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),s=Math.min(t,e,r),a=(n+s)/2;if(o==="l")return a*100;if(n===s)return 0;let l=n-s,c=a>.5?l/(2-n-s):l/(n+s);if(o==="s")return c*100;switch(n){case t:return((e-r)/l+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:i(t=>Math.round(t*1e10)/1e10,"round")},Qa=du;var gu={dec2hex:i(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},Ja=gu;var xu={channel:Ka,lang:Qa,unit:Ja},q=xu;var ne={};for(let t=0;t<=255;t++)ne[t]=q.unit.dec2hex(t);var ut={ALL:0,RGB:1,HSL:2};var Wo=class{static{i(this,"Type")}constructor(){this.type=ut.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ut.ALL}is(e){return this.type===e}},tl=Wo;var Ho=class{static{i(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new tl}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ut.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:o,l:n}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),o===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:o,b:n}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),o===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ut.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ut.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ut.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ut.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ut.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ut.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},el=Ho;var yu=new el({r:0,g:0,b:0,a:0},"transparent"),de=yu;var rl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(rl.re);if(!e)return;let r=e[1],o=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,l=a?1:17,c=a?8:4,h=s?0:-1,u=a?255:15;return de.set({r:(o>>c*(h+3)&u)*l,g:(o>>c*(h+2)&u)*l,b:(o>>c*(h+1)&u)*l,a:s?(o&u)*l/255:1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(o)]}${ne[Math.round(n*255)]}`:`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(o)]}`},"stringify")},Ae=rl;var Si={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:i(t=>{let e=t.match(Si.hueRe);if(e){let[,r,o]=e;switch(o){case"grad":return q.channel.clamp.h(parseFloat(r)*.9);case"rad":return q.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(r)*360)}}return q.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:i(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Si.re);if(!r)return;let[,o,n,s,a,l]=r;return de.set({h:Si._hue2deg(o),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:a?q.channel.clamp.a(l?parseFloat(a)/100:parseFloat(a)):1},t)},"parse"),stringify:i(t=>{let{h:e,s:r,l:o,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%)`},"stringify")},Fr=Si;var vi={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:i(t=>{t=t.toLowerCase();let e=vi.colors[t];if(e)return Ae.parse(e)},"parse"),stringify:i(t=>{let e=Ae.stringify(t);for(let r in vi.colors)if(vi.colors[r]===e)return r},"stringify")},Uo=vi;var il={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:i(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(il.re);if(!r)return;let[,o,n,s,a,l,c,h,u]=r;return de.set({r:q.channel.clamp.r(n?parseFloat(o)*2.55:parseFloat(o)),g:q.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:h?q.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)})`},"stringify")},Mr=il;var Cu={format:{keyword:Uo,hex:Ae,rgb:Mr,rgba:Mr,hsl:Fr,hsla:Fr},parse:i(t=>{if(typeof t!="string")return t;let e=Ae.parse(t)||Mr.parse(t)||Fr.parse(t)||Uo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:i(t=>!t.changed&&t.color?t.color:t.type.is(ut.HSL)||t.data.r===void 0?Fr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Mr.stringify(t):Ae.stringify(t),"stringify")},ft=Cu;var _u=i((t,e)=>{let r=ft.parse(t);for(let o in e)r[o]=q.channel.clamp[o](e[o]);return ft.stringify(r)},"change"),wi=_u;var bu=i((t,e,r=0,o=1)=>{if(typeof t!="number")return wi(t,{a:e});let n=de.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(o)});return ft.stringify(n)},"rgba"),se=bu;var Tu=i((t,e)=>q.lang.round(ft.parse(t)[e]),"channel"),ku=Tu;var Su=i(t=>{let{r:e,g:r,b:o}=ft.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(o);return q.lang.round(n)},"luminance"),ol=Su;var vu=i(t=>ol(t)>=.5,"isLight"),nl=vu;var wu=i(t=>!nl(t),"isDark"),Wt=wu;var Bu=i((t,e,r)=>{let o=ft.parse(t),n=o[e],s=q.channel.clamp[e](n+r);return n!==s&&(o[e]=s),ft.stringify(o)},"adjustChannel"),Bi=Bu;var Fu=i((t,e)=>Bi(t,"l",e),"lighten"),A=Fu;var Mu=i((t,e)=>Bi(t,"l",-e),"darken"),R=Mu;var Lu=i((t,e)=>{let r=ft.parse(t),o={};for(let n in e)e[n]&&(o[n]=r[n]+e[n]);return wi(t,o)},"adjust"),p=Lu;var Au=i((t,e,r=50)=>{let{r:o,g:n,b:s,a}=ft.parse(t),{r:l,g:c,b:h,a:u}=ft.parse(e),d=r/100,f=d*2-1,g=a-u,L=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,$=1-L,z=o*L+l*$,G=n*L+c*$,E=s*L+h*$,B=a*d+u*(1-d);return se(z,G,E,B)},"mix"),sl=Au;var Eu=i((t,e=100)=>{let r=ft.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,sl(r,t,e)},"invert"),b=Eu;var ge="#ffffff",xe="#f2f2f2";var ct=i((t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),"mkBorder");var Yo=class{static{i(this,"Theme")}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(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ct(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ct(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(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?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||A(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},al=i(t=>{let e=new Yo;return e.calculate(t),e},"getThemeVariables");var Go=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(b("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=se(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=R("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=R(this.sectionBkgColor,10),this.taskBorderColor=se(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=se(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=A(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},ll=i(t=>{let e=new Go;return e.calculate(t),e},"getThemeVariables");var Vo=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(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="rgba(232,232,232, 0.8)",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="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.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=se(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.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},hl=i(t=>{let e=new Vo;return e.calculate(t),e},"getThemeVariables");var Xo=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=A("#cde498",10),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(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="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=R(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},cl=i(t=>{let e=new Xo;return e.calculate(t),e},"getThemeVariables");var jo=class{static{i(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(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=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=A(this.contrast,55),this.border2=this.contrast,this.actorBorder=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},ul=i(t=>{let e=new jo;return e.calculate(t),e},"getThemeVariables");var ye={base:{getThemeVariables:al},dark:{getThemeVariables:ll},default:{getThemeVariables:hl},forest:{getThemeVariables:cl},neutral:{getThemeVariables:ul}};var ae={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1};var fl={...ae,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:ye.default.getThemeVariables(),sequence:{...ae.sequence,messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:i(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:i(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ae.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ae.c4,useWidth:void 0,personFont:i(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:i(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:i(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:i(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:i(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:i(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:i(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:i(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:i(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:i(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:i(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:i(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:i(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:i(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:i(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:i(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:i(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:i(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:i(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:i(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:i(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ae.pie,useWidth:984},xyChart:{...ae.xyChart,useWidth:void 0},requirement:{...ae.requirement,useWidth:void 0},packet:{...ae.packet}},ml=i((t,e="")=>Object.keys(t).reduce((r,o)=>Array.isArray(t[o])?r:typeof t[o]=="object"&&t[o]!==null?[...r,e+o,...ml(t[o],"")]:[...r,e+o],[]),"keyify"),pl=new Set(ml(fl,"")),dl=fl;var Fi=i(t=>{if(tt.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Fi(e));return}for(let e of Object.keys(t)){if(tt.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!pl.has(e)||t[e]==null){tt.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){tt.debug("sanitizing object",e),Fi(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let o of r)e.includes(o)&&(tt.debug("sanitizing css option",e),t[e]=Du(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}tt.debug("After sanitization",t)}},"sanitizeDirective"),Du=i(t=>{let e=0,r=0;for(let o of t){if(e{let r=Lt({},t),o={};for(let n of e)Cl(n),o=Lt(o,n);if(r=Lt(r,o),o.theme&&o.theme in ye){let n=Lt({},xl),s=Lt(n.themeVariables||{},o.themeVariables);r.theme&&r.theme in ye&&(r.themeVariables=ye[r.theme].getThemeVariables(s))}return Lr=r,_l(Lr),Lr},"updateCurrentConfig"),Ou=i(t=>(Rt=Lt({},Ar),Rt=Lt(Rt,t),t.theme&&ye[t.theme]&&(Rt.themeVariables=ye[t.theme].getThemeVariables(t.themeVariables)),Mi(Rt,tr),Rt),"setSiteConfig"),eC=i(t=>{xl=Lt({},t)},"saveConfigFromInitialize"),rC=i(t=>(Rt=Lt(Rt,t),Mi(Rt,tr),Rt),"updateSiteConfig"),iC=i(()=>Lt({},Rt),"getSiteConfig"),yl=i(t=>(_l(t),Lt(Lr,t),Er()),"setConfig"),Er=i(()=>Lt({},Lr),"getConfig"),Cl=i(t=>{t&&(["secure",...Rt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(tt.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Cl(t[e])}))},"sanitize"),oC=i(t=>{Fi(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),tr.push(t),Mi(Rt,tr)},"addDirective"),nC=i((t=Rt)=>{tr=[],Mi(t,tr)},"reset"),Iu={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},gl={},Ru=i(t=>{gl[t]||(tt.warn(Iu[t]),gl[t]=!0)},"issueWarning"),_l=i(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ru("LAZY_LOAD_DEPRECATED")},"checkConfig");var{entries:Ml,setPrototypeOf:bl,isFrozen:Nu,getPrototypeOf:qu,getOwnPropertyDescriptor:zu}=Object,{freeze:Et,seal:$t,create:Ll}=Object,{apply:en,construct:rn}=typeof Reflect<"u"&&Reflect;Et||(Et=i(function(e){return e},"freeze"));$t||($t=i(function(e){return e},"seal"));en||(en=i(function(e,r,o){return e.apply(r,o)},"apply"));rn||(rn=i(function(e,r){return new e(...r)},"construct"));var Li=Nt(Array.prototype.forEach),Tl=Nt(Array.prototype.pop),Dr=Nt(Array.prototype.push),Ei=Nt(String.prototype.toLowerCase),Zo=Nt(String.prototype.toString),kl=Nt(String.prototype.match),Or=Nt(String.prototype.replace),Pu=Nt(String.prototype.indexOf),$u=Nt(String.prototype.trim),Ht=Nt(Object.prototype.hasOwnProperty),At=Nt(RegExp.prototype.test),Ir=Wu(TypeError);function Nt(t){return function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Ei;bl&&bl(t,null);let o=e.length;for(;o--;){let n=e[o];if(typeof n=="string"){let s=r(n);s!==n&&(Nu(e)||(e[o]=s),n=s)}t[n]=!0}return t}i(Q,"addToSet");function Hu(t){for(let e=0;e/gm),Xu=$t(/\${[\w\W]*}/gm),ju=$t(/^data-[\-\w.\u00B7-\uFFFF]/),Zu=$t(/^aria-[\-\w]+$/),Al=$t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ku=$t(/^(?:\w+script|data):/i),Qu=$t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),El=$t(/^html$/i),Ju=$t(/^[a-z][.\w]*(-[.\w]+)+$/i),Fl=Object.freeze({__proto__:null,ARIA_ATTR:Zu,ATTR_WHITESPACE:Qu,CUSTOM_ELEMENT:Ju,DATA_ATTR:ju,DOCTYPE_NAME:El,ERB_EXPR:Vu,IS_ALLOWED_URI:Al,IS_SCRIPT_OR_DATA:Ku,MUSTACHE_EXPR:Gu,TMPLIT_EXPR:Xu}),Nr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tf=i(function(){return typeof window>"u"?null:window},"getGlobal"),ef=i(function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(o=r.getAttribute(n));let s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy");function Dl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tf(),e=i(I=>Dl(I),"DOMPurify");if(e.version="3.2.1",e.removed=[],!t||!t.document||t.document.nodeType!==Nr.document)return e.isSupported=!1,e;let{document:r}=t,o=r,n=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:g}=t,T=c.prototype,L=Rr(T,"cloneNode"),$=Rr(T,"remove"),z=Rr(T,"nextSibling"),G=Rr(T,"childNodes"),E=Rr(T,"parentNode");if(typeof a=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let B,P="",{implementation:w,createNodeIterator:X,createDocumentFragment:j,getElementsByTagName:W}=r,{importNode:it}=o,M={};e.isSupported=typeof Ml=="function"&&typeof E=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:k,ERB_EXPR:x,TMPLIT_EXPR:y,DATA_ATTR:F,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:U}=Fl,{IS_ALLOWED_URI:rt}=Fl,Y=null,nt=Q({},[...Sl,...Ko,...Qo,...Jo,...vl]),K=null,Ft=Q({},[...wl,...tn,...Bl,...Ai]),Z=Object.seal(Ll(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,_t=null,lt=!0,v=!0,H=!1,V=!0,C=!1,pt=!0,J=!1,bt=!1,Tt=!1,Ot=!1,Le=!1,di=!1,wa=!0,Ba=!1,ou="user-content-",Do=!0,vr=!1,Ze={},Ke=null,Fa=Q({},["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"]),Ma=null,La=Q({},["audio","video","img","source","image","track"]),Oo=null,Aa=Q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gi="http://www.w3.org/1998/Math/MathML",xi="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",Qe=re,Io=!1,Ro=null,nu=Q({},[gi,xi,re],Zo),yi=Q({},["mi","mo","mn","ms","mtext"]),Ci=Q({},["annotation-xml"]),su=Q({},["title","style","font","a","script"]),wr=null,au=["application/xhtml+xml","text/html"],lu="text/html",dt=null,Je=null,hu=r.createElement("form"),Ea=i(function(m){return m instanceof RegExp||m instanceof Function},"isRegexOrFunction"),No=i(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===m)){if((!m||typeof m!="object")&&(m={}),m=Ee(m),wr=au.indexOf(m.PARSER_MEDIA_TYPE)===-1?lu:m.PARSER_MEDIA_TYPE,dt=wr==="application/xhtml+xml"?Zo:Ei,Y=Ht(m,"ALLOWED_TAGS")?Q({},m.ALLOWED_TAGS,dt):nt,K=Ht(m,"ALLOWED_ATTR")?Q({},m.ALLOWED_ATTR,dt):Ft,Ro=Ht(m,"ALLOWED_NAMESPACES")?Q({},m.ALLOWED_NAMESPACES,Zo):nu,Oo=Ht(m,"ADD_URI_SAFE_ATTR")?Q(Ee(Aa),m.ADD_URI_SAFE_ATTR,dt):Aa,Ma=Ht(m,"ADD_DATA_URI_TAGS")?Q(Ee(La),m.ADD_DATA_URI_TAGS,dt):La,Ke=Ht(m,"FORBID_CONTENTS")?Q({},m.FORBID_CONTENTS,dt):Fa,Ct=Ht(m,"FORBID_TAGS")?Q({},m.FORBID_TAGS,dt):{},_t=Ht(m,"FORBID_ATTR")?Q({},m.FORBID_ATTR,dt):{},Ze=Ht(m,"USE_PROFILES")?m.USE_PROFILES:!1,lt=m.ALLOW_ARIA_ATTR!==!1,v=m.ALLOW_DATA_ATTR!==!1,H=m.ALLOW_UNKNOWN_PROTOCOLS||!1,V=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,C=m.SAFE_FOR_TEMPLATES||!1,pt=m.SAFE_FOR_XML!==!1,J=m.WHOLE_DOCUMENT||!1,Ot=m.RETURN_DOM||!1,Le=m.RETURN_DOM_FRAGMENT||!1,di=m.RETURN_TRUSTED_TYPE||!1,Tt=m.FORCE_BODY||!1,wa=m.SANITIZE_DOM!==!1,Ba=m.SANITIZE_NAMED_PROPS||!1,Do=m.KEEP_CONTENT!==!1,vr=m.IN_PLACE||!1,rt=m.ALLOWED_URI_REGEXP||Al,Qe=m.NAMESPACE||re,yi=m.MATHML_TEXT_INTEGRATION_POINTS||yi,Ci=m.HTML_INTEGRATION_POINTS||Ci,Z=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Ea(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Ea(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),C&&(v=!1),Le&&(Ot=!0),Ze&&(Y=Q({},vl),K=[],Ze.html===!0&&(Q(Y,Sl),Q(K,wl)),Ze.svg===!0&&(Q(Y,Ko),Q(K,tn),Q(K,Ai)),Ze.svgFilters===!0&&(Q(Y,Qo),Q(K,tn),Q(K,Ai)),Ze.mathMl===!0&&(Q(Y,Jo),Q(K,Bl),Q(K,Ai))),m.ADD_TAGS&&(Y===nt&&(Y=Ee(Y)),Q(Y,m.ADD_TAGS,dt)),m.ADD_ATTR&&(K===Ft&&(K=Ee(K)),Q(K,m.ADD_ATTR,dt)),m.ADD_URI_SAFE_ATTR&&Q(Oo,m.ADD_URI_SAFE_ATTR,dt),m.FORBID_CONTENTS&&(Ke===Fa&&(Ke=Ee(Ke)),Q(Ke,m.FORBID_CONTENTS,dt)),Do&&(Y["#text"]=!0),J&&Q(Y,["html","head","body"]),Y.table&&(Q(Y,["tbody"]),delete Ct.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=m.TRUSTED_TYPES_POLICY,P=B.createHTML("")}else B===void 0&&(B=ef(g,n)),B!==null&&typeof P=="string"&&(P=B.createHTML(""));Et&&Et(m),Je=m}},"_parseConfig"),Da=Q({},[...Ko,...Qo,...Uu]),Oa=Q({},[...Jo,...Yu]),cu=i(function(m){let _=E(m);(!_||!_.tagName)&&(_={namespaceURI:Qe,tagName:"template"});let D=Ei(m.tagName),at=Ei(_.tagName);return Ro[m.namespaceURI]?m.namespaceURI===xi?_.namespaceURI===re?D==="svg":_.namespaceURI===gi?D==="svg"&&(at==="annotation-xml"||yi[at]):!!Da[D]:m.namespaceURI===gi?_.namespaceURI===re?D==="math":_.namespaceURI===xi?D==="math"&&Ci[at]:!!Oa[D]:m.namespaceURI===re?_.namespaceURI===xi&&!Ci[at]||_.namespaceURI===gi&&!yi[at]?!1:!Oa[D]&&(su[D]||!Da[D]):!!(wr==="application/xhtml+xml"&&Ro[m.namespaceURI]):!1},"_checkValidNamespace"),jt=i(function(m){Dr(e.removed,{element:m});try{E(m).removeChild(m)}catch{$(m)}},"_forceRemove"),_i=i(function(m,_){try{Dr(e.removed,{attribute:_.getAttributeNode(m),from:_})}catch{Dr(e.removed,{attribute:null,from:_})}if(_.removeAttribute(m),m==="is"&&!K[m])if(Ot||Le)try{jt(_)}catch{}else try{_.setAttribute(m,"")}catch{}},"_removeAttribute"),Ia=i(function(m){let _=null,D=null;if(Tt)m=""+m;else{let kt=kl(m,/^[\r\n\t ]+/);D=kt&&kt[0]}wr==="application/xhtml+xml"&&Qe===re&&(m=''+m+"");let at=B?B.createHTML(m):m;if(Qe===re)try{_=new f().parseFromString(at,wr)}catch{}if(!_||!_.documentElement){_=w.createDocument(Qe,"template",null);try{_.documentElement.innerHTML=Io?P:at}catch{}}let Bt=_.body||_.documentElement;return m&&D&&Bt.insertBefore(r.createTextNode(D),Bt.childNodes[0]||null),Qe===re?W.call(_,J?"html":"body")[0]:J?_.documentElement:Bt},"_initDocument"),Ra=i(function(m){return X.call(m.ownerDocument||m,m,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Na=i(function(m){return m instanceof d&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof u)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},"_isClobbered"),qa=i(function(m){return typeof l=="function"&&m instanceof l},"_isNode");function ie(I,m,_){M[I]&&Li(M[I],D=>{D.call(e,m,_,Je)})}i(ie,"_executeHook");let za=i(function(m){let _=null;if(ie("beforeSanitizeElements",m,null),Na(m))return jt(m),!0;let D=dt(m.nodeName);if(ie("uponSanitizeElement",m,{tagName:D,allowedTags:Y}),m.hasChildNodes()&&!qa(m.firstElementChild)&&At(/<[/\w]/g,m.innerHTML)&&At(/<[/\w]/g,m.textContent)||m.nodeType===Nr.progressingInstruction||pt&&m.nodeType===Nr.comment&&At(/<[/\w]/g,m.data))return jt(m),!0;if(!Y[D]||Ct[D]){if(!Ct[D]&&$a(D)&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D)))return!1;if(Do&&!Ke[D]){let at=E(m)||m.parentNode,Bt=G(m)||m.childNodes;if(Bt&&at){let kt=Bt.length;for(let It=kt-1;It>=0;--It){let Zt=L(Bt[It],!0);Zt.__removalCount=(m.__removalCount||0)+1,at.insertBefore(Zt,z(m))}}}return jt(m),!0}return m instanceof c&&!cu(m)||(D==="noscript"||D==="noembed"||D==="noframes")&&At(/<\/no(script|embed|frames)/i,m.innerHTML)?(jt(m),!0):(C&&m.nodeType===Nr.text&&(_=m.textContent,Li([k,x,y],at=>{_=Or(_,at," ")}),m.textContent!==_&&(Dr(e.removed,{element:m.cloneNode()}),m.textContent=_)),ie("afterSanitizeElements",m,null),!1)},"_sanitizeElements"),Pa=i(function(m,_,D){if(wa&&(_==="id"||_==="name")&&(D in r||D in hu))return!1;if(!(v&&!_t[_]&&At(F,_))){if(!(lt&&At(S,_))){if(!K[_]||_t[_]){if(!($a(m)&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,m)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(m))&&(Z.attributeNameCheck instanceof RegExp&&At(Z.attributeNameCheck,_)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(_))||_==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D))))return!1}else if(!Oo[_]){if(!At(rt,Or(D,O,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&m!=="script"&&Pu(D,"data:")===0&&Ma[m])){if(!(H&&!At(N,Or(D,O,"")))){if(D)return!1}}}}}}return!0},"_isValidAttribute"),$a=i(function(m){return m!=="annotation-xml"&&kl(m,U)},"_isBasicCustomElement"),Wa=i(function(m){ie("beforeSanitizeAttributes",m,null);let{attributes:_}=m;if(!_)return;let D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0},at=_.length;for(;at--;){let Bt=_[at],{name:kt,namespaceURI:It,value:Zt}=Bt,Br=dt(kt),Mt=kt==="value"?Zt:$u(Zt);if(D.attrName=Br,D.attrValue=Mt,D.keepAttr=!0,D.forceKeepAttr=void 0,ie("uponSanitizeAttribute",m,D),Mt=D.attrValue,Ba&&(Br==="id"||Br==="name")&&(_i(kt,m),Mt=ou+Mt),pt&&At(/((--!?|])>)|<\/(style|title)/i,Mt)){_i(kt,m);continue}if(D.forceKeepAttr||(_i(kt,m),!D.keepAttr))continue;if(!V&&At(/\/>/i,Mt)){_i(kt,m);continue}C&&Li([k,x,y],Ua=>{Mt=Or(Mt,Ua," ")});let Ha=dt(m.nodeName);if(Pa(Ha,Br,Mt)){if(B&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!It)switch(g.getAttributeType(Ha,Br)){case"TrustedHTML":{Mt=B.createHTML(Mt);break}case"TrustedScriptURL":{Mt=B.createScriptURL(Mt);break}}try{It?m.setAttributeNS(It,kt,Mt):m.setAttribute(kt,Mt),Na(m)?jt(m):Tl(e.removed)}catch{}}}ie("afterSanitizeAttributes",m,null)},"_sanitizeAttributes"),uu=i(function I(m){let _=null,D=Ra(m);for(ie("beforeSanitizeShadowDOM",m,null);_=D.nextNode();)ie("uponSanitizeShadowNode",_,null),!za(_)&&(_.content instanceof s&&I(_.content),Wa(_));ie("afterSanitizeShadowDOM",m,null)},"_sanitizeShadowDOM");return e.sanitize=function(I){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,D=null,at=null,Bt=null;if(Io=!I,Io&&(I=""),typeof I!="string"&&!qa(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ir("dirty is not a string, aborting")}else throw Ir("toString is not a function");if(!e.isSupported)return I;if(bt||No(m),e.removed=[],typeof I=="string"&&(vr=!1),vr){if(I.nodeName){let Zt=dt(I.nodeName);if(!Y[Zt]||Ct[Zt])throw Ir("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof l)_=Ia(""),D=_.ownerDocument.importNode(I,!0),D.nodeType===Nr.element&&D.nodeName==="BODY"||D.nodeName==="HTML"?_=D:_.appendChild(D);else{if(!Ot&&!C&&!J&&I.indexOf("<")===-1)return B&&di?B.createHTML(I):I;if(_=Ia(I),!_)return Ot?null:di?P:""}_&&Tt&&jt(_.firstChild);let kt=Ra(vr?I:_);for(;at=kt.nextNode();)za(at)||(at.content instanceof s&&uu(at.content),Wa(at));if(vr)return I;if(Ot){if(Le)for(Bt=j.call(_.ownerDocument);_.firstChild;)Bt.appendChild(_.firstChild);else Bt=_;return(K.shadowroot||K.shadowrootmode)&&(Bt=it.call(o,Bt,!0)),Bt}let It=J?_.outerHTML:_.innerHTML;return J&&Y["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&At(El,_.ownerDocument.doctype.name)&&(It=" +`+It),C&&Li([k,x,y],Zt=>{It=Or(It,Zt," ")}),B&&di?B.createHTML(It):It},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};No(I),bt=!0},e.clearConfig=function(){Je=null,bt=!1},e.isValidAttribute=function(I,m,_){Je||No({});let D=dt(I),at=dt(m);return Pa(D,at,_)},e.addHook=function(I,m){typeof m=="function"&&(M[I]=M[I]||[],Dr(M[I],m))},e.removeHook=function(I){if(M[I])return Tl(M[I])},e.removeHooks=function(I){M[I]&&(M[I]=[])},e.removeAllHooks=function(){M={}},e}i(Dl,"createDOMPurify");var er=Dl();var qr=//gi,rf=i(t=>t?ql(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),of=(()=>{let t=!1;return()=>{t||(nf(),t=!0)}})();function nf(){let t="data-temp-href-target";er.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),er.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}i(nf,"setupDompurifyHooks");var Nl=i(t=>(of(),er.sanitize(t)),"removeScript"),Ol=i((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=Nl(t):r!=="loose"&&(t=ql(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=hf(t))}return t},"sanitizeMore"),De=i((t,e)=>t&&(e.dompurifyConfig?t=er.sanitize(Ol(t,e),e.dompurifyConfig).toString():t=er.sanitize(Ol(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),sf=i((t,e)=>typeof t=="string"?De(t,e):t.flat().map(r=>De(r,e)),"sanitizeTextOrArray"),af=i(t=>qr.test(t),"hasBreaks"),lf=i(t=>t.split(qr),"splitBreaks"),hf=i(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),ql=i(t=>t.replace(qr,"#br#"),"breakToPlaceholder"),cf=i(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),uf=i(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),ff=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),mf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),uC=i(function(t){let e=t.split(/(,)/),r=[];for(let o=0;o0&&o+1Math.max(0,t.split(e).length-1),"countOccurrence"),pf=i((t,e)=>{let r=on(t,"~"),o=on(e,"~");return r===1&&o===1},"shouldCombineSets"),df=i(t=>{let e=on(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let o=[...t],n=o.indexOf("~"),s=o.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)o[n]="<",o[s]=">",n=o.indexOf("~"),s=o.lastIndexOf("~");return r&&o.unshift("~"),o.join("")},"processSet"),Il=i(()=>window.MathMLElement!==void 0,"isMathMLSupported"),nn=/\$\$(.*)\$\$/g,Rl=i(t=>(t.match(nn)?.length??0)>0,"hasKatex"),fC=i(async(t,e)=>{t=await gf(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),gf=i(async(t,e)=>{if(!Rl(t))return t;if(!(Il()||e.legacyMathML||e.forceLegacyMathML))return t.replace(nn,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-SWYD7GD6.mjs"),o=e.forceLegacyMathML||!Il()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(qr).map(n=>Rl(n)?`
${n}
`:`
${n}
`).join("").replace(nn,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),mC={getRows:rf,sanitizeText:De,sanitizeTextOrArray:sf,hasBreaks:af,splitBreaks:lf,lineBreakRegex:qr,removeScript:Nl,getUrl:cf,evaluate:uf,getMax:ff,getMin:mf};var xf=i(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),yf=i(function(t,e,r){let o=new Map;return r?(o.set("width","100%"),o.set("style",`max-width: ${e}px;`)):(o.set("height",t),o.set("width",e)),o},"calculateSvgSizeAttrs"),Cf=i(function(t,e,r,o){let n=yf(e,r,o);xf(t,n)},"configureSvgSize"),zl=i(function(t,e,r,o){let n=e.node().getBBox(),s=n.width,a=n.height;tt.info(`SVG bounds: ${s}x${a}`,n);let l=0,c=0;tt.info(`Graph bounds: ${l}x${c}`,t),l=s+r*2,c=a+r*2,tt.info(`Calculated bounds: ${l}x${c}`),Cf(e,c,l,o);let h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox");var Di={},_f=i((t,e,r)=>{let o="";return t in Di&&Di[t]?o=Di[t](r):tt.warn(`No theme found for ${t}`),` & { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} + } + + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${r.errorBkgColor}; + } + & .error-text { + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 1px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${r.lineColor}; + stroke: ${r.lineColor}; + } + & .marker.cross { + stroke: ${r.lineColor}; + } + + & svg { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${o} + + ${e} +`},"getStyles"),Pl=i((t,e)=>{e!==void 0&&(Di[t]=e)},"addStylesForDiagram"),_C=_f;var cn={};mu(cn,{clear:()=>bf,getAccDescription:()=>vf,getAccTitle:()=>kf,getDiagramTitle:()=>Bf,setAccDescription:()=>Sf,setAccTitle:()=>Tf,setDiagramTitle:()=>wf});var sn="",an="",ln="",hn=i(t=>De(t,Er()),"sanitizeText"),bf=i(()=>{sn="",ln="",an=""},"clear"),Tf=i(t=>{sn=hn(t).replace(/^\s+/g,"")},"setAccTitle"),kf=i(()=>sn,"getAccTitle"),Sf=i(t=>{ln=hn(t).replace(/\n\s+/g,` +`)},"setAccDescription"),vf=i(()=>ln,"getAccDescription"),wf=i(t=>{an=hn(t)},"setDiagramTitle"),Bf=i(()=>an,"getDiagramTitle");var $l=tt,Ff=Va,Wl=Er,EC=yl,DC=Ar;var Mf=i(t=>De(t,Wl()),"sanitizeText"),Lf=zl,Af=i(()=>cn,"getCommonDb"),Oi={},OC=i((t,e,r)=>{Oi[t]&&$l.warn(`Diagram with id ${t} already registered. Overwriting.`),Oi[t]=e,r&&Po(t,r),Pl(t,e.styles),e.injectUtils?.($l,Ff,Wl,Mf,Lf,Af(),()=>{})},"registerDiagram"),IC=i(t=>{if(t in Oi)return Oi[t];throw new un(t)},"getDiagram"),un=class extends Error{static{i(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}};function Hl(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r=n)&&(r=n)}return r}i(Hl,"max");function Ul(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}i(Ul,"min");function Oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}i(Oe,"ascending");function fn(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}i(fn,"descending");function Ie(t){let e,r,o;t.length!==2?(e=Oe,r=i((l,c)=>Oe(t(l),c),"compare2"),o=i((l,c)=>t(l)-c,"delta")):(e=t===Oe||t===fn?t:Ef,r=t,o=t);function n(l,c,h=0,u=l.length){if(h>>1;r(l[d],c)<0?h=d+1:u=d}while(h>>1;r(l[d],c)<=0?h=d+1:u=d}while(hh&&o(l[d-1],c)>-o(l[d],c)?d-1:d}return i(a,"center"),{left:n,center:a,right:s}}i(Ie,"bisector");function Ef(){return 0}i(Ef,"zero");function mn(t){return t===null?NaN:+t}i(mn,"number");var Yl=Ie(Oe),Gl=Yl.right,Df=Yl.left,Of=Ie(mn).center,pn=Gl;var rr=class extends Map{static{i(this,"InternMap")}constructor(e,r=Nf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[o,n]of e)this.set(o,n)}get(e){return super.get(Vl(this,e))}has(e){return super.has(Vl(this,e))}set(e,r){return super.set(If(this,e),r)}delete(e){return super.delete(Rf(this,e))}};function Vl({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):r}i(Vl,"intern_get");function If({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):(t.set(o,r),r)}i(If,"intern_set");function Rf({_intern:t,_key:e},r){let o=e(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}i(Rf,"intern_delete");function Nf(t){return t!==null&&typeof t=="object"?t.valueOf():t}i(Nf,"keyof");var qf=Math.sqrt(50),zf=Math.sqrt(10),Pf=Math.sqrt(2);function Ii(t,e,r){let o=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),a=s>=qf?10:s>=zf?5:s>=Pf?2:1,l,c,h;return n<0?(h=Math.pow(10,-n)/a,l=Math.round(t*h),c=Math.round(e*h),l/he&&--c,h=-h):(h=Math.pow(10,n)*a,l=Math.round(t/h),c=Math.round(e/h),l*he&&--c),c0))return[];if(t===e)return[t];let o=e=n))return[];let l=s-n+1,c=new Array(l);if(o)if(a<0)for(let h=0;h+t(e)}i(Hf,"number");function Uf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}i(Uf,"center");function Yf(){return!this.__axis}i(Yf,"entering");function jl(t,e){var r=[],o=null,n=null,s=6,a=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===zi||t===qi?-1:1,u=t===qi||t===gn?"x":"y",d=t===zi||t===xn?$f:Wf;function f(g){var T=o??(e.ticks?e.ticks.apply(e,r):e.domain()),L=n??(e.tickFormat?e.tickFormat.apply(e,r):dn),$=Math.max(s,0)+l,z=e.range(),G=+z[0]+c,E=+z[z.length-1]+c,B=(e.bandwidth?Uf:Hf)(e.copy(),c),P=g.selection?g.selection():g,w=P.selectAll(".domain").data([null]),X=P.selectAll(".tick").data(T,e).order(),j=X.exit(),W=X.enter().append("g").attr("class","tick"),it=X.select("line"),M=X.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),X=X.merge(W),it=it.merge(W.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),M=M.merge(W.append("text").attr("fill","currentColor").attr(u,h*$).attr("dy",t===zi?"0em":t===xn?"0.71em":"0.32em")),g!==P&&(w=w.transition(g),X=X.transition(g),it=it.transition(g),M=M.transition(g),j=j.transition(g).attr("opacity",Xl).attr("transform",function(k){return isFinite(k=B(k))?d(k+c):this.getAttribute("transform")}),W.attr("opacity",Xl).attr("transform",function(k){var x=this.parentNode.__axis;return d((x&&isFinite(x=x(k))?x:B(k))+c)})),j.remove(),w.attr("d",t===qi||t===gn?a?"M"+h*a+","+G+"H"+c+"V"+E+"H"+h*a:"M"+c+","+G+"V"+E:a?"M"+G+","+h*a+"V"+c+"H"+E+"V"+h*a:"M"+G+","+c+"H"+E),X.attr("opacity",1).attr("transform",function(k){return d(B(k)+c)}),it.attr(u+"2",h*s),M.attr(u,h*$).text(L),P.filter(Yf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===gn?"start":t===qi?"end":"middle"),P.each(function(){this.__axis=B})}return i(f,"axis"),f.scale=function(g){return arguments.length?(e=g,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),f):r.slice()},f.tickValues=function(g){return arguments.length?(o=g==null?null:Array.from(g),f):o&&o.slice()},f.tickFormat=function(g){return arguments.length?(n=g,f):n},f.tickSize=function(g){return arguments.length?(s=a=+g,f):s},f.tickSizeInner=function(g){return arguments.length?(s=+g,f):s},f.tickSizeOuter=function(g){return arguments.length?(a=+g,f):a},f.tickPadding=function(g){return arguments.length?(l=+g,f):l},f.offset=function(g){return arguments.length?(c=+g,f):c},f}i(jl,"axis");function Gf(t){return jl(zi,t)}i(Gf,"axisTop");function Vf(t){return jl(xn,t)}i(Vf,"axisBottom");function Xf(){}i(Xf,"none");function Ce(t){return t==null?Xf:function(){return this.querySelector(t)}}i(Ce,"default");function yn(t){typeof t!="function"&&(t=Ce(t));for(var e=this._groups,r=e.length,o=new Array(r),n=0;n=E&&(E=G+1);!(P=$[E])&&++E=0;)(a=o[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}i(Ln,"default");function An(t){t||(t=am);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}i(e,"compareNode");for(var r=this._groups,o=r.length,n=new Array(o),s=0;se?1:t>=e?0:NaN}i(am,"ascending");function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}i(En,"default");function Dn(){return Array.from(this)}i(Dn,"default");function On(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),qn.hasOwnProperty(e)?{space:qn[e],local:t}:t}i(Kt,"default");function lm(t){return function(){this.removeAttribute(t)}}i(lm,"attrRemove");function hm(t){return function(){this.removeAttributeNS(t.space,t.local)}}i(hm,"attrRemoveNS");function cm(t,e){return function(){this.setAttribute(t,e)}}i(cm,"attrConstant");function um(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}i(um,"attrConstantNS");function fm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}i(fm,"attrFunction");function mm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}i(mm,"attrFunctionNS");function zn(t,e){var r=Kt(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?hm:lm:typeof e=="function"?r.local?mm:fm:r.local?um:cm)(r,e))}i(zn,"default");function Wr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}i(Wr,"default");function pm(t){return function(){this.style.removeProperty(t)}}i(pm,"styleRemove");function dm(t,e,r){return function(){this.style.setProperty(t,e,r)}}i(dm,"styleConstant");function gm(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}i(gm,"styleFunction");function Pn(t,e,r){return arguments.length>1?this.each((e==null?pm:typeof e=="function"?gm:dm)(t,e,r??"")):_e(this.node(),t)}i(Pn,"default");function _e(t,e){return t.style.getPropertyValue(e)||Wr(t).getComputedStyle(t,null).getPropertyValue(e)}i(_e,"styleValue");function xm(t){return function(){delete this[t]}}i(xm,"propertyRemove");function ym(t,e){return function(){this[t]=e}}i(ym,"propertyConstant");function Cm(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}i(Cm,"propertyFunction");function $n(t,e){return arguments.length>1?this.each((e==null?xm:typeof e=="function"?Cm:ym)(t,e)):this.node()[t]}i($n,"default");function Zl(t){return t.trim().split(/^|\s+/)}i(Zl,"classArray");function Wn(t){return t.classList||new Kl(t)}i(Wn,"classList");function Kl(t){this._node=t,this._names=Zl(t.getAttribute("class")||"")}i(Kl,"ClassList");Kl.prototype={add:i(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:i(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:i(function(t){return this._names.indexOf(t)>=0},"contains")};function Ql(t,e){for(var r=Wn(t),o=-1,n=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}i(qm,"parseTypenames");function zm(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,n=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Wi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Wi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ym.exec(t))?new St(e[1],e[2],e[3],1):(e=Gm.exec(t))?new St(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Vm.exec(t))?Wi(e[1],e[2],e[3],e[4]):(e=Xm.exec(t))?Wi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=jm.exec(t))?hh(e[1],e[2]/100,e[3]/100,1):(e=Zm.exec(t))?hh(e[1],e[2]/100,e[3]/100,e[4]):ih.hasOwnProperty(t)?sh(ih[t]):t==="transparent"?new St(NaN,NaN,NaN,0):null}i(Yt,"color");function sh(t){return new St(t>>16&255,t>>8&255,t&255,1)}i(sh,"rgbn");function Wi(t,e,r,o){return o<=0&&(t=e=r=NaN),new St(t,e,r,o)}i(Wi,"rgba");function os(t){return t instanceof Te||(t=Yt(t)),t?(t=t.rgb(),new St(t.r,t.g,t.b,t.opacity)):new St}i(os,"rgbConvert");function lr(t,e,r,o){return arguments.length===1?os(t):new St(t,e,r,o??1)}i(lr,"rgb");function St(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}i(St,"Rgb");be(St,lr,sr(Te,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new St(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ur:Math.pow(Ur,t),new St(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new St(Ne(this.r),Ne(this.g),Ne(this.b),Yi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ah,formatHex:ah,formatHex8:Jm,formatRgb:lh,toString:lh}));function ah(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}i(ah,"rgb_formatHex");function Jm(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re((isNaN(this.opacity)?1:this.opacity)*255)}`}i(Jm,"rgb_formatHex8");function lh(){let t=Yi(this.opacity);return`${t===1?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${t===1?")":`, ${t})`}`}i(lh,"rgb_formatRgb");function Yi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}i(Yi,"clampa");function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}i(Ne,"clampi");function Re(t){return t=Ne(t),(t<16?"0":"")+t.toString(16)}i(Re,"hex");function hh(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ut(t,e,r,o)}i(hh,"hsla");function uh(t){if(t instanceof Ut)return new Ut(t.h,t.s,t.l,t.opacity);if(t instanceof Te||(t=Yt(t)),!t)return new Ut;if(t instanceof Ut)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,n=Math.min(e,r,o),s=Math.max(e,r,o),a=NaN,l=s-n,c=(s+n)/2;return l?(e===s?a=(r-o)/l+(r0&&c<1?0:a,new Ut(a,l,c,t.opacity)}i(uh,"hslConvert");function fh(t,e,r,o){return arguments.length===1?uh(t):new Ut(t,e,r,o??1)}i(fh,"hsl");function Ut(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}i(Ut,"Hsl");be(Ut,fh,sr(Te,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ur:Math.pow(Ur,t),new Ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,n=2*r-o;return new St(is(t>=240?t-240:t+120,n,o),is(t,n,o),is(t<120?t+240:t-120,n,o),this.opacity)},clamp(){return new Ut(ch(this.h),Hi(this.s),Hi(this.l),Yi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Yi(this.opacity);return`${t===1?"hsl(":"hsla("}${ch(this.h)}, ${Hi(this.s)*100}%, ${Hi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ch(t){return t=(t||0)%360,t<0?t+360:t}i(ch,"clamph");function Hi(t){return Math.max(0,Math.min(1,t||0))}i(Hi,"clampt");function is(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}i(is,"hsl2rgb");var mh=Math.PI/180,ph=180/Math.PI;var Gi=18,dh=.96422,gh=1,xh=.82521,yh=4/29,hr=6/29,Ch=3*hr*hr,tp=hr*hr*hr;function _h(t){if(t instanceof Jt)return new Jt(t.l,t.a,t.b,t.opacity);if(t instanceof he)return bh(t);t instanceof St||(t=os(t));var e=ls(t.r),r=ls(t.g),o=ls(t.b),n=ns((.2225045*e+.7168786*r+.0606169*o)/gh),s,a;return e===r&&r===o?s=a=n:(s=ns((.4360747*e+.3850649*r+.1430804*o)/dh),a=ns((.0139322*e+.0971045*r+.7141733*o)/xh)),new Jt(116*n-16,500*(s-n),200*(n-a),t.opacity)}i(_h,"labConvert");function hs(t,e,r,o){return arguments.length===1?_h(t):new Jt(t,e,r,o??1)}i(hs,"lab");function Jt(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}i(Jt,"Lab");be(Jt,hs,sr(Te,{brighter(t){return new Jt(this.l+Gi*(t??1),this.a,this.b,this.opacity)},darker(t){return new Jt(this.l-Gi*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=dh*ss(e),t=gh*ss(t),r=xh*ss(r),new St(as(3.1338561*e-1.6168667*t-.4906146*r),as(-.9787684*e+1.9161415*t+.033454*r),as(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function ns(t){return t>tp?Math.pow(t,1/3):t/Ch+yh}i(ns,"xyz2lab");function ss(t){return t>hr?t*t*t:Ch*(t-yh)}i(ss,"lab2xyz");function as(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}i(as,"lrgb2rgb");function ls(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}i(ls,"rgb2lrgb");function ep(t){if(t instanceof he)return new he(t.h,t.c,t.l,t.opacity);if(t instanceof Jt||(t=_h(t)),t.a===0&&t.b===0)return new he(NaN,0()=>t,"default");function Th(t,e){return function(r){return t+r*e}}i(Th,"linear");function rp(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}i(rp,"exponential");function kh(t,e){var r=e-t;return r?Th(t,r>180||r<-180?r-360*Math.round(r/360):r):cr(isNaN(t)?e:t)}i(kh,"hue");function Sh(t){return(t=+t)==1?ce:function(e,r){return r-e?rp(e,r,t):cr(isNaN(e)?r:e)}}i(Sh,"gamma");function ce(t,e){var r=e-t;return r?Th(t,r):cr(isNaN(t)?e:t)}i(ce,"nogamma");function vh(t){return function(e,r){var o=t((e=Gr(e)).h,(r=Gr(r)).h),n=ce(e.c,r.c),s=ce(e.l,r.l),a=ce(e.opacity,r.opacity);return function(l){return e.h=o(l),e.c=n(l),e.l=s(l),e.opacity=a(l),e+""}}}i(vh,"hcl");var ip=vh(kh),op=vh(ce);function cs(t,e,r,o,n){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*r+(1+3*t+3*s-3*a)*o+a*n)/6}i(cs,"basis");function us(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[o],s=t[o+1],a=o>0?t[o-1]:2*n-s,l=or&&(s=e.slice(r,s),l[a]?l[a]+=s:l[++a]=s),(o=o[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:gt(o,n)})),r=gs.lastIndex;return r180?u+=360:u-h>180&&(h+=360),f.push({i:d.push(n(d)+"rotate(",null,o)-2,x:gt(h,u)})):u&&d.push(n(d)+"rotate("+u+o)}i(a,"rotate");function l(h,u,d,f){h!==u?f.push({i:d.push(n(d)+"skewX(",null,o)-2,x:gt(h,u)}):u&&d.push(n(d)+"skewX("+u+o)}i(l,"skewX");function c(h,u,d,f,g,T){if(h!==d||u!==f){var L=g.push(n(g)+"scale(",null,",",null,")");T.push({i:L-4,x:gt(h,d)},{i:L-2,x:gt(u,f)})}else(d!==1||f!==1)&&g.push(n(g)+"scale("+d+","+f+")")}return i(c,"scale"),function(h,u){var d=[],f=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,d,f),a(h.rotate,u.rotate,d,f),l(h.skewX,u.skewX,d,f),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,d,f),h=u=null,function(g){for(var T=-1,L=f.length,$;++Te&&(r=t,t=e,e=r),function(o){return Math.max(t,Math.min(e,o))}}i(hp,"clamper");function cp(t,e,r){var o=t[0],n=t[1],s=e[0],a=e[1];return n2?up:cp,c=h=null,d}i(u,"rescale");function d(f){return f==null||isNaN(f=+f)?s:(c||(c=l(t.map(o),e,r)))(o(a(f)))}return i(d,"scale"),d.invert=function(f){return a(n((h||(h=l(e,t.map(o),gt)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,Ts),u()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Vi,u()},d.clamp=function(f){return arguments.length?(a=f?!0:fr,u()):a!==fr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,g){return o=f,n=g,u()}}i(fp,"transformer");function Xr(){return fp()(fr,fr)}i(Xr,"continuous");function Ss(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}i(Ss,"default");function ze(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}i(ze,"formatDecimalParts");function Gt(t){return t=ze(Math.abs(t)),t?t[1]:NaN}i(Gt,"default");function vs(t,e){return function(r,o){for(var n=r.length,s=[],a=0,l=t[0],c=0;n>0&&l>0&&(c+l+1>o&&(l=Math.max(1,o-c)),s.push(r.substring(n-=l,n+l)),!((c+=l+1)>o));)l=t[a=(a+1)%t.length];return s.reverse().join(e)}}i(vs,"default");function ws(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}i(ws,"default");var mp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ve(t){if(!(e=mp.exec(t)))throw new Error("invalid format: "+t);var e;return new Qi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}i(ve,"formatSpecifier");ve.prototype=Qi.prototype;function Qi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}i(Qi,"FormatSpecifier");Qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Bs(t){t:for(var e=t.length,r=1,o=-1,n;r0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(n+1):t}i(Bs,"default");var Fs;function Ms(t,e){var r=ze(t,e);if(!r)return t+"";var o=r[0],n=r[1],s=n-(Fs=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=o.length;return s===a?o:s>a?o+new Array(s-a+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+ze(t,Math.max(0,e+s-1))[0]}i(Ms,"default");function Ji(t,e){var r=ze(t,e);if(!r)return t+"";var o=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}i(Ji,"default");var Ls={"%":i((t,e)=>(t*100).toFixed(e),"%"),b:i(t=>Math.round(t).toString(2),"b"),c:i(t=>t+"","c"),d:Ss,e:i((t,e)=>t.toExponential(e),"e"),f:i((t,e)=>t.toFixed(e),"f"),g:i((t,e)=>t.toPrecision(e),"g"),o:i(t=>Math.round(t).toString(8),"o"),p:i((t,e)=>Ji(t*100,e),"p"),r:Ji,s:Ms,X:i(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:i(t=>Math.round(t).toString(16),"x")};function to(t){return t}i(to,"default");var Oh=Array.prototype.map,Ih=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function As(t){var e=t.grouping===void 0||t.thousands===void 0?to:vs(Oh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?to:ws(Oh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(d){d=ve(d);var f=d.fill,g=d.align,T=d.sign,L=d.symbol,$=d.zero,z=d.width,G=d.comma,E=d.precision,B=d.trim,P=d.type;P==="n"?(G=!0,P="g"):Ls[P]||(E===void 0&&(E=12),B=!0,P="g"),($||f==="0"&&g==="=")&&($=!0,f="0",g="=");var w=L==="$"?r:L==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",X=L==="$"?o:/[%p]/.test(P)?a:"",j=Ls[P],W=/[defgprs%]/.test(P);E=E===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function it(M){var k=w,x=X,y,F,S;if(P==="c")x=j(M)+x,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?c:j(Math.abs(M),E),B&&(M=Bs(M)),N&&+M==0&&T!=="+"&&(N=!1),k=(N?T==="("?T:l:T==="-"||T==="("?"":T)+k,x=(P==="s"?Ih[8+Fs/3]:"")+x+(N&&T==="("?")":""),W){for(y=-1,F=M.length;++yS||S>57){x=(S===46?n+M.slice(y+1):M.slice(y))+x,M=M.slice(0,y);break}}}G&&!$&&(M=e(M,1/0));var O=k.length+M.length+x.length,U=O>1)+k+M+x+U.slice(O);break;default:M=U+k+M+x;break}return s(M)}return i(it,"format"),it.toString=function(){return d+""},it}i(h,"newFormat");function u(d,f){var g=h((d=ve(d),d.type="f",d)),T=Math.max(-8,Math.min(8,Math.floor(Gt(f)/3)))*3,L=Math.pow(10,-T),$=Ih[8+T/3];return function(z){return g(L*z)+$}}return i(u,"formatPrefix"),{format:h,formatPrefix:u}}i(As,"default");var eo,ro,io;Es({thousands:",",grouping:[3],currency:["$",""]});function Es(t){return eo=As(t),ro=eo.format,io=eo.formatPrefix,eo}i(Es,"defaultLocale");function oo(t){return Math.max(0,-Gt(Math.abs(t)))}i(oo,"default");function no(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gt(e)/3)))*3-Gt(Math.abs(t)))}i(no,"default");function so(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gt(e)-Gt(t))+1}i(so,"default");function Ds(t,e,r,o){var n=ir(t,e,r),s;switch(o=ve(o??",f"),o.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return o.precision==null&&!isNaN(s=no(n,a))&&(o.precision=s),io(o,a)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(s=so(n,Math.max(Math.abs(t),Math.abs(e))))&&(o.precision=s-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(s=oo(n))&&(o.precision=s-(o.type==="%")*2);break}}return ro(o)}i(Ds,"tickFormat");function pp(t){var e=t.domain;return t.ticks=function(r){var o=e();return Ri(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var n=e();return Ds(n[0],n[n.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=e(),n=0,s=o.length-1,a=o[n],l=o[s],c,h,u=10;for(l0;){if(h=zr(a,l,r),h===c)return o[n]=a,o[s]=l,e(o);if(h>0)a=Math.floor(a/h)*h,l=Math.ceil(l/h)*h;else if(h<0)a=Math.ceil(a*h)/h,l=Math.floor(l*h)/h;else break;c=h}return t},t}i(pp,"linearish");function Os(){var t=Xr();return t.copy=function(){return Ki(t,Os())},Se.apply(t,arguments),pp(t)}i(Os,"linear");var Is=new Date,Rs=new Date;function ot(t,e,r,o){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i(n,"interval"),n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{let a=n(s),l=n.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,l)=>{let c=[];if(s=n.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let h;do c.push(h=new Date(+s)),e(s,l),t(s);while(hot(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;e(a,-1),!s(a););else for(;--l>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(Is.setTime(+s),Rs.setTime(+a),t(Is),t(Rs),Math.floor(r(Is,Rs))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(o?a=>o(a)%s===0:a=>n.count(0,a)%s===0):n)),n}i(ot,"timeInterval");var Pe=ot(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Pe.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ot(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Pe);var Rh=Pe.range;var te=ot(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Nh=te.range;var mr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),dp=mr.range,ao=ot(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),gp=ao.range;var pr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),xp=pr.range,lo=ot(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),yp=lo.range;var ue=ot(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),Cp=ue.range,Zr=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),_p=Zr.range,ho=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),bp=ho.range;function He(t){return ot(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}i(He,"timeWeekday");var fe=He(0),dr=He(1),zh=He(2),Ph=He(3),we=He(4),$h=He(5),Wh=He(6),Hh=fe.range,Tp=dr.range,kp=zh.range,Sp=Ph.range,vp=we.range,wp=$h.range,Bp=Wh.range;function Ue(t){return ot(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}i(Ue,"utcWeekday");var Ye=Ue(0),gr=Ue(1),Uh=Ue(2),Yh=Ue(3),Be=Ue(4),Gh=Ue(5),Vh=Ue(6),Xh=Ye.range,Fp=gr.range,Mp=Uh.range,Lp=Yh.range,Ap=Be.range,Ep=Gh.range,Dp=Vh.range;var xr=ot(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Op=xr.range,co=ot(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),Ip=co.range;var qt=ot(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());qt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Rp=qt.range,Vt=ot(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var Np=Vt.range;function Zh(t,e,r,o,n,s){let a=[[te,1,1e3],[te,5,5*1e3],[te,15,15*1e3],[te,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[o,1,864e5],[o,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,u,d){let f=u$).right(a,f);if(g===a.length)return t.every(ir(h/31536e6,u/31536e6,d));if(g===0)return Pe.every(Math.max(ir(h,u,d),1));let[T,L]=a[f/a[g-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(J=Ps(Kr(C.y,0,1)),bt=J.getUTCDay(),J=bt>4||bt===0?gr.ceil(J):gr(J),J=Zr.offset(J,(C.V-1)*7),C.y=J.getUTCFullYear(),C.m=J.getUTCMonth(),C.d=J.getUTCDate()+(C.w+6)%7):(J=zs(Kr(C.y,0,1)),bt=J.getDay(),J=bt>4||bt===0?dr.ceil(J):dr(J),J=ue.offset(J,(C.V-1)*7),C.y=J.getFullYear(),C.m=J.getMonth(),C.d=J.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),bt="Z"in C?Ps(Kr(C.y,0,1)).getUTCDay():zs(Kr(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(bt+5)%7:C.w+C.U*7-(bt+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ps(C)):zs(C)}}i(X,"newParse");function j(v,H,V,C){for(var pt=0,J=H.length,bt=V.length,Tt,Ot;pt=bt)return-1;if(Tt=H.charCodeAt(pt++),Tt===37){if(Tt=H.charAt(pt++),Ot=P[Tt in Kh?H.charAt(pt++):Tt],!Ot||(C=Ot(v,V,C))<0)return-1}else if(Tt!=V.charCodeAt(C++))return-1}return C}i(j,"parseSpecifier");function W(v,H,V){var C=h.exec(H.slice(V));return C?(v.p=u.get(C[0].toLowerCase()),V+C[0].length):-1}i(W,"parsePeriod");function it(v,H,V){var C=g.exec(H.slice(V));return C?(v.w=T.get(C[0].toLowerCase()),V+C[0].length):-1}i(it,"parseShortWeekday");function M(v,H,V){var C=d.exec(H.slice(V));return C?(v.w=f.get(C[0].toLowerCase()),V+C[0].length):-1}i(M,"parseWeekday");function k(v,H,V){var C=z.exec(H.slice(V));return C?(v.m=G.get(C[0].toLowerCase()),V+C[0].length):-1}i(k,"parseShortMonth");function x(v,H,V){var C=L.exec(H.slice(V));return C?(v.m=$.get(C[0].toLowerCase()),V+C[0].length):-1}i(x,"parseMonth");function y(v,H,V){return j(v,e,H,V)}i(y,"parseLocaleDateTime");function F(v,H,V){return j(v,r,H,V)}i(F,"parseLocaleDate");function S(v,H,V){return j(v,o,H,V)}i(S,"parseLocaleTime");function N(v){return a[v.getDay()]}i(N,"formatShortWeekday");function O(v){return s[v.getDay()]}i(O,"formatWeekday");function U(v){return c[v.getMonth()]}i(U,"formatShortMonth");function rt(v){return l[v.getMonth()]}i(rt,"formatMonth");function Y(v){return n[+(v.getHours()>=12)]}i(Y,"formatPeriod");function nt(v){return 1+~~(v.getMonth()/3)}i(nt,"formatQuarter");function K(v){return a[v.getUTCDay()]}i(K,"formatUTCShortWeekday");function Ft(v){return s[v.getUTCDay()]}i(Ft,"formatUTCWeekday");function Z(v){return c[v.getUTCMonth()]}i(Z,"formatUTCShortMonth");function Ct(v){return l[v.getUTCMonth()]}i(Ct,"formatUTCMonth");function _t(v){return n[+(v.getUTCHours()>=12)]}i(_t,"formatUTCPeriod");function lt(v){return 1+~~(v.getUTCMonth()/3)}return i(lt,"formatUTCQuarter"),{format:i(function(v){var H=w(v+="",E);return H.toString=function(){return v},H},"format"),parse:i(function(v){var H=X(v+="",!1);return H.toString=function(){return v},H},"parse"),utcFormat:i(function(v){var H=w(v+="",B);return H.toString=function(){return v},H},"utcFormat"),utcParse:i(function(v){var H=X(v+="",!0);return H.toString=function(){return v},H},"utcParse")}}i($s,"formatLocale");var Kh={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,$p=/^%/,Wp=/[\\^$*+?|[\]().{}]/g;function et(t,e,r){var o=t<0?"-":"",n=(o?-t:t)+"",s=n.length;return o+(s[e.toLowerCase(),r]))}i(Jr,"formatLookup");function Up(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}i(Up,"parseWeekdayNumberSunday");function Yp(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}i(Yp,"parseWeekdayNumberMonday");function Gp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}i(Gp,"parseWeekNumberSunday");function Vp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}i(Vp,"parseWeekNumberISO");function Xp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}i(Xp,"parseWeekNumberMonday");function Qh(t,e,r){var o=xt.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}i(Qh,"parseFullYear");function Jh(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}i(Jh,"parseYear");function jp(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}i(jp,"parseZone");function Zp(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}i(Zp,"parseQuarter");function Kp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}i(Kp,"parseMonthNumber");function tc(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}i(tc,"parseDayOfMonth");function Qp(t,e,r){var o=xt.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}i(Qp,"parseDayOfYear");function ec(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}i(ec,"parseHour24");function Jp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}i(Jp,"parseMinutes");function td(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}i(td,"parseSeconds");function ed(t,e,r){var o=xt.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}i(ed,"parseMilliseconds");function rd(t,e,r){var o=xt.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}i(rd,"parseMicroseconds");function id(t,e,r){var o=$p.exec(e.slice(r,r+1));return o?r+o[0].length:-1}i(id,"parseLiteralPercent");function od(t,e,r){var o=xt.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}i(od,"parseUnixTimestamp");function nd(t,e,r){var o=xt.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}i(nd,"parseUnixTimestampSeconds");function rc(t,e){return et(t.getDate(),e,2)}i(rc,"formatDayOfMonth");function sd(t,e){return et(t.getHours(),e,2)}i(sd,"formatHour24");function ad(t,e){return et(t.getHours()%12||12,e,2)}i(ad,"formatHour12");function ld(t,e){return et(1+ue.count(qt(t),t),e,3)}i(ld,"formatDayOfYear");function ac(t,e){return et(t.getMilliseconds(),e,3)}i(ac,"formatMilliseconds");function hd(t,e){return ac(t,e)+"000"}i(hd,"formatMicroseconds");function cd(t,e){return et(t.getMonth()+1,e,2)}i(cd,"formatMonthNumber");function ud(t,e){return et(t.getMinutes(),e,2)}i(ud,"formatMinutes");function fd(t,e){return et(t.getSeconds(),e,2)}i(fd,"formatSeconds");function md(t){var e=t.getDay();return e===0?7:e}i(md,"formatWeekdayNumberMonday");function pd(t,e){return et(fe.count(qt(t)-1,t),e,2)}i(pd,"formatWeekNumberSunday");function lc(t){var e=t.getDay();return e>=4||e===0?we(t):we.ceil(t)}i(lc,"dISO");function dd(t,e){return t=lc(t),et(we.count(qt(t),t)+(qt(t).getDay()===4),e,2)}i(dd,"formatWeekNumberISO");function gd(t){return t.getDay()}i(gd,"formatWeekdayNumberSunday");function xd(t,e){return et(dr.count(qt(t)-1,t),e,2)}i(xd,"formatWeekNumberMonday");function yd(t,e){return et(t.getFullYear()%100,e,2)}i(yd,"formatYear");function Cd(t,e){return t=lc(t),et(t.getFullYear()%100,e,2)}i(Cd,"formatYearISO");function _d(t,e){return et(t.getFullYear()%1e4,e,4)}i(_d,"formatFullYear");function bd(t,e){var r=t.getDay();return t=r>=4||r===0?we(t):we.ceil(t),et(t.getFullYear()%1e4,e,4)}i(bd,"formatFullYearISO");function Td(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+et(e/60|0,"0",2)+et(e%60,"0",2)}i(Td,"formatZone");function ic(t,e){return et(t.getUTCDate(),e,2)}i(ic,"formatUTCDayOfMonth");function kd(t,e){return et(t.getUTCHours(),e,2)}i(kd,"formatUTCHour24");function Sd(t,e){return et(t.getUTCHours()%12||12,e,2)}i(Sd,"formatUTCHour12");function vd(t,e){return et(1+Zr.count(Vt(t),t),e,3)}i(vd,"formatUTCDayOfYear");function hc(t,e){return et(t.getUTCMilliseconds(),e,3)}i(hc,"formatUTCMilliseconds");function wd(t,e){return hc(t,e)+"000"}i(wd,"formatUTCMicroseconds");function Bd(t,e){return et(t.getUTCMonth()+1,e,2)}i(Bd,"formatUTCMonthNumber");function Fd(t,e){return et(t.getUTCMinutes(),e,2)}i(Fd,"formatUTCMinutes");function Md(t,e){return et(t.getUTCSeconds(),e,2)}i(Md,"formatUTCSeconds");function Ld(t){var e=t.getUTCDay();return e===0?7:e}i(Ld,"formatUTCWeekdayNumberMonday");function Ad(t,e){return et(Ye.count(Vt(t)-1,t),e,2)}i(Ad,"formatUTCWeekNumberSunday");function cc(t){var e=t.getUTCDay();return e>=4||e===0?Be(t):Be.ceil(t)}i(cc,"UTCdISO");function Ed(t,e){return t=cc(t),et(Be.count(Vt(t),t)+(Vt(t).getUTCDay()===4),e,2)}i(Ed,"formatUTCWeekNumberISO");function Dd(t){return t.getUTCDay()}i(Dd,"formatUTCWeekdayNumberSunday");function Od(t,e){return et(gr.count(Vt(t)-1,t),e,2)}i(Od,"formatUTCWeekNumberMonday");function Id(t,e){return et(t.getUTCFullYear()%100,e,2)}i(Id,"formatUTCYear");function Rd(t,e){return t=cc(t),et(t.getUTCFullYear()%100,e,2)}i(Rd,"formatUTCYearISO");function Nd(t,e){return et(t.getUTCFullYear()%1e4,e,4)}i(Nd,"formatUTCFullYear");function qd(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Be(t):Be.ceil(t),et(t.getUTCFullYear()%1e4,e,4)}i(qd,"formatUTCFullYearISO");function zd(){return"+0000"}i(zd,"formatUTCZone");function oc(){return"%"}i(oc,"formatLiteralPercent");function nc(t){return+t}i(nc,"formatUnixTimestamp");function sc(t){return Math.floor(+t/1e3)}i(sc,"formatUnixTimestampSeconds");var yr,uo,uc,fc,mc;Ws({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ws(t){return yr=$s(t),uo=yr.format,uc=yr.parse,fc=yr.utcFormat,mc=yr.utcParse,yr}i(Ws,"defaultLocale");function Hs(t,e){t=t.slice();var r=0,o=t.length-1,n=t[r],s=t[o],a;return s1?0:t<-1?Cr:Math.acos(t)}i(xc,"acos");function Vs(t){return t>=1?ti:t<=-1?-ti:Math.asin(t)}i(Vs,"asin");var Xs=Math.PI,js=2*Xs,Ve=1e-6,Hd=js-Ve;function yc(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return yc;let r=10**e;return function(o){this._+=o[0];for(let n=1,s=o.length;nVe)if(!(Math.abs(d*c-h*u)>Ve)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=o-a,T=n-l,L=c*c+h*h,$=g*g+T*T,z=Math.sqrt(L),G=Math.sqrt(f),E=s*Math.tan((Xs-Math.acos((L+f-$)/(2*z*G)))/2),B=E/G,P=E/z;Math.abs(B-1)>Ve&&this._append`L${e+B*u},${r+B*d}`,this._append`A${s},${s},0,0,${+(d*g>u*T)},${this._x1=e+P*c},${this._y1=r+P*h}`}}arc(e,r,o,n,s,a){if(e=+e,r=+r,o=+o,a=!!a,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(n),c=o*Math.sin(n),h=e+l,u=r+c,d=1^a,f=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Ve||Math.abs(this._y1-u)>Ve)&&this._append`L${h},${u}`,o&&(f<0&&(f=f%js+js),f>Hd?this._append`A${o},${o},0,1,${d},${e-l},${r-c}A${o},${o},0,1,${d},${this._x1=h},${this._y1=u}`:f>Ve&&this._append`A${o},${o},0,${+(f>=Xs)},${d},${this._x1=e+o*Math.cos(s)},${this._y1=r+o*Math.sin(s)}`)}rect(e,r,o,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function Cc(){return new Xe}i(Cc,"path");Cc.prototype=Xe.prototype;function mo(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);e=o}return t},()=>new Xe(e)}i(mo,"withPath");function Yd(t){return t.innerRadius}i(Yd,"arcInnerRadius");function Gd(t){return t.outerRadius}i(Gd,"arcOuterRadius");function Vd(t){return t.startAngle}i(Vd,"arcStartAngle");function Xd(t){return t.endAngle}i(Xd,"arcEndAngle");function jd(t){return t&&t.padAngle}i(jd,"arcPadAngle");function Zd(t,e,r,o,n,s,a,l){var c=r-t,h=o-e,u=a-n,d=l-s,f=d*c-u*h;if(!(f*fy*y+F*F&&(j=it,W=M),{cx:j,cy:W,x01:-u,y01:-d,x11:j*(n/P-1),y11:W*(n/P-1)}}i(po,"cornerTangents");function _c(){var t=Yd,e=Gd,r=st(0),o=null,n=Vd,s=Xd,a=jd,l=null,c=mo(h);function h(){var u,d,f=+t.apply(this,arguments),g=+e.apply(this,arguments),T=n.apply(this,arguments)-ti,L=s.apply(this,arguments)-ti,$=Gs(L-T),z=L>T;if(l||(l=u=c()),gyt))l.moveTo(0,0);else if($>_r-yt)l.moveTo(g*Fe(T),g*Xt(T)),l.arc(0,0,g,T,L,!z),f>yt&&(l.moveTo(f*Fe(L),f*Xt(L)),l.arc(0,0,f,L,T,z));else{var G=T,E=L,B=T,P=L,w=$,X=$,j=a.apply(this,arguments)/2,W=j>yt&&(o?+o.apply(this,arguments):Ge(f*f+g*g)),it=fo(Gs(g-f)/2,+r.apply(this,arguments)),M=it,k=it,x,y;if(W>yt){var F=Vs(W/f*Xt(j)),S=Vs(W/g*Xt(j));(w-=F*2)>yt?(F*=z?1:-1,B+=F,P-=F):(w=0,B=P=(T+L)/2),(X-=S*2)>yt?(S*=z?1:-1,G+=S,E-=S):(X=0,G=E=(T+L)/2)}var N=g*Fe(G),O=g*Xt(G),U=f*Fe(P),rt=f*Xt(P);if(it>yt){var Y=g*Fe(E),nt=g*Xt(E),K=f*Fe(B),Ft=f*Xt(B),Z;if($yt?k>yt?(x=po(K,Ft,N,O,g,k,z),y=po(Y,nt,U,rt,g,k,z),l.moveTo(x.cx+x.x01,x.cy+x.y01),kyt)||!(w>yt)?l.lineTo(U,rt):M>yt?(x=po(U,rt,Y,nt,f,-M,z),y=po(N,O,K,Ft,f,-M,z),l.lineTo(x.cx+x.x01,x.cy+x.y01),Mt?1:e>=t?0:NaN}i(Zs,"default");function Ks(t){return t}i(Ks,"default");function vc(){var t=Ks,e=Zs,r=null,o=st(0),n=st(_r),s=st(0);function a(l){var c,h=(l=ei(l)).length,u,d,f=0,g=new Array(h),T=new Array(h),L=+o.apply(this,arguments),$=Math.min(_r,Math.max(-_r,n.apply(this,arguments)-L)),z,G=Math.min(Math.abs($)/h,s.apply(this,arguments)),E=G*($<0?-1:1),B;for(c=0;c0&&(f+=B);for(e!=null?g.sort(function(P,w){return e(T[P],T[w])}):r!=null&&g.sort(function(P,w){return r(l[P],l[w])}),c=0,d=f?($-h*E)/f:0;c0?B*d:0)+E,T[u]={data:l[u],index:c,value:B,startAngle:L,endAngle:z,padAngle:G};return T}return i(a,"pie"),a.value=function(l){return arguments.length?(t=typeof l=="function"?l:st(+l),a):t},a.sortValues=function(l){return arguments.length?(e=l,r=null,a):e},a.sort=function(l){return arguments.length?(r=l,e=null,a):r},a.startAngle=function(l){return arguments.length?(o=typeof l=="function"?l:st(+l),a):o},a.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:st(+l),a):n},a.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:st(+l),a):s},a}i(vc,"default");var xo=class{static{i(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function Kd(t){return new xo(t,!0)}i(Kd,"bumpX");function Qd(t){return new xo(t,!1)}i(Qd,"bumpY");function br(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}i(br,"point");function ri(t){this._context=t}i(ri,"Basis");ri.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:br(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function wc(t){return new ri(t)}i(wc,"default");function zt(){}i(zt,"default");function Bc(t){this._context=t}i(Bc,"BasisClosed");Bc.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Fc(t){return new Bc(t)}i(Fc,"default");function Mc(t){this._context=t}i(Mc,"BasisOpen");Mc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Lc(t){return new Mc(t)}i(Lc,"default");function Ac(t,e){this._basis=new ri(t),this._beta=e}i(Ac,"Bundle");Ac.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var o=t[0],n=e[0],s=t[r]-o,a=e[r]-n,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+c*s),this._beta*e[l]+(1-this._beta)*(n+c*a));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};var Jd=i(function t(e){function r(o){return e===1?new ri(o):new Ac(o,e)}return i(r,"bundle"),r.beta=function(o){return t(+o)},r},"custom")(.85);function Tr(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}i(Tr,"point");function yo(t,e){this._context=t,this._k=(1-e)/6}i(yo,"Cardinal");yo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var tg=i(function t(e){function r(o){return new yo(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function Co(t,e){this._context=t,this._k=(1-e)/6}i(Co,"CardinalClosed");Co.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var eg=i(function t(e){function r(o){return new Co(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function _o(t,e){this._context=t,this._k=(1-e)/6}i(_o,"CardinalOpen");_o.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var rg=i(function t(e){function r(o){return new _o(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function ii(t,e,r){var o=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>yt){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,n=(n*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>yt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(o,n,s,a,t._x2,t._y2)}i(ii,"point");function Ec(t,e){this._context=t,this._alpha=e}i(Ec,"CatmullRom");Ec.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ig=i(function t(e){function r(o){return e?new Ec(o,e):new yo(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Dc(t,e){this._context=t,this._alpha=e}i(Dc,"CatmullRomClosed");Dc.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var og=i(function t(e){function r(o){return e?new Dc(o,e):new Co(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Oc(t,e){this._context=t,this._alpha=e}i(Oc,"CatmullRomOpen");Oc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ng=i(function t(e){function r(o){return e?new Oc(o,e):new _o(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Ic(t){this._context=t}i(Ic,"LinearClosed");Ic.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};function Rc(t){return new Ic(t)}i(Rc,"default");function Nc(t){return t<0?-1:1}i(Nc,"sign");function qc(t,e,r){var o=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(o||n<0&&-0),a=(r-t._y1)/(n||o<0&&-0),l=(s*n+a*o)/(o+n);return(Nc(s)+Nc(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(l))||0}i(qc,"slope3");function zc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}i(zc,"slope2");function Qs(t,e,r){var o=t._x0,n=t._y0,s=t._x1,a=t._y1,l=(s-o)/3;t._context.bezierCurveTo(o+l,n+l*e,s-l,a-l*r,s,a)}i(Qs,"point");function bo(t){this._context=t}i(bo,"MonotoneX");bo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qs(this,this._t0,zc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Qs(this,zc(this,r=qc(this,t,e)),r);break;default:Qs(this,this._t0,r=qc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};function Pc(t){this._context=new $c(t)}i(Pc,"MonotoneY");(Pc.prototype=Object.create(bo.prototype)).point=function(t,e){bo.prototype.point.call(this,e,t)};function $c(t){this._context=t}i($c,"ReflectContext");$c.prototype={moveTo:i(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:i(function(t,e,r,o,n,s){this._context.bezierCurveTo(e,t,o,r,s,n)},"bezierCurveTo")};function sg(t){return new bo(t)}i(sg,"monotoneX");function ag(t){return new Pc(t)}i(ag,"monotoneY");function Hc(t){this._context=t}i(Hc,"Natural");Hc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var o=Wc(t),n=Wc(e),s=0,a=1;a=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};function Yc(t){return new To(t,.5)}i(Yc,"default");function lg(t){return new To(t,0)}i(lg,"stepBefore");function hg(t){return new To(t,1)}i(hg,"stepAfter");var cg={value:i(()=>{},"value")};function Vc(){for(var t=0,e=arguments.length,r={},o;t=0&&(o=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}i(ug,"parseTypenames");ko.prototype=Vc.prototype={constructor:ko,on:i(function(t,e){var r=this._,o=ug(t+"",r),n,s=-1,a=o.length;if(arguments.length<2){for(;++s0)for(var r=new Array(n),o=0,n,s;o=0&&t._call.call(void 0,e),t=t._next;--kr}i(Kc,"timerFlush");function Xc(){je=(vo=ai.now())+wo,kr=ni=0;try{Kc()}finally{kr=0,dg(),je=0}}i(Xc,"wake");function pg(){var t=ai.now(),e=t-vo;e>jc&&(wo-=e,vo=t)}i(pg,"poke");function dg(){for(var t,e=So,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:So=r);si=t,ta(o)}i(dg,"nap");function ta(t){if(!kr){ni&&(ni=clearTimeout(ni));var e=t-je;e>24?(t<1/0&&(ni=setTimeout(Xc,t-ai.now()-wo)),oi&&(oi=clearInterval(oi))):(oi||(vo=ai.now(),oi=setInterval(pg,jc)),kr=1,Zc(Xc))}}i(ta,"sleep");function ci(t,e,r){var o=new li;return e=e==null?0:+e,o.restart(n=>{o.stop(),t(n+e)},e,r),o}i(ci,"default");var gg=Js("start","end","cancel","interrupt"),xg=[],tu=0,Qc=1,Mo=2,Fo=3,Jc=4,Lo=5,ui=6;function me(t,e,r,o,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;yg(t,r,{name:e,index:o,group:n,on:gg,tween:xg,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:tu})}i(me,"default");function fi(t,e){var r=mt(t,e);if(r.state>tu)throw new Error("too late; already scheduled");return r}i(fi,"init");function wt(t,e){var r=mt(t,e);if(r.state>Fo)throw new Error("too late; already running");return r}i(wt,"set");function mt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}i(mt,"get");function yg(t,e,r){var o=t.__transition,n;o[e]=r,r.timer=Bo(s,0,r.time);function s(h){r.state=Qc,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}i(s,"schedule");function a(h){var u,d,f,g;if(r.state!==Qc)return c();for(u in o)if(g=o[u],g.name===r.name){if(g.state===Fo)return ci(a);g.state===Jc?(g.state=ui,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete o[u]):+uMo&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}i(Ng,"start");function qg(t,e,r){var o,n,s=Ng(e)?fi:wt;return function(){var a=s(this,t),l=a.on;l!==o&&(n=(o=l).copy()).on(e,r),a.on=n}}i(qg,"onFunction");function ua(t,e){var r=this._id;return arguments.length<2?mt(this.node(),r).on.on(t):this.each(qg(r,t,e))}i(ua,"default");function zg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}i(zg,"removeFunction");function fa(){return this.on("end.remove",zg(this._id))}i(fa,"default");function ma(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ce(t));for(var o=this._groups,n=o.length,s=new Array(n),a=0;a