mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-15 03:18:49 +08:00
100 lines
291 KiB
JavaScript
100 lines
291 KiB
JavaScript
import{a as oe,b as ne,f as Ya,h as ja}from"./chunk-6JCPJA27.js";var Ec=Ya((Ga,Va)=>{(function(t,e){typeof Ga=="object"&&typeof Va!="undefined"?Va.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self).dayjs=e()})(Ga,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",l="week",c="month",h="quarter",f="year",u="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var x=["th","st","nd","rd"],y=B%100;return"["+B+(x[(y-20)%10]||x[y]||x[0])+"]"}},A=function(B,x,y){var I=String(B);return!I||I.length>=x?B:""+Array(x+1-I.length).join(y)+B},C={s:A,z:function(B){var x=-B.utcOffset(),y=Math.abs(x),I=Math.floor(y/60),k=y%60;return(x<=0?"+":"-")+A(I,2,"0")+":"+A(k,2,"0")},m:function B(x,y){if(x.date()<y.date())return-B(y,x);var I=12*(y.year()-x.year())+(y.month()-x.month()),k=x.clone().add(I,c),$=y-k<0,R=x.clone().add(I+($?-1:1),c);return+(-(I+(y-k)/($?k-R:R-k))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:c,y:f,w:l,d:s,D:u,h:a,m:n,s:o,ms:i,Q:h}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},M="en",S={};S[M]=b;var D="$isDayjsObject",T=function(B){return B instanceof Q||!(!B||!B[D])},O=function B(x,y,I){var k;if(!x)return M;if(typeof x=="string"){var $=x.toLowerCase();S[$]&&(k=$),y&&(S[$]=y,k=$);var R=x.split("-");if(!k&&R.length>1)return B(R[0])}else{var V=x.name;S[V]=x,k=V}return!I&&k&&(M=k),k||!I&&M},F=function(B,x){if(T(B))return B.clone();var y=typeof x=="object"?x:{};return y.date=B,y.args=arguments,new Q(y)},G=C;G.l=O,G.i=T,G.w=function(B,x){return F(B,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var Q=function(){function B(y){this.$L=O(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[D]=!0}var x=B.prototype;return x.parse=function(y){this.$d=function(I){var k=I.date,$=I.utc;if(k===null)return new Date(NaN);if(G.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var R=k.match(g);if(R){var V=R[2]-1||0,Z=(R[7]||"0").substring(0,3);return $?new Date(Date.UTC(R[1],V,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Z)):new Date(R[1],V,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Z)}}return new Date(k)}(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 G},x.isValid=function(){return this.$d.toString()!==p},x.isSame=function(y,I){var k=F(y);return this.startOf(I)<=k&&k<=this.endOf(I)},x.isAfter=function(y,I){return F(y)<this.startOf(I)},x.isBefore=function(y,I){return this.endOf(I)<F(y)},x.$g=function(y,I,k){return G.u(y)?this[I]:this.set(k,y)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(y,I){var k=this,$=!!G.u(I)||I,R=G.p(y),V=function(Nt,ht){var E=G.w(k.$u?Date.UTC(k.$y,ht,Nt):new Date(k.$y,ht,Nt),k);return $?E:E.endOf(s)},Z=function(Nt,ht){return G.w(k.toDate()[Nt].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ht)),k)},ot=this.$W,nt=this.$M,dt=this.$D,Ht="set"+(this.$u?"UTC":"");switch(R){case f:return $?V(1,0):V(31,11);case c:return $?V(1,nt):V(0,nt+1);case l:var ft=this.$locale().weekStart||0,Zt=(ot<ft?ot+7:ot)-ft;return V($?dt-Zt:dt+(6-Zt),nt);case s:case u:return Z(Ht+"Hours",0);case a:return Z(Ht+"Minutes",1);case n:return Z(Ht+"Seconds",2);case o:return Z(Ht+"Milliseconds",3);default:return this.clone()}},x.endOf=function(y){return this.startOf(y,!1)},x.$set=function(y,I){var k,$=G.p(y),R="set"+(this.$u?"UTC":""),V=(k={},k[s]=R+"Date",k[u]=R+"Date",k[c]=R+"Month",k[f]=R+"FullYear",k[a]=R+"Hours",k[n]=R+"Minutes",k[o]=R+"Seconds",k[i]=R+"Milliseconds",k)[$],Z=$===s?this.$D+(I-this.$W):I;if($===c||$===f){var ot=this.clone().set(u,1);ot.$d[V](Z),ot.init(),this.$d=ot.set(u,Math.min(this.$D,ot.daysInMonth())).$d}else V&&this.$d[V](Z);return this.init(),this},x.set=function(y,I){return this.clone().$set(y,I)},x.get=function(y){return this[G.p(y)]()},x.add=function(y,I){var k,$=this;y=Number(y);var R=G.p(I),V=function(nt){var dt=F($);return G.w(dt.date(dt.date()+Math.round(nt*y)),$)};if(R===c)return this.set(c,this.$M+y);if(R===f)return this.set(f,this.$y+y);if(R===s)return V(1);if(R===l)return V(7);var Z=(k={},k[n]=e,k[a]=r,k[o]=t,k)[R]||1,ot=this.$d.getTime()+y*Z;return G.w(ot,this)},x.subtract=function(y,I){return this.add(-1*y,I)},x.format=function(y){var I=this,k=this.$locale();if(!this.isValid())return k.invalidDate||p;var $=y||"YYYY-MM-DDTHH:mm:ssZ",R=G.z(this),V=this.$H,Z=this.$m,ot=this.$M,nt=k.weekdays,dt=k.months,Ht=k.meridiem,ft=function(ht,E,X,K){return ht&&(ht[E]||ht(I,$))||X[E].slice(0,K)},Zt=function(ht){return G.s(V%12||12,ht,"0")},Nt=Ht||function(ht,E,X){var K=ht<12?"AM":"PM";return X?K.toLowerCase():K};return $.replace(_,function(ht,E){return E||function(X){switch(X){case"YY":return String(I.$y).slice(-2);case"YYYY":return G.s(I.$y,4,"0");case"M":return ot+1;case"MM":return G.s(ot+1,2,"0");case"MMM":return ft(k.monthsShort,ot,dt,3);case"MMMM":return ft(dt,ot);case"D":return I.$D;case"DD":return G.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return ft(k.weekdaysMin,I.$W,nt,2);case"ddd":return ft(k.weekdaysShort,I.$W,nt,3);case"dddd":return nt[I.$W];case"H":return String(V);case"HH":return G.s(V,2,"0");case"h":return Zt(1);case"hh":return Zt(2);case"a":return Nt(V,Z,!0);case"A":return Nt(V,Z,!1);case"m":return String(Z);case"mm":return G.s(Z,2,"0");case"s":return String(I.$s);case"ss":return G.s(I.$s,2,"0");case"SSS":return G.s(I.$ms,3,"0");case"Z":return R}return null}(ht)||R.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(y,I,k){var $,R=this,V=G.p(I),Z=F(y),ot=(Z.utcOffset()-this.utcOffset())*e,nt=this-Z,dt=function(){return G.m(R,Z)};switch(V){case f:$=dt()/12;break;case c:$=dt();break;case h:$=dt()/3;break;case l:$=(nt-ot)/6048e5;break;case s:$=(nt-ot)/864e5;break;case a:$=nt/r;break;case n:$=nt/e;break;case o:$=nt/t;break;default:$=nt}return k?$:G.a($)},x.daysInMonth=function(){return this.endOf(c).$D},x.$locale=function(){return S[this.$L]},x.locale=function(y,I){if(!y)return this.$L;var k=this.clone(),$=O(y,I,!0);return $&&(k.$L=$),k},x.clone=function(){return G.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},B}(),N=Q.prototype;return F.prototype=N,[["$ms",i],["$s",o],["$m",n],["$H",a],["$W",s],["$M",c],["$y",f],["$D",u]].forEach(function(B){N[B[1]]=function(x){return this.$g(x,B[0],B[1])}}),F.extend=function(B,x){return B.$i||(B(x,Q,F),B.$i=!0),F},F.locale=O,F.isDayjs=T,F.unix=function(B){return F(1e3*B)},F.en=S[M],F.Ls=S,F.p={},F})});var Ic=Ya(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.sanitizeUrl=Ae.BLANK_URL=void 0;var l0=/^([^\w]*)(javascript|data|vbscript)/im,c0=/&#(\w+)(^\w|;)?/g,u0=/&(newline|tab);/gi,Oc=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,h0=/^.+(:|:)/gim,f0=[".","/"];Ae.BLANK_URL="about:blank";function p0(t){return f0.indexOf(t[0])>-1}function d0(t){var e=t.replace(Oc,"");return e.replace(c0,function(r,i){return String.fromCharCode(i)})}function m0(t){if(!t)return Ae.BLANK_URL;var e=d0(t).replace(u0,"").replace(Oc,"").trim();if(!e)return Ae.BLANK_URL;if(p0(e))return e;var r=e.match(h0);if(!r)return e;var i=r[0];return l0.test(i)?Ae.BLANK_URL:e}Ae.sanitizeUrl=m0});var ap=Ya((gl,xl)=>{(function(t,e){typeof gl=="object"&&typeof xl!="undefined"?xl.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis!="undefined"?globalThis:t||self,t.DOMPurify=e())})(gl,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:n,seal:a,create:s}=Object,{apply:l,construct:c}=typeof Reflect!="undefined"&&Reflect;n||(n=function(W){return W}),a||(a=function(W){return W}),l||(l=function(W,rt,J){return W.apply(rt,J)}),c||(c=function(W,rt){return new W(...rt)});let h=T(Array.prototype.forEach),f=T(Array.prototype.pop),u=T(Array.prototype.push),p=T(String.prototype.toLowerCase),g=T(String.prototype.toString),_=T(String.prototype.match),b=T(String.prototype.replace),A=T(String.prototype.indexOf),C=T(String.prototype.trim),M=T(Object.prototype.hasOwnProperty),S=T(RegExp.prototype.test),D=O(TypeError);function T(tt){return function(W){for(var rt=arguments.length,J=new Array(rt>1?rt-1:0),Et=1;Et<rt;Et++)J[Et-1]=arguments[Et];return l(tt,W,J)}}function O(tt){return function(){for(var W=arguments.length,rt=new Array(W),J=0;J<W;J++)rt[J]=arguments[J];return c(tt,rt)}}function F(tt,W){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p;e&&e(tt,null);let J=W.length;for(;J--;){let Et=W[J];if(typeof Et=="string"){let ke=rt(Et);ke!==Et&&(r(W)||(W[J]=ke),Et=ke)}tt[Et]=!0}return tt}function G(tt){for(let W=0;W<tt.length;W++)M(tt,W)||(tt[W]=null);return tt}function Q(tt){let W=s(null);for(let[rt,J]of t(tt))M(tt,rt)&&(Array.isArray(J)?W[rt]=G(J):J&&typeof J=="object"&&J.constructor===Object?W[rt]=Q(J):W[rt]=J);return W}function N(tt,W){for(;tt!==null;){let J=o(tt,W);if(J){if(J.get)return T(J.get);if(typeof J.value=="function")return T(J.value)}tt=i(tt)}function rt(){return null}return rt}let B=n(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=n(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),y=n(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=n(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=n(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$=n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=n(["#text"]),V=n(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Z=n(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ot=n(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nt=n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dt=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ht=a(/<%[\w\W]*|[\w\W]*%>/gm),ft=a(/\${[\w\W]*}/gm),Zt=a(/^data-[\-\w.\u00B7-\uFFFF]/),Nt=a(/^aria-[\-\w]+$/),ht=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),v=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var wt=Object.freeze({__proto__:null,MUSTACHE_EXPR:dt,ERB_EXPR:Ht,TMPLIT_EXPR:ft,DATA_ATTR:Zt,ARIA_ATTR:Nt,IS_ALLOWED_URI:ht,IS_SCRIPT_OR_DATA:E,ATTR_WHITESPACE:X,DOCTYPE_NAME:K,CUSTOM_ELEMENT:v});let et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Rt=function(){return typeof window=="undefined"?null:window},Pt=function(W,rt){if(typeof W!="object"||typeof W.createPolicy!="function")return null;let J=null,Et="data-tt-policy-suffix";rt&&rt.hasAttribute(Et)&&(J=rt.getAttribute(Et));let ke="dompurify"+(J?"#"+J:"");try{return W.createPolicy(ke,{createHTML(zr){return zr},createScriptURL(zr){return zr}})}catch(zr){return console.warn("TrustedTypes policy "+ke+" could not be created."),null}};function he(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rt(),W=U=>he(U);if(W.version="3.1.6",W.removed=[],!tt||!tt.document||tt.document.nodeType!==et.document)return W.isSupported=!1,W;let{document:rt}=tt,J=rt,Et=J.currentScript,{DocumentFragment:ke,HTMLTemplateElement:zr,Node:La,Element:rc,NodeFilter:Oi,NamedNodeMap:$g=tt.NamedNodeMap||tt.MozNamedAttrMap,HTMLFormElement:zg,DOMParser:qg,trustedTypes:Oo}=tt,Ii=rc.prototype,Wg=N(Ii,"cloneNode"),Ug=N(Ii,"remove"),Hg=N(Ii,"nextSibling"),Yg=N(Ii,"childNodes"),Io=N(Ii,"parentNode");if(typeof zr=="function"){let U=rt.createElement("template");U.content&&U.content.ownerDocument&&(rt=U.content.ownerDocument)}let $t,Di="",{implementation:Ma,createNodeIterator:jg,createDocumentFragment:Gg,getElementsByTagName:Vg}=rt,{importNode:Xg}=J,fe={};W.isSupported=typeof t=="function"&&typeof Io=="function"&&Ma&&Ma.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ea,ERB_EXPR:Oa,TMPLIT_EXPR:Ia,DATA_ATTR:Kg,ARIA_ATTR:Zg,IS_SCRIPT_OR_DATA:Qg,ATTR_WHITESPACE:ic,CUSTOM_ELEMENT:Jg}=wt,{IS_ALLOWED_URI:oc}=wt,bt=null,nc=F({},[...B,...x,...y,...k,...R]),Tt=null,ac=F({},[...V,...Z,...ot,...nt]),pt=Object.seal(s(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}})),Ni=null,Da=null,sc=!0,Na=!0,lc=!1,cc=!0,qr=!1,Ra=!0,ur=!1,Pa=!1,$a=!1,Wr=!1,Do=!1,No=!1,uc=!0,hc=!1,t0="user-content-",za=!0,Ri=!1,Ur={},Hr=null,fc=F({},["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"]),pc=null,dc=F({},["audio","video","img","source","image","track"]),qa=null,mc=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ro="http://www.w3.org/1998/Math/MathML",Po="http://www.w3.org/2000/svg",Se="http://www.w3.org/1999/xhtml",Yr=Se,Wa=!1,Ua=null,e0=F({},[Ro,Po,Se],g),Pi=null,r0=["application/xhtml+xml","text/html"],i0="text/html",vt=null,jr=null,o0=rt.createElement("form"),gc=function(d){return d instanceof RegExp||d instanceof Function},Ha=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jr&&jr===d)){if((!d||typeof d!="object")&&(d={}),d=Q(d),Pi=r0.indexOf(d.PARSER_MEDIA_TYPE)===-1?i0:d.PARSER_MEDIA_TYPE,vt=Pi==="application/xhtml+xml"?g:p,bt=M(d,"ALLOWED_TAGS")?F({},d.ALLOWED_TAGS,vt):nc,Tt=M(d,"ALLOWED_ATTR")?F({},d.ALLOWED_ATTR,vt):ac,Ua=M(d,"ALLOWED_NAMESPACES")?F({},d.ALLOWED_NAMESPACES,g):e0,qa=M(d,"ADD_URI_SAFE_ATTR")?F(Q(mc),d.ADD_URI_SAFE_ATTR,vt):mc,pc=M(d,"ADD_DATA_URI_TAGS")?F(Q(dc),d.ADD_DATA_URI_TAGS,vt):dc,Hr=M(d,"FORBID_CONTENTS")?F({},d.FORBID_CONTENTS,vt):fc,Ni=M(d,"FORBID_TAGS")?F({},d.FORBID_TAGS,vt):{},Da=M(d,"FORBID_ATTR")?F({},d.FORBID_ATTR,vt):{},Ur=M(d,"USE_PROFILES")?d.USE_PROFILES:!1,sc=d.ALLOW_ARIA_ATTR!==!1,Na=d.ALLOW_DATA_ATTR!==!1,lc=d.ALLOW_UNKNOWN_PROTOCOLS||!1,cc=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qr=d.SAFE_FOR_TEMPLATES||!1,Ra=d.SAFE_FOR_XML!==!1,ur=d.WHOLE_DOCUMENT||!1,Wr=d.RETURN_DOM||!1,Do=d.RETURN_DOM_FRAGMENT||!1,No=d.RETURN_TRUSTED_TYPE||!1,$a=d.FORCE_BODY||!1,uc=d.SANITIZE_DOM!==!1,hc=d.SANITIZE_NAMED_PROPS||!1,za=d.KEEP_CONTENT!==!1,Ri=d.IN_PLACE||!1,oc=d.ALLOWED_URI_REGEXP||ht,Yr=d.NAMESPACE||Se,pt=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&gc(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pt.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&gc(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pt.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(pt.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qr&&(Na=!1),Do&&(Wr=!0),Ur&&(bt=F({},R),Tt=[],Ur.html===!0&&(F(bt,B),F(Tt,V)),Ur.svg===!0&&(F(bt,x),F(Tt,Z),F(Tt,nt)),Ur.svgFilters===!0&&(F(bt,y),F(Tt,Z),F(Tt,nt)),Ur.mathMl===!0&&(F(bt,k),F(Tt,ot),F(Tt,nt))),d.ADD_TAGS&&(bt===nc&&(bt=Q(bt)),F(bt,d.ADD_TAGS,vt)),d.ADD_ATTR&&(Tt===ac&&(Tt=Q(Tt)),F(Tt,d.ADD_ATTR,vt)),d.ADD_URI_SAFE_ATTR&&F(qa,d.ADD_URI_SAFE_ATTR,vt),d.FORBID_CONTENTS&&(Hr===fc&&(Hr=Q(Hr)),F(Hr,d.FORBID_CONTENTS,vt)),za&&(bt["#text"]=!0),ur&&F(bt,["html","head","body"]),bt.table&&(F(bt,["tbody"]),delete Ni.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$t=d.TRUSTED_TYPES_POLICY,Di=$t.createHTML("")}else $t===void 0&&($t=Pt(Oo,Et)),$t!==null&&typeof Di=="string"&&(Di=$t.createHTML(""));n&&n(d),jr=d}},xc=F({},["mi","mo","mn","ms","mtext"]),yc=F({},["foreignobject","annotation-xml"]),n0=F({},["title","style","font","a","script"]),_c=F({},[...x,...y,...I]),Cc=F({},[...k,...$]),a0=function(d){let w=Io(d);(!w||!w.tagName)&&(w={namespaceURI:Yr,tagName:"template"});let P=p(d.tagName),st=p(w.tagName);return Ua[d.namespaceURI]?d.namespaceURI===Po?w.namespaceURI===Se?P==="svg":w.namespaceURI===Ro?P==="svg"&&(st==="annotation-xml"||xc[st]):!!_c[P]:d.namespaceURI===Ro?w.namespaceURI===Se?P==="math":w.namespaceURI===Po?P==="math"&&yc[st]:!!Cc[P]:d.namespaceURI===Se?w.namespaceURI===Po&&!yc[st]||w.namespaceURI===Ro&&!xc[st]?!1:!Cc[P]&&(n0[P]||!_c[P]):!!(Pi==="application/xhtml+xml"&&Ua[d.namespaceURI]):!1},pe=function(d){u(W.removed,{element:d});try{Io(d).removeChild(d)}catch(w){Ug(d)}},$o=function(d,w){try{u(W.removed,{attribute:w.getAttributeNode(d),from:w})}catch(P){u(W.removed,{attribute:null,from:w})}if(w.removeAttribute(d),d==="is"&&!Tt[d])if(Wr||Do)try{pe(w)}catch(P){}else try{w.setAttribute(d,"")}catch(P){}},bc=function(d){let w=null,P=null;if($a)d="<remove></remove>"+d;else{let At=_(d,/^[\r\n\t ]+/);P=At&&At[0]}Pi==="application/xhtml+xml"&&Yr===Se&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");let st=$t?$t.createHTML(d):d;if(Yr===Se)try{w=new qg().parseFromString(st,Pi)}catch(At){}if(!w||!w.documentElement){w=Ma.createDocument(Yr,"template",null);try{w.documentElement.innerHTML=Wa?Di:st}catch(At){}}let Ot=w.body||w.documentElement;return d&&P&&Ot.insertBefore(rt.createTextNode(P),Ot.childNodes[0]||null),Yr===Se?Vg.call(w,ur?"html":"body")[0]:ur?w.documentElement:Ot},Tc=function(d){return jg.call(d.ownerDocument||d,d,Oi.SHOW_ELEMENT|Oi.SHOW_COMMENT|Oi.SHOW_TEXT|Oi.SHOW_PROCESSING_INSTRUCTION|Oi.SHOW_CDATA_SECTION,null)},vc=function(d){return d instanceof zg&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof $g)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},kc=function(d){return typeof La=="function"&&d instanceof La},we=function(d,w,P){fe[d]&&h(fe[d],st=>{st.call(W,w,P,jr)})},Sc=function(d){let w=null;if(we("beforeSanitizeElements",d,null),vc(d))return pe(d),!0;let P=vt(d.nodeName);if(we("uponSanitizeElement",d,{tagName:P,allowedTags:bt}),d.hasChildNodes()&&!kc(d.firstElementChild)&&S(/<[/\w]/g,d.innerHTML)&&S(/<[/\w]/g,d.textContent)||d.nodeType===et.progressingInstruction||Ra&&d.nodeType===et.comment&&S(/<[/\w]/g,d.data))return pe(d),!0;if(!bt[P]||Ni[P]){if(!Ni[P]&&Ac(P)&&(pt.tagNameCheck instanceof RegExp&&S(pt.tagNameCheck,P)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(P)))return!1;if(za&&!Hr[P]){let st=Io(d)||d.parentNode,Ot=Yg(d)||d.childNodes;if(Ot&&st){let At=Ot.length;for(let Yt=At-1;Yt>=0;--Yt){let de=Wg(Ot[Yt],!0);de.__removalCount=(d.__removalCount||0)+1,st.insertBefore(de,Hg(d))}}}return pe(d),!0}return d instanceof rc&&!a0(d)||(P==="noscript"||P==="noembed"||P==="noframes")&&S(/<\/no(script|embed|frames)/i,d.innerHTML)?(pe(d),!0):(qr&&d.nodeType===et.text&&(w=d.textContent,h([Ea,Oa,Ia],st=>{w=b(w,st," ")}),d.textContent!==w&&(u(W.removed,{element:d.cloneNode()}),d.textContent=w)),we("afterSanitizeElements",d,null),!1)},wc=function(d,w,P){if(uc&&(w==="id"||w==="name")&&(P in rt||P in o0))return!1;if(!(Na&&!Da[w]&&S(Kg,w))){if(!(sc&&S(Zg,w))){if(!Tt[w]||Da[w]){if(!(Ac(d)&&(pt.tagNameCheck instanceof RegExp&&S(pt.tagNameCheck,d)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(d))&&(pt.attributeNameCheck instanceof RegExp&&S(pt.attributeNameCheck,w)||pt.attributeNameCheck instanceof Function&&pt.attributeNameCheck(w))||w==="is"&&pt.allowCustomizedBuiltInElements&&(pt.tagNameCheck instanceof RegExp&&S(pt.tagNameCheck,P)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(P))))return!1}else if(!qa[w]){if(!S(oc,b(P,ic,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&d!=="script"&&A(P,"data:")===0&&pc[d])){if(!(lc&&!S(Qg,b(P,ic,"")))){if(P)return!1}}}}}}return!0},Ac=function(d){return d!=="annotation-xml"&&_(d,Jg)},Bc=function(d){we("beforeSanitizeAttributes",d,null);let{attributes:w}=d;if(!w)return;let P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Tt},st=w.length;for(;st--;){let Ot=w[st],{name:At,namespaceURI:Yt,value:de}=Ot,$i=vt(At),zt=At==="value"?de:C(de);if(P.attrName=$i,P.attrValue=zt,P.keepAttr=!0,P.forceKeepAttr=void 0,we("uponSanitizeAttribute",d,P),zt=P.attrValue,Ra&&S(/((--!?|])>)|<\/(style|title)/i,zt)){$o(At,d);continue}if(P.forceKeepAttr||($o(At,d),!P.keepAttr))continue;if(!cc&&S(/\/>/i,zt)){$o(At,d);continue}qr&&h([Ea,Oa,Ia],Lc=>{zt=b(zt,Lc," ")});let Fc=vt(d.nodeName);if(wc(Fc,$i,zt)){if(hc&&($i==="id"||$i==="name")&&($o(At,d),zt=t0+zt),$t&&typeof Oo=="object"&&typeof Oo.getAttributeType=="function"&&!Yt)switch(Oo.getAttributeType(Fc,$i)){case"TrustedHTML":{zt=$t.createHTML(zt);break}case"TrustedScriptURL":{zt=$t.createScriptURL(zt);break}}try{Yt?d.setAttributeNS(Yt,At,zt):d.setAttribute(At,zt),vc(d)?pe(d):f(W.removed)}catch(Lc){}}}we("afterSanitizeAttributes",d,null)},s0=function U(d){let w=null,P=Tc(d);for(we("beforeSanitizeShadowDOM",d,null);w=P.nextNode();)we("uponSanitizeShadowNode",w,null),!Sc(w)&&(w.content instanceof ke&&U(w.content),Bc(w));we("afterSanitizeShadowDOM",d,null)};return W.sanitize=function(U){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,P=null,st=null,Ot=null;if(Wa=!U,Wa&&(U="<!-->"),typeof U!="string"&&!kc(U))if(typeof U.toString=="function"){if(U=U.toString(),typeof U!="string")throw D("dirty is not a string, aborting")}else throw D("toString is not a function");if(!W.isSupported)return U;if(Pa||Ha(d),W.removed=[],typeof U=="string"&&(Ri=!1),Ri){if(U.nodeName){let de=vt(U.nodeName);if(!bt[de]||Ni[de])throw D("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof La)w=bc("<!---->"),P=w.ownerDocument.importNode(U,!0),P.nodeType===et.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?w=P:w.appendChild(P);else{if(!Wr&&!qr&&!ur&&U.indexOf("<")===-1)return $t&&No?$t.createHTML(U):U;if(w=bc(U),!w)return Wr?null:No?Di:""}w&&$a&&pe(w.firstChild);let At=Tc(Ri?U:w);for(;st=At.nextNode();)Sc(st)||(st.content instanceof ke&&s0(st.content),Bc(st));if(Ri)return U;if(Wr){if(Do)for(Ot=Gg.call(w.ownerDocument);w.firstChild;)Ot.appendChild(w.firstChild);else Ot=w;return(Tt.shadowroot||Tt.shadowrootmode)&&(Ot=Xg.call(J,Ot,!0)),Ot}let Yt=ur?w.outerHTML:w.innerHTML;return ur&&bt["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&S(K,w.ownerDocument.doctype.name)&&(Yt="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
|
|
`+Yt),qr&&h([Ea,Oa,Ia],de=>{Yt=b(Yt,de," ")}),$t&&No?$t.createHTML(Yt):Yt},W.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ha(U),Pa=!0},W.clearConfig=function(){jr=null,Pa=!1},W.isValidAttribute=function(U,d,w){jr||Ha({});let P=vt(U),st=vt(d);return wc(P,st,w)},W.addHook=function(U,d){typeof d=="function"&&(fe[U]=fe[U]||[],u(fe[U],d))},W.removeHook=function(U){if(fe[U])return f(fe[U])},W.removeHooks=function(U){fe[U]&&(fe[U]=[])},W.removeAllHooks=function(){fe={}},W}var Eo=he();return Eo})});function Mc(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(h){var f,u;return(u=(f=h.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0})):s},[]);if(o.length){var n=new RegExp(`
|
|
[ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(s){return s.replace(n,`
|
|
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(s,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",f=s;typeof s=="string"&&s.includes(`
|
|
`)&&(f=String(s).split(`
|
|
`).map(function(u,p){return p===0?u:""+h+u}).join(`
|
|
`)),a+=f+i[l+1]}),a}function Dc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function Nc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function hr(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Xa(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fr(t){let e,r,i;t.length!==2?(e=hr,r=(s,l)=>hr(t(s),l),i=(s,l)=>t(s)-l):(e=t===hr||t===Xa?t:g0,r=t,i=t);function o(s,l,c=0,h=s.length){if(c<h){if(e(l,l)!==0)return h;do{let f=c+h>>>1;r(s[f],l)<0?c=f+1:h=f}while(c<h)}return c}function n(s,l,c=0,h=s.length){if(c<h){if(e(l,l)!==0)return h;do{let f=c+h>>>1;r(s[f],l)<=0?c=f+1:h=f}while(c<h)}return c}function a(s,l,c=0,h=s.length){let f=o(s,l,c,h-1);return f>c&&i(s[f-1],l)>-i(s[f],l)?f-1:f}return{left:o,center:a,right:n}}function g0(){return 0}function Ka(t){return t===null?NaN:+t}var Rc=fr(hr),Pc=Rc.right,x0=Rc.left,y0=fr(Ka).center,Za=Pc;var Gr=class extends Map{constructor(e,r=b0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get($c(this,e))}has(e){return super.has($c(this,e))}set(e,r){return super.set(_0(this,e),r)}delete(e){return super.delete(C0(this,e))}};function $c({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function _0({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function C0({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function b0(t){return t!==null&&typeof t=="object"?t.valueOf():t}var T0=Math.sqrt(50),v0=Math.sqrt(10),k0=Math.sqrt(2);function zo(t,e,r){let i=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(i)),n=i/Math.pow(10,o),a=n>=T0?10:n>=v0?5:n>=k0?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=r&&r<2?zo(t,e,r*2):[s,l,c]}function qo(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];let i=e<t,[o,n,a]=i?zo(e,t,r):zo(t,e,r);if(!(n>=o))return[];let s=n-o+1,l=new Array(s);if(i)if(a<0)for(let c=0;c<s;++c)l[c]=(n-c)/-a;else for(let c=0;c<s;++c)l[c]=(n-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function zi(t,e,r){return e=+e,t=+t,r=+r,zo(t,e,r)[2]}function Vr(t,e,r){e=+e,t=+t,r=+r;let i=e<t,o=i?zi(e,t,r):zi(t,e,r);return(i?-1:1)*(o<0?1/-o:o)}function Wo(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var i=-1,o=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(o);++i<o;)n[i]=t+i*r;return n}function zc(t){return t}var Ho=1,Qa=2,Ja=3,Uo=4,qc=1e-6;function S0(t){return"translate("+t+",0)"}function w0(t){return"translate(0,"+t+")"}function A0(t){return e=>+t(e)}function B0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function F0(){return!this.__axis}function Wc(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,l=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,c=t===Ho||t===Uo?-1:1,h=t===Uo||t===Qa?"x":"y",f=t===Ho||t===Ja?S0:w0;function u(p){var g=i==null?e.ticks?e.ticks.apply(e,r):e.domain():i,_=o==null?e.tickFormat?e.tickFormat.apply(e,r):zc:o,b=Math.max(n,0)+s,A=e.range(),C=+A[0]+l,M=+A[A.length-1]+l,S=(e.bandwidth?B0:A0)(e.copy(),l),D=p.selection?p.selection():p,T=D.selectAll(".domain").data([null]),O=D.selectAll(".tick").data(g,e).order(),F=O.exit(),G=O.enter().append("g").attr("class","tick"),Q=O.select("line"),N=O.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(G),Q=Q.merge(G.append("line").attr("stroke","currentColor").attr(h+"2",c*n)),N=N.merge(G.append("text").attr("fill","currentColor").attr(h,c*b).attr("dy",t===Ho?"0em":t===Ja?"0.71em":"0.32em")),p!==D&&(T=T.transition(p),O=O.transition(p),Q=Q.transition(p),N=N.transition(p),F=F.transition(p).attr("opacity",qc).attr("transform",function(B){return isFinite(B=S(B))?f(B+l):this.getAttribute("transform")}),G.attr("opacity",qc).attr("transform",function(B){var x=this.parentNode.__axis;return f((x&&isFinite(x=x(B))?x:S(B))+l)})),F.remove(),T.attr("d",t===Uo||t===Qa?a?"M"+c*a+","+C+"H"+l+"V"+M+"H"+c*a:"M"+l+","+C+"V"+M:a?"M"+C+","+c*a+"V"+l+"H"+M+"V"+c*a:"M"+C+","+l+"H"+M),O.attr("opacity",1).attr("transform",function(B){return f(S(B)+l)}),Q.attr(h+"2",c*n),N.attr(h,c*b).text(_),D.filter(F0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qa?"start":t===Uo?"end":"middle"),D.each(function(){this.__axis=S})}return u.scale=function(p){return arguments.length?(e=p,u):e},u.ticks=function(){return r=Array.from(arguments),u},u.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),u):r.slice()},u.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),u):i&&i.slice()},u.tickFormat=function(p){return arguments.length?(o=p,u):o},u.tickSize=function(p){return arguments.length?(n=a=+p,u):n},u.tickSizeInner=function(p){return arguments.length?(n=+p,u):n},u.tickSizeOuter=function(p){return arguments.length?(a=+p,u):a},u.tickPadding=function(p){return arguments.length?(s=+p,u):s},u.offset=function(p){return arguments.length?(l=+p,u):l},u}function L0(t){return Wc(Ho,t)}function M0(t){return Wc(Ja,t)}function E0(){}function pr(t){return t==null?E0:function(){return this.querySelector(t)}}function Uc(t){typeof t!="function"&&(t=pr(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var n=e[o],a=n.length,s=i[o]=new Array(a),l,c,h=0;h<a;++h)(l=n[h])&&(c=t.call(l,l.__data__,h,n))&&("__data__"in l&&(c.__data__=l.__data__),s[h]=c);return new lt(i,this._parents)}function qi(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function O0(){return[]}function Wi(t){return t==null?O0:function(){return this.querySelectorAll(t)}}function I0(t){return function(){return qi(t.apply(this,arguments))}}function Hc(t){typeof t=="function"?t=I0(t):t=Wi(t);for(var e=this._groups,r=e.length,i=[],o=[],n=0;n<r;++n)for(var a=e[n],s=a.length,l,c=0;c<s;++c)(l=a[c])&&(i.push(t.call(l,l.__data__,c,a)),o.push(l));return new lt(i,o)}function Ui(t){return function(){return this.matches(t)}}function Yo(t){return function(e){return e.matches(t)}}var D0=Array.prototype.find;function N0(t){return function(){return D0.call(this.children,t)}}function R0(){return this.firstElementChild}function Yc(t){return this.select(t==null?R0:N0(typeof t=="function"?t:Yo(t)))}var P0=Array.prototype.filter;function $0(){return Array.from(this.children)}function z0(t){return function(){return P0.call(this.children,t)}}function jc(t){return this.selectAll(t==null?$0:z0(typeof t=="function"?t:Yo(t)))}function Gc(t){typeof t!="function"&&(t=Ui(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var n=e[o],a=n.length,s=i[o]=[],l,c=0;c<a;++c)(l=n[c])&&t.call(l,l.__data__,c,n)&&s.push(l);return new lt(i,this._parents)}function jo(t){return new Array(t.length)}function Vc(){return new lt(this._enter||this._groups.map(jo),this._parents)}function Hi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Hi.prototype={constructor:Hi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Xc(t){return function(){return t}}function q0(t,e,r,i,o,n){for(var a=0,s,l=e.length,c=n.length;a<c;++a)(s=e[a])?(s.__data__=n[a],i[a]=s):r[a]=new Hi(t,n[a]);for(;a<l;++a)(s=e[a])&&(o[a]=s)}function W0(t,e,r,i,o,n,a){var s,l,c=new Map,h=e.length,f=n.length,u=new Array(h),p;for(s=0;s<h;++s)(l=e[s])&&(u[s]=p=a.call(l,l.__data__,s,e)+"",c.has(p)?o[s]=l:c.set(p,l));for(s=0;s<f;++s)p=a.call(t,n[s],s,n)+"",(l=c.get(p))?(i[s]=l,l.__data__=n[s],c.delete(p)):r[s]=new Hi(t,n[s]);for(s=0;s<h;++s)(l=e[s])&&c.get(u[s])===l&&(o[s]=l)}function U0(t){return t.__data__}function Kc(t,e){if(!arguments.length)return Array.from(this,U0);var r=e?W0:q0,i=this._parents,o=this._groups;typeof t!="function"&&(t=Xc(t));for(var n=o.length,a=new Array(n),s=new Array(n),l=new Array(n),c=0;c<n;++c){var h=i[c],f=o[c],u=f.length,p=H0(t.call(h,h&&h.__data__,c,i)),g=p.length,_=s[c]=new Array(g),b=a[c]=new Array(g),A=l[c]=new Array(u);r(h,f,_,b,A,p,e);for(var C=0,M=0,S,D;C<g;++C)if(S=_[C]){for(C>=M&&(M=C+1);!(D=b[M])&&++M<g;);S._next=D||null}}return a=new lt(a,i),a._enter=s,a._exit=l,a}function H0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Zc(){return new lt(this._exit||this._groups.map(jo),this._parents)}function Qc(t,e,r){var i=this.enter(),o=this,n=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),r==null?n.remove():r(n),i&&o?i.merge(o).order():o}function Jc(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,o=r.length,n=i.length,a=Math.min(o,n),s=new Array(o),l=0;l<a;++l)for(var c=r[l],h=i[l],f=c.length,u=s[l]=new Array(f),p,g=0;g<f;++g)(p=c[g]||h[g])&&(u[g]=p);for(;l<o;++l)s[l]=r[l];return new lt(s,this._parents)}function tu(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],o=i.length-1,n=i[o],a;--o>=0;)(a=i[o])&&(n&&a.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(a,n),n=a);return this}function eu(t){t||(t=Y0);function e(f,u){return f&&u?t(f.__data__,u.__data__):!f-!u}for(var r=this._groups,i=r.length,o=new Array(i),n=0;n<i;++n){for(var a=r[n],s=a.length,l=o[n]=new Array(s),c,h=0;h<s;++h)(c=a[h])&&(l[h]=c);l.sort(e)}return new lt(o,this._parents).order()}function Y0(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ru(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function iu(){return Array.from(this)}function ou(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],o=0,n=i.length;o<n;++o){var a=i[o];if(a)return a}return null}function nu(){let t=0;for(let e of this)++t;return t}function au(){return!this.node()}function su(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var o=e[r],n=0,a=o.length,s;n<a;++n)(s=o[n])&&t.call(s,s.__data__,n,o);return this}var Go="http://www.w3.org/1999/xhtml",ts={svg:"http://www.w3.org/2000/svg",xhtml:Go,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Be(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ts.hasOwnProperty(e)?{space:ts[e],local:t}:t}function j0(t){return function(){this.removeAttribute(t)}}function G0(t){return function(){this.removeAttributeNS(t.space,t.local)}}function V0(t,e){return function(){this.setAttribute(t,e)}}function X0(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function K0(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Z0(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)}}function lu(t,e){var r=Be(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?G0:j0:typeof e=="function"?r.local?Z0:K0:r.local?X0:V0)(r,e))}function Vo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Q0(t){return function(){this.style.removeProperty(t)}}function J0(t,e,r){return function(){this.style.setProperty(t,e,r)}}function tx(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function cu(t,e,r){return arguments.length>1?this.each((e==null?Q0:typeof e=="function"?tx:J0)(t,e,r==null?"":r)):Ue(this.node(),t)}function Ue(t,e){return t.style.getPropertyValue(e)||Vo(t).getComputedStyle(t,null).getPropertyValue(e)}function ex(t){return function(){delete this[t]}}function rx(t,e){return function(){this[t]=e}}function ix(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function uu(t,e){return arguments.length>1?this.each((e==null?ex:typeof e=="function"?ix:rx)(t,e)):this.node()[t]}function hu(t){return t.trim().split(/^|\s+/)}function es(t){return t.classList||new fu(t)}function fu(t){this._node=t,this._names=hu(t.getAttribute("class")||"")}fu.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function pu(t,e){for(var r=es(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function du(t,e){for(var r=es(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function ox(t){return function(){pu(this,t)}}function nx(t){return function(){du(this,t)}}function ax(t,e){return function(){(e.apply(this,arguments)?pu:du)(this,t)}}function mu(t,e){var r=hu(t+"");if(arguments.length<2){for(var i=es(this.node()),o=-1,n=r.length;++o<n;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?ax:e?ox:nx)(r,e))}function sx(){this.textContent=""}function lx(t){return function(){this.textContent=t}}function cx(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function gu(t){return arguments.length?this.each(t==null?sx:(typeof t=="function"?cx:lx)(t)):this.node().textContent}function ux(){this.innerHTML=""}function hx(t){return function(){this.innerHTML=t}}function fx(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function xu(t){return arguments.length?this.each(t==null?ux:(typeof t=="function"?fx:hx)(t)):this.node().innerHTML}function px(){this.nextSibling&&this.parentNode.appendChild(this)}function yu(){return this.each(px)}function dx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _u(){return this.each(dx)}function mx(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Go&&e.documentElement.namespaceURI===Go?e.createElement(t):e.createElementNS(r,t)}}function gx(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xo(t){var e=Be(t);return(e.local?gx:mx)(e)}function Cu(t){var e=typeof t=="function"?t:Xo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function xx(){return null}function bu(t,e){var r=typeof t=="function"?t:Xo(t),i=e==null?xx:typeof e=="function"?e:pr(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function yx(){var t=this.parentNode;t&&t.removeChild(this)}function Tu(){return this.each(yx)}function _x(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cx(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vu(t){return this.select(t?Cx:_x)}function ku(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bx(t){return function(e){t.call(this,e,this.__data__)}}function Tx(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function vx(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,o=e.length,n;r<o;++r)n=e[r],(!t.type||n.type===t.type)&&n.name===t.name?this.removeEventListener(n.type,n.listener,n.options):e[++i]=n;++i?e.length=i:delete this.__on}}}function kx(t,e,r){return function(){var i=this.__on,o,n=bx(e);if(i){for(var a=0,s=i.length;a<s;++a)if((o=i[a]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=n,o.options=r),o.value=e;return}}this.addEventListener(t.type,n,r),o={type:t.type,name:t.name,value:e,listener:n,options:r},i?i.push(o):this.__on=[o]}}function Su(t,e,r){var i=Tx(t+""),o,n=i.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,h;l<c;++l)for(o=0,h=s[l];o<n;++o)if((a=i[o]).type===h.type&&a.name===h.name)return h.value}return}for(s=e?kx:vx,o=0;o<n;++o)this.each(s(i[o],e,r));return this}function wu(t,e,r){var i=Vo(t),o=i.CustomEvent;typeof o=="function"?o=new o(e,r):(o=i.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Sx(t,e){return function(){return wu(this,t,e)}}function wx(t,e){return function(){return wu(this,t,e.apply(this,arguments))}}function Au(t,e){return this.each((typeof e=="function"?wx:Sx)(t,e))}function*Bu(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],o=0,n=i.length,a;o<n;++o)(a=i[o])&&(yield a)}var Yi=[null];function lt(t,e){this._groups=t,this._parents=e}function Fu(){return new lt([[document.documentElement]],Yi)}function Ax(){return this}lt.prototype=Fu.prototype={constructor:lt,select:Uc,selectAll:Hc,selectChild:Yc,selectChildren:jc,filter:Gc,data:Kc,enter:Vc,exit:Zc,join:Qc,merge:Jc,selection:Ax,order:tu,sort:eu,call:ru,nodes:iu,node:ou,size:nu,empty:au,each:su,attr:lu,style:cu,property:uu,classed:mu,text:gu,html:xu,raise:yu,lower:_u,append:Cu,insert:bu,remove:Tu,clone:vu,datum:ku,on:Su,dispatch:Au,[Symbol.iterator]:Bu};var Fe=Fu;function jt(t){return typeof t=="string"?new lt([[document.querySelector(t)]],[document.documentElement]):new lt([[t]],Yi)}function Bx(t){return typeof t=="string"?new lt([document.querySelectorAll(t)],[document.documentElement]):new lt([qi(t)],Yi)}function dr(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Xr(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function He(){}var ji=.7,Qo=1/ji,Kr="\\s*([+-]?\\d+)\\s*",Gi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fx=/^#([0-9a-f]{3,8})$/,Lx=new RegExp(`^rgb\\(${Kr},${Kr},${Kr}\\)$`),Mx=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),Ex=new RegExp(`^rgba\\(${Kr},${Kr},${Kr},${Gi}\\)$`),Ox=new RegExp(`^rgba\\(${me},${me},${me},${Gi}\\)$`),Ix=new RegExp(`^hsl\\(${Gi},${me},${me}\\)$`),Dx=new RegExp(`^hsla\\(${Gi},${me},${me},${Gi}\\)$`),Lu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};dr(He,se,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Mu,formatHex:Mu,formatHex8:Nx,formatHsl:Rx,formatRgb:Eu,toString:Eu});function Mu(){return this.rgb().formatHex()}function Nx(){return this.rgb().formatHex8()}function Rx(){return Pu(this).formatHsl()}function Eu(){return this.rgb().formatRgb()}function se(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Fx.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Ou(e):r===3?new Bt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Ko(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ko(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=Lx.exec(t))?new Bt(e[1],e[2],e[3],1):(e=Mx.exec(t))?new Bt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ex.exec(t))?Ko(e[1],e[2],e[3],e[4]):(e=Ox.exec(t))?Ko(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Ix.exec(t))?Nu(e[1],e[2]/100,e[3]/100,1):(e=Dx.exec(t))?Nu(e[1],e[2]/100,e[3]/100,e[4]):Lu.hasOwnProperty(t)?Ou(Lu[t]):t==="transparent"?new Bt(NaN,NaN,NaN,0):null}function Ou(t){return new Bt(t>>16&255,t>>8&255,t&255,1)}function Ko(t,e,r,i){return i<=0&&(t=e=r=NaN),new Bt(t,e,r,i)}function is(t){return t instanceof He||(t=se(t)),t?(t=t.rgb(),new Bt(t.r,t.g,t.b,t.opacity)):new Bt}function Zr(t,e,r,i){return arguments.length===1?is(t):new Bt(t,e,r,i==null?1:i)}function Bt(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}dr(Bt,Zr,Xr(He,{brighter(t){return t=t==null?Qo:Math.pow(Qo,t),new Bt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ji:Math.pow(ji,t),new Bt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Bt(gr(this.r),gr(this.g),gr(this.b),Jo(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:Iu,formatHex:Iu,formatHex8:Px,formatRgb:Du,toString:Du}));function Iu(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}`}function Px(){return`#${mr(this.r)}${mr(this.g)}${mr(this.b)}${mr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Du(){let t=Jo(this.opacity);return`${t===1?"rgb(":"rgba("}${gr(this.r)}, ${gr(this.g)}, ${gr(this.b)}${t===1?")":`, ${t})`}`}function Jo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function gr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function mr(t){return t=gr(t),(t<16?"0":"")+t.toString(16)}function Nu(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ae(t,e,r,i)}function Pu(t){if(t instanceof ae)return new ae(t.h,t.s,t.l,t.opacity);if(t instanceof He||(t=se(t)),!t)return new ae;if(t instanceof ae)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),n=Math.max(e,r,i),a=NaN,s=n-o,l=(n+o)/2;return s?(e===n?a=(r-i)/s+(r<i)*6:r===n?a=(i-e)/s+2:a=(e-r)/s+4,s/=l<.5?n+o:2-n-o,a*=60):s=l>0&&l<1?0:a,new ae(a,s,l,t.opacity)}function $u(t,e,r,i){return arguments.length===1?Pu(t):new ae(t,e,r,i==null?1:i)}function ae(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}dr(ae,$u,Xr(He,{brighter(t){return t=t==null?Qo:Math.pow(Qo,t),new ae(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ji:Math.pow(ji,t),new ae(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,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new Bt(rs(t>=240?t-240:t+120,o,i),rs(t,o,i),rs(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new ae(Ru(this.h),Zo(this.s),Zo(this.l),Jo(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=Jo(this.opacity);return`${t===1?"hsl(":"hsla("}${Ru(this.h)}, ${Zo(this.s)*100}%, ${Zo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ru(t){return t=(t||0)%360,t<0?t+360:t}function Zo(t){return Math.max(0,Math.min(1,t||0))}function rs(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var zu=Math.PI/180,qu=180/Math.PI;var tn=18,Wu=.96422,Uu=1,Hu=.82521,Yu=4/29,Qr=6/29,ju=3*Qr*Qr,$x=Qr*Qr*Qr;function Gu(t){if(t instanceof ge)return new ge(t.l,t.a,t.b,t.opacity);if(t instanceof Le)return Vu(t);t instanceof Bt||(t=is(t));var e=ss(t.r),r=ss(t.g),i=ss(t.b),o=os((.2225045*e+.7168786*r+.0606169*i)/Uu),n,a;return e===r&&r===i?n=a=o:(n=os((.4360747*e+.3850649*r+.1430804*i)/Wu),a=os((.0139322*e+.0971045*r+.7141733*i)/Hu)),new ge(116*o-16,500*(n-o),200*(o-a),t.opacity)}function ls(t,e,r,i){return arguments.length===1?Gu(t):new ge(t,e,r,i==null?1:i)}function ge(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}dr(ge,ls,Xr(He,{brighter(t){return new ge(this.l+tn*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new ge(this.l-tn*(t==null?1:t),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=Wu*ns(e),t=Uu*ns(t),r=Hu*ns(r),new Bt(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 os(t){return t>$x?Math.pow(t,1/3):t/ju+Yu}function ns(t){return t>Qr?t*t*t:ju*(t-Yu)}function as(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ss(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function zx(t){if(t instanceof Le)return new Le(t.h,t.c,t.l,t.opacity);if(t instanceof ge||(t=Gu(t)),t.a===0&&t.b===0)return new Le(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*qu;return new Le(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Vi(t,e,r,i){return arguments.length===1?zx(t):new Le(t,e,r,i==null?1:i)}function Le(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function Vu(t){if(isNaN(t.h))return new ge(t.l,0,0,t.opacity);var e=t.h*zu;return new ge(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}dr(Le,Vi,Xr(He,{brighter(t){return new Le(this.h,this.c,this.l+tn*(t==null?1:t),this.opacity)},darker(t){return new Le(this.h,this.c,this.l-tn*(t==null?1:t),this.opacity)},rgb(){return Vu(this).rgb()}}));var Jr=t=>()=>t;function Xu(t,e){return function(r){return t+r*e}}function qx(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function Ku(t,e){var r=e-t;return r?Xu(t,r>180||r<-180?r-360*Math.round(r/360):r):Jr(isNaN(t)?e:t)}function Zu(t){return(t=+t)==1?Me:function(e,r){return r-e?qx(e,r,t):Jr(isNaN(e)?r:e)}}function Me(t,e){var r=e-t;return r?Xu(t,r):Jr(isNaN(t)?e:t)}function Qu(t){return function(e,r){var i=t((e=Vi(e)).h,(r=Vi(r)).h),o=Me(e.c,r.c),n=Me(e.l,r.l),a=Me(e.opacity,r.opacity);return function(s){return e.h=i(s),e.c=o(s),e.l=n(s),e.opacity=a(s),e+""}}}var Wx=Qu(Ku),Ux=Qu(Me);function cs(t,e,r,i,o){var n=t*t,a=n*t;return((1-3*t+3*n-a)*e+(4-6*n+3*a)*r+(1+3*t+3*n-3*a)*i+a*o)/6}function Ju(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],n=t[i+1],a=i>0?t[i-1]:2*o-n,s=i<e-1?t[i+2]:2*n-o;return cs((r-i/e)*e,a,o,n,s)}}function th(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),o=t[(i+e-1)%e],n=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return cs((r-i/e)*e,o,n,a,s)}}var xr=function t(e){var r=Zu(e);function i(o,n){var a=r((o=Zr(o)).r,(n=Zr(n)).r),s=r(o.g,n.g),l=r(o.b,n.b),c=Me(o.opacity,n.opacity);return function(h){return o.r=a(h),o.g=s(h),o.b=l(h),o.opacity=c(h),o+""}}return i.gamma=t,i}(1);function eh(t){return function(e){var r=e.length,i=new Array(r),o=new Array(r),n=new Array(r),a,s;for(a=0;a<r;++a)s=Zr(e[a]),i[a]=s.r||0,o[a]=s.g||0,n[a]=s.b||0;return i=t(i),o=t(o),n=t(n),s.opacity=1,function(l){return s.r=i(l),s.g=o(l),s.b=n(l),s+""}}}var Hx=eh(Ju),Yx=eh(th);function rh(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),o;return function(n){for(o=0;o<r;++o)i[o]=t[o]*(1-n)+e[o]*n;return i}}function ih(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function oh(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),n=new Array(r),a;for(a=0;a<i;++a)o[a]=yr(t[a],e[a]);for(;a<r;++a)n[a]=e[a];return function(s){for(a=0;a<i;++a)n[a]=o[a](s);return n}}function nh(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function Ft(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ah(t,e){var r={},i={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?r[o]=yr(t[o],e[o]):i[o]=e[o];return function(n){for(o in r)i[o]=r[o](n);return i}}var hs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,us=new RegExp(hs.source,"g");function jx(t){return function(){return t}}function Gx(t){return function(e){return t(e)+""}}function Xi(t,e){var r=hs.lastIndex=us.lastIndex=0,i,o,n,a=-1,s=[],l=[];for(t=t+"",e=e+"";(i=hs.exec(t))&&(o=us.exec(e));)(n=o.index)>r&&(n=e.slice(r,n),s[a]?s[a]+=n:s[++a]=n),(i=i[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Ft(i,o)})),r=us.lastIndex;return r<e.length&&(n=e.slice(r),s[a]?s[a]+=n:s[++a]=n),s.length<2?l[0]?Gx(l[0].x):jx(e):(e=l.length,function(c){for(var h=0,f;h<e;++h)s[(f=l[h]).i]=f.x(c);return s.join("")})}function yr(t,e){var r=typeof e,i;return e==null||r==="boolean"?Jr(e):(r==="number"?Ft:r==="string"?(i=se(e))?(e=i,xr):Xi:e instanceof se?xr:e instanceof Date?nh:ih(e)?rh:Array.isArray(e)?oh:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?ah:Ft)(t,e)}function fs(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var sh=180/Math.PI,en={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ps(t,e,r,i,o,n){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:o,translateY:n,rotate:Math.atan2(e,t)*sh,skewX:Math.atan(l)*sh,scaleX:a,scaleY:s}}var rn;function lh(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?en:ps(e.a,e.b,e.c,e.d,e.e,e.f)}function ch(t){return t==null?en:(rn||(rn=document.createElementNS("http://www.w3.org/2000/svg","g")),rn.setAttribute("transform",t),(t=rn.transform.baseVal.consolidate())?(t=t.matrix,ps(t.a,t.b,t.c,t.d,t.e,t.f)):en)}function uh(t,e,r,i){function o(c){return c.length?c.pop()+" ":""}function n(c,h,f,u,p,g){if(c!==f||h!==u){var _=p.push("translate(",null,e,null,r);g.push({i:_-4,x:Ft(c,f)},{i:_-2,x:Ft(h,u)})}else(f||u)&&p.push("translate("+f+e+u+r)}function a(c,h,f,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:f.push(o(f)+"rotate(",null,i)-2,x:Ft(c,h)})):h&&f.push(o(f)+"rotate("+h+i)}function s(c,h,f,u){c!==h?u.push({i:f.push(o(f)+"skewX(",null,i)-2,x:Ft(c,h)}):h&&f.push(o(f)+"skewX("+h+i)}function l(c,h,f,u,p,g){if(c!==f||h!==u){var _=p.push(o(p)+"scale(",null,",",null,")");g.push({i:_-4,x:Ft(c,f)},{i:_-2,x:Ft(h,u)})}else(f!==1||u!==1)&&p.push(o(p)+"scale("+f+","+u+")")}return function(c,h){var f=[],u=[];return c=t(c),h=t(h),n(c.translateX,c.translateY,h.translateX,h.translateY,f,u),a(c.rotate,h.rotate,f,u),s(c.skewX,h.skewX,f,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,f,u),c=h=null,function(p){for(var g=-1,_=u.length,b;++g<_;)f[(b=u[g]).i]=b.x(p);return f.join("")}}}var ds=uh(lh,"px, ","px)","deg)"),ms=uh(ch,", ",")",")");function Ye(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var gs=Symbol("implicit");function Ki(){var t=new Gr,e=[],r=[],i=gs;function o(n){let a=t.get(n);if(a===void 0){if(i!==gs)return i;t.set(n,a=e.push(n)-1)}return r[a%r.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Gr;for(let a of n)t.has(a)||t.set(a,e.push(a)-1);return o},o.range=function(n){return arguments.length?(r=Array.from(n),o):r.slice()},o.unknown=function(n){return arguments.length?(i=n,o):i},o.copy=function(){return Ki(e,r).unknown(i)},Ye.apply(o,arguments),o}function xs(){var t=Ki().unknown(void 0),e=t.domain,r=t.range,i=0,o=1,n,a,s=!1,l=0,c=0,h=.5;delete t.unknown;function f(){var u=e().length,p=o<i,g=p?o:i,_=p?i:o;n=(_-g)/Math.max(1,u-l+c*2),s&&(n=Math.floor(n)),g+=(_-g-n*(u-l))*h,a=n*(1-l),s&&(g=Math.round(g),a=Math.round(a));var b=Wo(u).map(function(A){return g+n*A});return r(p?b.reverse():b)}return t.domain=function(u){return arguments.length?(e(u),f()):e()},t.range=function(u){return arguments.length?([i,o]=u,i=+i,o=+o,f()):[i,o]},t.rangeRound=function(u){return[i,o]=u,i=+i,o=+o,s=!0,f()},t.bandwidth=function(){return a},t.step=function(){return n},t.round=function(u){return arguments.length?(s=!!u,f()):s},t.padding=function(u){return arguments.length?(l=Math.min(1,c=+u),f()):l},t.paddingInner=function(u){return arguments.length?(l=Math.min(1,u),f()):l},t.paddingOuter=function(u){return arguments.length?(c=+u,f()):c},t.align=function(u){return arguments.length?(h=Math.max(0,Math.min(1,u)),f()):h},t.copy=function(){return xs(e(),[i,o]).round(s).paddingInner(l).paddingOuter(c).align(h)},Ye.apply(f(),arguments)}function ys(t){return function(){return t}}function _s(t){return+t}var hh=[0,1];function ti(t){return t}function Cs(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:ys(isNaN(e)?NaN:.5)}function Vx(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function Xx(t,e,r){var i=t[0],o=t[1],n=e[0],a=e[1];return o<i?(i=Cs(o,i),n=r(a,n)):(i=Cs(i,o),n=r(n,a)),function(s){return n(i(s))}}function Kx(t,e,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),n=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)o[a]=Cs(t[a],t[a+1]),n[a]=r(e[a],e[a+1]);return function(s){var l=Za(t,s,1,i)-1;return n[l](o[l](s))}}function on(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zx(){var t=hh,e=hh,r=yr,i,o,n,a=ti,s,l,c;function h(){var u=Math.min(t.length,e.length);return a!==ti&&(a=Vx(t[0],t[u-1])),s=u>2?Kx:Xx,l=c=null,f}function f(u){return u==null||isNaN(u=+u)?n:(l||(l=s(t.map(i),e,r)))(i(a(u)))}return f.invert=function(u){return a(o((c||(c=s(e,t.map(i),Ft)))(u)))},f.domain=function(u){return arguments.length?(t=Array.from(u,_s),h()):t.slice()},f.range=function(u){return arguments.length?(e=Array.from(u),h()):e.slice()},f.rangeRound=function(u){return e=Array.from(u),r=fs,h()},f.clamp=function(u){return arguments.length?(a=u?!0:ti,h()):a!==ti},f.interpolate=function(u){return arguments.length?(r=u,h()):r},f.unknown=function(u){return arguments.length?(n=u,f):n},function(u,p){return i=u,o=p,h()}}function Zi(){return Zx()(ti,ti)}function fh(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function _r(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function xe(t){return t=_r(Math.abs(t)),t?t[1]:NaN}function ph(t,e){return function(r,i){for(var o=r.length,n=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),n.push(r.substring(o-=s,o+s)),!((l+=s+1)>i));)s=t[a=(a+1)%t.length];return n.reverse().join(e)}}function dh(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var Qx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function je(t){if(!(e=Qx.exec(t)))throw new Error("invalid format: "+t);var e;return new nn({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]})}je.prototype=nn.prototype;function nn(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+""}nn.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 mh(t){t:for(var e=t.length,r=1,i=-1,o;r<e;++r)switch(t[r]){case".":i=o=r;break;case"0":i===0&&(i=r),o=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(o+1):t}var bs;function gh(t,e){var r=_r(t,e);if(!r)return t+"";var i=r[0],o=r[1],n=o-(bs=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return n===a?i:n>a?i+new Array(n-a+1).join("0"):n>0?i.slice(0,n)+"."+i.slice(n):"0."+new Array(1-n).join("0")+_r(t,Math.max(0,e+n-1))[0]}function Ts(t,e){var r=_r(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var vs={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:fh,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ts(t*100,e),r:Ts,s:gh,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ks(t){return t}var xh=Array.prototype.map,yh=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _h(t){var e=t.grouping===void 0||t.thousands===void 0?ks:ph(xh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",n=t.numerals===void 0?ks:dh(xh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(f){f=je(f);var u=f.fill,p=f.align,g=f.sign,_=f.symbol,b=f.zero,A=f.width,C=f.comma,M=f.precision,S=f.trim,D=f.type;D==="n"?(C=!0,D="g"):vs[D]||(M===void 0&&(M=12),S=!0,D="g"),(b||u==="0"&&p==="=")&&(b=!0,u="0",p="=");var T=_==="$"?r:_==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",O=_==="$"?i:/[%p]/.test(D)?a:"",F=vs[D],G=/[defgprs%]/.test(D);M=M===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function Q(N){var B=T,x=O,y,I,k;if(D==="c")x=F(N)+x,N="";else{N=+N;var $=N<0||1/N<0;if(N=isNaN(N)?l:F(Math.abs(N),M),S&&(N=mh(N)),$&&+N==0&&g!=="+"&&($=!1),B=($?g==="("?g:s:g==="-"||g==="("?"":g)+B,x=(D==="s"?yh[8+bs/3]:"")+x+($&&g==="("?")":""),G){for(y=-1,I=N.length;++y<I;)if(k=N.charCodeAt(y),48>k||k>57){x=(k===46?o+N.slice(y+1):N.slice(y))+x,N=N.slice(0,y);break}}}C&&!b&&(N=e(N,1/0));var R=B.length+N.length+x.length,V=R<A?new Array(A-R+1).join(u):"";switch(C&&b&&(N=e(V+N,V.length?A-x.length:1/0),V=""),p){case"<":N=B+N+x+V;break;case"=":N=B+V+N+x;break;case"^":N=V.slice(0,R=V.length>>1)+B+N+x+V.slice(R);break;default:N=V+B+N+x;break}return n(N)}return Q.toString=function(){return f+""},Q}function h(f,u){var p=c((f=je(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(xe(u)/3)))*3,_=Math.pow(10,-g),b=yh[8+g/3];return function(A){return p(_*A)+b}}return{format:c,formatPrefix:h}}var an,sn,ln;Ss({thousands:",",grouping:[3],currency:["$",""]});function Ss(t){return an=_h(t),sn=an.format,ln=an.formatPrefix,an}function ws(t){return Math.max(0,-xe(Math.abs(t)))}function As(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xe(e)/3)))*3-xe(Math.abs(t)))}function Bs(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xe(e)-xe(t))+1}function Fs(t,e,r,i){var o=Vr(t,e,r),n;switch(i=je(i==null?",f":i),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(n=As(o,a))&&(i.precision=n),ln(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(n=Bs(o,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=n-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(n=ws(o))&&(i.precision=n-(i.type==="%")*2);break}}return sn(i)}function Jx(t){var e=t.domain;return t.ticks=function(r){var i=e();return qo(i[0],i[i.length-1],r==null?10:r)},t.tickFormat=function(r,i){var o=e();return Fs(o[0],o[o.length-1],r==null?10:r,i)},t.nice=function(r){r==null&&(r=10);var i=e(),o=0,n=i.length-1,a=i[o],s=i[n],l,c,h=10;for(s<a&&(c=a,a=s,s=c,c=o,o=n,n=c);h-- >0;){if(c=zi(a,s,r),c===l)return i[o]=a,i[n]=s,e(i);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return t},t}function Ls(){var t=Zi();return t.copy=function(){return on(t,Ls())},Ye.apply(t,arguments),Jx(t)}var Ms=new Date,Es=new Date;function at(t,e,r,i){function o(n){return t(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(t(n=new Date(+n)),n),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=n=>{let a=o(n),s=o.ceil(n);return n-a<s-n?a:s},o.offset=(n,a)=>(e(n=new Date(+n),a==null?1:Math.floor(a)),n),o.range=(n,a,s)=>{let l=[];if(n=o.ceil(n),s=s==null?1:Math.floor(s),!(n<a)||!(s>0))return l;let c;do l.push(c=new Date(+n)),e(n,s),t(n);while(c<n&&n<a);return l},o.filter=n=>at(a=>{if(a>=a)for(;t(a),!n(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!n(a););else for(;--s>=0;)for(;e(a,1),!n(a););}),r&&(o.count=(n,a)=>(Ms.setTime(+n),Es.setTime(+a),t(Ms),t(Es),Math.floor(r(Ms,Es))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(i?a=>i(a)%n===0:a=>o.count(0,a)%n===0):o)),o}var Cr=at(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Cr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?at(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Cr);var Ch=Cr.range;var ye=at(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),bh=ye.range;var ei=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),ty=ei.range,cn=at(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),ey=cn.range;var ri=at(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()),ry=ri.range,un=at(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),iy=un.range;var Ee=at(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),oy=Ee.range,Ji=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),ny=Ji.range,hn=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),ay=hn.range;function vr(t){return at(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)}var Oe=vr(0),ii=vr(1),vh=vr(2),kh=vr(3),Ge=vr(4),Sh=vr(5),wh=vr(6),Ah=Oe.range,sy=ii.range,ly=vh.range,cy=kh.range,uy=Ge.range,hy=Sh.range,fy=wh.range;function kr(t){return at(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)}var Sr=kr(0),oi=kr(1),Bh=kr(2),Fh=kr(3),Ve=kr(4),Lh=kr(5),Mh=kr(6),Eh=Sr.range,py=oi.range,dy=Bh.range,my=Fh.range,gy=Ve.range,xy=Lh.range,yy=Mh.range;var ni=at(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()),_y=ni.range,fn=at(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()),Cy=fn.range;var Qt=at(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:at(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 by=Qt.range,le=at(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());le.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:at(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 Ty=le.range;function Ih(t,e,r,i,o,n){let a=[[ye,1,1e3],[ye,5,5*1e3],[ye,15,15*1e3],[ye,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(c,h,f){let u=h<c;u&&([c,h]=[h,c]);let p=f&&typeof f.range=="function"?f:l(c,h,f),g=p?p.range(c,+h+1):[];return u?g.reverse():g}function l(c,h,f){let u=Math.abs(h-c)/f,p=fr(([,,b])=>b).right(a,u);if(p===a.length)return t.every(Vr(c/31536e6,h/31536e6,f));if(p===0)return Cr.every(Math.max(Vr(c,h,f),1));let[g,_]=a[u/a[p-1][2]<a[p][2]/u?p-1:p];return g.every(_)}return[s,l]}var[ky,Sy]=Ih(le,fn,Sr,hn,un,cn),[Os,Is]=Ih(Qt,ni,Oe,Ee,ri,ei);function Ds(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function to(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Rs(t){var e=t.dateTime,r=t.date,i=t.time,o=t.periods,n=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=eo(o),h=ro(o),f=eo(n),u=ro(n),p=eo(a),g=ro(a),_=eo(s),b=ro(s),A=eo(l),C=ro(l),M={a:$,A:R,b:V,B:Z,c:null,d:zh,e:zh,f:Vy,g:o_,G:a_,H:Yy,I:jy,j:Gy,L:Yh,m:Xy,M:Ky,p:ot,q:nt,Q:Uh,s:Hh,S:Zy,u:Qy,U:Jy,V:t_,w:e_,W:r_,x:null,X:null,y:i_,Y:n_,Z:s_,"%":Wh},S={a:dt,A:Ht,b:ft,B:Zt,c:null,d:qh,e:qh,f:h_,g:b_,G:v_,H:l_,I:c_,j:u_,L:Gh,m:f_,M:p_,p:Nt,q:ht,Q:Uh,s:Hh,S:d_,u:m_,U:g_,V:x_,w:y_,W:__,x:null,X:null,y:C_,Y:T_,Z:k_,"%":Wh},D={a:Q,A:N,b:B,B:x,c:y,d:Ph,e:Ph,f:qy,g:Rh,G:Nh,H:$h,I:$h,j:Ry,L:zy,m:Ny,M:Py,p:G,q:Dy,Q:Uy,s:Hy,S:$y,u:Ly,U:My,V:Ey,w:Fy,W:Oy,x:I,X:k,y:Rh,Y:Nh,Z:Iy,"%":Wy};M.x=T(r,M),M.X=T(i,M),M.c=T(e,M),S.x=T(r,S),S.X=T(i,S),S.c=T(e,S);function T(E,X){return function(K){var v=[],wt=-1,et=0,Rt=E.length,Pt,he,Eo;for(K instanceof Date||(K=new Date(+K));++wt<Rt;)E.charCodeAt(wt)===37&&(v.push(E.slice(et,wt)),(he=Dh[Pt=E.charAt(++wt)])!=null?Pt=E.charAt(++wt):he=Pt==="e"?" ":"0",(Eo=X[Pt])&&(Pt=Eo(K,he)),v.push(Pt),et=wt+1);return v.push(E.slice(et,wt)),v.join("")}}function O(E,X){return function(K){var v=to(1900,void 0,1),wt=F(v,E,K+="",0),et,Rt;if(wt!=K.length)return null;if("Q"in v)return new Date(v.Q);if("s"in v)return new Date(v.s*1e3+("L"in v?v.L:0));if(X&&!("Z"in v)&&(v.Z=0),"p"in v&&(v.H=v.H%12+v.p*12),v.m===void 0&&(v.m="q"in v?v.q:0),"V"in v){if(v.V<1||v.V>53)return null;"w"in v||(v.w=1),"Z"in v?(et=Ns(to(v.y,0,1)),Rt=et.getUTCDay(),et=Rt>4||Rt===0?oi.ceil(et):oi(et),et=Ji.offset(et,(v.V-1)*7),v.y=et.getUTCFullYear(),v.m=et.getUTCMonth(),v.d=et.getUTCDate()+(v.w+6)%7):(et=Ds(to(v.y,0,1)),Rt=et.getDay(),et=Rt>4||Rt===0?ii.ceil(et):ii(et),et=Ee.offset(et,(v.V-1)*7),v.y=et.getFullYear(),v.m=et.getMonth(),v.d=et.getDate()+(v.w+6)%7)}else("W"in v||"U"in v)&&("w"in v||(v.w="u"in v?v.u%7:"W"in v?1:0),Rt="Z"in v?Ns(to(v.y,0,1)).getUTCDay():Ds(to(v.y,0,1)).getDay(),v.m=0,v.d="W"in v?(v.w+6)%7+v.W*7-(Rt+5)%7:v.w+v.U*7-(Rt+6)%7);return"Z"in v?(v.H+=v.Z/100|0,v.M+=v.Z%100,Ns(v)):Ds(v)}}function F(E,X,K,v){for(var wt=0,et=X.length,Rt=K.length,Pt,he;wt<et;){if(v>=Rt)return-1;if(Pt=X.charCodeAt(wt++),Pt===37){if(Pt=X.charAt(wt++),he=D[Pt in Dh?X.charAt(wt++):Pt],!he||(v=he(E,K,v))<0)return-1}else if(Pt!=K.charCodeAt(v++))return-1}return v}function G(E,X,K){var v=c.exec(X.slice(K));return v?(E.p=h.get(v[0].toLowerCase()),K+v[0].length):-1}function Q(E,X,K){var v=p.exec(X.slice(K));return v?(E.w=g.get(v[0].toLowerCase()),K+v[0].length):-1}function N(E,X,K){var v=f.exec(X.slice(K));return v?(E.w=u.get(v[0].toLowerCase()),K+v[0].length):-1}function B(E,X,K){var v=A.exec(X.slice(K));return v?(E.m=C.get(v[0].toLowerCase()),K+v[0].length):-1}function x(E,X,K){var v=_.exec(X.slice(K));return v?(E.m=b.get(v[0].toLowerCase()),K+v[0].length):-1}function y(E,X,K){return F(E,e,X,K)}function I(E,X,K){return F(E,r,X,K)}function k(E,X,K){return F(E,i,X,K)}function $(E){return a[E.getDay()]}function R(E){return n[E.getDay()]}function V(E){return l[E.getMonth()]}function Z(E){return s[E.getMonth()]}function ot(E){return o[+(E.getHours()>=12)]}function nt(E){return 1+~~(E.getMonth()/3)}function dt(E){return a[E.getUTCDay()]}function Ht(E){return n[E.getUTCDay()]}function ft(E){return l[E.getUTCMonth()]}function Zt(E){return s[E.getUTCMonth()]}function Nt(E){return o[+(E.getUTCHours()>=12)]}function ht(E){return 1+~~(E.getUTCMonth()/3)}return{format:function(E){var X=T(E+="",M);return X.toString=function(){return E},X},parse:function(E){var X=O(E+="",!1);return X.toString=function(){return E},X},utcFormat:function(E){var X=T(E+="",S);return X.toString=function(){return E},X},utcParse:function(E){var X=O(E+="",!0);return X.toString=function(){return E},X}}}var Dh={"-":"",_:" ",0:"0"},kt=/^\s*\d+/,wy=/^%/,Ay=/[\\^$*+?|[\]().{}]/g;function it(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",n=o.length;return i+(n<r?new Array(r-n+1).join(e)+o:o)}function By(t){return t.replace(Ay,"\\$&")}function eo(t){return new RegExp("^(?:"+t.map(By).join("|")+")","i")}function ro(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Fy(t,e,r){var i=kt.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function Ly(t,e,r){var i=kt.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function My(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function Ey(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function Oy(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function Nh(t,e,r){var i=kt.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function Rh(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Iy(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Dy(t,e,r){var i=kt.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function Ny(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function Ph(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function Ry(t,e,r){var i=kt.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function $h(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Py(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function $y(t,e,r){var i=kt.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function zy(t,e,r){var i=kt.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function qy(t,e,r){var i=kt.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Wy(t,e,r){var i=wy.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function Uy(t,e,r){var i=kt.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function Hy(t,e,r){var i=kt.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function zh(t,e){return it(t.getDate(),e,2)}function Yy(t,e){return it(t.getHours(),e,2)}function jy(t,e){return it(t.getHours()%12||12,e,2)}function Gy(t,e){return it(1+Ee.count(Qt(t),t),e,3)}function Yh(t,e){return it(t.getMilliseconds(),e,3)}function Vy(t,e){return Yh(t,e)+"000"}function Xy(t,e){return it(t.getMonth()+1,e,2)}function Ky(t,e){return it(t.getMinutes(),e,2)}function Zy(t,e){return it(t.getSeconds(),e,2)}function Qy(t){var e=t.getDay();return e===0?7:e}function Jy(t,e){return it(Oe.count(Qt(t)-1,t),e,2)}function jh(t){var e=t.getDay();return e>=4||e===0?Ge(t):Ge.ceil(t)}function t_(t,e){return t=jh(t),it(Ge.count(Qt(t),t)+(Qt(t).getDay()===4),e,2)}function e_(t){return t.getDay()}function r_(t,e){return it(ii.count(Qt(t)-1,t),e,2)}function i_(t,e){return it(t.getFullYear()%100,e,2)}function o_(t,e){return t=jh(t),it(t.getFullYear()%100,e,2)}function n_(t,e){return it(t.getFullYear()%1e4,e,4)}function a_(t,e){var r=t.getDay();return t=r>=4||r===0?Ge(t):Ge.ceil(t),it(t.getFullYear()%1e4,e,4)}function s_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+it(e/60|0,"0",2)+it(e%60,"0",2)}function qh(t,e){return it(t.getUTCDate(),e,2)}function l_(t,e){return it(t.getUTCHours(),e,2)}function c_(t,e){return it(t.getUTCHours()%12||12,e,2)}function u_(t,e){return it(1+Ji.count(le(t),t),e,3)}function Gh(t,e){return it(t.getUTCMilliseconds(),e,3)}function h_(t,e){return Gh(t,e)+"000"}function f_(t,e){return it(t.getUTCMonth()+1,e,2)}function p_(t,e){return it(t.getUTCMinutes(),e,2)}function d_(t,e){return it(t.getUTCSeconds(),e,2)}function m_(t){var e=t.getUTCDay();return e===0?7:e}function g_(t,e){return it(Sr.count(le(t)-1,t),e,2)}function Vh(t){var e=t.getUTCDay();return e>=4||e===0?Ve(t):Ve.ceil(t)}function x_(t,e){return t=Vh(t),it(Ve.count(le(t),t)+(le(t).getUTCDay()===4),e,2)}function y_(t){return t.getUTCDay()}function __(t,e){return it(oi.count(le(t)-1,t),e,2)}function C_(t,e){return it(t.getUTCFullYear()%100,e,2)}function b_(t,e){return t=Vh(t),it(t.getUTCFullYear()%100,e,2)}function T_(t,e){return it(t.getUTCFullYear()%1e4,e,4)}function v_(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Ve(t):Ve.ceil(t),it(t.getUTCFullYear()%1e4,e,4)}function k_(){return"+0000"}function Wh(){return"%"}function Uh(t){return+t}function Hh(t){return Math.floor(+t/1e3)}var ai,pn,Xh,Kh,Zh;Ps({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 Ps(t){return ai=Rs(t),pn=ai.format,Xh=ai.parse,Kh=ai.utcFormat,Zh=ai.utcParse,ai}function $s(t,e){t=t.slice();var r=0,i=t.length-1,o=t[r],n=t[i],a;return n<o&&(a=r,r=i,i=a,a=o,o=n,n=a),t[r]=e.floor(o),t[i]=e.ceil(n),t}function S_(t){return new Date(t)}function w_(t){return t instanceof Date?+t:+new Date(+t)}function Qh(t,e,r,i,o,n,a,s,l,c){var h=Zi(),f=h.invert,u=h.domain,p=c(".%L"),g=c(":%S"),_=c("%I:%M"),b=c("%I %p"),A=c("%a %d"),C=c("%b %d"),M=c("%B"),S=c("%Y");function D(T){return(l(T)<T?p:s(T)<T?g:a(T)<T?_:n(T)<T?b:i(T)<T?o(T)<T?A:C:r(T)<T?M:S)(T)}return h.invert=function(T){return new Date(f(T))},h.domain=function(T){return arguments.length?u(Array.from(T,w_)):u().map(S_)},h.ticks=function(T){var O=u();return t(O[0],O[O.length-1],T==null?10:T)},h.tickFormat=function(T,O){return O==null?D:c(O)},h.nice=function(T){var O=u();return(!T||typeof T.range!="function")&&(T=e(O[0],O[O.length-1],T==null?10:T)),T?u($s(O,T)):h},h.copy=function(){return on(h,Qh(t,e,r,i,o,n,a,s,l,c))},h}function Jh(){return Ye.apply(Qh(Os,Is,Qt,ni,Oe,Ee,ri,ei,ye,pn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tf(t){for(var e=t.length/6|0,r=new Array(e),i=0;i<e;)r[i]="#"+t.slice(i*6,++i*6);return r}var A_=tf("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ut(t){return function(){return t}}var zs=Math.abs,Lt=Math.atan2,Xe=Math.cos,ef=Math.max,dn=Math.min,ce=Math.sin,wr=Math.sqrt,St=1e-12,si=Math.PI,io=si/2,li=2*si;function rf(t){return t>1?0:t<-1?si:Math.acos(t)}function qs(t){return t>=1?io:t<=-1?-io:Math.asin(t)}var Ws=Math.PI,Us=2*Ws,Ar=1e-6,B_=Us-Ar;function of(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function F_(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return of;let r=10**e;return function(i){this._+=i[0];for(let o=1,n=i.length;o<n;++o)this._+=Math.round(arguments[o]*r)/r+i[o]}}var Br=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?of:F_(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,o){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(e,r,i,o,n,a){this._append`C${+e},${+r},${+i},${+o},${this._x1=+n},${this._y1=+a}`}arcTo(e,r,i,o,n){if(e=+e,r=+r,i=+i,o=+o,n=+n,n<0)throw new Error(`negative radius: ${n}`);let a=this._x1,s=this._y1,l=i-e,c=o-r,h=a-e,f=s-r,u=h*h+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(u>Ar)if(!(Math.abs(f*l-c*h)>Ar)||!n)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,g=o-s,_=l*l+c*c,b=p*p+g*g,A=Math.sqrt(_),C=Math.sqrt(u),M=n*Math.tan((Ws-Math.acos((_+u-b)/(2*A*C)))/2),S=M/C,D=M/A;Math.abs(S-1)>Ar&&this._append`L${e+S*h},${r+S*f}`,this._append`A${n},${n},0,0,${+(f*p>h*g)},${this._x1=e+D*l},${this._y1=r+D*c}`}}arc(e,r,i,o,n,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(o),l=i*Math.sin(o),c=e+s,h=r+l,f=1^a,u=a?o-n:n-o;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Ar||Math.abs(this._y1-h)>Ar)&&this._append`L${c},${h}`,i&&(u<0&&(u=u%Us+Us),u>B_?this._append`A${i},${i},0,1,${f},${e-s},${r-l}A${i},${i},0,1,${f},${this._x1=c},${this._y1=h}`:u>Ar&&this._append`A${i},${i},0,${+(u>=Ws)},${f},${this._x1=e+i*Math.cos(n)},${this._y1=r+i*Math.sin(n)}`)}rect(e,r,i,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}};function nf(){return new Br}nf.prototype=Br.prototype;function mn(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Br(e)}function L_(t){return t.innerRadius}function M_(t){return t.outerRadius}function E_(t){return t.startAngle}function O_(t){return t.endAngle}function I_(t){return t&&t.padAngle}function D_(t,e,r,i,o,n,a,s){var l=r-t,c=i-e,h=a-o,f=s-n,u=f*l-h*c;if(!(u*u<St))return u=(h*(e-n)-f*(t-o))/u,[t+u*l,e+u*c]}function gn(t,e,r,i,o,n,a){var s=t-r,l=e-i,c=(a?n:-n)/wr(s*s+l*l),h=c*l,f=-c*s,u=t+h,p=e+f,g=r+h,_=i+f,b=(u+g)/2,A=(p+_)/2,C=g-u,M=_-p,S=C*C+M*M,D=o-n,T=u*_-g*p,O=(M<0?-1:1)*wr(ef(0,D*D*S-T*T)),F=(T*M-C*O)/S,G=(-T*C-M*O)/S,Q=(T*M+C*O)/S,N=(-T*C+M*O)/S,B=F-b,x=G-A,y=Q-b,I=N-A;return B*B+x*x>y*y+I*I&&(F=Q,G=N),{cx:F,cy:G,x01:-h,y01:-f,x11:F*(o/D-1),y11:G*(o/D-1)}}function N_(){var t=L_,e=M_,r=ut(0),i=null,o=E_,n=O_,a=I_,s=null,l=mn(c);function c(){var h,f,u=+t.apply(this,arguments),p=+e.apply(this,arguments),g=o.apply(this,arguments)-io,_=n.apply(this,arguments)-io,b=zs(_-g),A=_>g;if(s||(s=h=l()),p<u&&(f=p,p=u,u=f),!(p>St))s.moveTo(0,0);else if(b>li-St)s.moveTo(p*Xe(g),p*ce(g)),s.arc(0,0,p,g,_,!A),u>St&&(s.moveTo(u*Xe(_),u*ce(_)),s.arc(0,0,u,_,g,A));else{var C=g,M=_,S=g,D=_,T=b,O=b,F=a.apply(this,arguments)/2,G=F>St&&(i?+i.apply(this,arguments):wr(u*u+p*p)),Q=dn(zs(p-u)/2,+r.apply(this,arguments)),N=Q,B=Q,x,y;if(G>St){var I=qs(G/u*ce(F)),k=qs(G/p*ce(F));(T-=I*2)>St?(I*=A?1:-1,S+=I,D-=I):(T=0,S=D=(g+_)/2),(O-=k*2)>St?(k*=A?1:-1,C+=k,M-=k):(O=0,C=M=(g+_)/2)}var $=p*Xe(C),R=p*ce(C),V=u*Xe(D),Z=u*ce(D);if(Q>St){var ot=p*Xe(M),nt=p*ce(M),dt=u*Xe(S),Ht=u*ce(S),ft;if(b<si)if(ft=D_($,R,dt,Ht,ot,nt,V,Z)){var Zt=$-ft[0],Nt=R-ft[1],ht=ot-ft[0],E=nt-ft[1],X=1/ce(rf((Zt*ht+Nt*E)/(wr(Zt*Zt+Nt*Nt)*wr(ht*ht+E*E)))/2),K=wr(ft[0]*ft[0]+ft[1]*ft[1]);N=dn(Q,(u-K)/(X-1)),B=dn(Q,(p-K)/(X+1))}else N=B=0}O>St?B>St?(x=gn(dt,Ht,$,R,p,B,A),y=gn(ot,nt,V,Z,p,B,A),s.moveTo(x.cx+x.x01,x.cy+x.y01),B<Q?s.arc(x.cx,x.cy,B,Lt(x.y01,x.x01),Lt(y.y01,y.x01),!A):(s.arc(x.cx,x.cy,B,Lt(x.y01,x.x01),Lt(x.y11,x.x11),!A),s.arc(0,0,p,Lt(x.cy+x.y11,x.cx+x.x11),Lt(y.cy+y.y11,y.cx+y.x11),!A),s.arc(y.cx,y.cy,B,Lt(y.y11,y.x11),Lt(y.y01,y.x01),!A))):(s.moveTo($,R),s.arc(0,0,p,C,M,!A)):s.moveTo($,R),!(u>St)||!(T>St)?s.lineTo(V,Z):N>St?(x=gn(V,Z,ot,nt,u,-N,A),y=gn($,R,dt,Ht,u,-N,A),s.lineTo(x.cx+x.x01,x.cy+x.y01),N<Q?s.arc(x.cx,x.cy,N,Lt(x.y01,x.x01),Lt(y.y01,y.x01),!A):(s.arc(x.cx,x.cy,N,Lt(x.y01,x.x01),Lt(x.y11,x.x11),!A),s.arc(0,0,u,Lt(x.cy+x.y11,x.cx+x.x11),Lt(y.cy+y.y11,y.cx+y.x11),A),s.arc(y.cx,y.cy,N,Lt(y.y11,y.x11),Lt(y.y01,y.x01),!A))):s.arc(0,0,u,D,S,A)}if(s.closePath(),h)return s=null,h+""||null}return c.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+o.apply(this,arguments)+ +n.apply(this,arguments))/2-si/2;return[Xe(f)*h,ce(f)*h]},c.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:ut(+h),c):t},c.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:ut(+h),c):e},c.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:ut(+h),c):r},c.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:ut(+h),c):i},c.startAngle=function(h){return arguments.length?(o=typeof h=="function"?h:ut(+h),c):o},c.endAngle=function(h){return arguments.length?(n=typeof h=="function"?h:ut(+h),c):n},c.padAngle=function(h){return arguments.length?(a=typeof h=="function"?h:ut(+h),c):a},c.context=function(h){return arguments.length?(s=h==null?null:h,c):s},c}function af(t){this._context=t}af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function oo(t){return new af(t)}var D3=Array.prototype.slice;function xn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function sf(t){return t[0]}function lf(t){return t[1]}function R_(t,e){var r=ut(!0),i=null,o=oo,n=null,a=mn(s);t=typeof t=="function"?t:t===void 0?sf:ut(t),e=typeof e=="function"?e:e===void 0?lf:ut(e);function s(l){var c,h=(l=xn(l)).length,f,u=!1,p;for(i==null&&(n=o(p=a())),c=0;c<=h;++c)!(c<h&&r(f=l[c],c,l))===u&&((u=!u)?n.lineStart():n.lineEnd()),u&&n.point(+t(f,c,l),+e(f,c,l));if(p)return n=null,p+""||null}return s.x=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),s):t},s.y=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),s):e},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ut(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,i!=null&&(n=o(i)),s):o},s.context=function(l){return arguments.length?(l==null?i=n=null:n=o(i=l),s):i},s}function cf(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function uf(t){return t}function P_(){var t=uf,e=cf,r=null,i=ut(0),o=ut(li),n=ut(0);function a(s){var l,c=(s=xn(s)).length,h,f,u=0,p=new Array(c),g=new Array(c),_=+i.apply(this,arguments),b=Math.min(li,Math.max(-li,o.apply(this,arguments)-_)),A,C=Math.min(Math.abs(b)/c,n.apply(this,arguments)),M=C*(b<0?-1:1),S;for(l=0;l<c;++l)(S=g[p[l]=l]=+t(s[l],l,s))>0&&(u+=S);for(e!=null?p.sort(function(D,T){return e(g[D],g[T])}):r!=null&&p.sort(function(D,T){return r(s[D],s[T])}),l=0,f=u?(b-c*M)/u:0;l<c;++l,_=A)h=p[l],S=g[h],A=_+(S>0?S*f:0)+M,g[h]={data:s[h],index:l,value:S,startAngle:_,endAngle:A,padAngle:C};return g}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:ut(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,r=null,a):e},a.sort=function(s){return arguments.length?(r=s,e=null,a):r},a.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),a):i},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ut(+s),a):o},a.padAngle=function(s){return arguments.length?(n=typeof s=="function"?s:ut(+s),a):n},a}function ci(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)}function no(t){this._context=t}no.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ci(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ci(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hs(t){return new no(t)}var yn=class{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 Ys(t){return new yn(t,!0)}function js(t){return new yn(t,!1)}function te(){}function hf(t){this._context=t}hf.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ci(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Gs(t){return new hf(t)}function ff(t){this._context=t}ff.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ci(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Vs(t){return new ff(t)}function pf(t,e){this._basis=new no(t),this._beta=e}pf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],o=e[0],n=t[r]-i,a=e[r]-o,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+l*n),this._beta*e[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Xs=function t(e){function r(i){return e===1?new no(i):new pf(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function ui(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)}function _n(t,e){this._context=t,this._k=(1-e)/6}_n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ui(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ui(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}};var Ks=function t(e){function r(i){return new _n(i,e)}return r.tension=function(i){return t(+i)},r}(0);function Cn(t,e){this._context=t,this._k=(1-e)/6}Cn.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ui(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}};var Zs=function t(e){function r(i){return new Cn(i,e)}return r.tension=function(i){return t(+i)},r}(0);function bn(t,e){this._context=t,this._k=(1-e)/6}bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ui(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}};var Qs=function t(e){function r(i){return new bn(i,e)}return r.tension=function(i){return t(+i)},r}(0);function ao(t,e,r){var i=t._x1,o=t._y1,n=t._x2,a=t._y2;if(t._l01_a>St){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>St){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*c+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*c+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(i,o,n,a,t._x2,t._y2)}function df(t,e){this._context=t,this._alpha=e}df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:ao(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}};var Js=function t(e){function r(i){return e?new df(i,e):new _n(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function mf(t,e){this._context=t,this._alpha=e}mf.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:ao(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}};var tl=function t(e){function r(i){return e?new mf(i,e):new Cn(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function gf(t,e){this._context=t,this._alpha=e}gf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:ao(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}};var el=function t(e){function r(i){return e?new gf(i,e):new bn(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function xf(t){this._context=t}xf.prototype={areaStart:te,areaEnd:te,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function rl(t){return new xf(t)}function yf(t){return t<0?-1:1}function _f(t,e,r){var i=t._x1-t._x0,o=e-t._x1,n=(t._y1-t._y0)/(i||o<0&&-0),a=(r-t._y1)/(o||i<0&&-0),s=(n*o+a*i)/(i+o);return(yf(n)+yf(a))*Math.min(Math.abs(n),Math.abs(a),.5*Math.abs(s))||0}function Cf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function il(t,e,r){var i=t._x0,o=t._y0,n=t._x1,a=t._y1,s=(n-i)/3;t._context.bezierCurveTo(i+s,o+s*e,n-s,a-s*r,n,a)}function Tn(t){this._context=t}Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:il(this,this._t0,Cf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var 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,il(this,Cf(this,r=_f(this,t,e)),r);break;default:il(this,this._t0,r=_f(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function bf(t){this._context=new Tf(t)}(bf.prototype=Object.create(Tn.prototype)).point=function(t,e){Tn.prototype.point.call(this,e,t)};function Tf(t){this._context=t}Tf.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,o,n){this._context.bezierCurveTo(e,t,i,r,n,o)}};function ol(t){return new Tn(t)}function nl(t){return new bf(t)}function kf(t){this._context=t}kf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,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 i=vf(t),o=vf(e),n=0,a=1;a<r;++n,++a)this._context.bezierCurveTo(i[0][n],o[0][n],i[1][n],o[1][n],t[a],e[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function vf(t){var e,r=t.length-1,i,o=new Array(r),n=new Array(r),a=new Array(r);for(o[0]=0,n[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,n[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,n[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=o[e]/n[e-1],n[e]-=i,a[e]-=i*a[e-1];for(o[r-1]=a[r-1]/n[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/n[e];for(n[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)n[e]=2*t[e+1]-o[e+1];return[o,n]}function al(t){return new kf(t)}function vn(t,e){this._context=t,this._t=e}vn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var 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}};function sl(t){return new vn(t,.5)}function ll(t){return new vn(t,0)}function cl(t){return new vn(t,1)}var $_={value:()=>{}};function wf(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new kn(r)}function kn(t){this._=t}function z_(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}kn.prototype=wf.prototype={constructor:kn,on:function(t,e){var r=this._,i=z_(t+"",r),o,n=-1,a=i.length;if(arguments.length<2){for(;++n<a;)if((o=(t=i[n]).type)&&(o=q_(r[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++n<a;)if(o=(t=i[n]).type)r[o]=Sf(r[o],t.name,e);else if(e==null)for(o in r)r[o]=Sf(r[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new kn(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,n;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(n=this._[t],i=0,o=n.length;i<o;++i)n[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,n=i.length;o<n;++o)i[o].value.apply(e,r)}};function q_(t,e){for(var r=0,i=t.length,o;r<i;++r)if((o=t[r]).name===e)return o.value}function Sf(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=$_,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var ul=wf;var hi=0,lo=0,so=0,Bf=1e3,Sn,co,wn=0,Fr=0,An=0,uo=typeof performance=="object"&&performance.now?performance:Date,Ff=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fo(){return Fr||(Ff(W_),Fr=uo.now()+An)}function W_(){Fr=0}function ho(){this._call=this._time=this._next=null}ho.prototype=Bn.prototype={constructor:ho,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?fo():+r)+(e==null?0:+e),!this._next&&co!==this&&(co?co._next=this:Sn=this,co=this),this._call=t,this._time=r,hl()},stop:function(){this._call&&(this._call=null,this._time=1/0,hl())}};function Bn(t,e,r){var i=new ho;return i.restart(t,e,r),i}function Lf(){fo(),++hi;for(var t=Sn,e;t;)(e=Fr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--hi}function Af(){Fr=(wn=uo.now())+An,hi=lo=0;try{Lf()}finally{hi=0,H_(),Fr=0}}function U_(){var t=uo.now(),e=t-wn;e>Bf&&(An-=e,wn=t)}function H_(){for(var t,e=Sn,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Sn=r);co=t,hl(i)}function hl(t){if(!hi){lo&&(lo=clearTimeout(lo));var e=t-Fr;e>24?(t<1/0&&(lo=setTimeout(Af,t-uo.now()-An)),so&&(so=clearInterval(so))):(so||(wn=uo.now(),so=setInterval(U_,Bf)),hi=1,Ff(Af))}}function Fn(t,e,r){var i=new ho;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,r),i}var Y_=ul("start","end","cancel","interrupt"),j_=[],Of=0,Mf=1,Mn=2,Ln=3,Ef=4,En=5,po=6;function Ke(t,e,r,i,o,n){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;G_(t,r,{name:e,index:i,group:o,on:Y_,tween:j_,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Of})}function mo(t,e){var r=yt(t,e);if(r.state>Of)throw new Error("too late; already scheduled");return r}function Mt(t,e){var r=yt(t,e);if(r.state>Ln)throw new Error("too late; already running");return r}function yt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function G_(t,e,r){var i=t.__transition,o;i[e]=r,r.timer=Bn(n,0,r.time);function n(c){r.state=Mf,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,f,u,p;if(r.state!==Mf)return l();for(h in i)if(p=i[h],p.name===r.name){if(p.state===Ln)return Fn(a);p.state===Ef?(p.state=po,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[h]):+h<e&&(p.state=po,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[h])}if(Fn(function(){r.state===Ln&&(r.state=Ef,r.timer.restart(s,r.delay,r.time),s(c))}),r.state=Mn,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Mn){for(r.state=Ln,o=new Array(u=r.tween.length),h=0,f=-1;h<u;++h)(p=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(o[++f]=p);o.length=f+1}}function s(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=En,1),f=-1,u=o.length;++f<u;)o[f].call(t,h);r.state===En&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=po,r.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function On(t,e){var r=t.__transition,i,o,n=!0,a;if(r){e=e==null?null:e+"";for(a in r){if((i=r[a]).name!==e){n=!1;continue}o=i.state>Mn&&i.state<En,i.state=po,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[a]}n&&delete t.__transition}}function If(t){return this.each(function(){On(this,t)})}function V_(t,e){var r,i;return function(){var o=Mt(this,t),n=o.tween;if(n!==r){i=r=n;for(var a=0,s=i.length;a<s;++a)if(i[a].name===e){i=i.slice(),i.splice(a,1);break}}o.tween=i}}function X_(t,e,r){var i,o;if(typeof r!="function")throw new Error;return function(){var n=Mt(this,t),a=n.tween;if(a!==i){o=(i=a).slice();for(var s={name:e,value:r},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=s;break}l===c&&o.push(s)}n.tween=o}}function Df(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=yt(this.node(),r).tween,o=0,n=i.length,a;o<n;++o)if((a=i[o]).name===t)return a.value;return null}return this.each((e==null?V_:X_)(r,t,e))}function fi(t,e,r){var i=t._id;return t.each(function(){var o=Mt(this,i);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return yt(o,i).value[e]}}function In(t,e){var r;return(typeof e=="number"?Ft:e instanceof se?xr:(r=se(e))?(e=r,xr):Xi)(t,e)}function K_(t){return function(){this.removeAttribute(t)}}function Z_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Q_(t,e,r){var i,o=r+"",n;return function(){var a=this.getAttribute(t);return a===o?null:a===i?n:n=e(i=a,r)}}function J_(t,e,r){var i,o=r+"",n;return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?n:n=e(i=a,r)}}function tC(t,e,r){var i,o,n;return function(){var a,s=r(this),l;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=s+"",a===l?null:a===i&&l===o?n:(o=l,n=e(i=a,s)))}}function eC(t,e,r){var i,o,n;return function(){var a,s=r(this),l;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=s+"",a===l?null:a===i&&l===o?n:(o=l,n=e(i=a,s)))}}function Nf(t,e){var r=Be(t),i=r==="transform"?ms:In;return this.attrTween(t,typeof e=="function"?(r.local?eC:tC)(r,i,fi(this,"attr."+t,e)):e==null?(r.local?Z_:K_)(r):(r.local?J_:Q_)(r,i,e))}function rC(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function iC(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function oC(t,e){var r,i;function o(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&iC(t,n)),r}return o._value=e,o}function nC(t,e){var r,i;function o(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&rC(t,n)),r}return o._value=e,o}function Rf(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=Be(t);return this.tween(r,(i.local?oC:nC)(i,e))}function aC(t,e){return function(){mo(this,t).delay=+e.apply(this,arguments)}}function sC(t,e){return e=+e,function(){mo(this,t).delay=e}}function Pf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?aC:sC)(e,t)):yt(this.node(),e).delay}function lC(t,e){return function(){Mt(this,t).duration=+e.apply(this,arguments)}}function cC(t,e){return e=+e,function(){Mt(this,t).duration=e}}function $f(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?lC:cC)(e,t)):yt(this.node(),e).duration}function uC(t,e){if(typeof e!="function")throw new Error;return function(){Mt(this,t).ease=e}}function zf(t){var e=this._id;return arguments.length?this.each(uC(e,t)):yt(this.node(),e).ease}function hC(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Mt(this,t).ease=r}}function qf(t){if(typeof t!="function")throw new Error;return this.each(hC(this._id,t))}function Wf(t){typeof t!="function"&&(t=Ui(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var n=e[o],a=n.length,s=i[o]=[],l,c=0;c<a;++c)(l=n[c])&&t.call(l,l.__data__,c,n)&&s.push(l);return new qt(i,this._parents,this._name,this._id)}function Uf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,o=r.length,n=Math.min(i,o),a=new Array(i),s=0;s<n;++s)for(var l=e[s],c=r[s],h=l.length,f=a[s]=new Array(h),u,p=0;p<h;++p)(u=l[p]||c[p])&&(f[p]=u);for(;s<i;++s)a[s]=e[s];return new qt(a,this._parents,this._name,this._id)}function fC(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function pC(t,e,r){var i,o,n=fC(e)?mo:Mt;return function(){var a=n(this,t),s=a.on;s!==i&&(o=(i=s).copy()).on(e,r),a.on=o}}function Hf(t,e){var r=this._id;return arguments.length<2?yt(this.node(),r).on.on(t):this.each(pC(r,t,e))}function dC(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Yf(){return this.on("end.remove",dC(this._id))}function jf(t){var e=this._name,r=this._id;typeof t!="function"&&(t=pr(t));for(var i=this._groups,o=i.length,n=new Array(o),a=0;a<o;++a)for(var s=i[a],l=s.length,c=n[a]=new Array(l),h,f,u=0;u<l;++u)(h=s[u])&&(f=t.call(h,h.__data__,u,s))&&("__data__"in h&&(f.__data__=h.__data__),c[u]=f,Ke(c[u],e,r,u,c,yt(h,r)));return new qt(n,this._parents,e,r)}function Gf(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Wi(t));for(var i=this._groups,o=i.length,n=[],a=[],s=0;s<o;++s)for(var l=i[s],c=l.length,h,f=0;f<c;++f)if(h=l[f]){for(var u=t.call(h,h.__data__,f,l),p,g=yt(h,r),_=0,b=u.length;_<b;++_)(p=u[_])&&Ke(p,e,r,_,u,g);n.push(u),a.push(h)}return new qt(n,a,e,r)}var mC=Fe.prototype.constructor;function Vf(){return new mC(this._groups,this._parents)}function gC(t,e){var r,i,o;return function(){var n=Ue(this,t),a=(this.style.removeProperty(t),Ue(this,t));return n===a?null:n===r&&a===i?o:o=e(r=n,i=a)}}function Xf(t){return function(){this.style.removeProperty(t)}}function xC(t,e,r){var i,o=r+"",n;return function(){var a=Ue(this,t);return a===o?null:a===i?n:n=e(i=a,r)}}function yC(t,e,r){var i,o,n;return function(){var a=Ue(this,t),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(t),Ue(this,t))),a===l?null:a===i&&l===o?n:(o=l,n=e(i=a,s))}}function _C(t,e){var r,i,o,n="style."+e,a="end."+n,s;return function(){var l=Mt(this,t),c=l.on,h=l.value[n]==null?s||(s=Xf(e)):void 0;(c!==r||o!==h)&&(i=(r=c).copy()).on(a,o=h),l.on=i}}function Kf(t,e,r){var i=(t+="")=="transform"?ds:In;return e==null?this.styleTween(t,gC(t,i)).on("end.style."+t,Xf(t)):typeof e=="function"?this.styleTween(t,yC(t,i,fi(this,"style."+t,e))).each(_C(this._id,t)):this.styleTween(t,xC(t,i,e),r).on("end.style."+t,null)}function CC(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function bC(t,e,r){var i,o;function n(){var a=e.apply(this,arguments);return a!==o&&(i=(o=a)&&CC(t,a,r)),i}return n._value=e,n}function Zf(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,bC(t,e,r==null?"":r))}function TC(t){return function(){this.textContent=t}}function vC(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Qf(t){return this.tween("text",typeof t=="function"?vC(fi(this,"text",t)):TC(t==null?"":t+""))}function kC(t){return function(e){this.textContent=t.call(this,e)}}function SC(t){var e,r;function i(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&kC(o)),e}return i._value=t,i}function Jf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,SC(t))}function tp(){for(var t=this._name,e=this._id,r=Dn(),i=this._groups,o=i.length,n=0;n<o;++n)for(var a=i[n],s=a.length,l,c=0;c<s;++c)if(l=a[c]){var h=yt(l,e);Ke(l,t,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new qt(i,this._parents,t,r)}function ep(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(n,a){var s={value:a},l={value:function(){--o===0&&n()}};r.each(function(){var c=Mt(this,i),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),c.on=e}),o===0&&n()})}var wC=0;function qt(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function rp(t){return Fe().transition(t)}function Dn(){return++wC}var Ie=Fe.prototype;qt.prototype=rp.prototype={constructor:qt,select:jf,selectAll:Gf,selectChild:Ie.selectChild,selectChildren:Ie.selectChildren,filter:Wf,merge:Uf,selection:Vf,transition:tp,call:Ie.call,nodes:Ie.nodes,node:Ie.node,size:Ie.size,empty:Ie.empty,each:Ie.each,on:Hf,attr:Nf,attrTween:Rf,style:Kf,styleTween:Zf,text:Qf,textTween:Jf,remove:Yf,tween:Df,delay:Pf,duration:$f,ease:zf,easeVarying:qf,end:ep,[Symbol.iterator]:Ie[Symbol.iterator]};function Nn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var AC={time:null,delay:0,duration:250,ease:Nn};function BC(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function ip(t){var e,r;t instanceof qt?(e=t._id,t=t._name):(e=Dn(),(r=AC).time=fo(),t=t==null?null:t+"");for(var i=this._groups,o=i.length,n=0;n<o;++n)for(var a=i[n],s=a.length,l,c=0;c<s;++c)(l=a[c])&&Ke(l,t,e,c,a,r||BC(l,e));return new qt(i,this._parents,t,e)}Fe.prototype.interrupt=If;Fe.prototype.transition=ip;var{abs:o4,max:n4,min:a4}=Math;function op(t){return[+t[0],+t[1]]}function FC(t){return[op(t[0]),op(t[1])]}var s4={name:"x",handles:["w","e"].map(fl),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},l4={name:"y",handles:["n","s"].map(fl),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},c4={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(fl),input:function(t){return t==null?null:FC(t)},output:function(t){return t}};function fl(t){return{type:t}}function LC(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function np(t,e){return fetch(t,e).then(LC)}function pl(t){return(e,r)=>np(e,r).then(i=>new DOMParser().parseFromString(i,t))}var MC=pl("application/xml"),EC=pl("text/html"),OC=pl("image/svg+xml");function Ze(t,e,r){this.k=t,this.x=e,this.y=r}Ze.prototype={constructor:Ze,scale:function(t){return t===1?this:new Ze(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ze(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dl=new Ze(1,0,0);ml.prototype=Ze.prototype;function ml(t){for(;!t.__zoom;)if(!(t=t.parentNode))return dl;return t.__zoom}var Rn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let o=r<.5?r*(1+e):r+e-r*e,n=2*r-o;switch(i){case"r":return Rn.hue2rgb(n,o,t+.3333333333333333)*255;case"g":return Rn.hue2rgb(n,o,t)*255;case"b":return Rn.hue2rgb(n,o,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;let o=Math.max(t,e,r),n=Math.min(t,e,r),a=(o+n)/2;if(i==="l")return a*100;if(o===n)return 0;let s=o-n,l=a>.5?s/(2-o-n):s/(o+n);if(i==="s")return l*100;switch(o){case t:return((e-r)/s+(e<r?6:0))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return-1}}},sp=Rn;var IC={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},lp=IC;var DC={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},cp=DC;var NC={channel:sp,lang:lp,unit:cp},q=NC;var De={};for(let t=0;t<=255;t++)De[t]=q.unit.dec2hex(t);var _t={ALL:0,RGB:1,HSL:2};var yl=class{constructor(){this.type=_t.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=_t.ALL}is(e){return this.type===e}},up=yl;var _l=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new up}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=_t.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:o}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:o}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(_t.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(_t.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(_t.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(_t.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(_t.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(_t.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(_t.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(_t.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(_t.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(_t.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(_t.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(_t.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},hp=_l;var RC=new hp({r:0,g:0,b:0,a:0},"transparent"),Qe=RC;var fp={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(fp.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,n=o%4===0,a=o>4,s=a?1:17,l=a?8:4,c=n?0:-1,h=a?255:15;return Qe.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:n?(i&h)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${De[Math.round(e)]}${De[Math.round(r)]}${De[Math.round(i)]}${De[Math.round(o*255)]}`:`#${De[Math.round(e)]}${De[Math.round(r)]}${De[Math.round(i)]}`}},Lr=fp;var Pn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(Pn.hueRe);if(e){let[,r,i]=e;switch(i){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))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Pn.re);if(!r)return;let[,i,o,n,a,s]=r;return Qe.set({h:Pn._hue2deg(i),s:q.channel.clamp.s(parseFloat(o)),l:q.channel.clamp.l(parseFloat(n)),a:a?q.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(i)}%, ${o})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(i)}%)`}},go=Pn;var $n={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=$n.colors[t];if(e)return Lr.parse(e)},stringify:t=>{let e=Lr.stringify(t);for(let r in $n.colors)if($n.colors[r]===e)return r}},Cl=$n;var pp={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(pp.re);if(!r)return;let[,i,o,n,a,s,l,c,h]=r;return Qe.set({r:q.channel.clamp.r(o?parseFloat(i)*2.55:parseFloat(i)),g:q.channel.clamp.g(a?parseFloat(n)*2.55:parseFloat(n)),b:q.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(i)}, ${q.lang.round(o)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(i)})`}},xo=pp;var PC={format:{keyword:Cl,hex:Lr,rgb:xo,rgba:xo,hsl:go,hsla:go},parse:t=>{if(typeof t!="string")return t;let e=Lr.parse(t)||xo.parse(t)||go.parse(t)||Cl.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(_t.HSL)||t.data.r===void 0?go.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?xo.stringify(t):Lr.stringify(t)},Ct=PC;var $C=(t,e)=>{let r=Ct.parse(t);for(let i in e)r[i]=q.channel.clamp[i](e[i]);return Ct.stringify(r)},zn=$C;var zC=(t,e,r=0,i=1)=>{if(typeof t!="number")return zn(t,{a:e});let o=Qe.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(i)});return Ct.stringify(o)},Je=zC;var qC=(t,e)=>q.lang.round(Ct.parse(t)[e]),WC=qC;var UC=t=>{let{r:e,g:r,b:i}=Ct.parse(t),o=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(i);return q.lang.round(o)},dp=UC;var HC=t=>dp(t)>=.5,mp=HC;var YC=t=>!mp(t),Mr=YC;var jC=(t,e,r)=>{let i=Ct.parse(t),o=i[e],n=q.channel.clamp[e](o+r);return o!==n&&(i[e]=n),Ct.stringify(i)},qn=jC;var GC=(t,e)=>qn(t,"l",e),z=GC;var VC=(t,e)=>qn(t,"l",-e),Y=VC;var XC=(t,e)=>{let r=Ct.parse(t),i={};for(let o in e)e[o]&&(i[o]=r[o]+e[o]);return zn(t,i)},m=XC;var KC=(t,e,r=50)=>{let{r:i,g:o,b:n,a}=Ct.parse(t),{r:s,g:l,b:c,a:h}=Ct.parse(e),f=r/100,u=f*2-1,p=a-h,_=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,b=1-_,A=i*_+s*b,C=o*_+l*b,M=n*_+c*b,S=a*f+h*(1-f);return Je(A,C,M,S)},gp=KC;var ZC=(t,e=100)=>{let r=Ct.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,gp(r,t,e)},L=ZC;var QC=typeof global=="object"&&global&&global.Object===Object&&global,Wn=QC;var JC=typeof self=="object"&&self&&self.Object===Object&&self,t1=Wn||JC||Function("return this")(),mt=t1;var e1=mt.Symbol,pi=e1;var xp=Object.prototype,r1=xp.hasOwnProperty,i1=xp.toString,yo=pi?pi.toStringTag:void 0;function o1(t){var e=r1.call(t,yo),r=t[yo];try{t[yo]=void 0;var i=!0}catch(n){}var o=i1.call(t);return i&&(e?t[yo]=r:delete t[yo]),o}var yp=o1;var n1=Object.prototype,a1=n1.toString;function s1(t){return a1.call(t)}var _p=s1;var l1="[object Null]",c1="[object Undefined]",Cp=pi?pi.toStringTag:void 0;function u1(t){return t==null?t===void 0?c1:l1:Cp&&Cp in Object(t)?yp(t):_p(t)}var ue=u1;function h1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Gt=h1;var f1="[object AsyncFunction]",p1="[object Function]",d1="[object GeneratorFunction]",m1="[object Proxy]";function g1(t){if(!Gt(t))return!1;var e=ue(t);return e==p1||e==d1||e==f1||e==m1}var di=g1;var x1=mt["__core-js_shared__"],Un=x1;var bp=function(){var t=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function y1(t){return!!bp&&bp in t}var Tp=y1;var _1=Function.prototype,C1=_1.toString;function b1(t){if(t!=null){try{return C1.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Ne=b1;var T1=/[\\^$.*+?()[\]{}|]/g,v1=/^\[object .+?Constructor\]$/,k1=Function.prototype,S1=Object.prototype,w1=k1.toString,A1=S1.hasOwnProperty,B1=RegExp("^"+w1.call(A1).replace(T1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F1(t){if(!Gt(t)||Tp(t))return!1;var e=di(t)?B1:v1;return e.test(Ne(t))}var vp=F1;function L1(t,e){return t==null?void 0:t[e]}var kp=L1;function M1(t,e){var r=kp(t,e);return vp(r)?r:void 0}var Vt=M1;var E1=Vt(Object,"create"),Re=E1;function O1(){this.__data__=Re?Re(null):{},this.size=0}var Sp=O1;function I1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var wp=I1;var D1="__lodash_hash_undefined__",N1=Object.prototype,R1=N1.hasOwnProperty;function P1(t){var e=this.__data__;if(Re){var r=e[t];return r===D1?void 0:r}return R1.call(e,t)?e[t]:void 0}var Ap=P1;var $1=Object.prototype,z1=$1.hasOwnProperty;function q1(t){var e=this.__data__;return Re?e[t]!==void 0:z1.call(e,t)}var Bp=q1;var W1="__lodash_hash_undefined__";function U1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Re&&e===void 0?W1:e,this}var Fp=U1;function mi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}mi.prototype.clear=Sp;mi.prototype.delete=wp;mi.prototype.get=Ap;mi.prototype.has=Bp;mi.prototype.set=Fp;var bl=mi;function H1(){this.__data__=[],this.size=0}var Lp=H1;function Y1(t,e){return t===e||t!==t&&e!==e}var tr=Y1;function j1(t,e){for(var r=t.length;r--;)if(tr(t[r][0],e))return r;return-1}var er=j1;var G1=Array.prototype,V1=G1.splice;function X1(t){var e=this.__data__,r=er(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():V1.call(e,r,1),--this.size,!0}var Mp=X1;function K1(t){var e=this.__data__,r=er(e,t);return r<0?void 0:e[r][1]}var Ep=K1;function Z1(t){return er(this.__data__,t)>-1}var Op=Z1;function Q1(t,e){var r=this.__data__,i=er(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var Ip=Q1;function gi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}gi.prototype.clear=Lp;gi.prototype.delete=Mp;gi.prototype.get=Ep;gi.prototype.has=Op;gi.prototype.set=Ip;var rr=gi;var J1=Vt(mt,"Map"),ir=J1;function tb(){this.size=0,this.__data__={hash:new bl,map:new(ir||rr),string:new bl}}var Dp=tb;function eb(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Np=eb;function rb(t,e){var r=t.__data__;return Np(e)?r[typeof e=="string"?"string":"hash"]:r.map}var or=rb;function ib(t){var e=or(this,t).delete(t);return this.size-=e?1:0,e}var Rp=ib;function ob(t){return or(this,t).get(t)}var Pp=ob;function nb(t){return or(this,t).has(t)}var $p=nb;function ab(t,e){var r=or(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}var zp=ab;function xi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}xi.prototype.clear=Dp;xi.prototype.delete=Rp;xi.prototype.get=Pp;xi.prototype.has=$p;xi.prototype.set=zp;var _o=xi;var sb="Expected a function";function Tl(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(sb);var r=function(){var i=arguments,o=e?e.apply(this,i):i[0],n=r.cache;if(n.has(o))return n.get(o);var a=t.apply(this,i);return r.cache=n.set(o,a)||n,a};return r.cache=new(Tl.Cache||_o),r}Tl.Cache=_o;var Hn=Tl;function lb(){this.__data__=new rr,this.size=0}var qp=lb;function cb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Wp=cb;function ub(t){return this.__data__.get(t)}var Up=ub;function hb(t){return this.__data__.has(t)}var Hp=hb;var fb=200;function pb(t,e){var r=this.__data__;if(r instanceof rr){var i=r.__data__;if(!ir||i.length<fb-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new _o(i)}return r.set(t,e),this.size=r.size,this}var Yp=pb;function yi(t){var e=this.__data__=new rr(t);this.size=e.size}yi.prototype.clear=qp;yi.prototype.delete=Wp;yi.prototype.get=Up;yi.prototype.has=Hp;yi.prototype.set=Yp;var jp=yi;var db=function(){try{var t=Vt(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),_i=db;function mb(t,e,r){e=="__proto__"&&_i?_i(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Ci=mb;function gb(t,e,r){(r!==void 0&&!tr(t[e],r)||r===void 0&&!(e in t))&&Ci(t,e,r)}var Co=gb;function xb(t){return function(e,r,i){for(var o=-1,n=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++o];if(r(n[l],l,n)===!1)break}return e}}var Gp=xb;var yb=Gp(),Vp=yb;var Qp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xp=Qp&&typeof module=="object"&&module&&!module.nodeType&&module,_b=Xp&&Xp.exports===Qp,Kp=_b?mt.Buffer:void 0,Zp=Kp?Kp.allocUnsafe:void 0;function Cb(t,e){if(e)return t.slice();var r=t.length,i=Zp?Zp(r):new t.constructor(r);return t.copy(i),i}var Jp=Cb;var bb=mt.Uint8Array,vl=bb;function Tb(t){var e=new t.constructor(t.byteLength);return new vl(e).set(new vl(t)),e}var td=Tb;function vb(t,e){var r=e?td(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var ed=vb;function kb(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var rd=kb;var id=Object.create,Sb=function(){function t(){}return function(e){if(!Gt(e))return{};if(id)return id(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),od=Sb;function wb(t,e){return function(r){return t(e(r))}}var Yn=wb;var Ab=Yn(Object.getPrototypeOf,Object),jn=Ab;var Bb=Object.prototype;function Fb(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Bb;return t===r}var nr=Fb;function Lb(t){return typeof t.constructor=="function"&&!nr(t)?od(jn(t)):{}}var nd=Lb;function Mb(t){return t!=null&&typeof t=="object"}var Ce=Mb;var Eb="[object Arguments]";function Ob(t){return Ce(t)&&ue(t)==Eb}var kl=Ob;var ad=Object.prototype,Ib=ad.hasOwnProperty,Db=ad.propertyIsEnumerable,Nb=kl(function(){return arguments}())?kl:function(t){return Ce(t)&&Ib.call(t,"callee")&&!Db.call(t,"callee")},Er=Nb;var Rb=Array.isArray,Or=Rb;var Pb=9007199254740991;function $b(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Pb}var Gn=$b;function zb(t){return t!=null&&Gn(t.length)&&!di(t)}var ar=zb;function qb(t){return Ce(t)&&ar(t)}var sd=qb;function Wb(){return!1}var ld=Wb;var hd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cd=hd&&typeof module=="object"&&module&&!module.nodeType&&module,Ub=cd&&cd.exports===hd,ud=Ub?mt.Buffer:void 0,Hb=ud?ud.isBuffer:void 0,Yb=Hb||ld,bi=Yb;var jb="[object Object]",Gb=Function.prototype,Vb=Object.prototype,fd=Gb.toString,Xb=Vb.hasOwnProperty,Kb=fd.call(Object);function Zb(t){if(!Ce(t)||ue(t)!=jb)return!1;var e=jn(t);if(e===null)return!0;var r=Xb.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&fd.call(r)==Kb}var pd=Zb;var Qb="[object Arguments]",Jb="[object Array]",tT="[object Boolean]",eT="[object Date]",rT="[object Error]",iT="[object Function]",oT="[object Map]",nT="[object Number]",aT="[object Object]",sT="[object RegExp]",lT="[object Set]",cT="[object String]",uT="[object WeakMap]",hT="[object ArrayBuffer]",fT="[object DataView]",pT="[object Float32Array]",dT="[object Float64Array]",mT="[object Int8Array]",gT="[object Int16Array]",xT="[object Int32Array]",yT="[object Uint8Array]",_T="[object Uint8ClampedArray]",CT="[object Uint16Array]",bT="[object Uint32Array]",ct={};ct[pT]=ct[dT]=ct[mT]=ct[gT]=ct[xT]=ct[yT]=ct[_T]=ct[CT]=ct[bT]=!0;ct[Qb]=ct[Jb]=ct[hT]=ct[tT]=ct[fT]=ct[eT]=ct[rT]=ct[iT]=ct[oT]=ct[nT]=ct[aT]=ct[sT]=ct[lT]=ct[cT]=ct[uT]=!1;function TT(t){return Ce(t)&&Gn(t.length)&&!!ct[ue(t)]}var dd=TT;function vT(t){return function(e){return t(e)}}var md=vT;var gd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bo=gd&&typeof module=="object"&&module&&!module.nodeType&&module,kT=bo&&bo.exports===gd,Sl=kT&&Wn.process,ST=function(){try{var t=bo&&bo.require&&bo.require("util").types;return t||Sl&&Sl.binding&&Sl.binding("util")}catch(e){}}(),wl=ST;var xd=wl&&wl.isTypedArray,wT=xd?md(xd):dd,Ti=wT;function AT(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var To=AT;var BT=Object.prototype,FT=BT.hasOwnProperty;function LT(t,e,r){var i=t[e];(!(FT.call(t,e)&&tr(i,r))||r===void 0&&!(e in t))&&Ci(t,e,r)}var yd=LT;function MT(t,e,r,i){var o=!r;r||(r={});for(var n=-1,a=e.length;++n<a;){var s=e[n],l=i?i(r[s],t[s],s,r,t):void 0;l===void 0&&(l=t[s]),o?Ci(r,s,l):yd(r,s,l)}return r}var _d=MT;function ET(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var Cd=ET;var OT=9007199254740991,IT=/^(?:0|[1-9]\d*)$/;function DT(t,e){var r=typeof t;return e=e==null?OT:e,!!e&&(r=="number"||r!="symbol"&&IT.test(t))&&t>-1&&t%1==0&&t<e}var Vn=DT;var NT=Object.prototype,RT=NT.hasOwnProperty;function PT(t,e){var r=Or(t),i=!r&&Er(t),o=!r&&!i&&bi(t),n=!r&&!i&&!o&&Ti(t),a=r||i||o||n,s=a?Cd(t.length,String):[],l=s.length;for(var c in t)(e||RT.call(t,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vn(c,l)))&&s.push(c);return s}var bd=PT;function $T(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Td=$T;var zT=Object.prototype,qT=zT.hasOwnProperty;function WT(t){if(!Gt(t))return Td(t);var e=nr(t),r=[];for(var i in t)i=="constructor"&&(e||!qT.call(t,i))||r.push(i);return r}var vd=WT;function UT(t){return ar(t)?bd(t,!0):vd(t)}var Xn=UT;function HT(t){return _d(t,Xn(t))}var kd=HT;function YT(t,e,r,i,o,n,a){var s=To(t,r),l=To(e,r),c=a.get(l);if(c){Co(t,r,c);return}var h=n?n(s,l,r+"",t,e,a):void 0,f=h===void 0;if(f){var u=Or(l),p=!u&&bi(l),g=!u&&!p&&Ti(l);h=l,u||p||g?Or(s)?h=s:sd(s)?h=rd(s):p?(f=!1,h=Jp(l,!0)):g?(f=!1,h=ed(l,!0)):h=[]:pd(l)||Er(l)?(h=s,Er(s)?h=kd(s):(!Gt(s)||di(s))&&(h=nd(l))):f=!1}f&&(a.set(l,h),o(h,l,i,n,a),a.delete(l)),Co(t,r,h)}var Sd=YT;function wd(t,e,r,i,o){t!==e&&Vp(e,function(n,a){if(o||(o=new jp),Gt(n))Sd(t,e,a,r,wd,i,o);else{var s=i?i(To(t,a),n,a+"",t,e,o):void 0;s===void 0&&(s=n),Co(t,a,s)}},Xn)}var Ad=wd;function jT(t){return t}var Kn=jT;function GT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Bd=GT;var Fd=Math.max;function VT(t,e,r){return e=Fd(e===void 0?t.length-1:e,0),function(){for(var i=arguments,o=-1,n=Fd(i.length-e,0),a=Array(n);++o<n;)a[o]=i[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=i[o];return s[e]=r(a),Bd(t,this,s)}}var Ld=VT;function XT(t){return function(){return t}}var Md=XT;var KT=_i?function(t,e){return _i(t,"toString",{configurable:!0,enumerable:!1,value:Md(e),writable:!0})}:Kn,Ed=KT;var ZT=800,QT=16,JT=Date.now;function tv(t){var e=0,r=0;return function(){var i=JT(),o=QT-(i-r);if(r=i,o>0){if(++e>=ZT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Od=tv;var ev=Od(Ed),Id=ev;function rv(t,e){return Id(Ld(t,e,Kn),t+"")}var Dd=rv;function iv(t,e,r){if(!Gt(r))return!1;var i=typeof e;return(i=="number"?ar(r)&&Vn(e,r.length):i=="string"&&e in r)?tr(r[e],t):!1}var Nd=iv;function ov(t){return Dd(function(e,r){var i=-1,o=r.length,n=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(o--,n):void 0,a&&Nd(r[0],r[1],a)&&(n=o<3?void 0:n,o=1),e=Object(e);++i<o;){var s=r[i];s&&t(e,s,i,n)}return e})}var Rd=ov;var nv=Rd(function(t,e,r){Ad(t,e,r)}),Pd=nv;var av=Yn(Object.keys,Object),$d=av;var sv=Object.prototype,lv=sv.hasOwnProperty;function cv(t){if(!nr(t))return $d(t);var e=[];for(var r in Object(t))lv.call(t,r)&&r!="constructor"&&e.push(r);return e}var zd=cv;var uv=Vt(mt,"DataView"),Zn=uv;var hv=Vt(mt,"Promise"),Qn=hv;var fv=Vt(mt,"Set"),Jn=fv;var pv=Vt(mt,"WeakMap"),ta=pv;var qd="[object Map]",dv="[object Object]",Wd="[object Promise]",Ud="[object Set]",Hd="[object WeakMap]",Yd="[object DataView]",mv=Ne(Zn),gv=Ne(ir),xv=Ne(Qn),yv=Ne(Jn),_v=Ne(ta),Ir=ue;(Zn&&Ir(new Zn(new ArrayBuffer(1)))!=Yd||ir&&Ir(new ir)!=qd||Qn&&Ir(Qn.resolve())!=Wd||Jn&&Ir(new Jn)!=Ud||ta&&Ir(new ta)!=Hd)&&(Ir=function(t){var e=ue(t),r=e==dv?t.constructor:void 0,i=r?Ne(r):"";if(i)switch(i){case mv:return Yd;case gv:return qd;case xv:return Wd;case yv:return Ud;case _v:return Hd}return e});var jd=Ir;var Cv="[object Map]",bv="[object Set]",Tv=Object.prototype,vv=Tv.hasOwnProperty;function kv(t){if(t==null)return!0;if(ar(t)&&(Or(t)||typeof t=="string"||typeof t.splice=="function"||bi(t)||Ti(t)||Er(t)))return!t.length;var e=jd(t);if(e==Cv||e==bv)return!t.size;if(nr(t))return!zd(t).length;for(var r in t)if(vv.call(t,r))return!1;return!0}var ea=kv;var Lm=ja(Ec(),1),Mm=ja(Ic(),1);var Pr=ja(ap(),1);var ra="comm",ia="rule",oa="decl";var Gd="@import";var Vd="@keyframes";var Xd="@layer";var Al=Math.abs,vo=String.fromCharCode;function na(t){return t.trim()}function ko(t,e,r){return t.replace(e,r)}function Kd(t,e,r){return t.indexOf(e,r)}function Dr(t,e){return t.charCodeAt(e)|0}function sr(t,e,r){return t.slice(e,r)}function Jt(t){return t.length}function Zd(t){return t.length}function vi(t,e){return e.push(t),t}var aa=1,ki=1,Qd=0,ee=0,gt=0,wi="";function sa(t,e,r,i,o,n,a,s){return{value:t,root:e,parent:r,type:i,props:o,children:n,line:aa,column:ki,length:a,return:"",siblings:s}}function Jd(){return gt}function tm(){return gt=ee>0?Dr(wi,--ee):0,ki--,gt===10&&(ki=1,aa--),gt}function re(){return gt=ee<Qd?Dr(wi,ee++):0,ki++,gt===10&&(ki=1,aa++),gt}function Pe(){return Dr(wi,ee)}function So(){return ee}function la(t,e){return sr(wi,t,e)}function Si(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function em(t){return aa=ki=1,Qd=Jt(wi=t),ee=0,[]}function rm(t){return wi="",t}function ca(t){return na(la(ee-1,Bl(t===91?t+2:t===40?t+1:t)))}function im(t){for(;(gt=Pe())&><33;)re();return Si(t)>2||Si(gt)>3?"":" "}function om(t,e){for(;--e&&re()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return la(t,So()+(e<6&&Pe()==32&&re()==32))}function Bl(t){for(;re();)switch(gt){case t:return ee;case 34:case 39:t!==34&&t!==39&&Bl(gt);break;case 40:t===41&&Bl(t);break;case 92:re();break}return ee}function nm(t,e){for(;re()&&t+gt!==57;)if(t+gt===84&&Pe()===47)break;return"/*"+la(e,ee-1)+"*"+vo(t===47?t:re())}function am(t){for(;!Si(Pe());)re();return la(t,ee)}function cm(t){return rm(ua("",null,null,null,[""],t=em(t),0,[0],t))}function ua(t,e,r,i,o,n,a,s,l){for(var c=0,h=0,f=a,u=0,p=0,g=0,_=1,b=1,A=1,C=0,M="",S=o,D=n,T=i,O=M;b;)switch(g=C,C=re()){case 40:if(g!=108&&Dr(O,f-1)==58){Kd(O+=ko(ca(C),"&","&\f"),"&\f",Al(c?s[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:O+=ca(C);break;case 9:case 10:case 13:case 32:O+=im(g);break;case 92:O+=om(So()-1,7);continue;case 47:switch(Pe()){case 42:case 47:vi(Sv(nm(re(),So()),e,r,l),l),(Si(g||1)==5||Si(Pe()||1)==5)&&Jt(O)&&sr(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*_:s[c++]=Jt(O)*A;case 125*_:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+h:A==-1&&(O=ko(O,/\f/g,"")),p>0&&(Jt(O)-f||_===0&&g===47)&&vi(p>32?lm(O+";",i,r,f-1,l):lm(ko(O," ","")+";",i,r,f-2,l),l);break;case 59:O+=";";default:if(vi(T=sm(O,e,r,c,h,o,s,M,S=[],D=[],f,n),n),C===123)if(h===0)ua(O,e,T,T,S,n,f,s,D);else switch(u===99&&Dr(O,3)===110?100:u){case 100:case 108:case 109:case 115:ua(t,T,T,i&&vi(sm(t,T,T,0,0,o,s,M,o,S=[],f,D),D),o,D,f,s,i?S:D);break;default:ua(O,T,T,T,[""],D,0,s,D)}}c=h=p=0,_=A=1,M=O="",f=a;break;case 58:f=1+Jt(O),p=g;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&tm()==125)continue}switch(O+=vo(C),C*_){case 38:A=h>0?1:(O+="\f",-1);break;case 44:s[c++]=(Jt(O)-1)*A,A=1;break;case 64:Pe()===45&&(O+=ca(re())),u=Pe(),h=f=Jt(M=O+=am(So())),C++;break;case 45:g===45&&Jt(O)==2&&(_=0)}}return n}function sm(t,e,r,i,o,n,a,s,l,c,h,f){for(var u=o-1,p=o===0?n:[""],g=Zd(p),_=0,b=0,A=0;_<i;++_)for(var C=0,M=sr(t,u+1,u=Al(b=a[_])),S=t;C<g;++C)(S=na(b>0?p[C]+" "+M:ko(M,/&\f/g,p[C])))&&(l[A++]=S);return sa(t,e,r,o===0?ia:s,l,c,h,f)}function Sv(t,e,r,i){return sa(t,e,r,ra,vo(Jd()),sr(t,2,-2),0,i)}function lm(t,e,r,i,o){return sa(t,e,r,oa,sr(t,0,i),sr(t,i+1,-1),i,o)}function ha(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function um(t,e,r,i){switch(t.type){case Xd:if(t.children.length)break;case Gd:case oa:return t.return=t.return||t.value;case ra:return"";case Vd:return t.return=t.value+"{"+ha(t.children,i)+"}";case ia:if(!Jt(t.value=t.props.join(",")))return""}return Jt(r=ha(t.children,i))?t.return=t.value+"{"+r+"}":""}var $e={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},j={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},zl=function(t="fatal"){let e=$e.fatal;typeof t=="string"?(t=t.toLowerCase(),t in $e&&(e=$e[t])):typeof t=="number"&&(e=t),j.trace=()=>{},j.debug=()=>{},j.info=()=>{},j.warn=()=>{},j.error=()=>{},j.fatal=()=>{},e<=$e.fatal&&(j.fatal=console.error?console.error.bind(console,ie("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ie("FATAL"))),e<=$e.error&&(j.error=console.error?console.error.bind(console,ie("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ie("ERROR"))),e<=$e.warn&&(j.warn=console.warn?console.warn.bind(console,ie("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ie("WARN"))),e<=$e.info&&(j.info=console.info?console.info.bind(console,ie("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ie("INFO"))),e<=$e.debug&&(j.debug=console.debug?console.debug.bind(console,ie("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ie("DEBUG"))),e<=$e.trace&&(j.trace=console.debug?console.debug.bind(console,ie("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ie("TRACE")))},ie=t=>`%c${(0,Lm.default)().format("ss.SSS")} : ${t} : `,Mo=/<br\s*\/?>/gi,wv=t=>t?Om(t).replace(/\\n/g,"#br#").split("#br#"):[""],Av=(()=>{let t=!1;return()=>{t||(Bv(),t=!0)}})();function Bv(){let t="data-temp-href-target";Pr.default.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Pr.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var Em=t=>(Av(),Pr.default.sanitize(t)),hm=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){let i=e.securityLevel;i==="antiscript"||i==="strict"?t=Em(t):i!=="loose"&&(t=Om(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Ev(t))}return t},Fo=(t,e)=>t&&(e.dompurifyConfig?t=Pr.default.sanitize(hm(t,e),e.dompurifyConfig).toString():t=Pr.default.sanitize(hm(t,e),{FORBID_TAGS:["style"]}).toString(),t),Fv=(t,e)=>typeof t=="string"?Fo(t,e):t.flat().map(r=>Fo(r,e)),Lv=t=>Mo.test(t),Mv=t=>t.split(Mo),Ev=t=>t.replace(/#br#/g,"<br/>"),Om=t=>t.replace(Mo,"#br#"),Ov=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},Im=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Iv=function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},Dv=function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},yq=function(t){let e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let o=e[i];if(o===","&&i>0&&i+1<e.length){let n=e[i-1],a=e[i+1];Nv(n,a)&&(o=n+","+a,i++,r.pop())}r.push(Rv(o))}return r.join("")},Ol=(t,e)=>Math.max(0,t.split(e).length-1),Nv=(t,e)=>{let r=Ol(t,"~"),i=Ol(e,"~");return r===1&&i===1},Rv=t=>{let e=Ol(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],o=i.indexOf("~"),n=i.lastIndexOf("~");for(;o!==-1&&n!==-1&&o!==n;)i[o]="<",i[n]=">",o=i.indexOf("~"),n=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},fm=()=>window.MathMLElement!==void 0,Il=/\$\$(.*)\$\$/g,pm=t=>{var r;var e;return((r=(e=t.match(Il))==null?void 0:e.length)!=null?r:0)>0},_q=async(t,e)=>{t=await Pv(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";let i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},Pv=async(t,e)=>{if(!pm(t))return t;if(!fm()&&!e.legacyMathML)return t.replace(Il,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-O5XEC4PO.js");return t.split(Mo).map(i=>pm(i)?`
|
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
${i}
|
|
</div>
|
|
`:`<div>${i}</div>`).join("").replace(Il,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:fm()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},ql={getRows:wv,sanitizeText:Fo,sanitizeTextOrArray:Fv,hasBreaks:Lv,splitBreaks:Mv,lineBreakRegex:Mo,removeScript:Em,getUrl:Ov,evaluate:Im,getMax:Iv,getMin:Dv},Ut=(t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),Sa="#ffffff",wa="#f2f2f2",$v=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(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?Y(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Y(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(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||z(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Y(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Y(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||L(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||z(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||Y(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;let u=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||m(this.mainBkg,{h:180,s:-15,l:u*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||m(this.mainBkg,{h:180,s:-15,l:u*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||m(this.primaryColor,{h:64}),this.fillType3=this.fillType3||m(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||m(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||m(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||m(this.primaryColor,{h:128}),this.fillType7=this.fillType7||m(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||m(this.primaryColor,{l:-10}),this.pie5=this.pie5||m(this.secondaryColor,{l:-10}),this.pie6=this.pie6||m(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||m(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mr(this.quadrant1Fill)?z(this.quadrant1Fill):Y(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Y(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=Y(this.git0,25),this.git1=Y(this.git1,25),this.git2=Y(this.git2,25),this.git3=Y(this.git3,25),this.git4=Y(this.git4,25),this.git5=Y(this.git5,25),this.git6=Y(this.git6,25),this.git7=Y(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||wa}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},zv=t=>{let e=new $v;return e.calculate(t),e},qv=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=z(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=Ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=z(L("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Je(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=Y("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Y(this.sectionBkgColor,10),this.taskBorderColor=Je(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Je(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;this.secondBkg=z(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=z(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=z(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||L(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||z(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||m(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||m(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mr(this.quadrant1Fill)?z(this.quadrant1Fill):Y(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Y(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.secondaryColor,20),this.git1=z(this.pie2||this.secondaryColor,20),this.git2=z(this.pie3||this.tertiaryColor,20),this.git3=z(this.pie4||m(this.primaryColor,{h:-30}),20),this.git4=z(this.pie5||m(this.primaryColor,{h:-60}),20),this.git5=z(this.pie6||m(this.primaryColor,{h:-90}),10),this.git6=z(this.pie7||m(this.primaryColor,{h:60}),10),this.git7=z(this.pie8||m(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||z(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||z(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Wv=t=>{let e=new qv;return e.calculate(t),e},Uv=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=m(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Je(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Y(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Y(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=Y(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||Y(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||m(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||m(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||m(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||L(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||L(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||m(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||m(this.primaryColor,{l:-10}),this.pie5=this.pie5||m(this.secondaryColor,{l:-30}),this.pie6=this.pie6||m(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||m(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mr(this.quadrant1Fill)?z(this.quadrant1Fill):Y(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=Y(this.git0,25),this.git1=Y(this.git1,25),this.git2=Y(this.git2,25),this.git3=Y(this.git3,25),this.git4=Y(this.git4,25),this.git5=Y(this.git5,25),this.git6=Y(this.git6,25),this.git7=Y(this.git7,25)),this.gitInv0=this.gitInv0||Y(L(this.git0),25),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||wa}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Hv=t=>{let e=new Uv;return e.calculate(t),e},Yv=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=z("#cde498",10),this.primaryBorderColor=Ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;this.actorBorder=Y(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Y(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Y(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=Y(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||Y(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||m(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||m(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||m(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||m(this.primaryColor,{l:-30}),this.pie5=this.pie5||m(this.secondaryColor,{l:-30}),this.pie6=this.pie6||m(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||m(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||m(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||m(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||m(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||m(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||m(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mr(this.quadrant1Fill)?z(this.quadrant1Fill):Y(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||m(this.primaryColor,{h:-30}),this.git4=this.git4||m(this.primaryColor,{h:-60}),this.git5=this.git5||m(this.primaryColor,{h:-90}),this.git6=this.git6||m(this.primaryColor,{h:60}),this.git7=this.git7||m(this.primaryColor,{h:120}),this.darkMode?(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)):(this.git0=Y(this.git0,25),this.git1=Y(this.git1,25),this.git2=Y(this.git2,25),this.git3=Y(this.git3,25),this.git4=Y(this.git4,25),this.git5=Y(this.git5,25),this.git6=Y(this.git6,25),this.git7=Y(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||wa}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},jv=t=>{let e=new Yv;return e.calculate(t),e},Dl=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=z(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;this.secondBkg=z(this.contrast,55),this.border2=this.contrast,this.actorBorder=z(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||L(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||z(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||Y(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||m(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||m(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=z(this.contrast,30),this.sectionBkgColor2=z(this.contrast,30),this.taskBorderColor=Y(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=z(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Y(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||m(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||m(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||m(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||m(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||m(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||m(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mr(this.quadrant1Fill)?z(this.quadrant1Fill):Y(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Y(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||m(this.primaryColor,{h:-30}),this.git4=this.pie5||m(this.primaryColor,{h:-60}),this.git5=this.pie6||m(this.primaryColor,{h:-90}),this.git6=this.pie7||m(this.primaryColor,{h:60}),this.git7=this.pie8||m(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Sa,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||wa}calculate(e){if(typeof e!="object"){this.updateColors();return}let r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Gv=t=>{let e=new Dl;return e.calculate(t),e},We={base:{getThemeVariables:zv},dark:{getThemeVariables:Wv},default:{getThemeVariables:Hv},forest:{getThemeVariables:jv},neutral:{getThemeVariables:Gv}},ze={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Dm=ne(oe({},ze),{deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:We.default.getThemeVariables(),sequence:ne(oe({},ze.sequence),{messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}}),gantt:ne(oe({},ze.gantt),{tickInterval:void 0,useWidth:void 0}),c4:ne(oe({},ze.c4),{useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}}),pie:ne(oe({},ze.pie),{useWidth:984}),xyChart:ne(oe({},ze.xyChart),{useWidth:void 0}),requirement:ne(oe({},ze.requirement),{useWidth:void 0}),gitGraph:ne(oe({},ze.gitGraph),{useMaxWidth:!1}),sankey:ne(oe({},ze.sankey),{useMaxWidth:!1})}),Nm=(t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...Nm(t[i],"")]:[...r,e+i],[]),Vv=new Set(Nm(Dm,"")),Xv=Dm,da=t=>{if(j.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>da(e));return}for(let e of Object.keys(t)){if(j.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Vv.has(e)||t[e]==null){j.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){j.debug("sanitizing object",e),da(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(j.debug("sanitizing css option",e),t[e]=Kv(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}j.debug("After sanitization",t)}},Kv=t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},Rm=new RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),wo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Zv=/\s*%%.*\n/gm,ma=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},Fi={},Aa=function(t,e){t=t.replace(Rm,"").replace(wo,"").replace(Zv,`
|
|
`);for(let[r,{detector:i}]of Object.entries(Fi))if(i(t,e))return r;throw new ma(`No diagram type detected matching given configuration for text: ${t}`)},Pm=(...t)=>{for(let{id:e,detector:r,loader:i}of t)$m(e,r,i)},$m=(t,e,r)=>{Fi[t]?j.error(`Detector with key ${t} already exists`):Fi[t]={detector:e,loader:r},j.debug(`Detector with key ${t} added${r?" with loader":""}`)},Qv=t=>Fi[t].loader,Nl=(t,e,{depth:r=2,clobber:i=!1}={})=>{let o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>Nl(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),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(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Nl(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},It=Nl,Jv="\u200B",tk={curveBasis:Hs,curveBasisClosed:Gs,curveBasisOpen:Vs,curveBumpX:Ys,curveBumpY:js,curveBundle:Xs,curveCardinalClosed:Zs,curveCardinalOpen:Qs,curveCardinal:Ks,curveCatmullRomClosed:tl,curveCatmullRomOpen:el,curveCatmullRom:Js,curveLinear:oo,curveLinearClosed:rl,curveMonotoneX:ol,curveMonotoneY:nl,curveNatural:al,curveStep:sl,curveStepAfter:cl,curveStepBefore:ll},ek=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,rk=function(t,e){let r=zm(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(s=>s.args);da(a),i=It(i,[...a])}else i=r.args;if(!i)return;let o=Aa(t,e),n="config";return i[n]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[n],delete i[n]),i},zm=function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${ek.source})(?=[}][%]{2}).*
|
|
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),j.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,o=[];for(;(i=wo.exec(t))!==null;)if(i.index===wo.lastIndex&&wo.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let n=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:n,args:a})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(r){return j.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},ik=function(t){return t.replace(wo,"")},ok=function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1};function nk(t,e){var i;if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return(i=tk[r])!=null?i:e}function ak(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Mm.sanitizeUrl)(r):r}var sk=(t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],n=window;for(let a=0;a<i;a++)if(n=n[r[a]],!n){j.error(`Function name: ${t} not found in window`);return}n[o](...e)};function qm(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function lk(t){let e,r=0;t.forEach(o=>{r+=qm(o,e),e=o});let i=r/2;return Wl(t,i)}function ck(t){return t.length===1?t[0]:lk(t)}var dm=(t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Wl=(t,e)=>{let r,i=e;for(let o of t){if(r){let n=qm(o,r);if(n<i)i-=n;else{let a=i/n;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:dm((1-a)*r.x+a*o.x,5),y:dm((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},uk=(t,e,r)=>{j.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let o=Wl(e,25),n=t?10:5,a=Math.atan2(e[0].y-o.y,e[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*n+(e[0].x+o.x)/2,s.y=-Math.cos(a)*n+(e[0].y+o.y)/2,s};function hk(t,e,r){let i=structuredClone(r);j.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let o=25+t,n=Wl(i,o),a=10+t*.5,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+n.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+n.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2),l}function fk(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}var mm=0,pk=()=>(mm++,"id-"+Math.random().toString(36).substr(2,12)+"-"+mm);function dk(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;o<t;o++)e+=r.charAt(Math.floor(Math.random()*i));return e}var mk=t=>dk(t.length),gk=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},xk=function(t,e){let r=e.text.replace(ql.lineBreakRegex," "),[,i]=Hl(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(r),o},yk=Hn((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),ql.lineBreakRegex.test(t)))return t;let i=t.split(" "),o=[],n="";return i.forEach((a,s)=>{let l=ga(`${a} `,r),c=ga(n,r);if(l>e){let{hyphenatedStrings:u,remainingWord:p}=_k(a,e,"-",r);o.push(n,...u),n=p}else c+l>=e?(o.push(n),n=a):n=[n,a].filter(Boolean).join(" ");s+1===i.length&&o.push(n)}),o.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),_k=Hn((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],n=[],a="";return o.forEach((s,l)=>{let c=`${a}${s}`;if(ga(c,i)>=e){let f=l+1,u=o.length===f,p=`${c}${r}`;n.push(u?c:p),a=""}else a=c}),{hyphenatedStrings:n,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Ck(t,e){return Ul(t,e).height}function ga(t,e){return Ul(t,e).width}var Ul=Hn((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,n]=Hl(r),a=["sans-serif",i],s=t.split(ql.lineBreakRegex),l=[],c=jt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let h=c.append("svg");for(let u of a){let p=0,g={width:0,height:0,lineHeight:0};for(let _ of s){let b=gk();b.text=_||Jv;let A=xk(h,b).style("font-size",n).style("font-weight",o).style("font-family",u),C=(A._groups||A)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,C.width)),p=Math.round(C.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}h.remove();let f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Rl=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},fa,bk=function(t){return fa=fa||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),fa.innerHTML=t,unescape(fa.textContent)};function Wm(t){return"str"in t}var Tk=(t,e,r,i)=>{var o;if(!i)return;let n=(o=t.node())==null?void 0:o.getBBox();n&&t.append("text").text(i).attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},Hl=t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t!=null?t:"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Um(t,e){return Pd({},t,e)}var Ao={assignWithDepth:It,wrapLabel:yk,calculateTextHeight:Ck,calculateTextWidth:ga,calculateTextDimensions:Ul,cleanAndMerge:Um,detectInit:rk,detectDirective:zm,isSubstringInArray:ok,interpolateToCurve:nk,calcLabelPosition:ck,calcCardinalityPosition:uk,calcTerminalLabelPosition:hk,formatUrl:ak,getStylesFromArray:fk,generateId:pk,random:mk,runFunc:sk,entityDecode:bk,insertTitle:Tk,parseFontSize:Hl,InitIDGenerator:Rl},vk=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},kk=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},gm="10.9.2",Li=Object.freeze(Xv),Xt=It({},Li),Hm,Mi=[],Bo=It({},Li),Ba=(t,e)=>{let r=It({},t),i={};for(let o of e)Gm(o),i=It(i,o);if(r=It(r,i),i.theme&&i.theme in We){let o=It({},Hm),n=It(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in We&&(r.themeVariables=We[r.theme].getThemeVariables(n))}return Bo=r,Vm(Bo),Bo},Sk=t=>(Xt=It({},Li),Xt=It(Xt,t),t.theme&&We[t.theme]&&(Xt.themeVariables=We[t.theme].getThemeVariables(t.themeVariables)),Ba(Xt,Mi),Xt),wk=t=>{Hm=It({},t)},Ak=t=>(Xt=It(Xt,t),Ba(Xt,Mi),Xt),Ym=()=>It({},Xt),jm=t=>(Vm(t),It(Bo,t),Te()),Te=()=>It({},Bo),Gm=t=>{var e;t&&(["secure",...(e=Xt.secure)!=null?e:[]].forEach(r=>{Object.hasOwn(t,r)&&(j.debug(`Denied attempt to modify a secure key ${r}`,t[r]),delete t[r])}),Object.keys(t).forEach(r=>{r.startsWith("__")&&delete t[r]}),Object.keys(t).forEach(r=>{typeof t[r]=="string"&&(t[r].includes("<")||t[r].includes(">")||t[r].includes("url(data:"))&&delete t[r],typeof t[r]=="object"&&Gm(t[r])}))},Bk=t=>{da(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Mi.push(t),Ba(Xt,Mi)},xa=(t=Xt)=>{Mi=[],Ba(t,Mi)},Fk={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},xm={},Lk=t=>{xm[t]||(j.warn(Fk[t]),xm[t]=!0)},Vm=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Lk("LAZY_LOAD_DEPRECATED")},Xm="c4",Mk=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Ek=async()=>{let{diagram:t}=await import("./c4Diagram-dc8f04df-L67JJICA.js");return{id:Xm,diagram:t}},Ok={id:Xm,detector:Mk,loader:Ek},Ik=Ok,Km="flowchart",Dk=(t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Nk=async()=>{let{diagram:t}=await import("./flowDiagram-622f9fc1-VS7T2KRG.js");return{id:Km,diagram:t}},Rk={id:Km,detector:Dk,loader:Nk},Pk=Rk,Zm="flowchart-v2",$k=(t,e)=>{var r,i,o;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((o=e==null?void 0:e.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},zk=async()=>{let{diagram:t}=await import("./flowDiagram-v2-a33b4996-DMRI3LLG.js");return{id:Zm,diagram:t}},qk={id:Zm,detector:$k,loader:zk},Wk=qk,Qm="er",Uk=t=>/^\s*erDiagram/.test(t),Hk=async()=>{let{diagram:t}=await import("./erDiagram-51d2b61e-GRVRNW76.js");return{id:Qm,diagram:t}},Yk={id:Qm,detector:Uk,loader:Hk},jk=Yk,Jm="gitGraph",Gk=t=>/^\s*gitGraph/.test(t),Vk=async()=>{let{diagram:t}=await import("./gitGraphDiagram-23af1bdb-Z42G555J.js");return{id:Jm,diagram:t}},Xk={id:Jm,detector:Gk,loader:Vk},Kk=Xk,tg="gantt",Zk=t=>/^\s*gantt/.test(t),Qk=async()=>{let{diagram:t}=await import("./ganttDiagram-a649f789-NFUMVQ5E.js");return{id:tg,diagram:t}},Jk={id:tg,detector:Zk,loader:Qk},tS=Jk,eg="info",eS=t=>/^\s*info/.test(t),rS=async()=>{let{diagram:t}=await import("./infoDiagram-f86e0131-JD3GU5YJ.js");return{id:eg,diagram:t}},iS={id:eg,detector:eS,loader:rS},rg="pie",oS=t=>/^\s*pie/.test(t),nS=async()=>{let{diagram:t}=await import("./pieDiagram-31d824a1-3P7AWVSW.js");return{id:rg,diagram:t}},aS={id:rg,detector:oS,loader:nS},ig="quadrantChart",sS=t=>/^\s*quadrantChart/.test(t),lS=async()=>{let{diagram:t}=await import("./quadrantDiagram-a712a7d9-7QTXEVT3.js");return{id:ig,diagram:t}},cS={id:ig,detector:sS,loader:lS},uS=cS,og="xychart",hS=t=>/^\s*xychart-beta/.test(t),fS=async()=>{let{diagram:t}=await import("./xychartDiagram-4a8b8217-FZ2GVIA7.js");return{id:og,diagram:t}},pS={id:og,detector:hS,loader:fS},dS=pS,ng="requirement",mS=t=>/^\s*requirement(Diagram)?/.test(t),gS=async()=>{let{diagram:t}=await import("./requirementDiagram-eb878fee-LK3OR6RV.js");return{id:ng,diagram:t}},xS={id:ng,detector:mS,loader:gS},yS=xS,ag="sequence",_S=t=>/^\s*sequenceDiagram/.test(t),CS=async()=>{let{diagram:t}=await import("./sequenceDiagram-66748113-F74MRCTF.js");return{id:ag,diagram:t}},bS={id:ag,detector:_S,loader:CS},TS=bS,sg="class",vS=(t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},kS=async()=>{let{diagram:t}=await import("./classDiagram-8298e144-77Q7BHTY.js");return{id:sg,diagram:t}},SS={id:sg,detector:vS,loader:kS},wS=SS,lg="classDiagram",AS=(t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},BS=async()=>{let{diagram:t}=await import("./classDiagram-v2-296fb1cd-HOOZWI4M.js");return{id:lg,diagram:t}},FS={id:lg,detector:AS,loader:BS},LS=FS,cg="state",MS=(t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},ES=async()=>{let{diagram:t}=await import("./stateDiagram-35d39939-H4GPRSVB.js");return{id:cg,diagram:t}},OS={id:cg,detector:MS,loader:ES},IS=OS,ug="stateDiagram",DS=(t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},NS=async()=>{let{diagram:t}=await import("./stateDiagram-v2-6c43c13a-NLE3ZNWJ.js");return{id:ug,diagram:t}},RS={id:ug,detector:DS,loader:NS},PS=RS,hg="journey",$S=t=>/^\s*journey/.test(t),zS=async()=>{let{diagram:t}=await import("./journeyDiagram-de0d04b7-24RYFAN3.js");return{id:hg,diagram:t}},qS={id:hg,detector:$S,loader:zS},WS=qS,US=function(t,e){for(let r of e)t.attr(r[0],r[1])},HS=function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},fg=function(t,e,r,i){let o=HS(e,r,i);US(t,o)},YS=function(t,e,r,i){let o=e.node().getBBox(),n=o.width,a=o.height;j.info(`SVG bounds: ${n}x${a}`,o);let s=0,l=0;j.info(`Graph bounds: ${s}x${l}`,t),s=n+r*2,l=a+r*2,j.info(`Calculated bounds: ${s}x${l}`),fg(e,l,s,i);let c=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",c)},pa={},jS=(t,e,r)=>{let i="";return t in pa&&pa[t]?i=pa[t](r):j.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: 2px;
|
|
}
|
|
& .edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
& .edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
|
|
& .edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
& .marker {
|
|
fill: ${r.lineColor};
|
|
stroke: ${r.lineColor};
|
|
}
|
|
& .marker.cross {
|
|
stroke: ${r.lineColor};
|
|
}
|
|
|
|
& svg {
|
|
font-family: ${r.fontFamily};
|
|
font-size: ${r.fontSize};
|
|
}
|
|
|
|
${i}
|
|
|
|
${e}
|
|
`},GS=(t,e)=>{e!==void 0&&(pa[t]=e)},VS=jS,Yl="",jl="",Gl="",Vl=t=>Fo(t,Te()),XS=()=>{Yl="",Gl="",jl=""},KS=t=>{Yl=Vl(t).replace(/^\s+/g,"")},ZS=()=>Yl,QS=t=>{Gl=Vl(t).replace(/\n\s+/g,`
|
|
`)},JS=()=>Gl,tw=t=>{jl=Vl(t)},ew=()=>jl,rw=Object.freeze(Object.defineProperty({__proto__:null,clear:XS,getAccDescription:JS,getAccTitle:ZS,getDiagramTitle:ew,setAccDescription:QS,setAccTitle:KS,setDiagramTitle:tw},Symbol.toStringTag,{value:"Module"})),iw=j,ow=zl,Xl=Te,kq=jm,Sq=Li,nw=t=>Fo(t,Xl()),aw=YS,sw=()=>rw,ya={},_a=(t,e,r)=>{var i;if(ya[t])throw new Error(`Diagram ${t} already registered.`);ya[t]=e,r&&$m(t,r),GS(t,e.styles),(i=e.injectUtils)==null||i.call(e,iw,ow,Xl,nw,aw,sw(),()=>{})},Kl=t=>{if(t in ya)return ya[t];throw new Pl(t)},Pl=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},lw=t=>{var n;var e;let{securityLevel:r}=Xl(),i=jt("body");if(r==="sandbox"){let s=(n=(e=jt(`#i${t}`).node())==null?void 0:e.contentDocument)!=null?n:document;i=jt(s.body)}return i.select(`#${t}`)},cw=(t,e,r)=>{j.debug(`rendering svg for syntax error
|
|
`);let i=lw(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),fg(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},pg={draw:cw},uw=pg,hw={db:{},renderer:pg,parser:{parser:{yy:{}},parse:()=>{}}},fw=hw,dg="flowchart-elk",pw=(t,e)=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk")},dw=async()=>{let{diagram:t}=await import("./flowchart-elk-definition-930acc39-3DIHT7HV.js");return{id:dg,diagram:t}},mw={id:dg,detector:pw,loader:dw},gw=mw,mg="timeline",xw=t=>/^\s*timeline/.test(t),yw=async()=>{let{diagram:t}=await import("./timeline-definition-6eaa3543-J2LR2J43.js");return{id:mg,diagram:t}},_w={id:mg,detector:xw,loader:yw},Cw=_w,gg="mindmap",bw=t=>/^\s*mindmap/.test(t),Tw=async()=>{let{diagram:t}=await import("./mindmap-definition-b08d3ac4-SL7A5WBA.js");return{id:gg,diagram:t}},vw={id:gg,detector:bw,loader:Tw},kw=vw,xg="sankey",Sw=t=>/^\s*sankey-beta/.test(t),ww=async()=>{let{diagram:t}=await import("./sankeyDiagram-c599f8ec-FQ2PM7D7.js");return{id:xg,diagram:t}},Aw={id:xg,detector:Sw,loader:ww},Bw=Aw,yg="block",Fw=t=>/^\s*block-beta/.test(t),Lw=async()=>{let{diagram:t}=await import("./blockDiagram-a8a0820c-7RR4EQ6Y.js");return{id:yg,diagram:t}},Mw={id:yg,detector:Fw,loader:Lw},Ew=Mw,ym=!1,Zl=()=>{ym||(ym=!0,_a("error",fw,t=>t.toLowerCase().trim()==="error"),_a("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Pm(Ik,LS,wS,jk,tS,iS,aS,yS,TS,gw,Wk,Pk,kw,Cw,Kk,PS,IS,WS,uS,Bw,dS,Ew))},Ca=class{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text=vk(e),this.text+=`
|
|
`;let i=Te();try{this.type=Aa(e,i)}catch(n){this.type="error",this.detectError=n}let o=Kl(this.type);j.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,r,i,o,n;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e);let a=Te();(i=this.init)==null||i.call(this,a),this.metadata.title&&((n=(o=this.db).setDiagramTitle)==null||n.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},Ow=async(t,e={})=>{let r=Aa(t,Te());try{Kl(r)}catch(i){let o=Qv(r);if(!o)throw new ma(`Diagram ${r} not found.`);let{id:n,diagram:a}=await o();_a(n,a)}return new Ca(t,e)},_m=[],Iw=()=>{_m.forEach(t=>{t()}),_m=[]},Dw="graphics-document document";function Nw(t,e){t.attr("role",Dw),e!==""&&t.attr("aria-roledescription",e)}function Rw(t,e,r,i){if(t.insert!==void 0){if(r){let o=`chart-desc-${i}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(r)}if(e){let o=`chart-title-${i}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}var Pw=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function _g(t){return typeof t=="undefined"||t===null}function $w(t){return typeof t=="object"&&t!==null}function zw(t){return Array.isArray(t)?t:_g(t)?[]:[t]}function qw(t,e){var r,i,o,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)o=n[r],t[o]=e[o];return t}function Ww(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Uw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Hw=_g,Yw=$w,jw=zw,Gw=Ww,Vw=Uw,Xw=qw,Wt={isNothing:Hw,isObject:Yw,toArray:jw,repeat:Gw,isNegativeZero:Vw,extend:Xw};function Cg(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
|
|
`+t.mark.snippet),i+" "+r):i}function Lo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Cg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Lo.prototype=Object.create(Error.prototype);Lo.prototype.constructor=Lo;Lo.prototype.toString=function(e){return this.name+": "+Cg(this,e)};var qe=Lo;function Fl(t,e,r,i,o){var n="",a="",s=Math.floor(o/2)-1;return i-e>s&&(n=" ... ",e=i-s+n.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+n.length}}function Ll(t,e){return Wt.repeat(" ",e-t.length)+t}function Kw(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],n,a=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",l,c,h=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=Fl(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),f),s=Wt.repeat(" ",e.indent)+Ll((t.line-l+1).toString(),h)+" | "+c.str+`
|
|
`+s;for(c=Fl(t.buffer,i[a],o[a],t.position,f),s+=Wt.repeat(" ",e.indent)+Ll((t.line+1).toString(),h)+" | "+c.str+`
|
|
`,s+=Wt.repeat("-",e.indent+h+3+c.pos)+`^
|
|
`,l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)c=Fl(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),f),s+=Wt.repeat(" ",e.indent)+Ll((t.line+l+1).toString(),h)+" | "+c.str+`
|
|
`;return s.replace(/\n$/,"")}var Zw=Kw,Qw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Jw=["scalar","sequence","mapping"];function tA(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function eA(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Qw.indexOf(r)===-1)throw new qe('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=tA(e.styleAliases||null),Jw.indexOf(this.kind)===-1)throw new qe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dt=eA;function Cm(t,e){var r=[];return t[e].forEach(function(i){var o=r.length;r.forEach(function(n,a){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(o=a)}),r[o]=i}),r}function rA(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function $l(t){return this.extend(t)}$l.prototype.extend=function(e){var r=[],i=[];if(e instanceof Dt)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new qe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Dt))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new qe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new qe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Dt))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create($l.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(i),o.compiledImplicit=Cm(o,"implicit"),o.compiledExplicit=Cm(o,"explicit"),o.compiledTypeMap=rA(o.compiledImplicit,o.compiledExplicit),o};var iA=$l,oA=new Dt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),nA=new Dt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),aA=new Dt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),sA=new iA({explicit:[oA,nA,aA]});function lA(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function cA(){return null}function uA(t){return t===null}var hA=new Dt("tag:yaml.org,2002:null",{kind:"scalar",resolve:lA,construct:cA,predicate:uA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function fA(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function pA(t){return t==="true"||t==="True"||t==="TRUE"}function dA(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var mA=new Dt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fA,construct:pA,predicate:dA,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function gA(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function xA(t){return 48<=t&&t<=55}function yA(t){return 48<=t&&t<=57}function _A(t){if(t===null)return!1;var e=t.length,r=0,i=!1,o;if(!e)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===e)return!0;if(o=t[++r],o==="b"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;i=!0}return i&&o!=="_"}if(o==="x"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!gA(t.charCodeAt(r)))return!1;i=!0}return i&&o!=="_"}if(o==="o"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!xA(t.charCodeAt(r)))return!1;i=!0}return i&&o!=="_"}}if(o==="_")return!1;for(;r<e;r++)if(o=t[r],o!=="_"){if(!yA(t.charCodeAt(r)))return!1;i=!0}return!(!i||o==="_")}function CA(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function bA(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Wt.isNegativeZero(t)}var TA=new Dt("tag:yaml.org,2002:int",{kind:"scalar",resolve:_A,construct:CA,predicate:bA,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kA(t){return!(t===null||!vA.test(t)||t[t.length-1]==="_")}function SA(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var wA=/^[-+]?[0-9]+e/;function AA(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Wt.isNegativeZero(t))return"-0.0";return r=t.toString(10),wA.test(r)?r.replace("e",".e"):r}function BA(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Wt.isNegativeZero(t))}var FA=new Dt("tag:yaml.org,2002:float",{kind:"scalar",resolve:kA,construct:SA,predicate:BA,represent:AA,defaultStyle:"lowercase"}),bg=sA.extend({implicit:[hA,mA,TA,FA]}),LA=bg,Tg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function MA(t){return t===null?!1:Tg.exec(t)!==null||vg.exec(t)!==null}function EA(t){var e,r,i,o,n,a,s,l=0,c=null,h,f,u;if(e=Tg.exec(t),e===null&&(e=vg.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(n=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],f=+(e[11]||0),c=(h*60+f)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(r,i,o,n,a,s,l)),c&&u.setTime(u.getTime()-c),u}function OA(t){return t.toISOString()}var IA=new Dt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:MA,construct:EA,instanceOf:Date,represent:OA});function DA(t){return t==="<<"||t===null}var NA=new Dt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:DA}),Ql=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
\r`;function RA(t){if(t===null)return!1;var e,r,i=0,o=t.length,n=Ql;for(r=0;r<o;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function PA(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,n=Ql,a=0,s=[];for(e=0;e<o;e++)e%4===0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|n.indexOf(i.charAt(e));return r=o%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function $A(t){var e="",r=0,i,o,n=t.length,a=Ql;for(i=0;i<n;i++)i%3===0&&i&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return o=n%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function zA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var qA=new Dt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:RA,construct:PA,predicate:zA,represent:$A}),WA=Object.prototype.hasOwnProperty,UA=Object.prototype.toString;function HA(t){if(t===null)return!0;var e=[],r,i,o,n,a,s=t;for(r=0,i=s.length;r<i;r+=1){if(o=s[r],a=!1,UA.call(o)!=="[object Object]")return!1;for(n in o)if(WA.call(o,n))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function YA(t){return t!==null?t:[]}var jA=new Dt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:HA,construct:YA}),GA=Object.prototype.toString;function VA(t){if(t===null)return!0;var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(i=a[e],GA.call(i)!=="[object Object]"||(o=Object.keys(i),o.length!==1))return!1;n[e]=[o[0],i[o[0]]]}return!0}function XA(t){if(t===null)return[];var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1)i=a[e],o=Object.keys(i),n[e]=[o[0],i[o[0]]];return n}var KA=new Dt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:VA,construct:XA}),ZA=Object.prototype.hasOwnProperty;function QA(t){if(t===null)return!0;var e,r=t;for(e in r)if(ZA.call(r,e)&&r[e]!==null)return!1;return!0}function JA(t){return t!==null?t:{}}var tB=new Dt("tag:yaml.org,2002:set",{kind:"mapping",resolve:QA,construct:JA}),eB=LA.extend({implicit:[IA,NA],explicit:[qA,jA,KA,tB]}),cr=Object.prototype.hasOwnProperty,ba=1,kg=2,Sg=3,Ta=4,Ml=1,rB=2,bm=3,iB=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oB=/[\x85\u2028\u2029]/,nB=/[,\[\]\{\}]/,wg=/^(?:!|!!|![a-z\-]+!)$/i,Ag=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Tm(t){return Object.prototype.toString.call(t)}function be(t){return t===10||t===13}function Rr(t){return t===9||t===32}function Kt(t){return t===9||t===32||t===10||t===13}function Ai(t){return t===44||t===91||t===93||t===123||t===125}function aB(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function sB(t){return t===120?2:t===117?4:t===85?8:0}function lB(t){return 48<=t&&t<=57?t-48:-1}function vm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function cB(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Bg=new Array(256),Fg=new Array(256);for(Nr=0;Nr<256;Nr++)Bg[Nr]=vm(Nr)?1:0,Fg[Nr]=vm(Nr);var Nr;function uB(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||eB,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Lg(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Zw(r),new qe(e,r)}function H(t,e){throw Lg(t,e)}function va(t,e){t.onWarning&&t.onWarning.call(null,Lg(t,e))}var km={YAML:function(e,r,i){var o,n,a;e.version!==null&&H(e,"duplication of %YAML directive"),i.length!==1&&H(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&H(e,"ill-formed argument of the YAML directive"),n=parseInt(o[1],10),a=parseInt(o[2],10),n!==1&&H(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&va(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var o,n;i.length!==2&&H(e,"TAG directive accepts exactly two arguments"),o=i[0],n=i[1],wg.test(o)||H(e,"ill-formed tag handle (first argument) of the TAG directive"),cr.call(e.tagMap,o)&&H(e,'there is a previously declared suffix for "'+o+'" tag handle'),Ag.test(n)||H(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(a){H(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function lr(t,e,r,i){var o,n,a,s;if(e<r){if(s=t.input.slice(e,r),i)for(o=0,n=s.length;o<n;o+=1)a=s.charCodeAt(o),a===9||32<=a&&a<=1114111||H(t,"expected valid JSON character");else iB.test(s)&&H(t,"the stream contains non-printable characters");t.result+=s}}function Sm(t,e,r,i){var o,n,a,s;for(Wt.isObject(r)||H(t,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,s=o.length;a<s;a+=1)n=o[a],cr.call(e,n)||(e[n]=r[n],i[n]=!0)}function Bi(t,e,r,i,o,n,a,s,l){var c,h;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),c=0,h=o.length;c<h;c+=1)Array.isArray(o[c])&&H(t,"nested arrays are not supported inside keys"),typeof o=="object"&&Tm(o[c])==="[object Object]"&&(o[c]="[object Object]");if(typeof o=="object"&&Tm(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(c=0,h=n.length;c<h;c+=1)Sm(t,e,n[c],r);else Sm(t,e,n,r);else!t.json&&!cr.call(r,o)&&cr.call(e,o)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,H(t,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[o]=n,delete r[o];return e}function Jl(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):H(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function xt(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);o!==0;){for(;Rr(o);)o===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if(be(o))for(Jl(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&va(t,"deficient indentation"),i}function Fa(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Kt(r)))}function tc(t,e){e===1?t.result+=" ":e>1&&(t.result+=Wt.repeat(`
|
|
`,e-1))}function hB(t,e,r){var i,o,n,a,s,l,c,h,f=t.kind,u=t.result,p;if(p=t.input.charCodeAt(t.position),Kt(p)||Ai(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=t.input.charCodeAt(t.position+1),Kt(o)||r&&Ai(o)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;p!==0;){if(p===58){if(o=t.input.charCodeAt(t.position+1),Kt(o)||r&&Ai(o))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Kt(i))break}else{if(t.position===t.lineStart&&Fa(t)||r&&Ai(p))break;if(be(p))if(l=t.line,c=t.lineStart,h=t.lineIndent,xt(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=h;break}}s&&(lr(t,n,a,!1),tc(t,t.line-l),n=a=t.position,s=!1),Rr(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return lr(t,n,a,!1),t.result?!0:(t.kind=f,t.result=u,!1)}function fB(t,e){var r,i,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(lr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,o=t.position;else return!0;else be(r)?(lr(t,i,o,!0),tc(t,xt(t,!1,e)),i=o=t.position):t.position===t.lineStart&&Fa(t)?H(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);H(t,"unexpected end of the stream within a single quoted scalar")}function pB(t,e){var r,i,o,n,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return lr(t,r,t.position,!0),t.position++,!0;if(s===92){if(lr(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),be(s))xt(t,!1,e);else if(s<256&&Bg[s])t.result+=Fg[s],t.position++;else if((a=sB(s))>0){for(o=a,n=0;o>0;o--)s=t.input.charCodeAt(++t.position),(a=aB(s))>=0?n=(n<<4)+a:H(t,"expected hexadecimal character");t.result+=cB(n),t.position++}else H(t,"unknown escape sequence");r=i=t.position}else be(s)?(lr(t,r,i,!0),tc(t,xt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Fa(t)?H(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}H(t,"unexpected end of the stream within a double quoted scalar")}function dB(t,e){var r=!0,i,o,n,a=t.tag,s,l=t.anchor,c,h,f,u,p,g=Object.create(null),_,b,A,C;if(C=t.input.charCodeAt(t.position),C===91)h=93,p=!1,s=[];else if(C===123)h=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),C=t.input.charCodeAt(++t.position);C!==0;){if(xt(t,!0,e),C=t.input.charCodeAt(t.position),C===h)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;r?C===44&&H(t,"expected the node content, but found ','"):H(t,"missed comma between flow collection entries"),b=_=A=null,f=u=!1,C===63&&(c=t.input.charCodeAt(t.position+1),Kt(c)&&(f=u=!0,t.position++,xt(t,!0,e))),i=t.line,o=t.lineStart,n=t.position,Ei(t,e,ba,!1,!0),b=t.tag,_=t.result,xt(t,!0,e),C=t.input.charCodeAt(t.position),(u||t.line===i)&&C===58&&(f=!0,C=t.input.charCodeAt(++t.position),xt(t,!0,e),Ei(t,e,ba,!1,!0),A=t.result),p?Bi(t,s,g,b,_,A,i,o,n):f?s.push(Bi(t,null,g,b,_,A,i,o,n)):s.push(_),xt(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}H(t,"unexpected end of the stream within a flow collection")}function mB(t,e){var r,i,o=Ml,n=!1,a=!1,s=e,l=0,c=!1,h,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Ml===o?o=f===43?bm:rB:H(t,"repeat of a chomping mode identifier");else if((h=lB(f))>=0)h===0?H(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?H(t,"repeat of an indentation width identifier"):(s=e+h-1,a=!0);else break;if(Rr(f)){do f=t.input.charCodeAt(++t.position);while(Rr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!be(f)&&f!==0)}for(;f!==0;){for(Jl(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndent<s)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>s&&(s=t.lineIndent),be(f)){l++;continue}if(t.lineIndent<s){o===bm?t.result+=Wt.repeat(`
|
|
`,n?1+l:l):o===Ml&&n&&(t.result+=`
|
|
`);break}for(i?Rr(f)?(c=!0,t.result+=Wt.repeat(`
|
|
`,n?1+l:l)):c?(c=!1,t.result+=Wt.repeat(`
|
|
`,l+1)):l===0?n&&(t.result+=" "):t.result+=Wt.repeat(`
|
|
`,l):t.result+=Wt.repeat(`
|
|
`,n?1+l:l),n=!0,a=!0,l=0,r=t.position;!be(f)&&f!==0;)f=t.input.charCodeAt(++t.position);lr(t,r,t.position,!1)}return!0}function wm(t,e){var r,i=t.tag,o=t.anchor,n=[],a,s=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,H(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!Kt(a))));){if(s=!0,t.position++,xt(t,!0,-1)&&t.lineIndent<=e){n.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Ei(t,e,Sg,!1,!0),n.push(t.result),xt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)H(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return s?(t.tag=i,t.anchor=o,t.kind="sequence",t.result=n,!0):!1}function gB(t,e,r){var i,o,n,a,s,l,c=t.tag,h=t.anchor,f={},u=Object.create(null),p=null,g=null,_=null,b=!1,A=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),C=t.input.charCodeAt(t.position);C!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,H(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(C===63||C===58)&&Kt(i))C===63?(b&&(Bi(t,f,u,p,g,null,a,s,l),p=g=_=null),A=!0,b=!0,o=!0):b?(b=!1,o=!0):H(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=i;else{if(a=t.line,s=t.lineStart,l=t.position,!Ei(t,r,kg,!1,!0))break;if(t.line===n){for(C=t.input.charCodeAt(t.position);Rr(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),Kt(C)||H(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Bi(t,f,u,p,g,null,a,s,l),p=g=_=null),A=!0,b=!1,o=!1,p=t.tag,g=t.result;else if(A)H(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(A)H(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===n||t.lineIndent>e)&&(b&&(a=t.line,s=t.lineStart,l=t.position),Ei(t,e,Ta,!0,o)&&(b?g=t.result:_=t.result),b||(Bi(t,f,u,p,g,_,a,s,l),p=g=_=null),xt(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)H(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&Bi(t,f,u,p,g,null,a,s,l),A&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=f),A}function xB(t){var e,r=!1,i=!1,o,n,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&H(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(i=!0,o="!!",a=t.input.charCodeAt(++t.position)):o="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):H(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Kt(a);)a===33&&(i?H(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),wg.test(o)||H(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),nB.test(n)&&H(t,"tag suffix cannot contain flow indicator characters")}n&&!Ag.test(n)&&H(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(s){H(t,"tag name is malformed: "+n)}return r?t.tag=n:cr.call(t.tagMap,o)?t.tag=t.tagMap[o]+n:o==="!"?t.tag="!"+n:o==="!!"?t.tag="tag:yaml.org,2002:"+n:H(t,'undeclared tag handle "'+o+'"'),!0}function yB(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&H(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Kt(r)&&!Ai(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&H(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function _B(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Kt(i)&&!Ai(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&H(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),cr.call(t.anchorMap,r)||H(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],xt(t,!0,-1),!0}function Ei(t,e,r,i,o){var n,a,s,l=1,c=!1,h=!1,f,u,p,g,_,b;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=a=s=Ta===r||Sg===r,i&&xt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;xB(t)||yB(t);)xt(t,!0,-1)?(c=!0,s=n,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):s=!1;if(s&&(s=c||o),(l===1||Ta===r)&&(ba===r||kg===r?_=e:_=e+1,b=t.position-t.lineStart,l===1?s&&(wm(t,b)||gB(t,b,_))||dB(t,_)?h=!0:(a&&mB(t,_)||fB(t,_)||pB(t,_)?h=!0:_B(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&H(t,"alias node should not have any properties")):hB(t,_,ba===r)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=s&&wm(t,b))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&H(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,u=t.implicitTypes.length;f<u;f+=1)if(g=t.implicitTypes[f],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(cr.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,p=t.typeMap.multi[t.kind||"fallback"],f=0,u=p.length;f<u;f+=1)if(t.tag.slice(0,p[f].tag.length)===p[f].tag){g=p[f];break}g||H(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&H(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):H(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function CB(t){var e=t.position,r,i,o,n=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(xt(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(n=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Kt(a);)a=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),o=[],i.length<1&&H(t,"directive name must not be less than one character in length");a!==0;){for(;Rr(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!be(a));break}if(be(a))break;for(r=t.position;a!==0&&!Kt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&Jl(t),cr.call(km,i)?km[i](t,i,o):va(t,'unknown document directive "'+i+'"')}if(xt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,xt(t,!0,-1)):n&&H(t,"directives end mark is expected"),Ei(t,t.lineIndent-1,Ta,!1,!0),xt(t,!0,-1),t.checkLineBreaks&&oB.test(t.input.slice(e,t.position))&&va(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Fa(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,xt(t,!0,-1));return}if(t.position<t.length-1)H(t,"end of the stream or a document separator is expected");else return}function Mg(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new uB(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,H(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)CB(r);return r.documents}function bB(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Mg(t,r);if(typeof e!="function")return i;for(var o=0,n=i.length;o<n;o+=1)e(i[o])}function TB(t,e){var r=Mg(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new qe("expected a single document in the stream, but found more")}}var vB=bB,kB=TB,SB={loadAll:vB,load:kB},wB=bg,AB=SB.load;function BB(t){var o;let e=t.match(Rm);if(!e)return{text:t,metadata:{}};let r=(o=AB(e[1],{schema:wB}))!=null?o:{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}var FB=t=>t.replace(/\r\n?/g,`
|
|
`).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),LB=t=>{let{text:e,metadata:r}=BB(t),{displayMode:i,title:o,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},MB=t=>{var i;let e=(i=Ao.detectInit(t))!=null?i:{},r=Ao.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:o})=>{}):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:ik(t),directive:e}};function Eg(t){let e=FB(t),r=LB(e),i=MB(r.text),o=Um(r.config,i.directive);return t=Pw(i.text),{code:t,title:r.title,config:o}}var EB=5e4,OB="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",IB="sandbox",DB="loose",NB="http://www.w3.org/2000/svg",RB="http://www.w3.org/1999/xlink",PB="http://www.w3.org/1999/xhtml",$B="100%",zB="100%",qB="border:0;margin:0;",WB="margin:0",UB="allow-top-navigation-by-user-activation allow-popups",HB='The "iframe" tag is not supported by your browser.',YB=["foreignobject"],jB=["dominant-baseline"];function Og(t){var r;let e=Eg(t);return xa(),Bk((r=e.config)!=null?r:{}),e}async function GB(t,e){Zl(),t=Og(t).code;try{await ec(t)}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}return!0}var Am=(t,e,r=[])=>`
|
|
.${t} ${e} { ${r.join(" !important; ")} !important; }`,VB=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0&&(i+=`
|
|
${t.themeCSS}`),t.fontFamily!==void 0&&(i+=`
|
|
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=`
|
|
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!ea(e)){let s=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let l in e){let c=e[l];ea(c.styles)||s.forEach(h=>{i+=Am(c.id,h,c.styles)}),ea(c.textStyles)||(i+=Am(c.id,"tspan",c.textStyles))}}return i},XB=(t,e,r,i)=>{let o=VB(t,r),n=VS(e,o,t.themeVariables);return ha(cm(`${i}{${n}}`),um)},KB=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=kk(i),i=i.replace(/<br>/g,"<br/>"),i},ZB=(t="",e)=>{var r,i;let o=(i=(r=e==null?void 0:e.viewBox)==null?void 0:r.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":zB,n=btoa('<body style="'+WB+'">'+t+"</body>");return`<iframe style="width:${$B};height:${o};${qB}" src="data:text/html;base64,${n}" sandbox="${UB}">
|
|
${HB}
|
|
</iframe>`},Bm=(t,e,r,i,o)=>{let n=t.append("div");n.attr("id",r),i&&n.attr("style",i);let a=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",NB);return o&&a.attr("xmlns:xlink",o),a.append("g"),t};function Fm(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var QB=(t,e,r,i)=>{var o,n,a;(o=t.getElementById(e))==null||o.remove(),(n=t.getElementById(r))==null||n.remove(),(a=t.getElementById(i))==null||a.remove()},JB=async function(t,e,r){var V;var i,o,n,a,s,l;Zl();let c=Og(e);e=c.code;let h=Te();j.debug(h),e.length>((V=h==null?void 0:h.maxTextSize)!=null?V:EB)&&(e=OB);let f="#"+t,u="i"+t,p="#"+u,g="d"+t,_="#"+g,b=jt("body"),A=h.securityLevel===IB,C=h.securityLevel===DB,M=h.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),A){let Z=Fm(jt(r),u);b=jt(Z.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=jt(r);Bm(b,t,g,`font-family: ${M}`,RB)}else{if(QB(document,t,g,u),A){let Z=Fm(jt("body"),u);b=jt(Z.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=jt("body");Bm(b,t,g)}let S,D;try{S=await ec(e,{title:c.title})}catch(Z){S=new Ca("error"),D=Z}let T=b.select(_).node(),O=S.type,F=T.firstChild,G=F.firstChild,Q=(o=(i=S.renderer).getClasses)==null?void 0:o.call(i,e,S),N=XB(h,O,Q,f),B=document.createElement("style");B.innerHTML=N,F.insertBefore(B,G);try{await S.renderer.draw(e,t,gm,S)}catch(Z){throw uw.draw(e,t,gm),Z}let x=b.select(`${_} svg`),y=(a=(n=S.db).getAccTitle)==null?void 0:a.call(n),I=(l=(s=S.db).getAccDescription)==null?void 0:l.call(s);eF(O,x,y,I),b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",PB);let k=b.select(_).node().innerHTML;if(j.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),k=KB(k,A,Im(h.arrowMarkerAbsolute)),A){let Z=b.select(_+" svg").node();k=ZB(k,Z)}else C||(k=Pr.default.sanitize(k,{ADD_TAGS:YB,ADD_ATTR:jB}));if(Iw(),D)throw D;let R=jt(A?p:_).node();return R&&"remove"in R&&R.remove(),{svg:k,bindFunctions:S.db.bindFunctions}};function tF(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),wk(t),t!=null&&t.theme&&t.theme in We?t.themeVariables=We[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=We.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?Sk(t):Ym();zl(r.logLevel),Zl()}var ec=(t,e={})=>{let{code:r}=Eg(t);return Ow(r,e)};function eF(t,e,r,i){Nw(e,t),Rw(e,r,i,e.attr("id"))}var $r=Object.freeze({render:JB,parse:GB,getDiagramFromText:ec,initialize:tF,getConfig:Te,setConfig:jm,getSiteConfig:Ym,updateSiteConfig:Ak,reset:()=>{xa()},globalReset:()=>{xa(Li)},defaultConfig:Li});zl(Te().logLevel);xa(Te());var rF=async()=>{j.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Fi).map(async([r,{detector:i,loader:o}])=>{if(o)try{Kl(r)}catch(n){try{let{diagram:a,id:s}=await o();_a(s,a,i)}catch(a){throw j.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Fi[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){j.error(`Failed to load ${e.length} external diagrams`);for(let r of e)j.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},iF=(t,e,r)=>{j.warn(t),Wm(t)?(r&&r(t.str,t.hash),e.push(ne(oe({},t),{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Ig=async function(t={querySelector:".mermaid"}){try{await oF(t)}catch(e){if(Wm(e)&&j.error(e.str),ve.parseError&&ve.parseError(e),!t.suppressErrors)throw j.error("Use the suppressErrors option to suppress these errors"),e}},oF=async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=$r.getConfig();j.debug(`${t?"":"No "}Callback function found`);let o;if(r)o=r;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");j.debug(`Found ${o.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(j.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),$r.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));let n=new Ao.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),a,s=[];for(let l of Array.from(o)){j.info("Rendering diagram: "+l.id);if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");let c=`mermaid-${n.next()}`;a=l.innerHTML,a=Mc(Ao.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let h=Ao.detectInit(a);h&&j.debug("Detected early reinit: ",h);try{let{svg:f,bindFunctions:u}=await Pg(c,a,l);l.innerHTML=f,t&&await t(c),u&&u(l)}catch(f){iF(f,s,ve.parseError)}}if(s.length>0)throw s[0]},Dg=function(t){$r.initialize(t)},nF=async function(t,e,r){j.warn("mermaid.init is deprecated. Please use run instead."),t&&Dg(t);let i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await Ig(i)},aF=async(t,{lazyLoad:e=!0}={})=>{Pm(...t),e===!1&&await rF()},Ng=function(){if(ve.startOnLoad){let{startOnLoad:t}=$r.getConfig();t&&ve.run().catch(e=>j.error("Mermaid failed to initialize",e))}};if(typeof document!="undefined"){window.addEventListener("load",Ng,!1)}var sF=function(t){ve.parseError=t},ka=[],El=!1,Rg=async()=>{if(!El){for(El=!0;ka.length>0;){let t=ka.shift();if(t)try{await t()}catch(e){j.error("Error executing queue",e)}}El=!1}},lF=async(t,e)=>new Promise((r,i)=>{let o=()=>new Promise((n,a)=>{$r.parse(t,e).then(s=>{n(s),r(s)},s=>{var l;j.error("Error parsing",s),(l=ve.parseError)==null||l.call(ve,s),a(s),i(s)})});ka.push(o),Rg().catch(i)}),Pg=(t,e,r)=>new Promise((i,o)=>{let n=()=>new Promise((a,s)=>{$r.render(t,e,r).then(l=>{a(l),i(l)},l=>{var c;j.error("Error parsing",l),(c=ve.parseError)==null||c.call(ve,l),s(l),o(l)})});ka.push(n),Rg().catch(o)}),ve={startOnLoad:!0,mermaidAPI:$r,parse:lF,render:Pg,init:nF,run:Ig,registerExternalDiagrams:aF,initialize:Dg,parseError:void 0,contentLoaded:Ng,setParseErrorHandler:sF,detectType:Aa};export{Mc as a,Ec as b,Ic as c,Dc as d,Nc as e,L0 as f,M0 as g,jt as h,Bx as i,Wx as j,OC as k,Ki as l,xs as m,Ls as n,Cr as o,ye as p,ei as q,ri as r,Ee as s,Oe as t,ii as u,vh as v,kh as w,Ge as x,Sh as y,wh as z,ni as A,pn as B,Jh as C,A_ as D,N_ as E,oo as F,R_ as G,P_ as H,Hs as I,ap as J,Je as K,WC as L,Mr as M,z as N,Y as O,mt as P,pi as Q,ue as R,Gt as S,di as T,tr as U,_o as V,Hn as W,jp as X,Ci as Y,Vp as Z,Jp as _,vl as $,td as aa,ed as ba,rd as ca,jn as da,nd as ea,Ce as fa,Er as ga,Or as ha,Gn as ia,ar as ja,sd as ka,bi as la,pd as ma,md as na,wl as oa,Ti as pa,yd as qa,_d as ra,Vn as sa,bd as ta,Xn as ua,Kn as va,Ld as wa,Md as xa,Id as ya,Dd as za,Nd as Aa,Pd as Ba,zd as Ca,Jn as Da,jd as Ea,ea as Fa,j as Ga,Mo as Ha,Fo as Ia,Im as Ja,yq as Ka,pm as La,_q as Ma,Pv as Na,ql as Oa,Hv as Pa,Xv as Qa,It as Ra,Jv as Sa,nk as Ta,fk as Ua,pk as Va,mk as Wa,yk as Xa,Ck as Ya,ga as Za,Hl as _a,Um as $a,Ao as ab,kk as bb,Te as cb,fg as db,YS as eb,XS as fb,KS as gb,ZS as hb,QS as ib,JS as jb,tw as kb,ew as lb,rw as mb,Xl as nb,kq as ob,Sq as pb,aw as qb,lw as rb,ve as sb};
|
|
/*! Bundled license information:
|
|
|
|
dompurify/dist/purify.js:
|
|
(*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE *)
|
|
|
|
mermaid/dist/mermaid-2490e8f2.js:
|
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
(*! Check if previously processed *)
|
|
(*!
|
|
* Wait for document loaded before starting the execution
|
|
*)
|
|
*/
|