(self.webpackChunk=self.webpackChunk||[]).push([["mermaid"],{"./node_modules/@braintree/sanitize-url/dist/index.js":function(mt,D){"use strict";var f;f={value:!0},D.Jf=D.dz=void 0;var B=/^([^\w]*)(javascript|data|vbscript)/im,E=/&#(\w+)(^\w|;)?/g,P=/&(newline|tab);/gi,A=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,M=/^.+(:|&colon;)/gim,$=[".","/"];D.dz="about:blank";function W(k){return $.indexOf(k[0])>-1}function q(k){var I=k.replace(A,"");return I.replace(E,function(et,J){return String.fromCharCode(J)})}function m(k){if(!k)return D.dz;var I=q(k).replace(P,"").replace(A,"").trim();if(!I)return D.dz;if(W(I))return I;var et=I.match(M);if(!et)return I;var J=et[0];return B.test(J)?D.dz:I}D.Jf=m},"./node_modules/dompurify/dist/purify.js":function(mt){(function(D,f){mt.exports=f()})(this,function(){"use strict";const{entries:D,setPrototypeOf:f,isFrozen:B,getPrototypeOf:E,getOwnPropertyDescriptor:P}=Object;let{freeze:A,seal:M,create:$}=Object,{apply:W,construct:q}=typeof Reflect<"u"&&Reflect;A||(A=function(Tt){return Tt}),M||(M=function(Tt){return Tt}),W||(W=function(Tt,Wt,zt){return Tt.apply(Wt,zt)}),q||(q=function(Tt,Wt){return new Tt(...Wt)});const m=St(Array.prototype.forEach),k=St(Array.prototype.pop),I=St(Array.prototype.push),et=St(String.prototype.toLowerCase),J=St(String.prototype.toString),b=St(String.prototype.match),j=St(String.prototype.replace),R=St(String.prototype.indexOf),at=St(String.prototype.trim),dt=St(Object.prototype.hasOwnProperty),gt=St(RegExp.prototype.test),Ct=me(TypeError);function St(Yt){return function(Tt){for(var Wt=arguments.length,zt=new Array(Wt>1?Wt-1:0),_e=1;_e<Wt;_e++)zt[_e-1]=arguments[_e];return W(Yt,Tt,zt)}}function me(Yt){return function(){for(var Tt=arguments.length,Wt=new Array(Tt),zt=0;zt<Tt;zt++)Wt[zt]=arguments[zt];return q(Yt,Wt)}}function ct(Yt,Tt){let Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et;f&&f(Yt,null);let zt=Tt.length;for(;zt--;){let _e=Tt[zt];if(typeof _e=="string"){const We=Wt(_e);We!==_e&&(B(Tt)||(Tt[zt]=We),_e=We)}Yt[_e]=!0}return Yt}function Kt(Yt){for(let Tt=0;Tt<Yt.length;Tt++)dt(Yt,Tt)||(Yt[Tt]=null);return Yt}function ge(Yt){const Tt=$(null);for(const[Wt,zt]of D(Yt))dt(Yt,Wt)&&(Array.isArray(zt)?Tt[Wt]=Kt(zt):zt&&typeof zt=="object"&&zt.constructor===Object?Tt[Wt]=ge(zt):Tt[Wt]=zt);return Tt}function Ve(Yt,Tt){for(;Yt!==null;){const zt=P(Yt,Tt);if(zt){if(zt.get)return St(zt.get);if(typeof zt.value=="function")return St(zt.value)}Yt=E(Yt)}function Wt(){return null}return Wt}const Ke=A(["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"]),$t=A(["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"]),Ue=A(["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"]),nr=A(["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"]),Si=A(["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"]),Ri=A(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wi=A(["#text"]),Bi=A(["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","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"]),qt=A(["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"]),Gt=A(["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"]),Jt=A(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=M(/\{\{[\w\W]*|[\w\W]*\}\}/gm),we=M(/<%[\w\W]*|[\w\W]*%>/gm),_t=M(/\${[\w\W]*}/gm),Bt=M(/^data-[\-\w.\u00B7-\uFFFF]/),Ut=M(/^aria-[\-\w]+$/),se=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sr=M(/^(?:\w+script|data):/i),je=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qe=M(/^html$/i),wr=M(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ne=Object.freeze({__proto__:null,MUSTACHE_EXPR:pe,ERB_EXPR:we,TMPLIT_EXPR:_t,DATA_ATTR:Bt,ARIA_ATTR:Ut,IS_ALLOWED_URI:se,IS_SCRIPT_OR_DATA:Sr,ATTR_WHITESPACE:je,DOCTYPE_NAME:Qe,CUSTOM_ELEMENT:wr});const Ei=function(){return typeof window>"u"?null:window},_i=function(Tt,Wt){if(typeof Tt!="object"||typeof Tt.createPolicy!="function")return null;let zt=null;const _e="data-tt-policy-suffix";Wt&&Wt.hasAttribute(_e)&&(zt=Wt.getAttribute(_e));const We="dompurify"+(zt?"#"+zt:"");try{return Tt.createPolicy(We,{createHTML(yi){return yi},createScriptURL(yi){return yi}})}catch{return console.warn("TrustedTypes policy "+We+" could not be created."),null}};function Kn(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei();const Tt=bt=>Kn(bt);if(Tt.version="3.1.0",Tt.removed=[],!Yt||!Yt.document||Yt.document.nodeType!==9)return Tt.isSupported=!1,Tt;let{document:Wt}=Yt;const zt=Wt,_e=zt.currentScript,{DocumentFragment:We,HTMLTemplateElement:yi,Node:Fe,Element:Qt,NodeFilter:oi,NamedNodeMap:qr=Yt.NamedNodeMap||Yt.MozNamedAttrMap,HTMLFormElement:Oo,DOMParser:Is,trustedTypes:Gr}=Yt,Vr=Qt.prototype,Xe=Ve(Vr,"cloneNode"),Li=Ve(Vr,"nextSibling"),Kr=Ve(Vr,"childNodes"),or=Ve(Vr,"parentNode");if(typeof yi=="function"){const bt=Wt.createElement("template");bt.content&&bt.content.ownerDocument&&(Wt=bt.content.ownerDocument)}let be,sr="";const{implementation:Ci,createNodeIterator:Xr,createDocumentFragment:Ps,getElementsByTagName:Do}=Wt,{importNode:Io}=zt;let ti={};Tt.isSupported=typeof D=="function"&&typeof or=="function"&&Ci&&Ci.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$i,ERB_EXPR:Zr,TMPLIT_EXPR:Br,DATA_ATTR:Xn,ARIA_ATTR:Jr,IS_SCRIPT_OR_DATA:Zn,ATTR_WHITESPACE:Jn,CUSTOM_ELEMENT:Qn}=Ne;let{IS_ALLOWED_URI:Qr}=Ne,ie=null;const At=ct({},[...Ke,...$t,...Ue,...Si,...wi]);let ue=null;const He=ct({},[...Bi,...qt,...Gt,...Jt]);let re=Object.seal($(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}})),Er=null,vn=null,to=!0,tn=!0,Tn=!1,zi=!0,ar=!1,eo=!0,Mi=!1,An=!1,en=!1,lr=!1,cr=!1,rn=!1,io=!0,ro=!1;const kn="user-content-";let Sn=!0,Lr=!1,Ui={},Fi=null;const nn=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let no=null;const on=ct({},["audio","video","img","source","image","track"]);let hr=null;const Oe=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wi="http://www.w3.org/1998/Math/MathML",Hi="http://www.w3.org/2000/svg",ei="http://www.w3.org/1999/xhtml";let de=ei,sn=!1,wn=null;const Mr=ct({},[Wi,Hi,ei],J);let ur=null;const oo=["application/xhtml+xml","text/html"],an="text/html";let xe=null,Fr=null;const si=Wt.createElement("form"),ai=function(v){return v instanceof RegExp||v instanceof Function},bi=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fr&&Fr===v)){if((!v||typeof v!="object")&&(v={}),v=ge(v),ur=oo.indexOf(v.PARSER_MEDIA_TYPE)===-1?an:v.PARSER_MEDIA_TYPE,xe=ur==="application/xhtml+xml"?J:et,ie=dt(v,"ALLOWED_TAGS")?ct({},v.ALLOWED_TAGS,xe):At,ue=dt(v,"ALLOWED_ATTR")?ct({},v.ALLOWED_ATTR,xe):He,wn=dt(v,"ALLOWED_NAMESPACES")?ct({},v.ALLOWED_NAMESPACES,J):Mr,hr=dt(v,"ADD_URI_SAFE_ATTR")?ct(ge(Oe),v.ADD_URI_SAFE_ATTR,xe):Oe,no=dt(v,"ADD_DATA_URI_TAGS")?ct(ge(on),v.ADD_DATA_URI_TAGS,xe):on,Fi=dt(v,"FORBID_CONTENTS")?ct({},v.FORBID_CONTENTS,xe):nn,Er=dt(v,"FORBID_TAGS")?ct({},v.FORBID_TAGS,xe):{},vn=dt(v,"FORBID_ATTR")?ct({},v.FORBID_ATTR,xe):{},Ui=dt(v,"USE_PROFILES")?v.USE_PROFILES:!1,to=v.ALLOW_ARIA_ATTR!==!1,tn=v.ALLOW_DATA_ATTR!==!1,Tn=v.ALLOW_UNKNOWN_PROTOCOLS||!1,zi=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ar=v.SAFE_FOR_TEMPLATES||!1,eo=v.SAFE_FOR_XML!==!1,Mi=v.WHOLE_DOCUMENT||!1,lr=v.RETURN_DOM||!1,cr=v.RETURN_DOM_FRAGMENT||!1,rn=v.RETURN_TRUSTED_TYPE||!1,en=v.FORCE_BODY||!1,io=v.SANITIZE_DOM!==!1,ro=v.SANITIZE_NAMED_PROPS||!1,Sn=v.KEEP_CONTENT!==!1,Lr=v.IN_PLACE||!1,Qr=v.ALLOWED_URI_REGEXP||se,de=v.NAMESPACE||ei,re=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&ai(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&ai(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ar&&(tn=!1),cr&&(lr=!0),Ui&&(ie=ct({},wi),ue=[],Ui.html===!0&&(ct(ie,Ke),ct(ue,Bi)),Ui.svg===!0&&(ct(ie,$t),ct(ue,qt),ct(ue,Jt)),Ui.svgFilters===!0&&(ct(ie,Ue),ct(ue,qt),ct(ue,Jt)),Ui.mathMl===!0&&(ct(ie,Si),ct(ue,Gt),ct(ue,Jt))),v.ADD_TAGS&&(ie===At&&(ie=ge(ie)),ct(ie,v.ADD_TAGS,xe)),v.ADD_ATTR&&(ue===He&&(ue=ge(ue)),ct(ue,v.ADD_ATTR,xe)),v.ADD_URI_SAFE_ATTR&&ct(hr,v.ADD_URI_SAFE_ATTR,xe),v.FORBID_CONTENTS&&(Fi===nn&&(Fi=ge(Fi)),ct(Fi,v.FORBID_CONTENTS,xe)),Sn&&(ie["#text"]=!0),Mi&&ct(ie,["html","head","body"]),ie.table&&(ct(ie,["tbody"]),delete Er.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');be=v.TRUSTED_TYPES_POLICY,sr=be.createHTML("")}else be===void 0&&(be=_i(Gr,_e)),be!==null&&typeof sr=="string"&&(sr=be.createHTML(""));A&&A(v),Fr=v}},Yi=ct({},["mi","mo","mn","ms","mtext"]),dr=ct({},["foreignobject","desc","title","annotation-xml"]),Bn=ct({},["title","style","font","a","script"]),Oi=ct({},[...$t,...Ue,...nr]),fr=ct({},[...Si,...Ri]),Or=function(v){let X=or(v);(!X||!X.tagName)&&(X={namespaceURI:de,tagName:"template"});const pt=et(v.tagName),te=et(X.tagName);return wn[v.namespaceURI]?v.namespaceURI===Hi?X.namespaceURI===ei?pt==="svg":X.namespaceURI===Wi?pt==="svg"&&(te==="annotation-xml"||Yi[te]):!!Oi[pt]:v.namespaceURI===Wi?X.namespaceURI===ei?pt==="math":X.namespaceURI===Hi?pt==="math"&&dr[te]:!!fr[pt]:v.namespaceURI===ei?X.namespaceURI===Hi&&!dr[te]||X.namespaceURI===Wi&&!Yi[te]?!1:!fr[pt]&&(Bn[pt]||!Oi[pt]):!!(ur==="application/xhtml+xml"&&wn[v.namespaceURI]):!1},ye=function(v){I(Tt.removed,{element:v});try{v.parentNode.removeChild(v)}catch{v.remove()}},mr=function(v,X){try{I(Tt.removed,{attribute:X.getAttributeNode(v),from:X})}catch{I(Tt.removed,{attribute:null,from:X})}if(X.removeAttribute(v),v==="is"&&!ue[v])if(lr||cr)try{ye(X)}catch{}else try{X.setAttribute(v,"")}catch{}},qi=function(v){let X=null,pt=null;if(en)v="<remove></remove>"+v;else{const Te=b(v,/^[\r\n\t ]+/);pt=Te&&Te[0]}ur==="application/xhtml+xml"&&de===ei&&(v='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+v+"</body></html>");const te=be?be.createHTML(v):v;if(de===ei)try{X=new Is().parseFromString(te,ur)}catch{}if(!X||!X.documentElement){X=Ci.createDocument(de,"template",null);try{X.documentElement.innerHTML=sn?sr:te}catch{}}const ve=X.body||X.documentElement;return v&&pt&&ve.insertBefore(Wt.createTextNode(pt),ve.childNodes[0]||null),de===ei?Do.call(X,Mi?"html":"body")[0]:Mi?X.documentElement:ve},Di=function(v){return Xr.call(v.ownerDocument||v,v,oi.SHOW_ELEMENT|oi.SHOW_COMMENT|oi.SHOW_TEXT|oi.SHOW_PROCESSING_INSTRUCTION|oi.SHOW_CDATA_SECTION,null)},gr=function(v){return v instanceof Oo&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof qr)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function")},En=function(v){return typeof Fe=="function"&&v instanceof Fe},Ye=function(v,X,pt){ti[v]&&m(ti[v],te=>{te.call(Tt,X,pt,Fr)})},Ln=function(v){let X=null;if(Ye("beforeSanitizeElements",v,null),gr(v))return ye(v),!0;const pt=xe(v.nodeName);if(Ye("uponSanitizeElement",v,{tagName:pt,allowedTags:ie}),v.hasChildNodes()&&!En(v.firstElementChild)&&gt(/<[/\w]/g,v.innerHTML)&&gt(/<[/\w]/g,v.textContent)||v.nodeType===7||eo&&v.nodeType===8&&gt(/<[/\w]/g,v.data))return ye(v),!0;if(!ie[pt]||Er[pt]){if(!Er[pt]&&Ce(pt)&&(re.tagNameCheck instanceof RegExp&&gt(re.tagNameCheck,pt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pt)))return!1;if(Sn&&!Fi[pt]){const te=or(v)||v.parentNode,ve=Kr(v)||v.childNodes;if(ve&&te){const Te=ve.length;for(let Be=Te-1;Be>=0;--Be)te.insertBefore(Xe(ve[Be],!0),Li(v))}}return ye(v),!0}return v instanceof Qt&&!Or(v)||(pt==="noscript"||pt==="noembed"||pt==="noframes")&&gt(/<\/no(script|embed|frames)/i,v.innerHTML)?(ye(v),!0):(ar&&v.nodeType===3&&(X=v.textContent,m([$i,Zr,Br],te=>{X=j(X,te," ")}),v.textContent!==X&&(I(Tt.removed,{element:v.cloneNode()}),v.textContent=X)),Ye("afterSanitizeElements",v,null),!1)},ln=function(v,X,pt){if(io&&(X==="id"||X==="name")&&(pt in Wt||pt in si))return!1;if(!(tn&&!vn[X]&&gt(Xn,X))){if(!(to&&gt(Jr,X))){if(!ue[X]||vn[X]){if(!(Ce(v)&&(re.tagNameCheck instanceof RegExp&&gt(re.tagNameCheck,v)||re.tagNameCheck instanceof Function&&re.tagNameCheck(v))&&(re.attributeNameCheck instanceof RegExp&&gt(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&gt(re.tagNameCheck,pt)||re.tagNameCheck instanceof Function&&re.tagNameCheck(pt))))return!1}else if(!hr[X]){if(!gt(Qr,j(pt,Jn,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&v!=="script"&&R(pt,"data:")===0&&no[v])){if(!(Tn&&!gt(Zn,j(pt,Jn,"")))){if(pt)return!1}}}}}}return!0},Ce=function(v){return v!=="annotation-xml"&&b(v,Qn)},Mn=function(v){Ye("beforeSanitizeAttributes",v,null);const{attributes:X}=v;if(!X)return;const pt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue};let te=X.length;for(;te--;){const ve=X[te],{name:Te,namespaceURI:Be,value:xi}=ve,Gi=xe(Te);let Ee=Te==="value"?xi:at(xi);if(pt.attrName=Gi,pt.attrValue=Ee,pt.keepAttr=!0,pt.forceKeepAttr=void 0,Ye("uponSanitizeAttribute",v,pt),Ee=pt.attrValue,pt.forceKeepAttr||(mr(Te,v),!pt.keepAttr))continue;if(!zi&&gt(/\/>/i,Ee)){mr(Te,v);continue}ar&&m([$i,Zr,Br],_r=>{Ee=j(Ee,_r," ")});const pr=xe(v.nodeName);if(ln(pr,Gi,Ee)){if(ro&&(Gi==="id"||Gi==="name")&&(mr(Te,v),Ee=kn+Ee),be&&typeof Gr=="object"&&typeof Gr.getAttributeType=="function"&&!Be)switch(Gr.getAttributeType(pr,Gi)){case"TrustedHTML":{Ee=be.createHTML(Ee);break}case"TrustedScriptURL":{Ee=be.createScriptURL(Ee);break}}try{Be?v.setAttributeNS(Be,Te,Ee):v.setAttribute(Te,Ee),k(Tt.removed)}catch{}}}Ye("afterSanitizeAttributes",v,null)},Po=function bt(v){let X=null;const pt=Di(v);for(Ye("beforeSanitizeShadowDOM",v,null);X=pt.nextNode();)Ye("uponSanitizeShadowNode",X,null),!Ln(X)&&(X.content instanceof We&&bt(X.content),Mn(X));Ye("afterSanitizeShadowDOM",v,null)};return Tt.sanitize=function(bt){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,pt=null,te=null,ve=null;if(sn=!bt,sn&&(bt="<!-->"),typeof bt!="string"&&!En(bt))if(typeof bt.toString=="function"){if(bt=bt.toString(),typeof bt!="string")throw Ct("dirty is not a string, aborting")}else throw Ct("toString is not a function");if(!Tt.isSupported)return bt;if(An||bi(v),Tt.removed=[],typeof bt=="string"&&(Lr=!1),Lr){if(bt.nodeName){const xi=xe(bt.nodeName);if(!ie[xi]||Er[xi])throw Ct("root node is forbidden and cannot be sanitized in-place")}}else if(bt instanceof Fe)X=qi("<!---->"),pt=X.ownerDocument.importNode(bt,!0),pt.nodeType===1&&pt.nodeName==="BODY"||pt.nodeName==="HTML"?X=pt:X.appendChild(pt);else{if(!lr&&!ar&&!Mi&&bt.indexOf("<")===-1)return be&&rn?be.createHTML(bt):bt;if(X=qi(bt),!X)return lr?null:rn?sr:""}X&&en&&ye(X.firstChild);const Te=Di(Lr?bt:X);for(;te=Te.nextNode();)Ln(te)||(te.content instanceof We&&Po(te.content),Mn(te));if(Lr)return bt;if(lr){if(cr)for(ve=Ps.call(X.ownerDocument);X.firstChild;)ve.appendChild(X.firstChild);else ve=X;return(ue.shadowroot||ue.shadowrootmode)&&(ve=Io.call(zt,ve,!0)),ve}let Be=Mi?X.outerHTML:X.innerHTML;return Mi&&ie["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&gt(Qe,X.ownerDocument.doctype.name)&&(Be="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
`+Be),ar&&m([$i,Zr,Br],xi=>{Be=j(Be,xi," ")}),be&&rn?be.createHTML(Be):Be},Tt.setConfig=function(){let bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bi(bt),An=!0},Tt.clearConfig=function(){Fr=null,An=!1},Tt.isValidAttribute=function(bt,v,X){Fr||bi({});const pt=xe(bt),te=xe(v);return ln(pt,te,X)},Tt.addHook=function(bt,v){typeof v=="function"&&(ti[bt]=ti[bt]||[],I(ti[bt],v))},Tt.removeHook=function(bt){if(ti[bt])return k(ti[bt])},Tt.removeHooks=function(bt){ti[bt]&&(ti[bt]=[])},Tt.removeAllHooks=function(){ti={}},Tt}var Yr=Kn();return Yr})},"./node_modules/ts-dedent/esm/index.js":function(mt,D,f){"use strict";f.d(D,{T:function(){return B}});function B(P){for(var A=[],M=1;M<arguments.length;M++)A[M-1]=arguments[M];var $=Array.from(typeof P=="string"?[P]:P);$[$.length-1]=$[$.length-1].replace(/\r?\n([\t ]*)$/,"");var W=$.reduce(function(k,I){var et=I.match(/\n([\t ]+|(?!\s).)/g);return et?k.concat(et.map(function(J){var b,j;return(j=(b=J.match(/[\t ]/g))===null||b===void 0?void 0:b.length)!==null&&j!==void 0?j:0})):k},[]);if(W.length){var q=new RegExp(`
[ ]{`+Math.min.apply(Math,W)+"}","g");$=$.map(function(k){return k.replace(q,`
`)})}$[0]=$[0].replace(/^\r?\n/,"");var m=$[0];return A.forEach(function(k,I){var et=m.match(/(?:^|\n)( *)$/),J=et?et[1]:"",b=k;typeof k=="string"&&k.includes(`
`)&&(b=String(k).split(`
`).map(function(j,R){return R===0?j:""+J+j}).join(`
`)),m+=b+$[I+1]}),m}var E=null},"./node_modules/d3/src/index.js":function(mt,D,f){"use strict";f.d(D,{JLW:function(){return Td},l78:function(){return at},tlR:function(){return j},qrM:function(){return Ld},Yu4:function(){return Md},IA3:function(){return Fd},Wi0:function(){return Dd},PGM:function(){return Id},OEq:function(){return Pd},y8u:function(){return jd},olC:function(){return Nd},IrU:function(){return Rd},oDi:function(){return $d},Q7f:function(){return zd},cVp:function(){return Ud},lUB:function(){return Ru},Lx9:function(){return Wd},nVG:function(){return Hd},uxU:function(){return Yd},Xf2:function(){return qd},GZz:function(){return Gd},UPb:function(){return Kd},dyv:function(){return Vd},bEH:function(){return sc},n8j:function(){return Sd},T9B:function(){return B},jkA:function(){return E},rLf:function(){return Ed},WH:function(){return as},m4Y:function(){return Ha},UMr:function(){return ss},w7C:function(){return ad},zt:function(){return cd},Ltv:function(){return hd},Ubm:function(){return ud},JWy:function(){return cu},UAC:function(){return jr},DCK:function(){return Ms},TUC:function(){return $r},Agd:function(){return wo},t6C:function(){return xr},wXd:function(){return pn},ABi:function(){return _n},Ui6:function(){return Bo},rGn:function(){return Ga},ucG:function(){return vr},YPH:function(){return zn},Mol:function(){return Tr},PGu:function(){return qa},GuW:function(){return vs}});function B(t,i){let r;if(i===void 0)for(const o of t)o!=null&&(r<o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let a of t)(a=i(a,++o,t))!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}return r}function E(t,i){let r;if(i===void 0)for(const o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let a of t)(a=i(a,++o,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function P(t){return t}var A=1,M=2,$=3,W=4,q=1e-6;function m(t){return"translate("+t+",0)"}function k(t){return"translate(0,"+t+")"}function I(t){return i=>+t(i)}function et(t,i){return i=Math.max(0,t.bandwidth()-i*2)/2,t.round()&&(i=Math.round(i)),r=>+t(r)+i}function J(){return!this.__axis}function b(t,i){var r=[],o=null,a=null,c=6,h=6,d=3,g=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===A||t===W?-1:1,C=t===W||t===M?"x":"y",L=t===A||t===$?m:k;function x(O){var nt=o??(i.ticks?i.ticks.apply(i,r):i.domain()),xt=a??(i.tickFormat?i.tickFormat.apply(i,r):P),U=Math.max(c,0)+d,N=i.range(),it=+N[0]+g,G=+N[N.length-1]+g,ot=(i.bandwidth?et:I)(i.copy(),g),lt=O.selection?O.selection():O,Z=lt.selectAll(".domain").data([null]),Mt=lt.selectAll(".tick").data(nt,i).order(),Nt=Mt.exit(),ee=Mt.enter().append("g").attr("class","tick"),jt=Mt.select("line"),ht=Mt.select("text");Z=Z.merge(Z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Mt=Mt.merge(ee),jt=jt.merge(ee.append("line").attr("stroke","currentColor").attr(C+"2",p*c)),ht=ht.merge(ee.append("text").attr("fill","currentColor").attr(C,p*U).attr("dy",t===A?"0em":t===$?"0.71em":"0.32em")),O!==lt&&(Z=Z.transition(O),Mt=Mt.transition(O),jt=jt.transition(O),ht=ht.transition(O),Nt=Nt.transition(O).attr("opacity",q).attr("transform",function(Rt){return isFinite(Rt=ot(Rt))?L(Rt+g):this.getAttribute("transform")}),ee.attr("opacity",q).attr("transform",function(Rt){var rt=this.parentNode.__axis;return L((rt&&isFinite(rt=rt(Rt))?rt:ot(Rt))+g)})),Nt.remove(),Z.attr("d",t===W||t===M?h?"M"+p*h+","+it+"H"+g+"V"+G+"H"+p*h:"M"+g+","+it+"V"+G:h?"M"+it+","+p*h+"V"+g+"H"+G+"V"+p*h:"M"+it+","+g+"H"+G),Mt.attr("opacity",1).attr("transform",function(Rt){return L(ot(Rt)+g)}),jt.attr(C+"2",p*c),ht.attr(C,p*U).text(xt),lt.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===M?"start":t===W?"end":"middle"),lt.each(function(){this.__axis=ot})}return x.scale=function(O){return arguments.length?(i=O,x):i},x.ticks=function(){return r=Array.from(arguments),x},x.tickArguments=function(O){return arguments.length?(r=O==null?[]:Array.from(O),x):r.slice()},x.tickValues=function(O){return arguments.length?(o=O==null?null:Array.from(O),x):o&&o.slice()},x.tickFormat=function(O){return arguments.length?(a=O,x):a},x.tickSize=function(O){return arguments.length?(c=h=+O,x):c},x.tickSizeInner=function(O){return arguments.length?(c=+O,x):c},x.tickSizeOuter=function(O){return arguments.length?(h=+O,x):h},x.tickPadding=function(O){return arguments.length?(d=+O,x):d},x.offset=function(O){return arguments.length?(g=+O,x):g},x}function j(t){return b(A,t)}function R(t){return b(M,t)}function at(t){return b($,t)}function dt(t){return b(W,t)}function gt(){}function Ct(t){return t==null?gt:function(){return this.querySelector(t)}}function St(t){typeof t!="function"&&(t=Ct(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var c=i[a],h=c.length,d=o[a]=new Array(h),g,p,C=0;C<h;++C)(g=c[C])&&(p=t.call(g,g.__data__,C,c))&&("__data__"in g&&(p.__data__=g.__data__),d[C]=p);return new de(o,this._parents)}function me(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ct(){return[]}function Kt(t){return t==null?ct:function(){return this.querySelectorAll(t)}}function ge(t){return function(){return me(t.apply(this,arguments))}}function Ve(t){typeof t=="function"?t=ge(t):t=Kt(t);for(var i=this._groups,r=i.length,o=[],a=[],c=0;c<r;++c)for(var h=i[c],d=h.length,g,p=0;p<d;++p)(g=h[p])&&(o.push(t.call(g,g.__data__,p,h)),a.push(g));return new de(o,a)}function Ke(t){return function(){return this.matches(t)}}function $t(t){return function(i){return i.matches(t)}}var Ue=Array.prototype.find;function nr(t){return function(){return Ue.call(this.children,t)}}function Si(){return this.firstElementChild}function Ri(t){return this.select(t==null?Si:nr(typeof t=="function"?t:$t(t)))}var wi=Array.prototype.filter;function Bi(){return Array.from(this.children)}function qt(t){return function(){return wi.call(this.children,t)}}function Gt(t){return this.selectAll(t==null?Bi:qt(typeof t=="function"?t:$t(t)))}function Jt(t){typeof t!="function"&&(t=Ke(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var c=i[a],h=c.length,d=o[a]=[],g,p=0;p<h;++p)(g=c[p])&&t.call(g,g.__data__,p,c)&&d.push(g);return new de(o,this._parents)}function pe(t){return new Array(t.length)}function we(){return new de(this._enter||this._groups.map(pe),this._parents)}function _t(t,i){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=i}_t.prototype={constructor:_t,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,i){return this._parent.insertBefore(t,i)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Bt(t){return function(){return t}}function Ut(t,i,r,o,a,c){for(var h=0,d,g=i.length,p=c.length;h<p;++h)(d=i[h])?(d.__data__=c[h],o[h]=d):r[h]=new _t(t,c[h]);for(;h<g;++h)(d=i[h])&&(a[h]=d)}function se(t,i,r,o,a,c,h){var d,g,p=new Map,C=i.length,L=c.length,x=new Array(C),O;for(d=0;d<C;++d)(g=i[d])&&(x[d]=O=h.call(g,g.__data__,d,i)+"",p.has(O)?a[d]=g:p.set(O,g));for(d=0;d<L;++d)O=h.call(t,c[d],d,c)+"",(g=p.get(O))?(o[d]=g,g.__data__=c[d],p.delete(O)):r[d]=new _t(t,c[d]);for(d=0;d<C;++d)(g=i[d])&&p.get(x[d])===g&&(a[d]=g)}function Sr(t){return t.__data__}function je(t,i){if(!arguments.length)return Array.from(this,Sr);var r=i?se:Ut,o=this._parents,a=this._groups;typeof t!="function"&&(t=Bt(t));for(var c=a.length,h=new Array(c),d=new Array(c),g=new Array(c),p=0;p<c;++p){var C=o[p],L=a[p],x=L.length,O=Qe(t.call(C,C&&C.__data__,p,o)),nt=O.length,xt=d[p]=new Array(nt),U=h[p]=new Array(nt),N=g[p]=new Array(x);r(C,L,xt,U,N,O,i);for(var it=0,G=0,ot,lt;it<nt;++it)if(ot=xt[it]){for(it>=G&&(G=it+1);!(lt=U[G])&&++G<nt;);ot._next=lt||null}}return h=new de(h,o),h._enter=d,h._exit=g,h}function Qe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function wr(){return new de(this._exit||this._groups.map(pe),this._parents)}function Ne(t,i,r){var o=this.enter(),a=this,c=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),i!=null&&(a=i(a),a&&(a=a.selection())),r==null?c.remove():r(c),o&&a?o.merge(a).order():a}function Ei(t){for(var i=t.selection?t.selection():t,r=this._groups,o=i._groups,a=r.length,c=o.length,h=Math.min(a,c),d=new Array(a),g=0;g<h;++g)for(var p=r[g],C=o[g],L=p.length,x=d[g]=new Array(L),O,nt=0;nt<L;++nt)(O=p[nt]||C[nt])&&(x[nt]=O);for(;g<a;++g)d[g]=r[g];return new de(d,this._parents)}function _i(){for(var t=this._groups,i=-1,r=t.length;++i<r;)for(var o=t[i],a=o.length-1,c=o[a],h;--a>=0;)(h=o[a])&&(c&&h.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(h,c),c=h);return this}function Kn(t){t||(t=Yr);function i(L,x){return L&&x?t(L.__data__,x.__data__):!L-!x}for(var r=this._groups,o=r.length,a=new Array(o),c=0;c<o;++c){for(var h=r[c],d=h.length,g=a[c]=new Array(d),p,C=0;C<d;++C)(p=h[C])&&(g[C]=p);g.sort(i)}return new de(a,this._parents).order()}function Yr(t,i){return t<i?-1:t>i?1:t>=i?0:NaN}function Yt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Tt(){return Array.from(this)}function Wt(){for(var t=this._groups,i=0,r=t.length;i<r;++i)for(var o=t[i],a=0,c=o.length;a<c;++a){var h=o[a];if(h)return h}return null}function zt(){let t=0;for(const i of this)++t;return t}function _e(){return!this.node()}function We(t){for(var i=this._groups,r=0,o=i.length;r<o;++r)for(var a=i[r],c=0,h=a.length,d;c<h;++c)(d=a[c])&&t.call(d,d.__data__,c,a);return this}var yi="http://www.w3.org/1999/xhtml",Fe={svg:"http://www.w3.org/2000/svg",xhtml:yi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qt(t){var i=t+="",r=i.indexOf(":");return r>=0&&(i=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Fe.hasOwnProperty(i)?{space:Fe[i],local:t}:t}function oi(t){return function(){this.removeAttribute(t)}}function qr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oo(t,i){return function(){this.setAttribute(t,i)}}function Is(t,i){return function(){this.setAttributeNS(t.space,t.local,i)}}function Gr(t,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Vr(t,i){return function(){var r=i.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Xe(t,i){var r=Qt(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((i==null?r.local?qr:oi:typeof i=="function"?r.local?Vr:Gr:r.local?Is:Oo)(r,i))}function Li(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Kr(t){return function(){this.style.removeProperty(t)}}function or(t,i,r){return function(){this.style.setProperty(t,i,r)}}function be(t,i,r){return function(){var o=i.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function sr(t,i,r){return arguments.length>1?this.each((i==null?Kr:typeof i=="function"?be:or)(t,i,r??"")):Ci(this.node(),t)}function Ci(t,i){return t.style.getPropertyValue(i)||Li(t).getComputedStyle(t,null).getPropertyValue(i)}function Xr(t){return function(){delete this[t]}}function Ps(t,i){return function(){this[t]=i}}function Do(t,i){return function(){var r=i.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Io(t,i){return arguments.length>1?this.each((i==null?Xr:typeof i=="function"?Do:Ps)(t,i)):this.node()[t]}function ti(t){return t.trim().split(/^|\s+/)}function $i(t){return t.classList||new Zr(t)}function Zr(t){this._node=t,this._names=ti(t.getAttribute("class")||"")}Zr.prototype={add:function(t){var i=this._names.indexOf(t);i<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var i=this._names.indexOf(t);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Br(t,i){for(var r=$i(t),o=-1,a=i.length;++o<a;)r.add(i[o])}function Xn(t,i){for(var r=$i(t),o=-1,a=i.length;++o<a;)r.remove(i[o])}function Jr(t){return function(){Br(this,t)}}function Zn(t){return function(){Xn(this,t)}}function Jn(t,i){return function(){(i.apply(this,arguments)?Br:Xn)(this,t)}}function Qn(t,i){var r=ti(t+"");if(arguments.length<2){for(var o=$i(this.node()),a=-1,c=r.length;++a<c;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof i=="function"?Jn:i?Jr:Zn)(r,i))}function Qr(){this.textContent=""}function ie(t){return function(){this.textContent=t}}function At(t){return function(){var i=t.apply(this,arguments);this.textContent=i??""}}function ue(t){return arguments.length?this.each(t==null?Qr:(typeof t=="function"?At:ie)(t)):this.node().textContent}function He(){this.innerHTML=""}function re(t){return function(){this.innerHTML=t}}function Er(t){return function(){var i=t.apply(this,arguments);this.innerHTML=i??""}}function vn(t){return arguments.length?this.each(t==null?He:(typeof t=="function"?Er:re)(t)):this.node().innerHTML}function to(){this.nextSibling&&this.parentNode.appendChild(this)}function tn(){return this.each(to)}function Tn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zi(){return this.each(Tn)}function ar(t){return function(){var i=this.ownerDocument,r=this.namespaceURI;return r===yi&&i.documentElement.namespaceURI===yi?i.createElement(t):i.createElementNS(r,t)}}function eo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Mi(t){var i=Qt(t);return(i.local?eo:ar)(i)}function An(t){var i=typeof t=="function"?t:Mi(t);return this.select(function(){return this.appendChild(i.apply(this,arguments))})}function en(){return null}function lr(t,i){var r=typeof t=="function"?t:Mi(t),o=i==null?en:typeof i=="function"?i:Ct(i);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function cr(){var t=this.parentNode;t&&t.removeChild(this)}function rn(){return this.each(cr)}function io(){var t=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(t,this.nextSibling):t}function ro(){var t=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(t,this.nextSibling):t}function kn(t){return this.select(t?ro:io)}function Sn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Lr(t){return function(i){t.call(this,i,this.__data__)}}function Ui(t){return t.trim().split(/^|\s+/).map(function(i){var r="",o=i.indexOf(".");return o>=0&&(r=i.slice(o+1),i=i.slice(0,o)),{type:i,name:r}})}function Fi(t){return function(){var i=this.__on;if(i){for(var r=0,o=-1,a=i.length,c;r<a;++r)c=i[r],(!t.type||c.type===t.type)&&c.name===t.name?this.removeEventListener(c.type,c.listener,c.options):i[++o]=c;++o?i.length=o:delete this.__on}}}function nn(t,i,r){return function(){var o=this.__on,a,c=Lr(i);if(o){for(var h=0,d=o.length;h<d;++h)if((a=o[h]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=c,a.options=r),a.value=i;return}}this.addEventListener(t.type,c,r),a={type:t.type,name:t.name,value:i,listener:c,options:r},o?o.push(a):this.__on=[a]}}function no(t,i,r){var o=Ui(t+""),a,c=o.length,h;if(arguments.length<2){var d=this.node().__on;if(d){for(var g=0,p=d.length,C;g<p;++g)for(a=0,C=d[g];a<c;++a)if((h=o[a]).type===C.type&&h.name===C.name)return C.value}return}for(d=i?nn:Fi,a=0;a<c;++a)this.each(d(o[a],i,r));return this}function on(t,i,r){var o=Li(t),a=o.CustomEvent;typeof a=="function"?a=new a(i,r):(a=o.document.createEvent("Event"),r?(a.initEvent(i,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(i,!1,!1)),t.dispatchEvent(a)}function hr(t,i){return function(){return on(this,t,i)}}function Oe(t,i){return function(){return on(this,t,i.apply(this,arguments))}}function Wi(t,i){return this.each((typeof i=="function"?Oe:hr)(t,i))}function*Hi(){for(var t=this._groups,i=0,r=t.length;i<r;++i)for(var o=t[i],a=0,c=o.length,h;a<c;++a)(h=o[a])&&(yield h)}var ei=[null];function de(t,i){this._groups=t,this._parents=i}function sn(){return new de([[document.documentElement]],ei)}function wn(){return this}de.prototype=sn.prototype={constructor:de,select:St,selectAll:Ve,selectChild:Ri,selectChildren:Gt,filter:Jt,data:je,enter:we,exit:wr,join:Ne,merge:Ei,selection:wn,order:_i,sort:Kn,call:Yt,nodes:Tt,node:Wt,size:zt,empty:_e,each:We,attr:Xe,style:sr,property:Io,classed:Qn,text:ue,html:vn,raise:tn,lower:zi,append:An,insert:lr,remove:rn,clone:kn,datum:Sn,on:no,dispatch:Wi,[Symbol.iterator]:Hi};var Mr=sn,ur={value:()=>{}};function oo(){for(var t=0,i=arguments.length,r={},o;t<i;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new an(r)}function an(t){this._=t}function xe(t,i){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!i.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}an.prototype=oo.prototype={constructor:an,on:function(t,i){var r=this._,o=xe(t+"",r),a,c=-1,h=o.length;if(arguments.length<2){for(;++c<h;)if((a=(t=o[c]).type)&&(a=Fr(r[a],t.name)))return a;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++c<h;)if(a=(t=o[c]).type)r[a]=si(r[a],t.name,i);else if(i==null)for(a in r)r[a]=si(r[a],t.name,null);return this},copy:function(){var t={},i=this._;for(var r in i)t[r]=i[r].slice();return new an(t)},call:function(t,i){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,c;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=this._[t],o=0,a=c.length;o<a;++o)c[o].value.apply(i,r)},apply:function(t,i,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,c=o.length;a<c;++a)o[a].value.apply(i,r)}};function Fr(t,i){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===i)return a.value}function si(t,i,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===i){t[o]=ur,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:i,value:r}),t}var ai=oo,bi=0,Yi=0,dr=0,Bn=1e3,Oi,fr,Or=0,ye=0,mr=0,qi=typeof performance=="object"&&performance.now?performance:Date,Di=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gr(){return ye||(Di(En),ye=qi.now()+mr)}function En(){ye=0}function Ye(){this._call=this._time=this._next=null}Ye.prototype=Ln.prototype={constructor:Ye,restart:function(t,i,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?gr():+r)+(i==null?0:+i),!this._next&&fr!==this&&(fr?fr._next=this:Oi=this,fr=this),this._call=t,this._time=r,bt()},stop:function(){this._call&&(this._call=null,this._time=1/0,bt())}};function Ln(t,i,r){var o=new Ye;return o.restart(t,i,r),o}function ln(){gr(),++bi;for(var t=Oi,i;t;)(i=ye-t._time)>=0&&t._call.call(void 0,i),t=t._next;--bi}function Ce(){ye=(Or=qi.now())+mr,bi=Yi=0;try{ln()}finally{bi=0,Po(),ye=0}}function Mn(){var t=qi.now(),i=t-Or;i>Bn&&(mr-=i,Or=t)}function Po(){for(var t,i=Oi,r,o=1/0;i;)i._call?(o>i._time&&(o=i._time),t=i,i=i._next):(r=i._next,i._next=null,i=t?t._next=r:Oi=r);fr=t,bt(o)}function bt(t){if(!bi){Yi&&(Yi=clearTimeout(Yi));var i=t-ye;i>24?(t<1/0&&(Yi=setTimeout(Ce,t-qi.now()-mr)),dr&&(dr=clearInterval(dr))):(dr||(Or=qi.now(),dr=setInterval(Mn,Bn)),bi=1,Di(Ce))}}function v(t,i,r){var o=new Ye;return i=i==null?0:+i,o.restart(a=>{o.stop(),t(a+i)},i,r),o}var X=ai("start","end","cancel","interrupt"),pt=[],te=0,ve=1,Te=2,Be=3,xi=4,Gi=5,Ee=6;function pr(t,i,r,o,a,c){var h=t.__transition;if(!h)t.__transition={};else if(r in h)return;js(t,r,{name:i,index:o,group:a,on:X,tween:pt,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:te})}function _r(t,i){var r=vi(t,i);if(r.state>te)throw new Error("too late; already scheduled");return r}function Ii(t,i){var r=vi(t,i);if(r.state>Be)throw new Error("too late; already running");return r}function vi(t,i){var r=t.__transition;if(!r||!(r=r[i]))throw new Error("transition not found");return r}function js(t,i,r){var o=t.__transition,a;o[i]=r,r.timer=Ln(c,0,r.time);function c(p){r.state=ve,r.timer.restart(h,r.delay,r.time),r.delay<=p&&h(p-r.delay)}function h(p){var C,L,x,O;if(r.state!==ve)return g();for(C in o)if(O=o[C],O.name===r.name){if(O.state===Be)return v(h);O.state===xi?(O.state=Ee,O.timer.stop(),O.on.call("interrupt",t,t.__data__,O.index,O.group),delete o[C]):+C<i&&(O.state=Ee,O.timer.stop(),O.on.call("cancel",t,t.__data__,O.index,O.group),delete o[C])}if(v(function(){r.state===Be&&(r.state=xi,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Te,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Te){for(r.state=Be,a=new Array(x=r.tween.length),C=0,L=-1;C<x;++C)(O=r.tween[C].value.call(t,t.__data__,r.index,r.group))&&(a[++L]=O);a.length=L+1}}function d(p){for(var C=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(g),r.state=Gi,1),L=-1,x=a.length;++L<x;)a[L].call(t,C);r.state===Gi&&(r.on.call("end",t,t.__data__,r.index,r.group),g())}function g(){r.state=Ee,r.timer.stop(),delete o[i];for(var p in o)return;delete t.__transition}}function Ns(t,i){var r=t.__transition,o,a,c=!0,h;if(r){i=i==null?null:i+"";for(h in r){if((o=r[h]).name!==i){c=!1;continue}a=o.state>Te&&o.state<Gi,o.state=Ee,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[h]}c&&delete t.__transition}}function Rs(t){return this.each(function(){Ns(this,t)})}function Ti(t,i){return t=+t,i=+i,function(r){return t*(1-r)+i*r}}var jo=180/Math.PI,No={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $s(t,i,r,o,a,c){var h,d,g;return(h=Math.sqrt(t*t+i*i))&&(t/=h,i/=h),(g=t*r+i*o)&&(r-=t*g,o-=i*g),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,g/=d),t*o<i*r&&(t=-t,i=-i,g=-g,h=-h),{translateX:a,translateY:c,rotate:Math.atan2(i,t)*jo,skewX:Math.atan(g)*jo,scaleX:h,scaleY:d}}var Fn;function xl(t){const i=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return i.isIdentity?No:$s(i.a,i.b,i.c,i.d,i.e,i.f)}function zs(t){return t==null||(Fn||(Fn=document.createElementNS("http://www.w3.org/2000/svg","g")),Fn.setAttribute("transform",t),!(t=Fn.transform.baseVal.consolidate()))?No:(t=t.matrix,$s(t.a,t.b,t.c,t.d,t.e,t.f))}function cn(t,i,r,o){function a(p){return p.length?p.pop()+" ":""}function c(p,C,L,x,O,nt){if(p!==L||C!==x){var xt=O.push("translate(",null,i,null,r);nt.push({i:xt-4,x:Ti(p,L)},{i:xt-2,x:Ti(C,x)})}else(L||x)&&O.push("translate("+L+i+x+r)}function h(p,C,L,x){p!==C?(p-C>180?C+=360:C-p>180&&(p+=360),x.push({i:L.push(a(L)+"rotate(",null,o)-2,x:Ti(p,C)})):C&&L.push(a(L)+"rotate("+C+o)}function d(p,C,L,x){p!==C?x.push({i:L.push(a(L)+"skewX(",null,o)-2,x:Ti(p,C)}):C&&L.push(a(L)+"skewX("+C+o)}function g(p,C,L,x,O,nt){if(p!==L||C!==x){var xt=O.push(a(O)+"scale(",null,",",null,")");nt.push({i:xt-4,x:Ti(p,L)},{i:xt-2,x:Ti(C,x)})}else(L!==1||x!==1)&&O.push(a(O)+"scale("+L+","+x+")")}return function(p,C){var L=[],x=[];return p=t(p),C=t(C),c(p.translateX,p.translateY,C.translateX,C.translateY,L,x),h(p.rotate,C.rotate,L,x),d(p.skewX,C.skewX,L,x),g(p.scaleX,p.scaleY,C.scaleX,C.scaleY,L,x),p=C=null,function(O){for(var nt=-1,xt=x.length,U;++nt<xt;)L[(U=x[nt]).i]=U.x(O);return L.join("")}}}var Ro=cn(xl,"px, ","px)","deg)"),vl=cn(zs,", ",")",")");function so(t,i){var r,o;return function(){var a=Ii(this,t),c=a.tween;if(c!==r){o=r=c;for(var h=0,d=o.length;h<d;++h)if(o[h].name===i){o=o.slice(),o.splice(h,1);break}}a.tween=o}}function Tl(t,i,r){var o,a;if(typeof r!="function")throw new Error;return function(){var c=Ii(this,t),h=c.tween;if(h!==o){a=(o=h).slice();for(var d={name:i,value:r},g=0,p=a.length;g<p;++g)if(a[g].name===i){a[g]=d;break}g===p&&a.push(d)}c.tween=a}}function Us(t,i){var r=this._id;if(t+="",arguments.length<2){for(var o=vi(this.node(),r).tween,a=0,c=o.length,h;a<c;++a)if((h=o[a]).name===t)return h.value;return null}return this.each((i==null?so:Tl)(r,t,i))}function $o(t,i,r){var o=t._id;return t.each(function(){var a=Ii(this,o);(a.value||(a.value={}))[i]=r.apply(this,arguments)}),function(a){return vi(a,o).value[i]}}function yr(t,i,r){t.prototype=i.prototype=r,r.constructor=t}function hn(t,i){var r=Object.create(t.prototype);for(var o in i)r[o]=i[o];return r}function li(){}var On=.7,Dn=1/On,Dr="\\s*([+-]?\\d+)\\s*",Pi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ws=/^#([0-9a-f]{3,8})$/,un=new RegExp(`^rgb\\(${Dr},${Dr},${Dr}\\)$`),In=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),ao=new RegExp(`^rgba\\(${Dr},${Dr},${Dr},${Pi}\\)$`),Al=new RegExp(`^rgba\\(${he},${he},${he},${Pi}\\)$`),kl=new RegExp(`^hsl\\(${Pi},${he},${he}\\)$`),Sl=new RegExp(`^hsla\\(${Pi},${he},${he},${Pi}\\)$`),zo={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};yr(li,ji,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Uo,formatHex:Uo,formatHex8:Ai,formatHsl:Hs,formatRgb:Ys,toString:Ys});function Uo(){return this.rgb().formatHex()}function Ai(){return this.rgb().formatHex8()}function Hs(){return Ll(this).formatHsl()}function Ys(){return this.rgb().formatRgb()}function ji(t){var i,r;return t=(t+"").trim().toLowerCase(),(i=Ws.exec(t))?(r=i[1].length,i=parseInt(i[1],16),r===6?qs(i):r===3?new Re(i>>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):r===8?Pn(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):r===4?Pn(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=un.exec(t))?new Re(i[1],i[2],i[3],1):(i=In.exec(t))?new Re(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=ao.exec(t))?Pn(i[1],i[2],i[3],i[4]):(i=Al.exec(t))?Pn(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=kl.exec(t))?El(i[1],i[2]/100,i[3]/100,1):(i=Sl.exec(t))?El(i[1],i[2]/100,i[3]/100,i[4]):zo.hasOwnProperty(t)?qs(zo[t]):t==="transparent"?new Re(NaN,NaN,NaN,0):null}function qs(t){return new Re(t>>16&255,t>>8&255,t&255,1)}function Pn(t,i,r,o){return o<=0&&(t=i=r=NaN),new Re(t,i,r,o)}function Gs(t){return t instanceof li||(t=ji(t)),t?(t=t.rgb(),new Re(t.r,t.g,t.b,t.opacity)):new Re}function jn(t,i,r,o){return arguments.length===1?Gs(t):new Re(t,i,r,o??1)}function Re(t,i,r,o){this.r=+t,this.g=+i,this.b=+r,this.opacity=+o}yr(Re,jn,hn(li,{brighter(t){return t=t==null?Dn:Math.pow(Dn,t),new Re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?On:Math.pow(On,t),new Re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Re(Cr(this.r),Cr(this.g),Cr(this.b),lo(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:wl,formatHex:wl,formatHex8:Th,formatRgb:Bl,toString:Bl}));function wl(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}`}function Th(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}${dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bl(){const t=lo(this.opacity);return`${t===1?"rgb(":"rgba("}${Cr(this.r)}, ${Cr(this.g)}, ${Cr(this.b)}${t===1?")":`, ${t})`}`}function lo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Cr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function dn(t){return t=Cr(t),(t<16?"0":"")+t.toString(16)}function El(t,i,r,o){return o<=0?t=i=r=NaN:r<=0||r>=1?t=i=NaN:i<=0&&(t=NaN),new ci(t,i,r,o)}function Ll(t){if(t instanceof ci)return new ci(t.h,t.s,t.l,t.opacity);if(t instanceof li||(t=ji(t)),!t)return new ci;if(t instanceof ci)return t;t=t.rgb();var i=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(i,r,o),c=Math.max(i,r,o),h=NaN,d=c-a,g=(c+a)/2;return d?(i===c?h=(r-o)/d+(r<o)*6:r===c?h=(o-i)/d+2:h=(i-r)/d+4,d/=g<.5?c+a:2-c-a,h*=60):d=g>0&&g<1?0:h,new ci(h,d,g,t.opacity)}function Ml(t,i,r,o){return arguments.length===1?Ll(t):new ci(t,i,r,o??1)}function ci(t,i,r,o){this.h=+t,this.s=+i,this.l=+r,this.opacity=+o}yr(ci,Ml,hn(li,{brighter(t){return t=t==null?Dn:Math.pow(Dn,t),new ci(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?On:Math.pow(On,t),new ci(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,i=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*i,a=2*r-o;return new Re(Vs(t>=240?t-240:t+120,a,o),Vs(t,a,o),Vs(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new ci(Fl(this.h),Wo(this.s),Wo(this.l),lo(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=lo(this.opacity);return`${t===1?"hsl(":"hsla("}${Fl(this.h)}, ${Wo(this.s)*100}%, ${Wo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Fl(t){return t=(t||0)%360,t<0?t+360:t}function Wo(t){return Math.max(0,Math.min(1,t||0))}function Vs(t,i,r){return(t<60?i+(r-i)*t/60:t<180?r:t<240?i+(r-i)*(240-t)/60:i)*255}function Ks(t,i,r,o,a){var c=t*t,h=c*t;return((1-3*t+3*c-h)*i+(4-6*c+3*h)*r+(1+3*t+3*c-3*h)*o+h*a)/6}function Xs(t){var i=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,i-1):Math.floor(r*i),a=t[o],c=t[o+1],h=o>0?t[o-1]:2*a-c,d=o<i-1?t[o+2]:2*c-a;return Ks((r-o/i)*i,h,a,c,d)}}function Ah(t){var i=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*i),a=t[(o+i-1)%i],c=t[o%i],h=t[(o+1)%i],d=t[(o+2)%i];return Ks((r-o/i)*i,a,c,h,d)}}var Ho=t=>()=>t;function Ol(t,i){return function(r){return t+r*i}}function Dl(t,i,r){return t=Math.pow(t,r),i=Math.pow(i,r)-t,r=1/r,function(o){return Math.pow(t+o*i,r)}}function Zs(t,i){var r=i-t;return r?Ol(t,r>180||r<-180?r-360*Math.round(r/360):r):Ho(isNaN(t)?i:t)}function kh(t){return(t=+t)==1?Nn:function(i,r){return r-i?Dl(i,r,t):Ho(isNaN(i)?r:i)}}function Nn(t,i){var r=i-t;return r?Ol(t,r):Ho(isNaN(t)?i:t)}var Yo=function t(i){var r=kh(i);function o(a,c){var h=r((a=jn(a)).r,(c=jn(c)).r),d=r(a.g,c.g),g=r(a.b,c.b),p=Nn(a.opacity,c.opacity);return function(C){return a.r=h(C),a.g=d(C),a.b=g(C),a.opacity=p(C),a+""}}return o.gamma=t,o}(1);function Js(t){return function(i){var r=i.length,o=new Array(r),a=new Array(r),c=new Array(r),h,d;for(h=0;h<r;++h)d=jn(i[h]),o[h]=d.r||0,a[h]=d.g||0,c[h]=d.b||0;return o=t(o),a=t(a),c=t(c),d.opacity=1,function(g){return d.r=o(g),d.g=a(g),d.b=c(g),d+""}}}var Il=Js(Xs),id=Js(Ah),Qs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ta=new RegExp(Qs.source,"g");function Pl(t){return function(){return t}}function ea(t){return function(i){return t(i)+""}}function jl(t,i){var r=Qs.lastIndex=ta.lastIndex=0,o,a,c,h=-1,d=[],g=[];for(t=t+"",i=i+"";(o=Qs.exec(t))&&(a=ta.exec(i));)(c=a.index)>r&&(c=i.slice(r,c),d[h]?d[h]+=c:d[++h]=c),(o=o[0])===(a=a[0])?d[h]?d[h]+=a:d[++h]=a:(d[++h]=null,g.push({i:h,x:Ti(o,a)})),r=ta.lastIndex;return r<i.length&&(c=i.slice(r),d[h]?d[h]+=c:d[++h]=c),d.length<2?g[0]?ea(g[0].x):Pl(i):(i=g.length,function(p){for(var C=0,L;C<i;++C)d[(L=g[C]).i]=L.x(p);return d.join("")})}function Nl(t,i){var r;return(typeof i=="number"?Ti:i instanceof ji?Yo:(r=ji(i))?(i=r,Yo):jl)(t,i)}function Rl(t){return function(){this.removeAttribute(t)}}function ia(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sh(t,i,r){var o,a=r+"",c;return function(){var h=this.getAttribute(t);return h===a?null:h===o?c:c=i(o=h,r)}}function wh(t,i,r){var o,a=r+"",c;return function(){var h=this.getAttributeNS(t.space,t.local);return h===a?null:h===o?c:c=i(o=h,r)}}function $l(t,i,r){var o,a,c;return function(){var h,d=r(this),g;return d==null?void this.removeAttribute(t):(h=this.getAttribute(t),g=d+"",h===g?null:h===o&&g===a?c:(a=g,c=i(o=h,d)))}}function ra(t,i,r){var o,a,c;return function(){var h,d=r(this),g;return d==null?void this.removeAttributeNS(t.space,t.local):(h=this.getAttributeNS(t.space,t.local),g=d+"",h===g?null:h===o&&g===a?c:(a=g,c=i(o=h,d)))}}function Bh(t,i){var r=Qt(t),o=r==="transform"?vl:Nl;return this.attrTween(t,typeof i=="function"?(r.local?ra:$l)(r,o,$o(this,"attr."+t,i)):i==null?(r.local?ia:Rl)(r):(r.local?wh:Sh)(r,o,i))}function Eh(t,i){return function(r){this.setAttribute(t,i.call(this,r))}}function Lh(t,i){return function(r){this.setAttributeNS(t.space,t.local,i.call(this,r))}}function zl(t,i){var r,o;function a(){var c=i.apply(this,arguments);return c!==o&&(r=(o=c)&&Lh(t,c)),r}return a._value=i,a}function na(t,i){var r,o;function a(){var c=i.apply(this,arguments);return c!==o&&(r=(o=c)&&Eh(t,c)),r}return a._value=i,a}function Mh(t,i){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(i==null)return this.tween(r,null);if(typeof i!="function")throw new Error;var o=Qt(t);return this.tween(r,(o.local?zl:na)(o,i))}function Fh(t,i){return function(){_r(this,t).delay=+i.apply(this,arguments)}}function Oh(t,i){return i=+i,function(){_r(this,t).delay=i}}function Ul(t){var i=this._id;return arguments.length?this.each((typeof t=="function"?Fh:Oh)(i,t)):vi(this.node(),i).delay}function oa(t,i){return function(){Ii(this,t).duration=+i.apply(this,arguments)}}function Dh(t,i){return i=+i,function(){Ii(this,t).duration=i}}function Ih(t){var i=this._id;return arguments.length?this.each((typeof t=="function"?oa:Dh)(i,t)):vi(this.node(),i).duration}function Ph(t,i){if(typeof i!="function")throw new Error;return function(){Ii(this,t).ease=i}}function Wl(t){var i=this._id;return arguments.length?this.each(Ph(i,t)):vi(this.node(),i).ease}function sa(t,i){return function(){var r=i.apply(this,arguments);if(typeof r!="function")throw new Error;Ii(this,t).ease=r}}function jh(t){if(typeof t!="function")throw new Error;return this.each(sa(this._id,t))}function Nh(t){typeof t!="function"&&(t=Ke(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var c=i[a],h=c.length,d=o[a]=[],g,p=0;p<h;++p)(g=c[p])&&t.call(g,g.__data__,p,c)&&d.push(g);return new Vi(o,this._parents,this._name,this._id)}function Rh(t){if(t._id!==this._id)throw new Error;for(var i=this._groups,r=t._groups,o=i.length,a=r.length,c=Math.min(o,a),h=new Array(o),d=0;d<c;++d)for(var g=i[d],p=r[d],C=g.length,L=h[d]=new Array(C),x,O=0;O<C;++O)(x=g[O]||p[O])&&(L[O]=x);for(;d<o;++d)h[d]=i[d];return new Vi(h,this._parents,this._name,this._id)}function Hl(t){return(t+"").trim().split(/^|\s+/).every(function(i){var r=i.indexOf(".");return r>=0&&(i=i.slice(0,r)),!i||i==="start"})}function aa(t,i,r){var o,a,c=Hl(i)?_r:Ii;return function(){var h=c(this,t),d=h.on;d!==o&&(a=(o=d).copy()).on(i,r),h.on=a}}function $h(t,i){var r=this._id;return arguments.length<2?vi(this.node(),r).on.on(t):this.each(aa(r,t,i))}function zh(t){return function(){var i=this.parentNode;for(var r in this.__transition)if(+r!==t)return;i&&i.removeChild(this)}}function Uh(){return this.on("end.remove",zh(this._id))}function Yl(t){var i=this._name,r=this._id;typeof t!="function"&&(t=Ct(t));for(var o=this._groups,a=o.length,c=new Array(a),h=0;h<a;++h)for(var d=o[h],g=d.length,p=c[h]=new Array(g),C,L,x=0;x<g;++x)(C=d[x])&&(L=t.call(C,C.__data__,x,d))&&("__data__"in C&&(L.__data__=C.__data__),p[x]=L,pr(p[x],i,r,x,p,vi(C,r)));return new Vi(c,this._parents,i,r)}function la(t){var i=this._name,r=this._id;typeof t!="function"&&(t=Kt(t));for(var o=this._groups,a=o.length,c=[],h=[],d=0;d<a;++d)for(var g=o[d],p=g.length,C,L=0;L<p;++L)if(C=g[L]){for(var x=t.call(C,C.__data__,L,g),O,nt=vi(C,r),xt=0,U=x.length;xt<U;++xt)(O=x[xt])&&pr(O,i,r,xt,x,nt);c.push(x),h.push(C)}return new Vi(c,h,i,r)}var Wh=Mr.prototype.constructor;function Hh(){return new Wh(this._groups,this._parents)}function Yh(t,i){var r,o,a;return function(){var c=Ci(this,t),h=(this.style.removeProperty(t),Ci(this,t));return c===h?null:c===r&&h===o?a:a=i(r=c,o=h)}}function ca(t){return function(){this.style.removeProperty(t)}}function ha(t,i,r){var o,a=r+"",c;return function(){var h=Ci(this,t);return h===a?null:h===o?c:c=i(o=h,r)}}function qh(t,i,r){var o,a,c;return function(){var h=Ci(this,t),d=r(this),g=d+"";return d==null&&(g=d=(this.style.removeProperty(t),Ci(this,t))),h===g?null:h===o&&g===a?c:(a=g,c=i(o=h,d))}}function Gh(t,i){var r,o,a,c="style."+i,h="end."+c,d;return function(){var g=Ii(this,t),p=g.on,C=g.value[c]==null?d||(d=ca(i)):void 0;(p!==r||a!==C)&&(o=(r=p).copy()).on(h,a=C),g.on=o}}function Vh(t,i,r){var o=(t+="")=="transform"?Ro:Nl;return i==null?this.styleTween(t,Yh(t,o)).on("end.style."+t,ca(t)):typeof i=="function"?this.styleTween(t,qh(t,o,$o(this,"style."+t,i))).each(Gh(this._id,t)):this.styleTween(t,ha(t,o,i),r).on("end.style."+t,null)}function ql(t,i,r){return function(o){this.style.setProperty(t,i.call(this,o),r)}}function ua(t,i,r){var o,a;function c(){var h=i.apply(this,arguments);return h!==a&&(o=(a=h)&&ql(t,h,r)),o}return c._value=i,c}function Kh(t,i,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(i==null)return this.tween(o,null);if(typeof i!="function")throw new Error;return this.tween(o,ua(t,i,r??""))}function Xh(t){return function(){this.textContent=t}}function Zh(t){return function(){var i=t(this);this.textContent=i??""}}function Gl(t){return this.tween("text",typeof t=="function"?Zh($o(this,"text",t)):Xh(t==null?"":t+""))}function da(t){return function(i){this.textContent=t.call(this,i)}}function Jh(t){var i,r;function o(){var a=t.apply(this,arguments);return a!==r&&(i=(r=a)&&da(a)),i}return o._value=t,o}function Qh(t){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Jh(t))}function tu(){for(var t=this._name,i=this._id,r=Go(),o=this._groups,a=o.length,c=0;c<a;++c)for(var h=o[c],d=h.length,g,p=0;p<d;++p)if(g=h[p]){var C=vi(g,i);pr(g,t,r,p,h,{time:C.time+C.delay+C.duration,delay:0,duration:C.duration,ease:C.ease})}return new Vi(o,this._parents,t,r)}function Vl(){var t,i,r=this,o=r._id,a=r.size();return new Promise(function(c,h){var d={value:h},g={value:function(){--a===0&&c()}};r.each(function(){var p=Ii(this,o),C=p.on;C!==t&&(i=(t=C).copy(),i._.cancel.push(d),i._.interrupt.push(d),i._.end.push(g)),p.on=i}),a===0&&c()})}var Kl=0;function Vi(t,i,r,o){this._groups=t,this._parents=i,this._name=r,this._id=o}function qo(t){return Mr().transition(t)}function Go(){return++Kl}var hi=Mr.prototype;Vi.prototype=qo.prototype={constructor:Vi,select:Yl,selectAll:la,selectChild:hi.selectChild,selectChildren:hi.selectChildren,filter:Nh,merge:Rh,selection:Hh,transition:tu,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:$h,attr:Bh,attrTween:Mh,style:Vh,styleTween:Kh,text:Gl,textTween:Qh,remove:Uh,tween:Us,delay:Ul,duration:Ih,ease:Wl,easeVarying:jh,end:Vl,[Symbol.iterator]:hi[Symbol.iterator]};function eu(t){return t*t*t}function iu(t){return--t*t*t+1}function Xl(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Vo={time:null,delay:0,duration:250,ease:Xl};function Ko(t,i){for(var r;!(r=t.__transition)||!(r=r[i]);)if(!(t=t.parentNode))throw new Error(`transition ${i} not found`);return r}function Xo(t){var i,r;t instanceof Vi?(i=t._id,t=t._name):(i=Go(),(r=Vo).time=gr(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,c=0;c<a;++c)for(var h=o[c],d=h.length,g,p=0;p<d;++p)(g=h[p])&&pr(g,t,i,p,h,r||Ko(g,i));return new Vi(o,this._parents,t,i)}Mr.prototype.interrupt=Rs,Mr.prototype.transition=Xo;var co={name:"drag"},ho={name:"space"},Ir={name:"handle"},Pr={name:"center"};const{abs:Zo,max:$e,min:ze}=Math;function Jo(t){return[+t[0],+t[1]]}function uo(t){return[Jo(t[0]),Jo(t[1])]}var fo={name:"x",handles:["w","e"].map(br),input:function(t,i){return t==null?null:[[+t[0],i[0][1]],[+t[1],i[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},mo={name:"y",handles:["n","s"].map(br),input:function(t,i){return t==null?null:[[i[0][0],+t[0]],[i[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},go={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(br),input:function(t){return t==null?null:uo(t)},output:function(t){return t}},Ki={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},fa={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ma={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ga={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Zl={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function br(t){return{type:t}}function po(t){return!t.ctrlKey&&!t.button}function Qo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Jl(){return navigator.maxTouchPoints||"ontouchstart"in this}function _o(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ru(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ql(t){var i=t.__brush;return i?i.dim.output(i.selection):null}function nu(){return yo(fo)}function rd(){return yo(mo)}function ou(){return yo(go)}function yo(t){var i=Qo,r=po,o=Jl,a=!0,c=dispatch("start","brush","end"),h=6,d;function g(U){var N=U.property("__brush",xt).selectAll(".overlay").data([br("overlay")]);N.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ki.overlay).merge(N).each(function(){var G=_o(this).extent;select(this).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1])}),U.selectAll(".selection").data([br("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ki.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var it=U.selectAll(".handle").data(t.handles,function(G){return G.type});it.exit().remove(),it.enter().append("rect").attr("class",function(G){return"handle handle--"+G.type}).attr("cursor",function(G){return Ki[G.type]}),U.each(p).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",x).filter(o).on("touchstart.brush",x).on("touchmove.brush",O).on("touchend.brush touchcancel.brush",nt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.move=function(U,N,it){U.tween?U.on("start.brush",function(G){C(this,arguments).beforestart().start(G)}).on("interrupt.brush end.brush",function(G){C(this,arguments).end(G)}).tween("brush",function(){var G=this,ot=G.__brush,lt=C(G,arguments),Z=ot.selection,Mt=t.input(typeof N=="function"?N.apply(this,arguments):N,ot.extent),Nt=interpolate(Z,Mt);function ee(jt){ot.selection=jt===1&&Mt===null?null:Nt(jt),p.call(G),lt.brush()}return Z!==null&&Mt!==null?ee:ee(1)}):U.each(function(){var G=this,ot=arguments,lt=G.__brush,Z=t.input(typeof N=="function"?N.apply(G,ot):N,lt.extent),Mt=C(G,ot).beforestart();interrupt(G),lt.selection=Z===null?null:Z,p.call(G),Mt.start(it).brush(it).end(it)})},g.clear=function(U,N){g.move(U,null,N)};function p(){var U=select(this),N=_o(this).selection;N?(U.selectAll(".selection").style("display",null).attr("x",N[0][0]).attr("y",N[0][1]).attr("width",N[1][0]-N[0][0]).attr("height",N[1][1]-N[0][1]),U.selectAll(".handle").style("display",null).attr("x",function(it){return it.type[it.type.length-1]==="e"?N[1][0]-h/2:N[0][0]-h/2}).attr("y",function(it){return it.type[0]==="s"?N[1][1]-h/2:N[0][1]-h/2}).attr("width",function(it){return it.type==="n"||it.type==="s"?N[1][0]-N[0][0]+h:h}).attr("height",function(it){return it.type==="e"||it.type==="w"?N[1][1]-N[0][1]+h:h})):U.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function C(U,N,it){var G=U.__brush.emitter;return G&&(!it||!G.clean)?G:new L(U,N,it)}function L(U,N,it){this.that=U,this.args=N,this.state=U.__brush,this.active=0,this.clean=it}L.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(U,N){return this.starting?(this.starting=!1,this.emit("start",U,N)):this.emit("brush",U),this},brush:function(U,N){return this.emit("brush",U,N),this},end:function(U,N){return--this.active===0&&(delete this.state.emitter,this.emit("end",U,N)),this},emit:function(U,N,it){var G=select(this.that).datum();c.call(U,this.that,new BrushEvent(U,{sourceEvent:N,target:g,selection:t.output(this.state.selection),mode:it,dispatch:c}),G)}};function x(U){if(d&&!U.touches||!r.apply(this,arguments))return;var N=this,it=U.target.__data__.type,G=(a&&U.metaKey?it="overlay":it)==="selection"?co:a&&U.altKey?Pr:Ir,ot=t===mo?null:ga[it],lt=t===fo?null:Zl[it],Z=_o(N),Mt=Z.extent,Nt=Z.selection,ee=Mt[0][0],jt,ht,Rt=Mt[0][1],rt,T,st=Mt[1][0],z,tt,yt=Mt[1][1],ft,vt,Et=0,It=0,Ie,le=ot&&lt&&a&&U.shiftKey,ce,Pe,Zt=Array.from(U.touches||[U],Ft=>{const Se=Ft.identifier;return Ft=pointer(Ft,N),Ft.point0=Ft.slice(),Ft.identifier=Se,Ft});interrupt(N);var Me=C(N,arguments,!0).beforestart();if(it==="overlay"){Nt&&(Ie=!0);const Ft=[Zt[0],Zt[1]||Zt[0]];Z.selection=Nt=[[jt=t===mo?ee:ze(Ft[0][0],Ft[1][0]),rt=t===fo?Rt:ze(Ft[0][1],Ft[1][1])],[z=t===mo?st:$e(Ft[0][0],Ft[1][0]),ft=t===fo?yt:$e(Ft[0][1],Ft[1][1])]],Zt.length>1&&ke(U)}else jt=Nt[0][0],rt=Nt[0][1],z=Nt[1][0],ft=Nt[1][1];ht=jt,T=rt,tt=z,vt=ft;var ut=select(N).attr("pointer-events","none"),Pt=ut.selectAll(".overlay").attr("cursor",Ki[it]);if(U.touches)Me.moved=K,Me.ended=oe;else{var Ht=select(U.view).on("mousemove.brush",K,!0).on("mouseup.brush",oe,!0);a&&Ht.on("keydown.brush",ri,!0).on("keyup.brush",ni,!0),dragDisable(U.view)}p.call(N),Me.start(U,G.name);function K(Ft){for(const Se of Ft.changedTouches||[Ft])for(const Ds of Zt)Ds.identifier===Se.identifier&&(Ds.cur=pointer(Se,N));if(le&&!ce&&!Pe&&Zt.length===1){const Se=Zt[0];Zo(Se.cur[0]-Se[0])>Zo(Se.cur[1]-Se[1])?Pe=!0:ce=!0}for(const Se of Zt)Se.cur&&(Se[0]=Se.cur[0],Se[1]=Se.cur[1]);Ie=!0,noevent(Ft),ke(Ft)}function ke(Ft){const Se=Zt[0],Ds=Se.point0;var xn;switch(Et=Se[0]-Ds[0],It=Se[1]-Ds[1],G){case ho:case co:{ot&&(Et=$e(ee-jt,ze(st-z,Et)),ht=jt+Et,tt=z+Et),lt&&(It=$e(Rt-rt,ze(yt-ft,It)),T=rt+It,vt=ft+It);break}case Ir:{Zt[1]?(ot&&(ht=$e(ee,ze(st,Zt[0][0])),tt=$e(ee,ze(st,Zt[1][0])),ot=1),lt&&(T=$e(Rt,ze(yt,Zt[0][1])),vt=$e(Rt,ze(yt,Zt[1][1])),lt=1)):(ot<0?(Et=$e(ee-jt,ze(st-jt,Et)),ht=jt+Et,tt=z):ot>0&&(Et=$e(ee-z,ze(st-z,Et)),ht=jt,tt=z+Et),lt<0?(It=$e(Rt-rt,ze(yt-rt,It)),T=rt+It,vt=ft):lt>0&&(It=$e(Rt-ft,ze(yt-ft,It)),T=rt,vt=ft+It));break}case Pr:{ot&&(ht=$e(ee,ze(st,jt-Et*ot)),tt=$e(ee,ze(st,z+Et*ot))),lt&&(T=$e(Rt,ze(yt,rt-It*lt)),vt=$e(Rt,ze(yt,ft+It*lt)));break}}tt<ht&&(ot*=-1,xn=jt,jt=z,z=xn,xn=ht,ht=tt,tt=xn,it in fa&&Pt.attr("cursor",Ki[it=fa[it]])),vt<T&&(lt*=-1,xn=rt,rt=ft,ft=xn,xn=T,T=vt,vt=xn,it in ma&&Pt.attr("cursor",Ki[it=ma[it]])),Z.selection&&(Nt=Z.selection),ce&&(ht=Nt[0][0],tt=Nt[1][0]),Pe&&(T=Nt[0][1],vt=Nt[1][1]),(Nt[0][0]!==ht||Nt[0][1]!==T||Nt[1][0]!==tt||Nt[1][1]!==vt)&&(Z.selection=[[ht,T],[tt,vt]],p.call(N),Me.brush(Ft,G.name))}function oe(Ft){if(nopropagation(Ft),Ft.touches){if(Ft.touches.length)return;d&&clearTimeout(d),d=setTimeout(function(){d=null},500)}else dragEnable(Ft.view,Ie),Ht.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ut.attr("pointer-events","all"),Pt.attr("cursor",Ki.overlay),Z.selection&&(Nt=Z.selection),ru(Nt)&&(Z.selection=null,p.call(N)),Me.end(Ft,G.name)}function ri(Ft){switch(Ft.keyCode){case 16:{le=ot&&lt;break}case 18:{G===Ir&&(ot&&(z=tt-Et*ot,jt=ht+Et*ot),lt&&(ft=vt-It*lt,rt=T+It*lt),G=Pr,ke(Ft));break}case 32:{(G===Ir||G===Pr)&&(ot<0?z=tt-Et:ot>0&&(jt=ht-Et),lt<0?ft=vt-It:lt>0&&(rt=T-It),G=ho,Pt.attr("cursor",Ki.selection),ke(Ft));break}default:return}noevent(Ft)}function ni(Ft){switch(Ft.keyCode){case 16:{le&&(ce=Pe=le=!1,ke(Ft));break}case 18:{G===Pr&&(ot<0?z=tt:ot>0&&(jt=ht),lt<0?ft=vt:lt>0&&(rt=T),G=Ir,ke(Ft));break}case 32:{G===ho&&(Ft.altKey?(ot&&(z=tt-Et*ot,jt=ht+Et*ot),lt&&(ft=vt-It*lt,rt=T+It*lt),G=Pr):(ot<0?z=tt:ot>0&&(jt=ht),lt<0?ft=vt:lt>0&&(rt=T),G=Ir),Pt.attr("cursor",Ki[it]),ke(Ft));break}default:return}noevent(Ft)}}function O(U){C(this,arguments).moved(U)}function nt(U){C(this,arguments).ended(U)}function xt(){var U=this.__brush||{selection:null};return U.extent=uo(i.apply(this,arguments)),U.dim=t,U}return g.extent=function(U){return arguments.length?(i=typeof U=="function"?U:constant(uo(U)),g):i},g.filter=function(U){return arguments.length?(r=typeof U=="function"?U:constant(!!U),g):r},g.touchable=function(U){return arguments.length?(o=typeof U=="function"?U:constant(!!U),g):o},g.handleSize=function(U){return arguments.length?(h=+U,g):h},g.keyModifiers=function(U){return arguments.length?(a=!!U,g):a},g.on=function(){var U=c.on.apply(c,arguments);return U===c?g:U},g}function su(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function au(t,i){return fetch(t,i).then(su)}function pa(t){return(i,r)=>au(i,r).then(o=>new DOMParser().parseFromString(o,t))}var lu=pa("application/xml"),tc=pa("text/html"),cu=pa("image/svg+xml");const hu=Math.PI/180,uu=180/Math.PI,Co=18,ts=.96422,ec=1,ic=.82521,rc=4/29,fn=6/29,es=3*fn*fn,du=fn*fn*fn;function nc(t){if(t instanceof ui)return new ui(t.l,t.a,t.b,t.opacity);if(t instanceof Ni)return ns(t);t instanceof Re||(t=Gs(t));var i=is(t.r),r=is(t.g),o=is(t.b),a=_a((.2225045*i+.7168786*r+.0606169*o)/ec),c,h;return i===r&&r===o?c=h=a:(c=_a((.4360747*i+.3850649*r+.1430804*o)/ts),h=_a((.0139322*i+.0971045*r+.7141733*o)/ic)),new ui(116*a-16,500*(c-a),200*(a-h),t.opacity)}function nd(t,i){return new ui(t,0,0,i??1)}function oc(t,i,r,o){return arguments.length===1?nc(t):new ui(t,i,r,o??1)}function ui(t,i,r,o){this.l=+t,this.a=+i,this.b=+r,this.opacity=+o}yr(ui,oc,hn(li,{brighter(t){return new ui(this.l+Co*(t??1),this.a,this.b,this.opacity)},darker(t){return new ui(this.l-Co*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,i=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return i=ts*ya(i),t=ec*ya(t),r=ic*ya(r),new Re(Ca(3.1338561*i-1.6168667*t-.4906146*r),Ca(-.9787684*i+1.9161415*t+.033454*r),Ca(.0719453*i-.2289914*t+1.4052427*r),this.opacity)}}));function _a(t){return t>du?Math.pow(t,1/3):t/es+rc}function ya(t){return t>fn?t*t*t:es*(t-rc)}function Ca(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function is(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rs(t){if(t instanceof Ni)return new Ni(t.h,t.c,t.l,t.opacity);if(t instanceof ui||(t=nc(t)),t.a===0&&t.b===0)return new Ni(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var i=Math.atan2(t.b,t.a)*uu;return new Ni(i<0?i+360:i,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ba(t,i,r,o){return arguments.length===1?rs(t):new Ni(r,i,t,o??1)}function bo(t,i,r,o){return arguments.length===1?rs(t):new Ni(t,i,r,o??1)}function Ni(t,i,r,o){this.h=+t,this.c=+i,this.l=+r,this.opacity=+o}function ns(t){if(isNaN(t.h))return new ui(t.l,0,0,t.opacity);var i=t.h*hu;return new ui(t.l,Math.cos(i)*t.c,Math.sin(i)*t.c,t.opacity)}yr(Ni,bo,hn(li,{brighter(t){return new Ni(this.h,this.c,this.l+Co*(t??1),this.opacity)},darker(t){return new Ni(this.h,this.c,this.l-Co*(t??1),this.opacity)},rgb(){return ns(this).rgb()}}));function xa(t){return function(i,r){var o=t((i=bo(i)).h,(r=bo(r)).h),a=Nn(i.c,r.c),c=Nn(i.l,r.l),h=Nn(i.opacity,r.opacity);return function(d){return i.h=o(d),i.c=a(d),i.l=c(d),i.opacity=h(d),i+""}}}var sc=xa(Zs),fu=xa(Nn);function ac(t,i,r){t=+t,i=+i,r=(a=arguments.length)<2?(i=t,t=0,1):a<3?1:+r;for(var o=-1,a=Math.max(0,Math.ceil((i-t)/r))|0,c=new Array(a);++o<a;)c[o]=t+o*r;return c}function xo(t,i){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(i).domain(t);break}return this}function lc(t,i){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof i=="function"?this.interpolator(i):this.range(i);break}}return this}class va extends Map{constructor(i,r=ka){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),i!=null)for(const[o,a]of i)this.set(o,a)}get(i){return super.get(os(this,i))}has(i){return super.has(os(this,i))}set(i,r){return super.set(Ta(this,i),r)}delete(i){return super.delete(Aa(this,i))}}class mu extends Set{constructor(i,r=ka){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),i!=null)for(const o of i)this.add(o)}has(i){return super.has(os(this,i))}add(i){return super.add(Ta(this,i))}delete(i){return super.delete(Aa(this,i))}}function os({_intern:t,_key:i},r){const o=i(r);return t.has(o)?t.get(o):r}function Ta({_intern:t,_key:i},r){const o=i(r);return t.has(o)?t.get(o):(t.set(o,r),r)}function Aa({_intern:t,_key:i},r){const o=i(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}function ka(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Sa=Symbol("implicit");function ss(){var t=new va,i=[],r=[],o=Sa;function a(c){let h=t.get(c);if(h===void 0){if(o!==Sa)return o;t.set(c,h=i.push(c)-1)}return r[h%r.length]}return a.domain=function(c){if(!arguments.length)return i.slice();i=[],t=new va;for(const h of c)t.has(h)||t.set(h,i.push(h)-1);return a},a.range=function(c){return arguments.length?(r=Array.from(c),a):r.slice()},a.unknown=function(c){return arguments.length?(o=c,a):o},a.copy=function(){return ss(i,r).unknown(o)},xo.apply(a,arguments),a}function as(){var t=ss().unknown(void 0),i=t.domain,r=t.range,o=0,a=1,c,h,d=!1,g=0,p=0,C=.5;delete t.unknown;function L(){var x=i().length,O=a<o,nt=O?a:o,xt=O?o:a;c=(xt-nt)/Math.max(1,x-g+p*2),d&&(c=Math.floor(c)),nt+=(xt-nt-c*(x-g))*C,h=c*(1-g),d&&(nt=Math.round(nt),h=Math.round(h));var U=ac(x).map(function(N){return nt+c*N});return r(O?U.reverse():U)}return t.domain=function(x){return arguments.length?(i(x),L()):i()},t.range=function(x){return arguments.length?([o,a]=x,o=+o,a=+a,L()):[o,a]},t.rangeRound=function(x){return[o,a]=x,o=+o,a=+a,d=!0,L()},t.bandwidth=function(){return h},t.step=function(){return c},t.round=function(x){return arguments.length?(d=!!x,L()):d},t.padding=function(x){return arguments.length?(g=Math.min(1,p=+x),L()):g},t.paddingInner=function(x){return arguments.length?(g=Math.min(1,x),L()):g},t.paddingOuter=function(x){return arguments.length?(p=+x,L()):p},t.align=function(x){return arguments.length?(C=Math.max(0,Math.min(1,x)),L()):C},t.copy=function(){return as(i(),[o,a]).round(d).paddingInner(g).paddingOuter(p).align(C)},xo.apply(L(),arguments)}function wa(t){var i=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return wa(i())},t}function gu(){return wa(as.apply(null,arguments).paddingInner(1))}const qe=Math.sqrt(50),Ba=Math.sqrt(10),Rn=Math.sqrt(2);function di(t,i,r){const o=(i-t)/Math.max(0,r),a=Math.floor(Math.log10(o)),c=o/Math.pow(10,a),h=c>=qe?10:c>=Ba?5:c>=Rn?2:1;let d,g,p;return a<0?(p=Math.pow(10,-a)/h,d=Math.round(t*p),g=Math.round(i*p),d/p<t&&++d,g/p>i&&--g,p=-p):(p=Math.pow(10,a)*h,d=Math.round(t/p),g=Math.round(i/p),d*p<t&&++d,g*p>i&&--g),g<d&&.5<=r&&r<2?di(t,i,r*2):[d,g,p]}function ls(t,i,r){if(i=+i,t=+t,r=+r,!(r>0))return[];if(t===i)return[t];const o=i<t,[a,c,h]=o?di(i,t,r):di(t,i,r);if(!(c>=a))return[];const d=c-a+1,g=new Array(d);if(o)if(h<0)for(let p=0;p<d;++p)g[p]=(c-p)/-h;else for(let p=0;p<d;++p)g[p]=(c-p)*h;else if(h<0)for(let p=0;p<d;++p)g[p]=(a+p)/-h;else for(let p=0;p<d;++p)g[p]=(a+p)*h;return g}function $n(t,i,r){return i=+i,t=+t,r=+r,di(t,i,r)[2]}function cs(t,i,r){i=+i,t=+t,r=+r;const o=i<t,a=o?$n(i,t,r):$n(t,i,r);return(o?-1:1)*(a<0?1/-a:a)}function vo(t,i){return t==null||i==null?NaN:t<i?-1:t>i?1:t>=i?0:NaN}function cc(t,i){return t==null||i==null?NaN:i<t?-1:i>t?1:i>=t?0:NaN}function hs(t){let i,r,o;t.length!==2?(i=vo,r=(d,g)=>vo(t(d),g),o=(d,g)=>t(d)-g):(i=t===vo||t===cc?t:hc,r=t,o=t);function a(d,g,p=0,C=d.length){if(p<C){if(i(g,g)!==0)return C;do{const L=p+C>>>1;r(d[L],g)<0?p=L+1:C=L}while(p<C)}return p}function c(d,g,p=0,C=d.length){if(p<C){if(i(g,g)!==0)return C;do{const L=p+C>>>1;r(d[L],g)<=0?p=L+1:C=L}while(p<C)}return p}function h(d,g,p=0,C=d.length){const L=a(d,g,p,C-1);return L>p&&o(d[L-1],g)>-o(d[L],g)?L-1:L}return{left:a,center:h,right:c}}function hc(){return 0}function uc(t){return t===null?NaN:+t}function*Ge(t,i){if(i===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let o of t)(o=i(o,++r,t))!=null&&(o=+o)>=o&&(yield o)}}const us=hs(vo),dc=us.right,Ea=us.left,pu=hs(uc).center;var fc=dc;function _u(t,i){return(isNumberArray(i)?numberArray:La)(t,i)}function La(t,i){var r=i?i.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),c=new Array(r),h;for(h=0;h<o;++h)a[h]=ds(t[h],i[h]);for(;h<r;++h)c[h]=i[h];return function(d){for(h=0;h<o;++h)c[h]=a[h](d);return c}}function mc(t,i){var r=new Date;return t=+t,i=+i,function(o){return r.setTime(t*(1-o)+i*o),r}}function gc(t,i){var r={},o={},a;(t===null||typeof t!="object")&&(t={}),(i===null||typeof i!="object")&&(i={});for(a in i)a in t?r[a]=ds(t[a],i[a]):o[a]=i[a];return function(c){for(a in r)o[a]=r[a](c);return o}}function pc(t,i){i||(i=[]);var r=t?Math.min(i.length,t.length):0,o=i.slice(),a;return function(c){for(a=0;a<r;++a)o[a]=t[a]*(1-c)+i[a]*c;return o}}function _c(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function ds(t,i){var r=typeof i,o;return i==null||r==="boolean"?Ho(i):(r==="number"?Ti:r==="string"?(o=ji(i))?(i=o,Yo):jl:i instanceof ji?Yo:i instanceof Date?mc:_c(i)?pc:Array.isArray(i)?La:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?gc:Ti)(t,i)}function yc(t,i){return t=+t,i=+i,function(r){return Math.round(t*(1-r)+i*r)}}function Cc(t){return function(){return t}}function bc(t){return+t}var Ma=[0,1];function mn(t){return t}function fs(t,i){return(i-=t=+t)?function(r){return(r-t)/i}:Cc(isNaN(i)?NaN:.5)}function xc(t,i){var r;return t>i&&(r=t,t=i,i=r),function(o){return Math.max(t,Math.min(i,o))}}function vc(t,i,r){var o=t[0],a=t[1],c=i[0],h=i[1];return a<o?(o=fs(a,o),c=r(h,c)):(o=fs(o,a),c=r(c,h)),function(d){return c(o(d))}}function Tc(t,i,r){var o=Math.min(t.length,i.length)-1,a=new Array(o),c=new Array(o),h=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),i=i.slice().reverse());++h<o;)a[h]=fs(t[h],t[h+1]),c[h]=r(i[h],i[h+1]);return function(d){var g=fc(t,d,1,o)-1;return c[g](a[g](d))}}function Fa(t,i){return i.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ac(){var t=Ma,i=Ma,r=ds,o,a,c,h=mn,d,g,p;function C(){var x=Math.min(t.length,i.length);return h!==mn&&(h=xc(t[0],t[x-1])),d=x>2?Tc:vc,g=p=null,L}function L(x){return x==null||isNaN(x=+x)?c:(g||(g=d(t.map(o),i,r)))(o(h(x)))}return L.invert=function(x){return h(a((p||(p=d(i,t.map(o),Ti)))(x)))},L.domain=function(x){return arguments.length?(t=Array.from(x,bc),C()):t.slice()},L.range=function(x){return arguments.length?(i=Array.from(x),C()):i.slice()},L.rangeRound=function(x){return i=Array.from(x),r=yc,C()},L.clamp=function(x){return arguments.length?(h=x?!0:mn,C()):h!==mn},L.interpolate=function(x){return arguments.length?(r=x,C()):r},L.unknown=function(x){return arguments.length?(c=x,L):c},function(x,O){return o=x,a=O,C()}}function Oa(){return Ac()(mn,mn)}var kc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function To(t){if(!(i=kc.exec(t)))throw new Error("invalid format: "+t);var i;return new ms({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}To.prototype=ms.prototype;function ms(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+""}ms.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 Sc(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ao(t,i){if((r=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}function gn(t){return t=Ao(Math.abs(t)),t?t[1]:NaN}function Da(t,i){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gn(i)/3)))*3-gn(Math.abs(t)))}function wc(t,i){return function(r,o){for(var a=r.length,c=[],h=0,d=t[0],g=0;a>0&&d>0&&(g+d+1>o&&(d=Math.max(1,o-g)),c.push(r.substring(a-=d,a+d)),!((g+=d+1)>o));)d=t[h=(h+1)%t.length];return c.reverse().join(i)}}function Ia(t){return function(i){return i.replace(/[0-9]/g,function(r){return t[+r]})}}function Pa(t){t:for(var i=t.length,r=1,o=-1,a;r<i;++r)switch(t[r]){case".":o=a=r;break;case"0":o===0&&(o=r),a=r;break;default:if(!+t[r])break t;o>0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(a+1):t}var ja;function Bc(t,i){var r=Ao(t,i);if(!r)return t+"";var o=r[0],a=r[1],c=a-(ja=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,h=o.length;return c===h?o:c>h?o+new Array(c-h+1).join("0"):c>0?o.slice(0,c)+"."+o.slice(c):"0."+new Array(1-c).join("0")+Ao(t,Math.max(0,i+c-1))[0]}function Na(t,i){var r=Ao(t,i);if(!r)return t+"";var o=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+o:o.length>a+1?o.slice(0,a+1)+"."+o.slice(a+1):o+new Array(a-o.length+2).join("0")}var Ra={"%":(t,i)=>(t*100).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Sc,e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>Na(t*100,i),r:Na,s:Bc,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $a(t){return t}var za=Array.prototype.map,ko=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ec(t){var i=t.grouping===void 0||t.thousands===void 0?$a:wc(za.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",c=t.numerals===void 0?$a:Ia(za.call(t.numerals,String)),h=t.percent===void 0?"%":t.percent+"",d=t.minus===void 0?"\u2212":t.minus+"",g=t.nan===void 0?"NaN":t.nan+"";function p(L){L=To(L);var x=L.fill,O=L.align,nt=L.sign,xt=L.symbol,U=L.zero,N=L.width,it=L.comma,G=L.precision,ot=L.trim,lt=L.type;lt==="n"?(it=!0,lt="g"):Ra[lt]||(G===void 0&&(G=12),ot=!0,lt="g"),(U||x==="0"&&O==="=")&&(U=!0,x="0",O="=");var Z=xt==="$"?r:xt==="#"&&/[boxX]/.test(lt)?"0"+lt.toLowerCase():"",Mt=xt==="$"?o:/[%p]/.test(lt)?h:"",Nt=Ra[lt],ee=/[defgprs%]/.test(lt);G=G===void 0?6:/[gprs]/.test(lt)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G));function jt(ht){var Rt=Z,rt=Mt,T,st,z;if(lt==="c")rt=Nt(ht)+rt,ht="";else{ht=+ht;var tt=ht<0||1/ht<0;if(ht=isNaN(ht)?g:Nt(Math.abs(ht),G),ot&&(ht=Pa(ht)),tt&&+ht==0&&nt!=="+"&&(tt=!1),Rt=(tt?nt==="("?nt:d:nt==="-"||nt==="("?"":nt)+Rt,rt=(lt==="s"?ko[8+ja/3]:"")+rt+(tt&&nt==="("?")":""),ee){for(T=-1,st=ht.length;++T<st;)if(z=ht.charCodeAt(T),48>z||z>57){rt=(z===46?a+ht.slice(T+1):ht.slice(T))+rt,ht=ht.slice(0,T);break}}}it&&!U&&(ht=i(ht,1/0));var yt=Rt.length+ht.length+rt.length,ft=yt<N?new Array(N-yt+1).join(x):"";switch(it&&U&&(ht=i(ft+ht,ft.length?N-rt.length:1/0),ft=""),O){case"<":ht=Rt+ht+rt+ft;break;case"=":ht=Rt+ft+ht+rt;break;case"^":ht=ft.slice(0,yt=ft.length>>1)+Rt+ht+rt+ft.slice(yt);break;default:ht=ft+Rt+ht+rt;break}return c(ht)}return jt.toString=function(){return L+""},jt}function C(L,x){var O=p((L=To(L),L.type="f",L)),nt=Math.max(-8,Math.min(8,Math.floor(gn(x)/3)))*3,xt=Math.pow(10,-nt),U=ko[8+nt/3];return function(N){return O(xt*N)+U}}return{format:p,formatPrefix:C}}var So,Ua,Wa;Lc({thousands:",",grouping:[3],currency:["$",""]});function Lc(t){return So=Ec(t),Ua=So.format,Wa=So.formatPrefix,So}function Mc(t,i){return t=Math.abs(t),i=Math.abs(i)-t,Math.max(0,gn(i)-gn(t))+1}function Fc(t){return Math.max(0,-gn(Math.abs(t)))}function Oc(t,i,r,o){var a=cs(t,i,r),c;switch(o=To(o??",f"),o.type){case"s":{var h=Math.max(Math.abs(t),Math.abs(i));return o.precision==null&&!isNaN(c=Da(a,h))&&(o.precision=c),Wa(o,h)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(c=Mc(a,Math.max(Math.abs(t),Math.abs(i))))&&(o.precision=c-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(c=Fc(a))&&(o.precision=c-(o.type==="%")*2);break}}return Ua(o)}function Dc(t){var i=t.domain;return t.ticks=function(r){var o=i();return ls(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var a=i();return Oc(a[0],a[a.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=i(),a=0,c=o.length-1,h=o[a],d=o[c],g,p,C=10;for(d<h&&(p=h,h=d,d=p,p=a,a=c,c=p);C-- >0;){if(p=$n(h,d,r),p===g)return o[a]=h,o[c]=d,i(o);if(p>0)h=Math.floor(h/p)*p,d=Math.ceil(d/p)*p;else if(p<0)h=Math.ceil(h*p)/p,d=Math.floor(d*p)/p;else break;g=p}return t},t}function Ha(){var t=Oa();return t.copy=function(){return Fa(t,Ha())},xo.apply(t,arguments),Dc(t)}const Xi=1e3,fi=Xi*60,Zi=fi*60,Ji=Zi*24,gs=Ji*7,Ya=Ji*30,ps=Ji*365,_s=new Date,ys=new Date;function ae(t,i,r,o){function a(c){return t(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=c=>(t(c=new Date(+c)),c),a.ceil=c=>(t(c=new Date(c-1)),i(c,1),t(c),c),a.round=c=>{const h=a(c),d=a.ceil(c);return c-h<d-c?h:d},a.offset=(c,h)=>(i(c=new Date(+c),h==null?1:Math.floor(h)),c),a.range=(c,h,d)=>{const g=[];if(c=a.ceil(c),d=d==null?1:Math.floor(d),!(c<h)||!(d>0))return g;let p;do g.push(p=new Date(+c)),i(c,d),t(c);while(p<c&&c<h);return g},a.filter=c=>ae(h=>{if(h>=h)for(;t(h),!c(h);)h.setTime(h-1)},(h,d)=>{if(h>=h)if(d<0)for(;++d<=0;)for(;i(h,-1),!c(h););else for(;--d>=0;)for(;i(h,1),!c(h););}),r&&(a.count=(c,h)=>(_s.setTime(+c),ys.setTime(+h),t(_s),t(ys),Math.floor(r(_s,ys))),a.every=c=>(c=Math.floor(c),!isFinite(c)||!(c>0)?null:c>1?a.filter(o?h=>o(h)%c===0:h=>a.count(0,h)%c===0):a)),a}const xr=ae(()=>{},(t,i)=>{t.setTime(+t+i)},(t,i)=>i-t);xr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ae(i=>{i.setTime(Math.floor(i/t)*t)},(i,r)=>{i.setTime(+i+r*t)},(i,r)=>(r-i)/t):xr);const Ic=xr.range,vr=ae(t=>{t.setTime(t-t.getMilliseconds())},(t,i)=>{t.setTime(+t+i*Xi)},(t,i)=>(i-t)/Xi,t=>t.getUTCSeconds()),Cs=vr.range,pn=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xi)},(t,i)=>{t.setTime(+t+i*fi)},(t,i)=>(i-t)/fi,t=>t.getMinutes()),yu=pn.range,bs=ae(t=>{t.setUTCSeconds(0,0)},(t,i)=>{t.setTime(+t+i*fi)},(t,i)=>(i-t)/fi,t=>t.getUTCMinutes()),Cu=bs.range,wo=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xi-t.getMinutes()*fi)},(t,i)=>{t.setTime(+t+i*Zi)},(t,i)=>(i-t)/Zi,t=>t.getHours()),bu=wo.range,xs=ae(t=>{t.setUTCMinutes(0,0,0)},(t,i)=>{t.setTime(+t+i*Zi)},(t,i)=>(i-t)/Zi,t=>t.getUTCHours()),Pc=xs.range,jr=ae(t=>t.setHours(0,0,0,0),(t,i)=>t.setDate(t.getDate()+i),(t,i)=>(i-t-(i.getTimezoneOffset()-t.getTimezoneOffset())*fi)/Ji,t=>t.getDate()-1),Qi=jr.range,tr=ae(t=>{t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCDate(t.getUTCDate()+i)},(t,i)=>(i-t)/Ji,t=>t.getUTCDate()-1),ii=tr.range,Nr=ae(t=>{t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCDate(t.getUTCDate()+i)},(t,i)=>(i-t)/Ji,t=>Math.floor(t/Ji)),xu=Nr.range;function Rr(t){return ae(i=>{i.setDate(i.getDate()-(i.getDay()+7-t)%7),i.setHours(0,0,0,0)},(i,r)=>{i.setDate(i.getDate()+r*7)},(i,r)=>(r-i-(r.getTimezoneOffset()-i.getTimezoneOffset())*fi)/gs)}const zn=Rr(0),_n=Rr(1),qa=Rr(2),vs=Rr(3),Tr=Rr(4),$r=Rr(5),Ga=Rr(6),jc=zn.range,wt=_n.range,Ts=qa.range,Nc=vs.range,zr=Tr.range,Rc=$r.range,Un=Ga.range;function er(t){return ae(i=>{i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-t)%7),i.setUTCHours(0,0,0,0)},(i,r)=>{i.setUTCDate(i.getUTCDate()+r*7)},(i,r)=>(r-i)/gs)}const fe=er(0),Ur=er(1),As=er(2),$c=er(3),yn=er(4),zc=er(5),Uc=er(6),vu=fe.range,Wc=Ur.range,Tu=As.range,Au=$c.range,ku=yn.range,Su=zc.range,Wn=Uc.range,Bo=ae(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,i)=>{t.setMonth(t.getMonth()+i)},(t,i)=>i.getMonth()-t.getMonth()+(i.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Hc=Bo.range,Va=ae(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCMonth(t.getUTCMonth()+i)},(t,i)=>i.getUTCMonth()-t.getUTCMonth()+(i.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),wu=Va.range,ir=ae(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,i)=>{t.setFullYear(t.getFullYear()+i)},(t,i)=>i.getFullYear()-t.getFullYear(),t=>t.getFullYear());ir.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ae(i=>{i.setFullYear(Math.floor(i.getFullYear()/t)*t),i.setMonth(0,1),i.setHours(0,0,0,0)},(i,r)=>{i.setFullYear(i.getFullYear()+r*t)});const Bu=ir.range,Ar=ae(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,i)=>{t.setUTCFullYear(t.getUTCFullYear()+i)},(t,i)=>i.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Ar.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ae(i=>{i.setUTCFullYear(Math.floor(i.getUTCFullYear()/t)*t),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},(i,r)=>{i.setUTCFullYear(i.getUTCFullYear()+r*t)});const Eu=Ar.range;function Ka(t,i,r,o,a,c){const h=[[vr,1,Xi],[vr,5,5*Xi],[vr,15,15*Xi],[vr,30,30*Xi],[c,1,fi],[c,5,5*fi],[c,15,15*fi],[c,30,30*fi],[a,1,Zi],[a,3,3*Zi],[a,6,6*Zi],[a,12,12*Zi],[o,1,Ji],[o,2,2*Ji],[r,1,gs],[i,1,Ya],[i,3,3*Ya],[t,1,ps]];function d(p,C,L){const x=C<p;x&&([p,C]=[C,p]);const O=L&&typeof L.range=="function"?L:g(p,C,L),nt=O?O.range(p,+C+1):[];return x?nt.reverse():nt}function g(p,C,L){const x=Math.abs(C-p)/L,O=hs(([,,U])=>U).right(h,x);if(O===h.length)return t.every(cs(p/ps,C/ps,L));if(O===0)return xr.every(Math.max(cs(p,C,L),1));const[nt,xt]=h[x/h[O-1][2]<h[O][2]/x?O-1:O];return nt.every(xt)}return[d,g]}const[Lu,Mu]=Ka(Ar,Va,fe,Nr,xs,bs),[Yc,qc]=Ka(ir,Bo,zn,jr,wo,pn);function Eo(t){if(0<=t.y&&t.y<100){var i=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return i.setFullYear(t.y),i}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ks(t){if(0<=t.y&&t.y<100){var i=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return i.setUTCFullYear(t.y),i}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Hn(t,i,r){return{y:t,m:i,d:r,H:0,M:0,S:0,L:0}}function Gc(t){var i=t.dateTime,r=t.date,o=t.time,a=t.periods,c=t.days,h=t.shortDays,d=t.months,g=t.shortMonths,p=Yn(a),C=qn(a),L=Yn(c),x=qn(c),O=Yn(h),nt=qn(h),xt=Yn(d),U=qn(d),N=Yn(g),it=qn(g),G={a:tt,A:yt,b:ft,B:vt,c:null,d:el,e:el,f:hh,g:s,G:u,H:il,I:ch,j:rl,L:nl,m:ol,M:uh,p:Et,q:It,Q:ul,s:Ls,S:Lo,u:Es,U:sl,V:ll,w:ki,W:e,x:null,X:null,y:n,Y:l,Z:_,"%":hl},ot={a:Ie,A:le,b:ce,B:Pe,c:null,d:y,e:y,f:Y,g:pi,G:cl,H:w,I:F,j:V,L:Q,m:S,M:H,p:Zt,q:Me,Q:ul,s:Ls,S:Ot,u:Dt,U:Lt,V:kt,w:mi,W:Ae,x:null,X:null,y:gi,Y:ne,Z:dh,"%":hl},lt={a:jt,A:ht,b:Rt,B:rt,c:T,d:Qa,e:Qa,f:Bs,g:Ss,G:Ja,H:ws,I:ws,j:tl,L:sh,m:rh,M:nh,p:ee,q:ih,Q:Wr,s:lh,S:oh,u:Jc,U:Qc,V:th,w:Zc,W:Za,x:st,X:z,y:Ss,Y:Ja,Z:eh,"%":ah};G.x=Z(r,G),G.X=Z(o,G),G.c=Z(i,G),ot.x=Z(r,ot),ot.X=Z(o,ot),ot.c=Z(i,ot);function Z(ut,Pt){return function(Ht){var K=[],ke=-1,oe=0,ri=ut.length,ni,Ft,Se;for(Ht instanceof Date||(Ht=new Date(+Ht));++ke<ri;)ut.charCodeAt(ke)===37&&(K.push(ut.slice(oe,ke)),(Ft=Xa[ni=ut.charAt(++ke)])!=null?ni=ut.charAt(++ke):Ft=ni==="e"?" ":"0",(Se=Pt[ni])&&(ni=Se(Ht,Ft)),K.push(ni),oe=ke+1);return K.push(ut.slice(oe,ke)),K.join("")}}function Mt(ut,Pt){return function(Ht){var K=Hn(1900,void 0,1),ke=Nt(K,ut,Ht+="",0),oe,ri;if(ke!=Ht.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(Pt&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(oe=ks(Hn(K.y,0,1)),ri=oe.getUTCDay(),oe=ri>4||ri===0?Ur.ceil(oe):Ur(oe),oe=tr.offset(oe,(K.V-1)*7),K.y=oe.getUTCFullYear(),K.m=oe.getUTCMonth(),K.d=oe.getUTCDate()+(K.w+6)%7):(oe=Eo(Hn(K.y,0,1)),ri=oe.getDay(),oe=ri>4||ri===0?_n.ceil(oe):_n(oe),oe=jr.offset(oe,(K.V-1)*7),K.y=oe.getFullYear(),K.m=oe.getMonth(),K.d=oe.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),ri="Z"in K?ks(Hn(K.y,0,1)).getUTCDay():Eo(Hn(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(ri+5)%7:K.w+K.U*7-(ri+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,ks(K)):Eo(K)}}function Nt(ut,Pt,Ht,K){for(var ke=0,oe=Pt.length,ri=Ht.length,ni,Ft;ke<oe;){if(K>=ri)return-1;if(ni=Pt.charCodeAt(ke++),ni===37){if(ni=Pt.charAt(ke++),Ft=lt[ni in Xa?Pt.charAt(ke++):ni],!Ft||(K=Ft(ut,Ht,K))<0)return-1}else if(ni!=Ht.charCodeAt(K++))return-1}return K}function ee(ut,Pt,Ht){var K=p.exec(Pt.slice(Ht));return K?(ut.p=C.get(K[0].toLowerCase()),Ht+K[0].length):-1}function jt(ut,Pt,Ht){var K=O.exec(Pt.slice(Ht));return K?(ut.w=nt.get(K[0].toLowerCase()),Ht+K[0].length):-1}function ht(ut,Pt,Ht){var K=L.exec(Pt.slice(Ht));return K?(ut.w=x.get(K[0].toLowerCase()),Ht+K[0].length):-1}function Rt(ut,Pt,Ht){var K=N.exec(Pt.slice(Ht));return K?(ut.m=it.get(K[0].toLowerCase()),Ht+K[0].length):-1}function rt(ut,Pt,Ht){var K=xt.exec(Pt.slice(Ht));return K?(ut.m=U.get(K[0].toLowerCase()),Ht+K[0].length):-1}function T(ut,Pt,Ht){return Nt(ut,i,Pt,Ht)}function st(ut,Pt,Ht){return Nt(ut,r,Pt,Ht)}function z(ut,Pt,Ht){return Nt(ut,o,Pt,Ht)}function tt(ut){return h[ut.getDay()]}function yt(ut){return c[ut.getDay()]}function ft(ut){return g[ut.getMonth()]}function vt(ut){return d[ut.getMonth()]}function Et(ut){return a[+(ut.getHours()>=12)]}function It(ut){return 1+~~(ut.getMonth()/3)}function Ie(ut){return h[ut.getUTCDay()]}function le(ut){return c[ut.getUTCDay()]}function ce(ut){return g[ut.getUTCMonth()]}function Pe(ut){return d[ut.getUTCMonth()]}function Zt(ut){return a[+(ut.getUTCHours()>=12)]}function Me(ut){return 1+~~(ut.getUTCMonth()/3)}return{format:function(ut){var Pt=Z(ut+="",G);return Pt.toString=function(){return ut},Pt},parse:function(ut){var Pt=Mt(ut+="",!1);return Pt.toString=function(){return ut},Pt},utcFormat:function(ut){var Pt=Z(ut+="",ot);return Pt.toString=function(){return ut},Pt},utcParse:function(ut){var Pt=Mt(ut+="",!0);return Pt.toString=function(){return ut},Pt}}}var Xa={"-":"",_:" ",0:"0"},De=/^\s*\d+/,Vc=/^%/,Kc=/[\\^$*+?|[\]().{}]/g;function Xt(t,i,r){var o=t<0?"-":"",a=(o?-t:t)+"",c=a.length;return o+(c<r?new Array(r-c+1).join(i)+a:a)}function Xc(t){return t.replace(Kc,"\\$&")}function Yn(t){return new RegExp("^(?:"+t.map(Xc).join("|")+")","i")}function qn(t){return new Map(t.map((i,r)=>[i.toLowerCase(),r]))}function Zc(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function Jc(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function Qc(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function th(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function Za(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function Ja(t,i,r){var o=De.exec(i.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function Ss(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function eh(t,i,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function ih(t,i,r){var o=De.exec(i.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}function rh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function Qa(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function tl(t,i,r){var o=De.exec(i.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function ws(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function nh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function oh(t,i,r){var o=De.exec(i.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function sh(t,i,r){var o=De.exec(i.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function Bs(t,i,r){var o=De.exec(i.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function ah(t,i,r){var o=Vc.exec(i.slice(r,r+1));return o?r+o[0].length:-1}function Wr(t,i,r){var o=De.exec(i.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function lh(t,i,r){var o=De.exec(i.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function el(t,i){return Xt(t.getDate(),i,2)}function il(t,i){return Xt(t.getHours(),i,2)}function ch(t,i){return Xt(t.getHours()%12||12,i,2)}function rl(t,i){return Xt(1+jr.count(ir(t),t),i,3)}function nl(t,i){return Xt(t.getMilliseconds(),i,3)}function hh(t,i){return nl(t,i)+"000"}function ol(t,i){return Xt(t.getMonth()+1,i,2)}function uh(t,i){return Xt(t.getMinutes(),i,2)}function Lo(t,i){return Xt(t.getSeconds(),i,2)}function Es(t){var i=t.getDay();return i===0?7:i}function sl(t,i){return Xt(zn.count(ir(t)-1,t),i,2)}function al(t){var i=t.getDay();return i>=4||i===0?Tr(t):Tr.ceil(t)}function ll(t,i){return t=al(t),Xt(Tr.count(ir(t),t)+(ir(t).getDay()===4),i,2)}function ki(t){return t.getDay()}function e(t,i){return Xt(_n.count(ir(t)-1,t),i,2)}function n(t,i){return Xt(t.getFullYear()%100,i,2)}function s(t,i){return t=al(t),Xt(t.getFullYear()%100,i,2)}function l(t,i){return Xt(t.getFullYear()%1e4,i,4)}function u(t,i){var r=t.getDay();return t=r>=4||r===0?Tr(t):Tr.ceil(t),Xt(t.getFullYear()%1e4,i,4)}function _(t){var i=t.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Xt(i/60|0,"0",2)+Xt(i%60,"0",2)}function y(t,i){return Xt(t.getUTCDate(),i,2)}function w(t,i){return Xt(t.getUTCHours(),i,2)}function F(t,i){return Xt(t.getUTCHours()%12||12,i,2)}function V(t,i){return Xt(1+tr.count(Ar(t),t),i,3)}function Q(t,i){return Xt(t.getUTCMilliseconds(),i,3)}function Y(t,i){return Q(t,i)+"000"}function S(t,i){return Xt(t.getUTCMonth()+1,i,2)}function H(t,i){return Xt(t.getUTCMinutes(),i,2)}function Ot(t,i){return Xt(t.getUTCSeconds(),i,2)}function Dt(t){var i=t.getUTCDay();return i===0?7:i}function Lt(t,i){return Xt(fe.count(Ar(t)-1,t),i,2)}function Vt(t){var i=t.getUTCDay();return i>=4||i===0?yn(t):yn.ceil(t)}function kt(t,i){return t=Vt(t),Xt(yn.count(Ar(t),t)+(Ar(t).getUTCDay()===4),i,2)}function mi(t){return t.getUTCDay()}function Ae(t,i){return Xt(Ur.count(Ar(t)-1,t),i,2)}function gi(t,i){return Xt(t.getUTCFullYear()%100,i,2)}function pi(t,i){return t=Vt(t),Xt(t.getUTCFullYear()%100,i,2)}function ne(t,i){return Xt(t.getUTCFullYear()%1e4,i,4)}function cl(t,i){var r=t.getUTCDay();return t=r>=4||r===0?yn(t):yn.ceil(t),Xt(t.getUTCFullYear()%1e4,i,4)}function dh(){return"+0000"}function hl(){return"%"}function ul(t){return+t}function Ls(t){return Math.floor(+t/1e3)}var Cn,Ms,fh,Hr,mh;Fs({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 Fs(t){return Cn=Gc(t),Ms=Cn.format,fh=Cn.parse,Hr=Cn.utcFormat,mh=Cn.utcParse,Cn}function rr(t,i){t=t.slice();var r=0,o=t.length-1,a=t[r],c=t[o],h;return c<a&&(h=r,r=o,o=h,h=a,a=c,c=h),t[r]=i.floor(a),t[o]=i.ceil(c),t}function od(t){return new Date(t)}function sd(t){return t instanceof Date?+t:+new Date(+t)}function Fu(t,i,r,o,a,c,h,d,g,p){var C=Oa(),L=C.invert,x=C.domain,O=p(".%L"),nt=p(":%S"),xt=p("%I:%M"),U=p("%I %p"),N=p("%a %d"),it=p("%b %d"),G=p("%B"),ot=p("%Y");function lt(Z){return(g(Z)<Z?O:d(Z)<Z?nt:h(Z)<Z?xt:c(Z)<Z?U:o(Z)<Z?a(Z)<Z?N:it:r(Z)<Z?G:ot)(Z)}return C.invert=function(Z){return new Date(L(Z))},C.domain=function(Z){return arguments.length?x(Array.from(Z,sd)):x().map(od)},C.ticks=function(Z){var Mt=x();return t(Mt[0],Mt[Mt.length-1],Z??10)},C.tickFormat=function(Z,Mt){return Mt==null?lt:p(Mt)},C.nice=function(Z){var Mt=x();return(!Z||typeof Z.range!="function")&&(Z=i(Mt[0],Mt[Mt.length-1],Z??10)),Z?x(rr(Mt,Z)):C},C.copy=function(){return Fa(C,Fu(t,i,r,o,a,c,h,d,g,p))},C}function ad(){return xo.apply(Fu(Yc,qc,ir,Bo,zn,jr,wo,pn,vr,Ms).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ld(t){for(var i=t.length/6|0,r=new Array(i),o=0;o<i;)r[o]="#"+t.slice(o*6,++o*6);return r}var cd=ld("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function hd(t){return typeof t=="string"?new de([[document.querySelector(t)]],[document.documentElement]):new de([[t]],ei)}function ud(t){return typeof t=="string"?new de([document.querySelectorAll(t)],[document.documentElement]):new de([me(t)],ei)}function Le(t){return function(){return t}}const Ou=Math.abs,Ze=Math.atan2,Gn=Math.cos,dd=Math.max,gh=Math.min,kr=Math.sin,Mo=Math.sqrt,Je=1e-12,Os=Math.PI,dl=Os/2,fl=2*Os;function fd(t){return t>1?0:t<-1?Os:Math.acos(t)}function Du(t){return t>=1?dl:t<=-1?-dl:Math.asin(t)}const ph=Math.PI,_h=2*ph,Vn=1e-6,md=_h-Vn;function Iu(t){this._+=t[0];for(let i=1,r=t.length;i<r;++i)this._+=arguments[i]+t[i]}function gd(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return Iu;const r=10**i;return function(o){this._+=o[0];for(let a=1,c=o.length;a<c;++a)this._+=Math.round(arguments[a]*r)/r+o[a]}}class ml{constructor(i){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=i==null?Iu:gd(i)}moveTo(i,r){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(i,r){this._append`L${this._x1=+i},${this._y1=+r}`}quadraticCurveTo(i,r,o,a){this._append`Q${+i},${+r},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(i,r,o,a,c,h){this._append`C${+i},${+r},${+o},${+a},${this._x1=+c},${this._y1=+h}`}arcTo(i,r,o,a,c){if(i=+i,r=+r,o=+o,a=+a,c=+c,c<0)throw new Error(`negative radius: ${c}`);let h=this._x1,d=this._y1,g=o-i,p=a-r,C=h-i,L=d-r,x=C*C+L*L;if(this._x1===null)this._append`M${this._x1=i},${this._y1=r}`;else if(x>Vn)if(!(Math.abs(L*g-p*C)>Vn)||!c)this._append`L${this._x1=i},${this._y1=r}`;else{let O=o-h,nt=a-d,xt=g*g+p*p,U=O*O+nt*nt,N=Math.sqrt(xt),it=Math.sqrt(x),G=c*Math.tan((ph-Math.acos((xt+x-U)/(2*N*it)))/2),ot=G/it,lt=G/N;Math.abs(ot-1)>Vn&&this._append`L${i+ot*C},${r+ot*L}`,this._append`A${c},${c},0,0,${+(L*O>C*nt)},${this._x1=i+lt*g},${this._y1=r+lt*p}`}}arc(i,r,o,a,c,h){if(i=+i,r=+r,o=+o,h=!!h,o<0)throw new Error(`negative radius: ${o}`);let d=o*Math.cos(a),g=o*Math.sin(a),p=i+d,C=r+g,L=1^h,x=h?a-c:c-a;this._x1===null?this._append`M${p},${C}`:(Math.abs(this._x1-p)>Vn||Math.abs(this._y1-C)>Vn)&&this._append`L${p},${C}`,o&&(x<0&&(x=x%_h+_h),x>md?this._append`A${o},${o},0,1,${L},${i-d},${r-g}A${o},${o},0,1,${L},${this._x1=p},${this._y1=C}`:x>Vn&&this._append`A${o},${o},0,${+(x>=ph)},${L},${this._x1=i+o*Math.cos(c)},${this._y1=r+o*Math.sin(c)}`)}rect(i,r,o,a){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+r}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function pd(){return new ml}pd.prototype=ml.prototype;function nf(t=3){return new ml(+t)}function Pu(t){let i=3;return t.digits=function(r){if(!arguments.length)return i;if(r==null)i=null;else{const o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);i=o}return t},()=>new ml(i)}function _d(t){return t.innerRadius}function yd(t){return t.outerRadius}function Cd(t){return t.startAngle}function bd(t){return t.endAngle}function xd(t){return t&&t.padAngle}function vd(t,i,r,o,a,c,h,d){var g=r-t,p=o-i,C=h-a,L=d-c,x=L*g-C*p;if(!(x*x<Je))return x=(C*(i-c)-L*(t-a))/x,[t+x*g,i+x*p]}function gl(t,i,r,o,a,c,h){var d=t-r,g=i-o,p=(h?c:-c)/Mo(d*d+g*g),C=p*g,L=-p*d,x=t+C,O=i+L,nt=r+C,xt=o+L,U=(x+nt)/2,N=(O+xt)/2,it=nt-x,G=xt-O,ot=it*it+G*G,lt=a-c,Z=x*xt-nt*O,Mt=(G<0?-1:1)*Mo(dd(0,lt*lt*ot-Z*Z)),Nt=(Z*G-it*Mt)/ot,ee=(-Z*it-G*Mt)/ot,jt=(Z*G+it*Mt)/ot,ht=(-Z*it+G*Mt)/ot,Rt=Nt-U,rt=ee-N,T=jt-U,st=ht-N;return Rt*Rt+rt*rt>T*T+st*st&&(Nt=jt,ee=ht),{cx:Nt,cy:ee,x01:-C,y01:-L,x11:Nt*(a/lt-1),y11:ee*(a/lt-1)}}function Td(){var t=_d,i=yd,r=Le(0),o=null,a=Cd,c=bd,h=xd,d=null,g=Pu(p);function p(){var C,L,x=+t.apply(this,arguments),O=+i.apply(this,arguments),nt=a.apply(this,arguments)-dl,xt=c.apply(this,arguments)-dl,U=Ou(xt-nt),N=xt>nt;if(d||(d=C=g()),O<x&&(L=O,O=x,x=L),!(O>Je))d.moveTo(0,0);else if(U>fl-Je)d.moveTo(O*Gn(nt),O*kr(nt)),d.arc(0,0,O,nt,xt,!N),x>Je&&(d.moveTo(x*Gn(xt),x*kr(xt)),d.arc(0,0,x,xt,nt,N));else{var it=nt,G=xt,ot=nt,lt=xt,Z=U,Mt=U,Nt=h.apply(this,arguments)/2,ee=Nt>Je&&(o?+o.apply(this,arguments):Mo(x*x+O*O)),jt=gh(Ou(O-x)/2,+r.apply(this,arguments)),ht=jt,Rt=jt,rt,T;if(ee>Je){var st=Du(ee/x*kr(Nt)),z=Du(ee/O*kr(Nt));(Z-=st*2)>Je?(st*=N?1:-1,ot+=st,lt-=st):(Z=0,ot=lt=(nt+xt)/2),(Mt-=z*2)>Je?(z*=N?1:-1,it+=z,G-=z):(Mt=0,it=G=(nt+xt)/2)}var tt=O*Gn(it),yt=O*kr(it),ft=x*Gn(lt),vt=x*kr(lt);if(jt>Je){var Et=O*Gn(G),It=O*kr(G),Ie=x*Gn(ot),le=x*kr(ot),ce;if(U<Os)if(ce=vd(tt,yt,Ie,le,Et,It,ft,vt)){var Pe=tt-ce[0],Zt=yt-ce[1],Me=Et-ce[0],ut=It-ce[1],Pt=1/kr(fd((Pe*Me+Zt*ut)/(Mo(Pe*Pe+Zt*Zt)*Mo(Me*Me+ut*ut)))/2),Ht=Mo(ce[0]*ce[0]+ce[1]*ce[1]);ht=gh(jt,(x-Ht)/(Pt-1)),Rt=gh(jt,(O-Ht)/(Pt+1))}else ht=Rt=0}Mt>Je?Rt>Je?(rt=gl(Ie,le,tt,yt,O,Rt,N),T=gl(Et,It,ft,vt,O,Rt,N),d.moveTo(rt.cx+rt.x01,rt.cy+rt.y01),Rt<jt?d.arc(rt.cx,rt.cy,Rt,Ze(rt.y01,rt.x01),Ze(T.y01,T.x01),!N):(d.arc(rt.cx,rt.cy,Rt,Ze(rt.y01,rt.x01),Ze(rt.y11,rt.x11),!N),d.arc(0,0,O,Ze(rt.cy+rt.y11,rt.cx+rt.x11),Ze(T.cy+T.y11,T.cx+T.x11),!N),d.arc(T.cx,T.cy,Rt,Ze(T.y11,T.x11),Ze(T.y01,T.x01),!N))):(d.moveTo(tt,yt),d.arc(0,0,O,it,G,!N)):d.moveTo(tt,yt),!(x>Je)||!(Z>Je)?d.lineTo(ft,vt):ht>Je?(rt=gl(ft,vt,Et,It,x,-ht,N),T=gl(tt,yt,Ie,le,x,-ht,N),d.lineTo(rt.cx+rt.x01,rt.cy+rt.y01),ht<jt?d.arc(rt.cx,rt.cy,ht,Ze(rt.y01,rt.x01),Ze(T.y01,T.x01),!N):(d.arc(rt.cx,rt.cy,ht,Ze(rt.y01,rt.x01),Ze(rt.y11,rt.x11),!N),d.arc(0,0,x,Ze(rt.cy+rt.y11,rt.cx+rt.x11),Ze(T.cy+T.y11,T.cx+T.x11),N),d.arc(T.cx,T.cy,ht,Ze(T.y11,T.x11),Ze(T.y01,T.x01),!N))):d.arc(0,0,x,lt,ot,N)}if(d.closePath(),C)return d=null,C+""||null}return p.centroid=function(){var C=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,L=(+a.apply(this,arguments)+ +c.apply(this,arguments))/2-Os/2;return[Gn(L)*C,kr(L)*C]},p.innerRadius=function(C){return arguments.length?(t=typeof C=="function"?C:Le(+C),p):t},p.outerRadius=function(C){return arguments.length?(i=typeof C=="function"?C:Le(+C),p):i},p.cornerRadius=function(C){return arguments.length?(r=typeof C=="function"?C:Le(+C),p):r},p.padRadius=function(C){return arguments.length?(o=C==null?null:typeof C=="function"?C:Le(+C),p):o},p.startAngle=function(C){return arguments.length?(a=typeof C=="function"?C:Le(+C),p):a},p.endAngle=function(C){return arguments.length?(c=typeof C=="function"?C:Le(+C),p):c},p.padAngle=function(C){return arguments.length?(h=typeof C=="function"?C:Le(+C),p):h},p.context=function(C){return arguments.length?(d=C??null,p):d},p}var of=Array.prototype.slice;function ju(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Nu(t){this._context=t}Nu.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function Ru(t){return new Nu(t)}function Ad(t){return t[0]}function kd(t){return t[1]}function Sd(t,i){var r=Le(!0),o=null,a=Ru,c=null,h=Pu(d);t=typeof t=="function"?t:t===void 0?Ad:Le(t),i=typeof i=="function"?i:i===void 0?kd:Le(i);function d(g){var p,C=(g=ju(g)).length,L,x=!1,O;for(o==null&&(c=a(O=h())),p=0;p<=C;++p)!(p<C&&r(L=g[p],p,g))===x&&((x=!x)?c.lineStart():c.lineEnd()),x&&c.point(+t(L,p,g),+i(L,p,g));if(O)return c=null,O+""||null}return d.x=function(g){return arguments.length?(t=typeof g=="function"?g:Le(+g),d):t},d.y=function(g){return arguments.length?(i=typeof g=="function"?g:Le(+g),d):i},d.defined=function(g){return arguments.length?(r=typeof g=="function"?g:Le(!!g),d):r},d.curve=function(g){return arguments.length?(a=g,o!=null&&(c=a(o)),d):a},d.context=function(g){return arguments.length?(g==null?o=c=null:c=a(o=g),d):o},d}function wd(t,i){return i<t?-1:i>t?1:i>=t?0:NaN}function Bd(t){return t}function Ed(){var t=Bd,i=wd,r=null,o=Le(0),a=Le(fl),c=Le(0);function h(d){var g,p=(d=ju(d)).length,C,L,x=0,O=new Array(p),nt=new Array(p),xt=+o.apply(this,arguments),U=Math.min(fl,Math.max(-fl,a.apply(this,arguments)-xt)),N,it=Math.min(Math.abs(U)/p,c.apply(this,arguments)),G=it*(U<0?-1:1),ot;for(g=0;g<p;++g)(ot=nt[O[g]=g]=+t(d[g],g,d))>0&&(x+=ot);for(i!=null?O.sort(function(lt,Z){return i(nt[lt],nt[Z])}):r!=null&&O.sort(function(lt,Z){return r(d[lt],d[Z])}),g=0,L=x?(U-p*G)/x:0;g<p;++g,xt=N)C=O[g],ot=nt[C],N=xt+(ot>0?ot*L:0)+G,nt[C]={data:d[C],index:g,value:ot,startAngle:xt,endAngle:N,padAngle:it};return nt}return h.value=function(d){return arguments.length?(t=typeof d=="function"?d:Le(+d),h):t},h.sortValues=function(d){return arguments.length?(i=d,r=null,h):i},h.sort=function(d){return arguments.length?(r=d,i=null,h):r},h.startAngle=function(d){return arguments.length?(o=typeof d=="function"?d:Le(+d),h):o},h.endAngle=function(d){return arguments.length?(a=typeof d=="function"?d:Le(+d),h):a},h.padAngle=function(d){return arguments.length?(c=typeof d=="function"?d:Le(+d),h):c},h}function bn(){}function pl(t,i,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+i)/6,(t._y0+4*t._y1+r)/6)}function _l(t){this._context=t}_l.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:pl(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Ld(t){return new _l(t)}function $u(t){this._context=t}$u.prototype={areaStart:bn,areaEnd:bn,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Md(t){return new $u(t)}function zu(t){this._context=t}zu.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:pl(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Fd(t){return new zu(t)}class Uu{constructor(i,r){this._context=i,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(i,r){switch(i=+i,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+i)/2,this._y0,this._x0,r,i,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,i,this._y0,i,r);break}}this._x0=i,this._y0=r}}class Od{constructor(i){this._context=i}lineStart(){this._point=0}lineEnd(){}point(i,r){if(i=+i,r=+r,this._point===0)this._point=1;else{const o=pointRadial(this._x0,this._y0),a=pointRadial(this._x0,this._y0=(this._y0+r)/2),c=pointRadial(i,this._y0),h=pointRadial(i,r);this._context.moveTo(...o),this._context.bezierCurveTo(...a,...c,...h)}this._x0=i,this._y0=r}}function Dd(t){return new Uu(t,!0)}function Id(t){return new Uu(t,!1)}function sf(t){return new Od(t)}function Wu(t,i){this._basis=new _l(t),this._beta=i}Wu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,r=t.length-1;if(r>0)for(var o=t[0],a=i[0],c=t[r]-o,h=i[r]-a,d=-1,g;++d<=r;)g=d/r,this._basis.point(this._beta*t[d]+(1-this._beta)*(o+g*c),this._beta*i[d]+(1-this._beta)*(a+g*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var Pd=function t(i){function r(o){return i===1?new _l(o):new Wu(o,i)}return r.beta=function(o){return t(+o)},r}(.85);function yl(t,i,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-i),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function yh(t,i){this._context=t,this._k=(1-i)/6}yh.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:yl(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var jd=function t(i){function r(o){return new yh(o,i)}return r.tension=function(o){return t(+o)},r}(0);function Ch(t,i){this._context=t,this._k=(1-i)/6}Ch.prototype={areaStart:bn,areaEnd:bn,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Nd=function t(i){function r(o){return new Ch(o,i)}return r.tension=function(o){return t(+o)},r}(0);function bh(t,i){this._context=t,this._k=(1-i)/6}bh.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,i){switch(t=+t,i=+i,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:yl(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var Rd=function t(i){function r(o){return new bh(o,i)}return r.tension=function(o){return t(+o)},r}(0);function xh(t,i,r){var o=t._x1,a=t._y1,c=t._x2,h=t._y2;if(t._l01_a>Je){var d=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,g=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*d-t._x0*t._l12_2a+t._x2*t._l01_2a)/g,a=(a*d-t._y0*t._l12_2a+t._y2*t._l01_2a)/g}if(t._l23_a>Je){var p=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,C=3*t._l23_a*(t._l23_a+t._l12_a);c=(c*p+t._x1*t._l23_2a-i*t._l12_2a)/C,h=(h*p+t._y1*t._l23_2a-r*t._l12_2a)/C}t._context.bezierCurveTo(o,a,c,h,t._x2,t._y2)}function Hu(t,i){this._context=t,this._alpha=i}Hu.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,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:xh(this,t,i);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=i}};var $d=function t(i){function r(o){return i?new Hu(o,i):new yh(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function Yu(t,i){this._context=t,this._alpha=i}Yu.prototype={areaStart:bn,areaEnd:bn,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,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:xh(this,t,i);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=i}};var zd=function t(i){function r(o){return i?new Yu(o,i):new Ch(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function qu(t,i){this._context=t,this._alpha=i}qu.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,i){if(t=+t,i=+i,this._point){var r=this._x2-t,o=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xh(this,t,i);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=i}};var Ud=function t(i){function r(o){return i?new qu(o,i):new bh(o,0)}return r.alpha=function(o){return t(+o)},r}(.5);function Gu(t){this._context=t}Gu.prototype={areaStart:bn,areaEnd:bn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function Wd(t){return new Gu(t)}function Vu(t){return t<0?-1:1}function Ku(t,i,r){var o=t._x1-t._x0,a=i-t._x1,c=(t._y1-t._y0)/(o||a<0&&-0),h=(r-t._y1)/(a||o<0&&-0),d=(c*a+h*o)/(o+a);return(Vu(c)+Vu(h))*Math.min(Math.abs(c),Math.abs(h),.5*Math.abs(d))||0}function Xu(t,i){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-i)/2:i}function vh(t,i,r){var o=t._x0,a=t._y0,c=t._x1,h=t._y1,d=(c-o)/3;t._context.bezierCurveTo(o+d,a+d*i,c-d,h-d*r,c,h)}function Cl(t){this._context=t}Cl.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:vh(this,this._t0,Xu(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var r=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,vh(this,Xu(this,r=Ku(this,t,i)),r);break;default:vh(this,this._t0,r=Ku(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=r}}};function Zu(t){this._context=new Ju(t)}(Zu.prototype=Object.create(Cl.prototype)).point=function(t,i){Cl.prototype.point.call(this,i,t)};function Ju(t){this._context=t}Ju.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,r,o,a,c){this._context.bezierCurveTo(i,t,o,r,c,a)}};function Hd(t){return new Cl(t)}function Yd(t){return new Zu(t)}function Qu(t){this._context=t}Qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),r===2)this._context.lineTo(t[1],i[1]);else for(var o=td(t),a=td(i),c=0,h=1;h<r;++c,++h)this._context.bezierCurveTo(o[0][c],a[0][c],o[1][c],a[1][c],t[h],i[h]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};function td(t){var i,r=t.length-1,o,a=new Array(r),c=new Array(r),h=new Array(r);for(a[0]=0,c[0]=2,h[0]=t[0]+2*t[1],i=1;i<r-1;++i)a[i]=1,c[i]=4,h[i]=4*t[i]+2*t[i+1];for(a[r-1]=2,c[r-1]=7,h[r-1]=8*t[r-1]+t[r],i=1;i<r;++i)o=a[i]/c[i-1],c[i]-=o,h[i]-=o*h[i-1];for(a[r-1]=h[r-1]/c[r-1],i=r-2;i>=0;--i)a[i]=(h[i]-a[i+1])/c[i];for(c[r-1]=(t[r]+a[r-1])/2,i=0;i<r-1;++i)c[i]=2*t[i+1]-a[i+1];return[a,c]}function qd(t){return new Qu(t)}function bl(t,i){this._context=t,this._t=i}bl.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,i)}break}}this._x=t,this._y=i}};function Gd(t){return new bl(t,.5)}function Vd(t){return new bl(t,0)}function Kd(t){return new bl(t,1)}function Fo(t,i,r){this.k=t,this.x=i,this.y=r}Fo.prototype={constructor:Fo,scale:function(t){return t===1?this:new Fo(this.k*t,this.x,this.y)},translate:function(t,i){return t===0&i===0?this:new Fo(this.k,this.x+this.k*t,this.y+this.k*i)},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 Xd=new Fo(1,0,0);Zd.prototype=Fo.prototype;function Zd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Xd;return t.__zoom}function Jd(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Qd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function ed(){return this.__zoom||identity}function tf(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function rf(t,i,r){var o=t.invertX(i[0][0])-r[0][0],a=t.invertX(i[1][0])-r[1][0],c=t.invertY(i[0][1])-r[0][1],h=t.invertY(i[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),h>c?(c+h)/2:Math.min(0,c)||Math.max(0,h))}function af(){var t=Jd,i=Qd,r=rf,o=tf,a=ef,c=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],d=250,g=interpolateZoom,p=dispatch("start","zoom","end"),C,L,x,O=500,nt=150,xt=0,U=10;function N(T){T.property("__zoom",ed).on("wheel.zoom",Nt,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",jt).filter(a).on("touchstart.zoom",ht).on("touchmove.zoom",Rt).on("touchend.zoom touchcancel.zoom",rt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(T,st,z,tt){var yt=T.selection?T.selection():T;yt.property("__zoom",ed),T!==yt?lt(T,st,z,tt):yt.interrupt().each(function(){Z(this,arguments).event(tt).start().zoom(null,typeof st=="function"?st.apply(this,arguments):st).end()})},N.scaleBy=function(T,st,z,tt){N.scaleTo(T,function(){var yt=this.__zoom.k,ft=typeof st=="function"?st.apply(this,arguments):st;return yt*ft},z,tt)},N.scaleTo=function(T,st,z,tt){N.transform(T,function(){var yt=i.apply(this,arguments),ft=this.__zoom,vt=z==null?ot(yt):typeof z=="function"?z.apply(this,arguments):z,Et=ft.invert(vt),It=typeof st=="function"?st.apply(this,arguments):st;return r(G(it(ft,It),vt,Et),yt,h)},z,tt)},N.translateBy=function(T,st,z,tt){N.transform(T,function(){return r(this.__zoom.translate(typeof st=="function"?st.apply(this,arguments):st,typeof z=="function"?z.apply(this,arguments):z),i.apply(this,arguments),h)},null,tt)},N.translateTo=function(T,st,z,tt,yt){N.transform(T,function(){var ft=i.apply(this,arguments),vt=this.__zoom,Et=tt==null?ot(ft):typeof tt=="function"?tt.apply(this,arguments):tt;return r(identity.translate(Et[0],Et[1]).scale(vt.k).translate(typeof st=="function"?-st.apply(this,arguments):-st,typeof z=="function"?-z.apply(this,arguments):-z),ft,h)},tt,yt)};function it(T,st){return st=Math.max(c[0],Math.min(c[1],st)),st===T.k?T:new Transform(st,T.x,T.y)}function G(T,st,z){var tt=st[0]-z[0]*T.k,yt=st[1]-z[1]*T.k;return tt===T.x&&yt===T.y?T:new Transform(T.k,tt,yt)}function ot(T){return[(+T[0][0]+ +T[1][0])/2,(+T[0][1]+ +T[1][1])/2]}function lt(T,st,z,tt){T.on("start.zoom",function(){Z(this,arguments).event(tt).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(tt).end()}).tween("zoom",function(){var yt=this,ft=arguments,vt=Z(yt,ft).event(tt),Et=i.apply(yt,ft),It=z==null?ot(Et):typeof z=="function"?z.apply(yt,ft):z,Ie=Math.max(Et[1][0]-Et[0][0],Et[1][1]-Et[0][1]),le=yt.__zoom,ce=typeof st=="function"?st.apply(yt,ft):st,Pe=g(le.invert(It).concat(Ie/le.k),ce.invert(It).concat(Ie/ce.k));return function(Zt){if(Zt===1)Zt=ce;else{var Me=Pe(Zt),ut=Ie/Me[2];Zt=new Transform(ut,It[0]-Me[0]*ut,It[1]-Me[1]*ut)}vt.zoom(null,Zt)}})}function Z(T,st,z){return!z&&T.__zooming||new Mt(T,st)}function Mt(T,st){this.that=T,this.args=st,this.active=0,this.sourceEvent=null,this.extent=i.apply(T,st),this.taps=0}Mt.prototype={event:function(T){return T&&(this.sourceEvent=T),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(T,st){return this.mouse&&T!=="mouse"&&(this.mouse[1]=st.invert(this.mouse[0])),this.touch0&&T!=="touch"&&(this.touch0[1]=st.invert(this.touch0[0])),this.touch1&&T!=="touch"&&(this.touch1[1]=st.invert(this.touch1[0])),this.that.__zoom=st,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(T){var st=select(this.that).datum();p.call(T,this.that,new ZoomEvent(T,{sourceEvent:this.sourceEvent,target:N,type:T,transform:this.that.__zoom,dispatch:p}),st)}};function Nt(T,...st){if(!t.apply(this,arguments))return;var z=Z(this,st).event(T),tt=this.__zoom,yt=Math.max(c[0],Math.min(c[1],tt.k*Math.pow(2,o.apply(this,arguments)))),ft=pointer(T);if(z.wheel)(z.mouse[0][0]!==ft[0]||z.mouse[0][1]!==ft[1])&&(z.mouse[1]=tt.invert(z.mouse[0]=ft)),clearTimeout(z.wheel);else{if(tt.k===yt)return;z.mouse=[ft,tt.invert(ft)],interrupt(this),z.start()}noevent(T),z.wheel=setTimeout(vt,nt),z.zoom("mouse",r(G(it(tt,yt),z.mouse[0],z.mouse[1]),z.extent,h));function vt(){z.wheel=null,z.end()}}function ee(T,...st){if(x||!t.apply(this,arguments))return;var z=T.currentTarget,tt=Z(this,st,!0).event(T),yt=select(T.view).on("mousemove.zoom",It,!0).on("mouseup.zoom",Ie,!0),ft=pointer(T,z),vt=T.clientX,Et=T.clientY;dragDisable(T.view),nopropagation(T),tt.mouse=[ft,this.__zoom.invert(ft)],interrupt(this),tt.start();function It(le){if(noevent(le),!tt.moved){var ce=le.clientX-vt,Pe=le.clientY-Et;tt.moved=ce*ce+Pe*Pe>xt}tt.event(le).zoom("mouse",r(G(tt.that.__zoom,tt.mouse[0]=pointer(le,z),tt.mouse[1]),tt.extent,h))}function Ie(le){yt.on("mousemove.zoom mouseup.zoom",null),dragEnable(le.view,tt.moved),noevent(le),tt.event(le).end()}}function jt(T,...st){if(t.apply(this,arguments)){var z=this.__zoom,tt=pointer(T.changedTouches?T.changedTouches[0]:T,this),yt=z.invert(tt),ft=z.k*(T.shiftKey?.5:2),vt=r(G(it(z,ft),tt,yt),i.apply(this,st),h);noevent(T),d>0?select(this).transition().duration(d).call(lt,vt,tt,T):select(this).call(N.transform,vt,tt,T)}}function ht(T,...st){if(t.apply(this,arguments)){var z=T.touches,tt=z.length,yt=Z(this,st,T.changedTouches.length===tt).event(T),ft,vt,Et,It;for(nopropagation(T),vt=0;vt<tt;++vt)Et=z[vt],It=pointer(Et,this),It=[It,this.__zoom.invert(It),Et.identifier],yt.touch0?!yt.touch1&&yt.touch0[2]!==It[2]&&(yt.touch1=It,yt.taps=0):(yt.touch0=It,ft=!0,yt.taps=1+!!C);C&&(C=clearTimeout(C)),ft&&(yt.taps<2&&(L=It[0],C=setTimeout(function(){C=null},O)),interrupt(this),yt.start())}}function Rt(T,...st){if(this.__zooming){var z=Z(this,st).event(T),tt=T.changedTouches,yt=tt.length,ft,vt,Et,It;for(noevent(T),ft=0;ft<yt;++ft)vt=tt[ft],Et=pointer(vt,this),z.touch0&&z.touch0[2]===vt.identifier?z.touch0[0]=Et:z.touch1&&z.touch1[2]===vt.identifier&&(z.touch1[0]=Et);if(vt=z.that.__zoom,z.touch1){var Ie=z.touch0[0],le=z.touch0[1],ce=z.touch1[0],Pe=z.touch1[1],Zt=(Zt=ce[0]-Ie[0])*Zt+(Zt=ce[1]-Ie[1])*Zt,Me=(Me=Pe[0]-le[0])*Me+(Me=Pe[1]-le[1])*Me;vt=it(vt,Math.sqrt(Zt/Me)),Et=[(Ie[0]+ce[0])/2,(Ie[1]+ce[1])/2],It=[(le[0]+Pe[0])/2,(le[1]+Pe[1])/2]}else if(z.touch0)Et=z.touch0[0],It=z.touch0[1];else return;z.zoom("touch",r(G(vt,Et,It),z.extent,h))}}function rt(T,...st){if(this.__zooming){var z=Z(this,st).event(T),tt=T.changedTouches,yt=tt.length,ft,vt;for(nopropagation(T),x&&clearTimeout(x),x=setTimeout(function(){x=null},O),ft=0;ft<yt;++ft)vt=tt[ft],z.touch0&&z.touch0[2]===vt.identifier?delete z.touch0:z.touch1&&z.touch1[2]===vt.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(vt=pointer(vt,this),Math.hypot(L[0]-vt[0],L[1]-vt[1])<U)){var Et=select(this).on("dblclick.zoom");Et&&Et.apply(this,arguments)}}}return N.wheelDelta=function(T){return arguments.length?(o=typeof T=="function"?T:constant(+T),N):o},N.filter=function(T){return arguments.length?(t=typeof T=="function"?T:constant(!!T),N):t},N.touchable=function(T){return arguments.length?(a=typeof T=="function"?T:constant(!!T),N):a},N.extent=function(T){return arguments.length?(i=typeof T=="function"?T:constant([[+T[0][0],+T[0][1]],[+T[1][0],+T[1][1]]]),N):i},N.scaleExtent=function(T){return arguments.length?(c[0]=+T[0],c[1]=+T[1],N):[c[0],c[1]]},N.translateExtent=function(T){return arguments.length?(h[0][0]=+T[0][0],h[1][0]=+T[1][0],h[0][1]=+T[0][1],h[1][1]=+T[1][1],N):[[h[0][0],h[0][1]],[h[1][0],h[1][1]]]},N.constrain=function(T){return arguments.length?(r=T,N):r},N.duration=function(T){return arguments.length?(d=+T,N):d},N.interpolate=function(T){return arguments.length?(g=T,N):g},N.on=function(){var T=p.on.apply(p,arguments);return T===p?N:T},N.clickDistance=function(T){return arguments.length?(xt=(T=+T)*T,N):Math.sqrt(xt)},N.tapDistance=function(T){return arguments.length?(U=+T,N):U},N}},"./node_modules/khroma/dist/channels/reusable.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/constants.js");class P{constructor(){this.type=E.Z.ALL}get(){return this.type}set(k){if(this.type&&this.type!==k)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=k}reset(){this.type=E.Z.ALL}is(k){return this.type===k}}var A=P;class M{constructor(k,I){this.color=I,this.changed=!1,this.data=k,this.type=new A}set(k,I){return this.color=I,this.changed=!1,this.data=k,this.type.type=E.Z.ALL,this}_ensureHSL(){const k=this.data,{h:I,s:et,l:J}=k;I===void 0&&(k.h=B.A.channel.rgb2hsl(k,"h")),et===void 0&&(k.s=B.A.channel.rgb2hsl(k,"s")),J===void 0&&(k.l=B.A.channel.rgb2hsl(k,"l"))}_ensureRGB(){const k=this.data,{r:I,g:et,b:J}=k;I===void 0&&(k.r=B.A.channel.hsl2rgb(k,"r")),et===void 0&&(k.g=B.A.channel.hsl2rgb(k,"g")),J===void 0&&(k.b=B.A.channel.hsl2rgb(k,"b"))}get r(){const k=this.data,I=k.r;return!this.type.is(E.Z.HSL)&&I!==void 0?I:(this._ensureHSL(),B.A.channel.hsl2rgb(k,"r"))}get g(){const k=this.data,I=k.g;return!this.type.is(E.Z.HSL)&&I!==void 0?I:(this._ensureHSL(),B.A.channel.hsl2rgb(k,"g"))}get b(){const k=this.data,I=k.b;return!this.type.is(E.Z.HSL)&&I!==void 0?I:(this._ensureHSL(),B.A.channel.hsl2rgb(k,"b"))}get h(){const k=this.data,I=k.h;return!this.type.is(E.Z.RGB)&&I!==void 0?I:(this._ensureRGB(),B.A.channel.rgb2hsl(k,"h"))}get s(){const k=this.data,I=k.s;return!this.type.is(E.Z.RGB)&&I!==void 0?I:(this._ensureRGB(),B.A.channel.rgb2hsl(k,"s"))}get l(){const k=this.data,I=k.l;return!this.type.is(E.Z.RGB)&&I!==void 0?I:(this._ensureRGB(),B.A.channel.rgb2hsl(k,"l"))}get a(){return this.data.a}set r(k){this.type.set(E.Z.RGB),this.changed=!0,this.data.r=k}set g(k){this.type.set(E.Z.RGB),this.changed=!0,this.data.g=k}set b(k){this.type.set(E.Z.RGB),this.changed=!0,this.data.b=k}set h(k){this.type.set(E.Z.HSL),this.changed=!0,this.data.h=k}set s(k){this.type.set(E.Z.HSL),this.changed=!0,this.data.s=k}set l(k){this.type.set(E.Z.HSL),this.changed=!0,this.data.l=k}set a(k){this.changed=!0,this.data.a=k}}var $=M,q=new $({r:0,g:0,b:0,a:0},"transparent")},"./node_modules/khroma/dist/color/index.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return J}});var B=f("./node_modules/khroma/dist/channels/reusable.js"),E=f("./node_modules/khroma/dist/constants.js");const P={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:b=>{if(b.charCodeAt(0)!==35)return;const j=b.match(P.re);if(!j)return;const R=j[1],at=parseInt(R,16),dt=R.length,gt=dt%4===0,Ct=dt>4,St=Ct?1:17,me=Ct?8:4,ct=gt?0:-1,Kt=Ct?255:15;return B.A.set({r:(at>>me*(ct+3)&Kt)*St,g:(at>>me*(ct+2)&Kt)*St,b:(at>>me*(ct+1)&Kt)*St,a:gt?(at&Kt)*St/255:1},b)},stringify:b=>{const{r:j,g:R,b:at,a:dt}=b;return dt<1?`#${E.Y[Math.round(j)]}${E.Y[Math.round(R)]}${E.Y[Math.round(at)]}${E.Y[Math.round(dt*255)]}`:`#${E.Y[Math.round(j)]}${E.Y[Math.round(R)]}${E.Y[Math.round(at)]}`}};var A=P,M=f("./node_modules/khroma/dist/utils/index.js");const $={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:b=>{const j=b.match($.hueRe);if(j){const[,R,at]=j;switch(at){case"grad":return M.A.channel.clamp.h(parseFloat(R)*.9);case"rad":return M.A.channel.clamp.h(parseFloat(R)*180/Math.PI);case"turn":return M.A.channel.clamp.h(parseFloat(R)*360)}}return M.A.channel.clamp.h(parseFloat(b))},parse:b=>{const j=b.charCodeAt(0);if(j!==104&&j!==72)return;const R=b.match($.re);if(!R)return;const[,at,dt,gt,Ct,St]=R;return B.A.set({h:$._hue2deg(at),s:M.A.channel.clamp.s(parseFloat(dt)),l:M.A.channel.clamp.l(parseFloat(gt)),a:Ct?M.A.channel.clamp.a(St?parseFloat(Ct)/100:parseFloat(Ct)):1},b)},stringify:b=>{const{h:j,s:R,l:at,a:dt}=b;return dt<1?`hsla(${M.A.lang.round(j)}, ${M.A.lang.round(R)}%, ${M.A.lang.round(at)}%, ${dt})`:`hsl(${M.A.lang.round(j)}, ${M.A.lang.round(R)}%, ${M.A.lang.round(at)}%)`}};var W=$;const q={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:b=>{b=b.toLowerCase();const j=q.colors[b];if(j)return A.parse(j)},stringify:b=>{const j=A.stringify(b);for(const R in q.colors)if(q.colors[R]===j)return R}};var m=q;const k={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:b=>{const j=b.charCodeAt(0);if(j!==114&&j!==82)return;const R=b.match(k.re);if(!R)return;const[,at,dt,gt,Ct,St,me,ct,Kt]=R;return B.A.set({r:M.A.channel.clamp.r(dt?parseFloat(at)*2.55:parseFloat(at)),g:M.A.channel.clamp.g(Ct?parseFloat(gt)*2.55:parseFloat(gt)),b:M.A.channel.clamp.b(me?parseFloat(St)*2.55:parseFloat(St)),a:ct?M.A.channel.clamp.a(Kt?parseFloat(ct)/100:parseFloat(ct)):1},b)},stringify:b=>{const{r:j,g:R,b:at,a:dt}=b;return dt<1?`rgba(${M.A.lang.round(j)}, ${M.A.lang.round(R)}, ${M.A.lang.round(at)}, ${M.A.lang.round(dt)})`:`rgb(${M.A.lang.round(j)}, ${M.A.lang.round(R)}, ${M.A.lang.round(at)})`}};var I=k,J={format:{keyword:m,hex:A,rgb:I,rgba:I,hsl:W,hsla:W},parse:b=>{if(typeof b!="string")return b;const j=A.parse(b)||I.parse(b)||W.parse(b)||m.parse(b);if(j)return j;throw new Error(`Unsupported color format: "${b}"`)},stringify:b=>!b.changed&&b.color?b.color:b.type.is(E.Z.HSL)||b.data.r===void 0?W.stringify(b):b.a<1||!Number.isInteger(b.r)||!Number.isInteger(b.g)||!Number.isInteger(b.b)?I.stringify(b):A.stringify(b)}},"./node_modules/khroma/dist/constants.js":function(mt,D,f){"use strict";f.d(D,{Y:function(){return E},Z:function(){return P}});var B=f("./node_modules/khroma/dist/utils/index.js");const E={};for(let A=0;A<=255;A++)E[A]=B.A.unit.dec2hex(A);const P={ALL:0,RGB:1,HSL:2}},"./node_modules/khroma/dist/methods/adjust_channel.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js");const P=(A,M,$)=>{const W=E.A.parse(A),q=W[M],m=B.A.channel.clamp[M](q+$);return q!==m&&(W[M]=m),E.A.stringify(W)};D.A=P},"./node_modules/khroma/dist/methods/change.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js");const P=(A,M)=>{const $=E.A.parse(A);for(const W in M)$[W]=B.A.channel.clamp[W](M[W]);return E.A.stringify($)};D.A=P},"./node_modules/khroma/dist/methods/darken.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/methods/adjust_channel.js");const E=(P,A)=>(0,B.A)(P,"l",-A);D.A=E},"./node_modules/khroma/dist/methods/is_dark.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/color/index.js"),A=m=>{const{r:k,g:I,b:et}=E.A.parse(m),J=.2126*B.A.channel.toLinear(k)+.7152*B.A.channel.toLinear(I)+.0722*B.A.channel.toLinear(et);return B.A.lang.round(J)},$=m=>A(m)>=.5,q=m=>!$(m)},"./node_modules/khroma/dist/methods/lighten.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/methods/adjust_channel.js");const E=(P,A)=>(0,B.A)(P,"l",A);D.A=E},"./node_modules/khroma/dist/methods/rgba.js":function(mt,D,f){"use strict";var B=f("./node_modules/khroma/dist/utils/index.js"),E=f("./node_modules/khroma/dist/channels/reusable.js"),P=f("./node_modules/khroma/dist/color/index.js"),A=f("./node_modules/khroma/dist/methods/change.js");const M=($,W,q=0,m=1)=>{if(typeof $!="number")return(0,A.A)($,{a:W});const k=E.A.set({r:B.A.channel.clamp.r($),g:B.A.channel.clamp.g(W),b:B.A.channel.clamp.b(q),a:B.A.channel.clamp.a(m)});return P.A.stringify(k)};D.A=M},"./node_modules/khroma/dist/utils/index.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});const B={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:m=>m>=255?255:m<0?0:m,g:m=>m>=255?255:m<0?0:m,b:m=>m>=255?255:m<0?0:m,h:m=>m%360,s:m=>m>=100?100:m<0?0:m,l:m=>m>=100?100:m<0?0:m,a:m=>m>=1?1:m<0?0:m},toLinear:m=>{const k=m/255;return m>.03928?Math.pow((k+.055)/1.055,2.4):k/12.92},hue2rgb:(m,k,I)=>(I<0&&(I+=1),I>1&&(I-=1),I<1/6?m+(k-m)*6*I:I<1/2?k:I<2/3?m+(k-m)*(2/3-I)*6:m),hsl2rgb:({h:m,s:k,l:I},et)=>{if(!k)return I*2.55;m/=360,k/=100,I/=100;const J=I<.5?I*(1+k):I+k-I*k,b=2*I-J;switch(et){case"r":return B.hue2rgb(b,J,m+1/3)*255;case"g":return B.hue2rgb(b,J,m)*255;case"b":return B.hue2rgb(b,J,m-1/3)*255}},rgb2hsl:({r:m,g:k,b:I},et)=>{m/=255,k/=255,I/=255;const J=Math.max(m,k,I),b=Math.min(m,k,I),j=(J+b)/2;if(et==="l")return j*100;if(J===b)return 0;const R=J-b,at=j>.5?R/(2-J-b):R/(J+b);if(et==="s")return at*100;switch(J){case m:return((k-I)/R+(k<I?6:0))*60;case k:return((I-m)/R+2)*60;case I:return((m-k)/R+4)*60;default:return-1}}};var E=B,A={clamp:(m,k,I)=>k>I?Math.min(k,Math.max(I,m)):Math.min(I,Math.max(k,m)),round:m=>Math.round(m*1e10)/1e10},$={dec2hex:m=>{const k=Math.round(m).toString(16);return k.length>1?k:`0${k}`}},q={channel:E,lang:A,unit:$}},"./node_modules/lodash-es/_ListCache.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return at}});function B(){this.__data__=[],this.size=0}var E=B,P=f("./node_modules/lodash-es/eq.js");function A(dt,gt){for(var Ct=dt.length;Ct--;)if((0,P.A)(dt[Ct][0],gt))return Ct;return-1}var M=A,$=Array.prototype,W=$.splice;function q(dt){var gt=this.__data__,Ct=M(gt,dt);if(Ct<0)return!1;var St=gt.length-1;return Ct==St?gt.pop():W.call(gt,Ct,1),--this.size,!0}var m=q;function k(dt){var gt=this.__data__,Ct=M(gt,dt);return Ct<0?void 0:gt[Ct][1]}var I=k;function et(dt){return M(this.__data__,dt)>-1}var J=et;function b(dt,gt){var Ct=this.__data__,St=M(Ct,dt);return St<0?(++this.size,Ct.push([dt,gt])):Ct[St][1]=gt,this}var j=b;function R(dt){var gt=-1,Ct=dt==null?0:dt.length;for(this.clear();++gt<Ct;){var St=dt[gt];this.set(St[0],St[1])}}R.prototype.clear=E,R.prototype.delete=m,R.prototype.get=I,R.prototype.has=J,R.prototype.set=j;var at=R},"./node_modules/lodash-es/_Map.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_getNative.js"),E=f("./node_modules/lodash-es/_root.js"),P=(0,B.A)(E.A,"Map");D.A=P},"./node_modules/lodash-es/_MapCache.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return we}});var B=f("./node_modules/lodash-es/_getNative.js"),E=(0,B.A)(Object,"create"),P=E;function A(){this.__data__=P?P(null):{},this.size=0}var M=A;function $(_t){var Bt=this.has(_t)&&delete this.__data__[_t];return this.size-=Bt?1:0,Bt}var W=$,q="__lodash_hash_undefined__",m=Object.prototype,k=m.hasOwnProperty;function I(_t){var Bt=this.__data__;if(P){var Ut=Bt[_t];return Ut===q?void 0:Ut}return k.call(Bt,_t)?Bt[_t]:void 0}var et=I,J=Object.prototype,b=J.hasOwnProperty;function j(_t){var Bt=this.__data__;return P?Bt[_t]!==void 0:b.call(Bt,_t)}var R=j,at="__lodash_hash_undefined__";function dt(_t,Bt){var Ut=this.__data__;return this.size+=this.has(_t)?0:1,Ut[_t]=P&&Bt===void 0?at:Bt,this}var gt=dt;function Ct(_t){var Bt=-1,Ut=_t==null?0:_t.length;for(this.clear();++Bt<Ut;){var se=_t[Bt];this.set(se[0],se[1])}}Ct.prototype.clear=M,Ct.prototype.delete=W,Ct.prototype.get=et,Ct.prototype.has=R,Ct.prototype.set=gt;var St=Ct,me=f("./node_modules/lodash-es/_ListCache.js"),ct=f("./node_modules/lodash-es/_Map.js");function Kt(){this.size=0,this.__data__={hash:new St,map:new(ct.A||me.A),string:new St}}var ge=Kt;function Ve(_t){var Bt=typeof _t;return Bt=="string"||Bt=="number"||Bt=="symbol"||Bt=="boolean"?_t!=="__proto__":_t===null}var Ke=Ve;function $t(_t,Bt){var Ut=_t.__data__;return Ke(Bt)?Ut[typeof Bt=="string"?"string":"hash"]:Ut.map}var Ue=$t;function nr(_t){var Bt=Ue(this,_t).delete(_t);return this.size-=Bt?1:0,Bt}var Si=nr;function Ri(_t){return Ue(this,_t).get(_t)}var wi=Ri;function Bi(_t){return Ue(this,_t).has(_t)}var qt=Bi;function Gt(_t,Bt){var Ut=Ue(this,_t),se=Ut.size;return Ut.set(_t,Bt),this.size+=Ut.size==se?0:1,this}var Jt=Gt;function pe(_t){var Bt=-1,Ut=_t==null?0:_t.length;for(this.clear();++Bt<Ut;){var se=_t[Bt];this.set(se[0],se[1])}}pe.prototype.clear=ge,pe.prototype.delete=Si,pe.prototype.get=wi,pe.prototype.has=qt,pe.prototype.set=Jt;var we=pe},"./node_modules/lodash-es/_Set.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_getNative.js"),E=f("./node_modules/lodash-es/_root.js"),P=(0,B.A)(E.A,"Set");D.A=P},"./node_modules/lodash-es/_Stack.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return R}});var B=f("./node_modules/lodash-es/_ListCache.js");function E(){this.__data__=new B.A,this.size=0}var P=E;function A(at){var dt=this.__data__,gt=dt.delete(at);return this.size=dt.size,gt}var M=A;function $(at){return this.__data__.get(at)}var W=$;function q(at){return this.__data__.has(at)}var m=q,k=f("./node_modules/lodash-es/_Map.js"),I=f("./node_modules/lodash-es/_MapCache.js"),et=200;function J(at,dt){var gt=this.__data__;if(gt instanceof B.A){var Ct=gt.__data__;if(!k.A||Ct.length<et-1)return Ct.push([at,dt]),this.size=++gt.size,this;gt=this.__data__=new I.A(Ct)}return gt.set(at,dt),this.size=gt.size,this}var b=J;function j(at){var dt=this.__data__=new B.A(at);this.size=dt.size}j.prototype.clear=P,j.prototype.delete=M,j.prototype.get=W,j.prototype.has=m,j.prototype.set=b;var R=j},"./node_modules/lodash-es/_Symbol.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_root.js"),E=B.A.Symbol;D.A=E},"./node_modules/lodash-es/_Uint8Array.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_root.js"),E=B.A.Uint8Array;D.A=E},"./node_modules/lodash-es/_arrayLikeKeys.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return I}});function B(et,J){for(var b=-1,j=Array(et);++b<et;)j[b]=J(b);return j}var E=B,P=f("./node_modules/lodash-es/isArguments.js"),A=f("./node_modules/lodash-es/isArray.js"),M=f("./node_modules/lodash-es/isBuffer.js"),$=f("./node_modules/lodash-es/_isIndex.js"),W=f("./node_modules/lodash-es/isTypedArray.js"),q=Object.prototype,m=q.hasOwnProperty;function k(et,J){var b=(0,A.A)(et),j=!b&&(0,P.A)(et),R=!b&&!j&&(0,M.A)(et),at=!b&&!j&&!R&&(0,W.A)(et),dt=b||j||R||at,gt=dt?E(et.length,String):[],Ct=gt.length;for(var St in et)(J||m.call(et,St))&&!(dt&&(St=="length"||R&&(St=="offset"||St=="parent")||at&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||(0,$.A)(St,Ct)))&&gt.push(St);return gt}var I=k},"./node_modules/lodash-es/_assignValue.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseAssignValue.js"),E=f("./node_modules/lodash-es/eq.js"),P=Object.prototype,A=P.hasOwnProperty;function M($,W,q){var m=$[W];(!(A.call($,W)&&(0,E.A)(m,q))||q===void 0&&!(W in $))&&(0,B.A)($,W,q)}D.A=M},"./node_modules/lodash-es/_baseAssignValue.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_defineProperty.js");function E(P,A,M){A=="__proto__"&&B.A?(0,B.A)(P,A,{configurable:!0,enumerable:!0,value:M,writable:!0}):P[A]=M}D.A=E},"./node_modules/lodash-es/_baseFor.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return A}});function B(M){return function($,W,q){for(var m=-1,k=Object($),I=q($),et=I.length;et--;){var J=I[M?et:++m];if(W(k[J],J,k)===!1)break}return $}}var E=B,P=E(),A=P},"./node_modules/lodash-es/_baseGetTag.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return R}});var B=f("./node_modules/lodash-es/_Symbol.js"),E=Object.prototype,P=E.hasOwnProperty,A=E.toString,M=B.A?B.A.toStringTag:void 0;function $(at){var dt=P.call(at,M),gt=at[M];try{at[M]=void 0;var Ct=!0}catch{}var St=A.call(at);return Ct&&(dt?at[M]=gt:delete at[M]),St}var W=$,q=Object.prototype,m=q.toString;function k(at){return m.call(at)}var I=k,et="[object Null]",J="[object Undefined]",b=B.A?B.A.toStringTag:void 0;function j(at){return at==null?at===void 0?J:et:b&&b in Object(at)?W(at):I(at)}var R=j},"./node_modules/lodash-es/_baseKeys.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});var B=f("./node_modules/lodash-es/_isPrototype.js"),E=f("./node_modules/lodash-es/_overArg.js"),P=(0,E.A)(Object.keys,Object),A=P,M=Object.prototype,$=M.hasOwnProperty;function W(m){if(!(0,B.A)(m))return A(m);var k=[];for(var I in Object(m))$.call(m,I)&&I!="constructor"&&k.push(I);return k}var q=W},"./node_modules/lodash-es/_baseRest.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/identity.js"),E=f("./node_modules/lodash-es/_overRest.js"),P=f("./node_modules/lodash-es/_setToString.js");function A(M,$){return(0,P.A)((0,E.A)(M,$,B.A),M+"")}D.A=A},"./node_modules/lodash-es/_baseUnary.js":function(mt,D){"use strict";function f(B){return function(E){return B(E)}}D.A=f},"./node_modules/lodash-es/_cloneArrayBuffer.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_Uint8Array.js");function E(P){var A=new P.constructor(P.byteLength);return new B.A(A).set(new B.A(P)),A}D.A=E},"./node_modules/lodash-es/_cloneBuffer.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_root.js"),E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=E&&typeof module=="object"&&module&&!module.nodeType&&module,A=P&&P.exports===E,M=A?B.A.Buffer:void 0,$=M?M.allocUnsafe:void 0;function W(q,m){if(m)return q.slice();var k=q.length,I=$?$(k):new q.constructor(k);return q.copy(I),I}D.A=W},"./node_modules/lodash-es/_cloneTypedArray.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_cloneArrayBuffer.js");function E(P,A){var M=A?(0,B.A)(P.buffer):P.buffer;return new P.constructor(M,P.byteOffset,P.length)}D.A=E},"./node_modules/lodash-es/_copyArray.js":function(mt,D){"use strict";function f(B,E){var P=-1,A=B.length;for(E||(E=Array(A));++P<A;)E[P]=B[P];return E}D.A=f},"./node_modules/lodash-es/_copyObject.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_assignValue.js"),E=f("./node_modules/lodash-es/_baseAssignValue.js");function P(A,M,$,W){var q=!$;$||($={});for(var m=-1,k=M.length;++m<k;){var I=M[m],et=W?W($[I],A[I],I,$,A):void 0;et===void 0&&(et=A[I]),q?(0,E.A)($,I,et):(0,B.A)($,I,et)}return $}D.A=P},"./node_modules/lodash-es/_defineProperty.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_getNative.js"),E=function(){try{var P=(0,B.A)(Object,"defineProperty");return P({},"",{}),P}catch{}}();D.A=E},"./node_modules/lodash-es/_freeGlobal.js":function(mt,D){"use strict";var f=typeof global=="object"&&global&&global.Object===Object&&global;D.A=f},"./node_modules/lodash-es/_getNative.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return me}});var B=f("./node_modules/lodash-es/isFunction.js"),E=f("./node_modules/lodash-es/_root.js"),P=E.A["__core-js_shared__"],A=P,M=function(){var ct=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return ct?"Symbol(src)_1."+ct:""}();function $(ct){return!!M&&M in ct}var W=$,q=f("./node_modules/lodash-es/isObject.js"),m=f("./node_modules/lodash-es/_toSource.js"),k=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,et=Function.prototype,J=Object.prototype,b=et.toString,j=J.hasOwnProperty,R=RegExp("^"+b.call(j).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function at(ct){if(!(0,q.A)(ct)||W(ct))return!1;var Kt=(0,B.A)(ct)?R:I;return Kt.test((0,m.A)(ct))}var dt=at;function gt(ct,Kt){return ct?.[Kt]}var Ct=gt;function St(ct,Kt){var ge=Ct(ct,Kt);return dt(ge)?ge:void 0}var me=St},"./node_modules/lodash-es/_getPrototype.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_overArg.js"),E=(0,B.A)(Object.getPrototypeOf,Object);D.A=E},"./node_modules/lodash-es/_getTag.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return ge}});var B=f("./node_modules/lodash-es/_getNative.js"),E=f("./node_modules/lodash-es/_root.js"),P=(0,B.A)(E.A,"DataView"),A=P,M=f("./node_modules/lodash-es/_Map.js"),$=(0,B.A)(E.A,"Promise"),W=$,q=f("./node_modules/lodash-es/_Set.js"),m=(0,B.A)(E.A,"WeakMap"),k=m,I=f("./node_modules/lodash-es/_baseGetTag.js"),et=f("./node_modules/lodash-es/_toSource.js"),J="[object Map]",b="[object Object]",j="[object Promise]",R="[object Set]",at="[object WeakMap]",dt="[object DataView]",gt=(0,et.A)(A),Ct=(0,et.A)(M.A),St=(0,et.A)(W),me=(0,et.A)(q.A),ct=(0,et.A)(k),Kt=I.A;(A&&Kt(new A(new ArrayBuffer(1)))!=dt||M.A&&Kt(new M.A)!=J||W&&Kt(W.resolve())!=j||q.A&&Kt(new q.A)!=R||k&&Kt(new k)!=at)&&(Kt=function(Ve){var Ke=(0,I.A)(Ve),$t=Ke==b?Ve.constructor:void 0,Ue=$t?(0,et.A)($t):"";if(Ue)switch(Ue){case gt:return dt;case Ct:return J;case St:return j;case me:return R;case ct:return at}return Ke});var ge=Kt},"./node_modules/lodash-es/_initCloneObject.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return q}});var B=f("./node_modules/lodash-es/isObject.js"),E=Object.create,P=function(){function m(){}return function(k){if(!(0,B.A)(k))return{};if(E)return E(k);m.prototype=k;var I=new m;return m.prototype=void 0,I}}(),A=P,M=f("./node_modules/lodash-es/_getPrototype.js"),$=f("./node_modules/lodash-es/_isPrototype.js");function W(m){return typeof m.constructor=="function"&&!(0,$.A)(m)?A((0,M.A)(m)):{}}var q=W},"./node_modules/lodash-es/_isIndex.js":function(mt,D){"use strict";var f=9007199254740991,B=/^(?:0|[1-9]\d*)$/;function E(P,A){var M=typeof P;return A=A??f,!!A&&(M=="number"||M!="symbol"&&B.test(P))&&P>-1&&P%1==0&&P<A}D.A=E},"./node_modules/lodash-es/_isIterateeCall.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/eq.js"),E=f("./node_modules/lodash-es/isArrayLike.js"),P=f("./node_modules/lodash-es/_isIndex.js"),A=f("./node_modules/lodash-es/isObject.js");function M($,W,q){if(!(0,A.A)(q))return!1;var m=typeof W;return(m=="number"?(0,E.A)(q)&&(0,P.A)(W,q.length):m=="string"&&W in q)?(0,B.A)(q[W],$):!1}D.A=M},"./node_modules/lodash-es/_isPrototype.js":function(mt,D){"use strict";var f=Object.prototype;function B(E){var P=E&&E.constructor,A=typeof P=="function"&&P.prototype||f;return E===A}D.A=B},"./node_modules/lodash-es/_nodeUtil.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_freeGlobal.js"),E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=E&&typeof module=="object"&&module&&!module.nodeType&&module,A=P&&P.exports===E,M=A&&B.A.process,$=function(){try{var W=P&&P.require&&P.require("util").types;return W||M&&M.binding&&M.binding("util")}catch{}}();D.A=$},"./node_modules/lodash-es/_overArg.js":function(mt,D){"use strict";function f(B,E){return function(P){return B(E(P))}}D.A=f},"./node_modules/lodash-es/_overRest.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return M}});function B($,W,q){switch(q.length){case 0:return $.call(W);case 1:return $.call(W,q[0]);case 2:return $.call(W,q[0],q[1]);case 3:return $.call(W,q[0],q[1],q[2])}return $.apply(W,q)}var E=B,P=Math.max;function A($,W,q){return W=P(W===void 0?$.length-1:W,0),function(){for(var m=arguments,k=-1,I=P(m.length-W,0),et=Array(I);++k<I;)et[k]=m[W+k];k=-1;for(var J=Array(W+1);++k<W;)J[k]=m[k];return J[W]=q(et),E($,this,J)}}var M=A},"./node_modules/lodash-es/_root.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_freeGlobal.js"),E=typeof self=="object"&&self&&self.Object===Object&&self,P=B.A||E||Function("return this")();D.A=P},"./node_modules/lodash-es/_setToString.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return et}});var B=f("./node_modules/lodash-es/constant.js"),E=f("./node_modules/lodash-es/_defineProperty.js"),P=f("./node_modules/lodash-es/identity.js"),A=E.A?function(J,b){return(0,E.A)(J,"toString",{configurable:!0,enumerable:!1,value:(0,B.A)(b),writable:!0})}:P.A,M=A,$=800,W=16,q=Date.now;function m(J){var b=0,j=0;return function(){var R=q(),at=W-(R-j);if(j=R,at>0){if(++b>=$)return arguments[0]}else b=0;return J.apply(void 0,arguments)}}var k=m,I=k(M),et=I},"./node_modules/lodash-es/_toSource.js":function(mt,D){"use strict";var f=Function.prototype,B=f.toString;function E(P){if(P!=null){try{return B.call(P)}catch{}try{return P+""}catch{}}return""}D.A=E},"./node_modules/lodash-es/constant.js":function(mt,D){"use strict";function f(B){return function(){return B}}D.A=f},"./node_modules/lodash-es/eq.js":function(mt,D){"use strict";function f(B,E){return B===E||B!==B&&E!==E}D.A=f},"./node_modules/lodash-es/identity.js":function(mt,D){"use strict";function f(B){return B}D.A=f},"./node_modules/lodash-es/isArguments.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return k}});var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isObjectLike.js"),P="[object Arguments]";function A(I){return(0,E.A)(I)&&(0,B.A)(I)==P}var M=A,$=Object.prototype,W=$.hasOwnProperty,q=$.propertyIsEnumerable,m=M(function(){return arguments}())?M:function(I){return(0,E.A)(I)&&W.call(I,"callee")&&!q.call(I,"callee")},k=m},"./node_modules/lodash-es/isArray.js":function(mt,D){"use strict";var f=Array.isArray;D.A=f},"./node_modules/lodash-es/isArrayLike.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/isFunction.js"),E=f("./node_modules/lodash-es/isLength.js");function P(A){return A!=null&&(0,E.A)(A.length)&&!(0,B.A)(A)}D.A=P},"./node_modules/lodash-es/isArrayLikeObject.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/isArrayLike.js"),E=f("./node_modules/lodash-es/isObjectLike.js");function P(A){return(0,E.A)(A)&&(0,B.A)(A)}D.A=P},"./node_modules/lodash-es/isBuffer.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return k}});var B=f("./node_modules/lodash-es/_root.js");function E(){return!1}var P=E,A=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M=A&&typeof module=="object"&&module&&!module.nodeType&&module,$=M&&M.exports===A,W=$?B.A.Buffer:void 0,q=W?W.isBuffer:void 0,m=q||P,k=m},"./node_modules/lodash-es/isEmpty.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseKeys.js"),E=f("./node_modules/lodash-es/_getTag.js"),P=f("./node_modules/lodash-es/isArguments.js"),A=f("./node_modules/lodash-es/isArray.js"),M=f("./node_modules/lodash-es/isArrayLike.js"),$=f("./node_modules/lodash-es/isBuffer.js"),W=f("./node_modules/lodash-es/_isPrototype.js"),q=f("./node_modules/lodash-es/isTypedArray.js"),m="[object Map]",k="[object Set]",I=Object.prototype,et=I.hasOwnProperty;function J(b){if(b==null)return!0;if((0,M.A)(b)&&((0,A.A)(b)||typeof b=="string"||typeof b.splice=="function"||(0,$.A)(b)||(0,q.A)(b)||(0,P.A)(b)))return!b.length;var j=(0,E.A)(b);if(j==m||j==k)return!b.size;if((0,W.A)(b))return!(0,B.A)(b).length;for(var R in b)if(et.call(b,R))return!1;return!0}D.A=J},"./node_modules/lodash-es/isFunction.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isObject.js"),P="[object AsyncFunction]",A="[object Function]",M="[object GeneratorFunction]",$="[object Proxy]";function W(q){if(!(0,E.A)(q))return!1;var m=(0,B.A)(q);return m==A||m==M||m==P||m==$}D.A=W},"./node_modules/lodash-es/isLength.js":function(mt,D){"use strict";var f=9007199254740991;function B(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=f}D.A=B},"./node_modules/lodash-es/isObject.js":function(mt,D){"use strict";function f(B){var E=typeof B;return B!=null&&(E=="object"||E=="function")}D.A=f},"./node_modules/lodash-es/isObjectLike.js":function(mt,D){"use strict";function f(B){return B!=null&&typeof B=="object"}D.A=f},"./node_modules/lodash-es/isPlainObject.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/_getPrototype.js"),P=f("./node_modules/lodash-es/isObjectLike.js"),A="[object Object]",M=Function.prototype,$=Object.prototype,W=M.toString,q=$.hasOwnProperty,m=W.call(Object);function k(I){if(!(0,P.A)(I)||(0,B.A)(I)!=A)return!1;var et=(0,E.A)(I);if(et===null)return!0;var J=q.call(et,"constructor")&&et.constructor;return typeof J=="function"&&J instanceof J&&W.call(J)==m}D.A=k},"./node_modules/lodash-es/isTypedArray.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return qt}});var B=f("./node_modules/lodash-es/_baseGetTag.js"),E=f("./node_modules/lodash-es/isLength.js"),P=f("./node_modules/lodash-es/isObjectLike.js"),A="[object Arguments]",M="[object Array]",$="[object Boolean]",W="[object Date]",q="[object Error]",m="[object Function]",k="[object Map]",I="[object Number]",et="[object Object]",J="[object RegExp]",b="[object Set]",j="[object String]",R="[object WeakMap]",at="[object ArrayBuffer]",dt="[object DataView]",gt="[object Float32Array]",Ct="[object Float64Array]",St="[object Int8Array]",me="[object Int16Array]",ct="[object Int32Array]",Kt="[object Uint8Array]",ge="[object Uint8ClampedArray]",Ve="[object Uint16Array]",Ke="[object Uint32Array]",$t={};$t[gt]=$t[Ct]=$t[St]=$t[me]=$t[ct]=$t[Kt]=$t[ge]=$t[Ve]=$t[Ke]=!0,$t[A]=$t[M]=$t[at]=$t[$]=$t[dt]=$t[W]=$t[q]=$t[m]=$t[k]=$t[I]=$t[et]=$t[J]=$t[b]=$t[j]=$t[R]=!1;function Ue(Gt){return(0,P.A)(Gt)&&(0,E.A)(Gt.length)&&!!$t[(0,B.A)(Gt)]}var nr=Ue,Si=f("./node_modules/lodash-es/_baseUnary.js"),Ri=f("./node_modules/lodash-es/_nodeUtil.js"),wi=Ri.A&&Ri.A.isTypedArray,Bi=wi?(0,Si.A)(wi):nr,qt=Bi},"./node_modules/lodash-es/keysIn.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return et}});var B=f("./node_modules/lodash-es/_arrayLikeKeys.js"),E=f("./node_modules/lodash-es/isObject.js"),P=f("./node_modules/lodash-es/_isPrototype.js");function A(J){var b=[];if(J!=null)for(var j in Object(J))b.push(j);return b}var M=A,$=Object.prototype,W=$.hasOwnProperty;function q(J){if(!(0,E.A)(J))return M(J);var b=(0,P.A)(J),j=[];for(var R in J)R=="constructor"&&(b||!W.call(J,R))||j.push(R);return j}var m=q,k=f("./node_modules/lodash-es/isArrayLike.js");function I(J){return(0,k.A)(J)?(0,B.A)(J,!0):m(J)}var et=I},"./node_modules/lodash-es/memoize.js":function(mt,D,f){"use strict";var B=f("./node_modules/lodash-es/_MapCache.js"),E="Expected a function";function P(A,M){if(typeof A!="function"||M!=null&&typeof M!="function")throw new TypeError(E);var $=function(){var W=arguments,q=M?M.apply(this,W):W[0],m=$.cache;if(m.has(q))return m.get(q);var k=A.apply(this,W);return $.cache=m.set(q,k)||m,k};return $.cache=new(P.Cache||B.A),$}P.Cache=B.A,D.A=P},"./node_modules/lodash-es/merge.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return Bi}});var B=f("./node_modules/lodash-es/_Stack.js"),E=f("./node_modules/lodash-es/_baseAssignValue.js"),P=f("./node_modules/lodash-es/eq.js");function A(qt,Gt,Jt){(Jt!==void 0&&!(0,P.A)(qt[Gt],Jt)||Jt===void 0&&!(Gt in qt))&&(0,E.A)(qt,Gt,Jt)}var M=A,$=f("./node_modules/lodash-es/_baseFor.js"),W=f("./node_modules/lodash-es/_cloneBuffer.js"),q=f("./node_modules/lodash-es/_cloneTypedArray.js"),m=f("./node_modules/lodash-es/_copyArray.js"),k=f("./node_modules/lodash-es/_initCloneObject.js"),I=f("./node_modules/lodash-es/isArguments.js"),et=f("./node_modules/lodash-es/isArray.js"),J=f("./node_modules/lodash-es/isArrayLikeObject.js"),b=f("./node_modules/lodash-es/isBuffer.js"),j=f("./node_modules/lodash-es/isFunction.js"),R=f("./node_modules/lodash-es/isObject.js"),at=f("./node_modules/lodash-es/isPlainObject.js"),dt=f("./node_modules/lodash-es/isTypedArray.js");function gt(qt,Gt){if(!(Gt==="constructor"&&typeof qt[Gt]=="function")&&Gt!="__proto__")return qt[Gt]}var Ct=gt,St=f("./node_modules/lodash-es/_copyObject.js"),me=f("./node_modules/lodash-es/keysIn.js");function ct(qt){return(0,St.A)(qt,(0,me.A)(qt))}var Kt=ct;function ge(qt,Gt,Jt,pe,we,_t,Bt){var Ut=Ct(qt,Jt),se=Ct(Gt,Jt),Sr=Bt.get(se);if(Sr){M(qt,Jt,Sr);return}var je=_t?_t(Ut,se,Jt+"",qt,Gt,Bt):void 0,Qe=je===void 0;if(Qe){var wr=(0,et.A)(se),Ne=!wr&&(0,b.A)(se),Ei=!wr&&!Ne&&(0,dt.A)(se);je=se,wr||Ne||Ei?(0,et.A)(Ut)?je=Ut:(0,J.A)(Ut)?je=(0,m.A)(Ut):Ne?(Qe=!1,je=(0,W.A)(se,!0)):Ei?(Qe=!1,je=(0,q.A)(se,!0)):je=[]:(0,at.A)(se)||(0,I.A)(se)?(je=Ut,(0,I.A)(Ut)?je=Kt(Ut):(!(0,R.A)(Ut)||(0,j.A)(Ut))&&(je=(0,k.A)(se))):Qe=!1}Qe&&(Bt.set(se,je),we(je,se,pe,_t,Bt),Bt.delete(se)),M(qt,Jt,je)}var Ve=ge;function Ke(qt,Gt,Jt,pe,we){qt!==Gt&&(0,$.A)(Gt,function(_t,Bt){if(we||(we=new B.A),(0,R.A)(_t))Ve(qt,Gt,Bt,Jt,Ke,pe,we);else{var Ut=pe?pe(Ct(qt,Bt),_t,Bt+"",qt,Gt,we):void 0;Ut===void 0&&(Ut=_t),M(qt,Bt,Ut)}},me.A)}var $t=Ke,Ue=f("./node_modules/lodash-es/_baseRest.js"),nr=f("./node_modules/lodash-es/_isIterateeCall.js");function Si(qt){return(0,Ue.A)(function(Gt,Jt){var pe=-1,we=Jt.length,_t=we>1?Jt[we-1]:void 0,Bt=we>2?Jt[2]:void 0;for(_t=qt.length>3&&typeof _t=="function"?(we--,_t):void 0,Bt&&(0,nr.A)(Jt[0],Jt[1],Bt)&&(_t=we<3?void 0:_t,we=1),Gt=Object(Gt);++pe<we;){var Ut=Jt[pe];Ut&&qt(Gt,Ut,pe,_t)}return Gt})}var Ri=Si,wi=Ri(function(qt,Gt,Jt){$t(qt,Gt,Jt)}),Bi=wi},"./node_modules/mermaid/dist/mermaid-f47111a7.js":function(mt,D,f){"use strict";f.d(D,{A:function(){return _o},B:function(){return Bn},C:function(){return hn},D:function(){return yr},E:function(){return ur},F:function(){return Ai},G:function(){return nn},H:function(){return no},I:function(){return Rs},J:function(){return re},K:function(){return fa},L:function(){return uo},M:function(){return Dn},N:function(){return ki},Z:function(){return Mn},a:function(){return $e},b:function(){return Zo},c:function(){return go},d:function(){return zi},e:function(){return hr},f:function(){return Ce},g:function(){return Pr},h:function(){return cn},i:function(){return qo},j:function(){return zs},k:function(){return js},l:function(){return At},m:function(){return cr},n:function(){return ve},o:function(){return Go},p:function(){return Ki},q:function(){return ze},r:function(){return on},s:function(){return Ir},t:function(){return Jo},u:function(){return li},v:function(){return ho},w:function(){return Fn},x:function(){return ro},y:function(){return jo},z:function(){return ga}});var B=f("./node_modules/ts-dedent/esm/index.js"),E=f("./node_modules/dayjs/dayjs.min.js"),P=f("./node_modules/@braintree/sanitize-url/dist/index.js"),A=f("./node_modules/d3/src/index.js"),M=f("./node_modules/dompurify/dist/purify.js"),$=f("./node_modules/khroma/dist/color/index.js"),W=f("./node_modules/khroma/dist/methods/change.js"),m=(e,n)=>{const s=$.A.parse(e),l={};for(const u in n)n[u]&&(l[u]=s[u]+n[u]);return(0,W.A)(e,l)},k=f("./node_modules/khroma/dist/methods/rgba.js"),et=(e,n,s=50)=>{const{r:l,g:u,b:_,a:y}=$.A.parse(e),{r:w,g:F,b:V,a:Q}=$.A.parse(n),Y=s/100,S=Y*2-1,H=y-Q,Dt=((S*H===-1?S:(S+H)/(1+S*H))+1)/2,Lt=1-Dt,Vt=l*Dt+w*Lt,kt=u*Dt+F*Lt,mi=_*Dt+V*Lt,Ae=y*Y+Q*(1-Y);return(0,k.A)(Vt,kt,mi,Ae)},b=(e,n=100)=>{const s=$.A.parse(e);return s.r=255-s.r,s.g=255-s.g,s.b=255-s.b,et(s,e,n)},j=f("./node_modules/khroma/dist/methods/darken.js"),R=f("./node_modules/khroma/dist/methods/lighten.js"),at=f("./node_modules/khroma/dist/methods/is_dark.js"),dt=f("./node_modules/lodash-es/memoize.js"),gt=f("./node_modules/lodash-es/merge.js"),Ct="-ms-",St="-moz-",me="-webkit-",ct="comm",Kt="rule",ge="decl",Ve="@page",Ke="@media",$t="@import",Ue="@charset",nr="@viewport",Si="@supports",Ri="@document",wi="@namespace",Bi="@keyframes",qt="@font-face",Gt="@counter-style",Jt="@font-feature-values",pe="@layer",we="@scope",_t=Math.abs,Bt=String.fromCharCode,Ut=Object.assign;function se(e,n){return Ne(e,0)^45?(((n<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function Sr(e){return e.trim()}function je(e,n){return(e=n.exec(e))?e[0]:e}function Qe(e,n,s){return e.replace(n,s)}function wr(e,n,s){return e.indexOf(n,s)}function Ne(e,n){return e.charCodeAt(n)|0}function Ei(e,n,s){return e.slice(n,s)}function _i(e){return e.length}function Kn(e){return e.length}function Yr(e,n){return n.push(e),e}function Yt(e,n){return e.map(n).join("")}function Tt(e,n){return e.filter(function(s){return!je(s,n)})}function Wt(e,n){for(var s="",l=0;l<e.length;l++)s+=n(e[l],l,e,n)||"";return s}function zt(e,n,s,l){switch(e.type){case pe:if(e.children.length)break;case $t:case ge:return e.return=e.return||e.value;case ct:return"";case Bi:return e.return=e.value+"{"+Wt(e.children,l)+"}";case Kt:if(!_i(e.value=e.props.join(",")))return""}return _i(s=Wt(e.children,l))?e.return=e.value+"{"+s+"}":""}var _e=1,We=1,yi=0,Fe=0,Qt=0,oi="";function qr(e,n,s,l,u,_,y,w){return{value:e,root:n,parent:s,type:l,props:u,children:_,line:_e,column:We,length:y,return:"",siblings:w}}function Oo(e,n){return assign(qr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Is(e){for(;e.root;)e=Oo(e.root,{children:[e]});append(e,e.siblings)}function Gr(){return Qt}function Vr(){return Qt=Fe>0?Ne(oi,--Fe):0,We--,Qt===10&&(We=1,_e--),Qt}function Xe(){return Qt=Fe<yi?Ne(oi,Fe++):0,We++,Qt===10&&(We=1,_e++),Qt}function Li(){return Ne(oi,Fe)}function Kr(){return Fe}function or(e,n){return Ei(oi,e,n)}function be(e){switch(e){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 sr(e){return _e=We=1,yi=_i(oi=e),Fe=0,[]}function Ci(e){return oi="",e}function Xr(e){return Sr(or(Fe-1,$i(e===91?e+2:e===40?e+1:e)))}function Ps(e){return Ci(Io(sr(e)))}function Do(e){for(;(Qt=Li())&&Qt<33;)Xe();return be(e)>2||be(Qt)>3?"":" "}function Io(e){for(;Xe();)switch(be(Qt)){case 0:append(Br(Fe-1),e);break;case 2:append(Xr(Qt),e);break;default:append(from(Qt),e)}return e}function ti(e,n){for(;--n&&Xe()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return or(e,Kr()+(n<6&&Li()==32&&Xe()==32))}function $i(e){for(;Xe();)switch(Qt){case e:return Fe;case 34:case 39:e!==34&&e!==39&&$i(Qt);break;case 40:e===41&&$i(e);break;case 92:Xe();break}return Fe}function Zr(e,n){for(;Xe()&&e+Qt!==57;)if(e+Qt===84&&Li()===47)break;return"/*"+or(n,Fe-1)+"*"+Bt(e===47?e:Xe())}function Br(e){for(;!be(Li());)Xe();return or(e,Fe)}function Xn(e){return Ci(Jr("",null,null,null,[""],e=sr(e),0,[0],e))}function Jr(e,n,s,l,u,_,y,w,F){for(var V=0,Q=0,Y=y,S=0,H=0,Ot=0,Dt=1,Lt=1,Vt=1,kt=0,mi="",Ae=u,gi=_,pi=l,ne=mi;Lt;)switch(Ot=kt,kt=Xe()){case 40:if(Ot!=108&&Ne(ne,Y-1)==58){wr(ne+=Qe(Xr(kt),"&","&\f"),"&\f",_t(V?w[V-1]:0))!=-1&&(Vt=-1);break}case 34:case 39:case 91:ne+=Xr(kt);break;case 9:case 10:case 13:case 32:ne+=Do(Ot);break;case 92:ne+=ti(Kr()-1,7);continue;case 47:switch(Li()){case 42:case 47:Yr(Jn(Zr(Xe(),Kr()),n,s,F),F);break;default:ne+="/"}break;case 123*Dt:w[V++]=_i(ne)*Vt;case 125*Dt:case 59:case 0:switch(kt){case 0:case 125:Lt=0;case 59+Q:Vt==-1&&(ne=Qe(ne,/\f/g,"")),H>0&&_i(ne)-Y&&Yr(H>32?Qn(ne+";",l,s,Y-1,F):Qn(Qe(ne," ","")+";",l,s,Y-2,F),F);break;case 59:ne+=";";default:if(Yr(pi=Zn(ne,n,s,V,Q,u,w,mi,Ae=[],gi=[],Y,_),_),kt===123)if(Q===0)Jr(ne,n,pi,pi,Ae,_,Y,w,gi);else switch(S===99&&Ne(ne,3)===110?100:S){case 100:case 108:case 109:case 115:Jr(e,pi,pi,l&&Yr(Zn(e,pi,pi,0,0,u,w,mi,u,Ae=[],Y,gi),gi),u,gi,Y,w,l?Ae:gi);break;default:Jr(ne,pi,pi,pi,[""],gi,0,w,gi)}}V=Q=H=0,Dt=Vt=1,mi=ne="",Y=y;break;case 58:Y=1+_i(ne),H=Ot;default:if(Dt<1){if(kt==123)--Dt;else if(kt==125&&Dt++==0&&Vr()==125)continue}switch(ne+=Bt(kt),kt*Dt){case 38:Vt=Q>0?1:(ne+="\f",-1);break;case 44:w[V++]=(_i(ne)-1)*Vt,Vt=1;break;case 64:Li()===45&&(ne+=Xr(Xe())),S=Li(),Q=Y=_i(mi=ne+=Br(Kr())),kt++;break;case 45:Ot===45&&_i(ne)==2&&(Dt=0)}}return _}function Zn(e,n,s,l,u,_,y,w,F,V,Q,Y){for(var S=u-1,H=u===0?_:[""],Ot=Kn(H),Dt=0,Lt=0,Vt=0;Dt<l;++Dt)for(var kt=0,mi=Ei(e,S+1,S=_t(Lt=y[Dt])),Ae=e;kt<Ot;++kt)(Ae=Sr(Lt>0?H[kt]+" "+mi:Qe(mi,/&\f/g,H[kt])))&&(F[Vt++]=Ae);return qr(e,n,s,u===0?Kt:w,F,V,Q,Y)}function Jn(e,n,s,l){return qr(e,n,s,ct,Bt(Gr()),Ei(e,2,-2),0,l)}function Qn(e,n,s,l,u){return qr(e,n,s,ge,Ei(e,0,l),Ei(e,l+1,-1),l,u)}var Qr=f("./node_modules/lodash-es/isEmpty.js");const ie={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},At={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},ue=function(e="fatal"){let n=ie.fatal;typeof e=="string"?(e=e.toLowerCase(),e in ie&&(n=ie[e])):typeof e=="number"&&(n=e),At.trace=()=>{},At.debug=()=>{},At.info=()=>{},At.warn=()=>{},At.error=()=>{},At.fatal=()=>{},n<=ie.fatal&&(At.fatal=console.error?console.error.bind(console,He("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",He("FATAL"))),n<=ie.error&&(At.error=console.error?console.error.bind(console,He("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",He("ERROR"))),n<=ie.warn&&(At.warn=console.warn?console.warn.bind(console,He("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",He("WARN"))),n<=ie.info&&(At.info=console.info?console.info.bind(console,He("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",He("INFO"))),n<=ie.debug&&(At.debug=console.debug?console.debug.bind(console,He("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("DEBUG"))),n<=ie.trace&&(At.trace=console.debug?console.debug.bind(console,He("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",He("TRACE")))},He=e=>`%c${E().format("ss.SSS")} : ${e} : `,re=/<br\s*\/?>/gi,Er=e=>e?en(e).replace(/\\n/g,"#br#").split("#br#"):[""],vn=(()=>{let e=!1;return()=>{e||(to(),e=!0)}})();function to(){const e="data-temp-href-target";M.addHook("beforeSanitizeAttributes",n=>{n.tagName==="A"&&n.hasAttribute("target")&&n.setAttribute(e,n.getAttribute("target")||"")}),M.addHook("afterSanitizeAttributes",n=>{n.tagName==="A"&&n.hasAttribute(e)&&(n.setAttribute("target",n.getAttribute(e)||""),n.removeAttribute(e),n.getAttribute("target")==="_blank"&&n.setAttribute("rel","noopener"))})}const tn=e=>(vn(),M.sanitize(e)),Tn=(e,n)=>{var s;if(((s=n.flowchart)==null?void 0:s.htmlLabels)!==!1){const l=n.securityLevel;l==="antiscript"||l==="strict"?e=tn(e):l!=="loose"&&(e=en(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=An(e))}return e},zi=(e,n)=>e&&(n.dompurifyConfig?e=M.sanitize(Tn(e,n),n.dompurifyConfig).toString():e=M.sanitize(Tn(e,n),{FORBID_TAGS:["style"]}).toString(),e),ar=(e,n)=>typeof e=="string"?zi(e,n):e.flat().map(s=>zi(s,n)),eo=e=>re.test(e),Mi=e=>e.split(re),An=e=>e.replace(/#br#/g,"<br/>"),en=e=>e.replace(re,"#br#"),lr=e=>{let n="";return e&&(n=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,n=n.replaceAll(/\(/g,"\\("),n=n.replaceAll(/\)/g,"\\)")),n},cr=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),rn=function(...e){const n=e.filter(s=>!isNaN(s));return Math.max(...n)},io=function(...e){const n=e.filter(s=>!isNaN(s));return Math.min(...n)},ro=function(e){const n=e.split(/(,)/),s=[];for(let l=0;l<n.length;l++){let u=n[l];if(u===","&&l>0&&l+1<n.length){const _=n[l-1],y=n[l+1];Sn(_,y)&&(u=_+","+y,l++,s.pop())}s.push(Lr(u))}return s.join("")},kn=(e,n)=>Math.max(0,e.split(n).length-1),Sn=(e,n)=>{const s=kn(e,"~"),l=kn(n,"~");return s===1&&l===1},Lr=e=>{const n=kn(e,"~");let s=!1;if(n<=1)return e;n%2!==0&&e.startsWith("~")&&(e=e.substring(1),s=!0);const l=[...e];let u=l.indexOf("~"),_=l.lastIndexOf("~");for(;u!==-1&&_!==-1&&u!==_;)l[u]="<",l[_]=">",u=l.indexOf("~"),_=l.lastIndexOf("~");return s&&l.unshift("~"),l.join("")},Ui=()=>window.MathMLElement!==void 0,Fi=/\$\$(.*)\$\$/g,nn=e=>{var n;return(((n=e.match(Fi))==null?void 0:n.length)??0)>0},no=async(e,n)=>{e=await on(e,n);const s=document.createElement("div");s.innerHTML=e,s.id="katex-temp",s.style.visibility="hidden",s.style.position="absolute",s.style.top="0";const l=document.querySelector("body");l?.insertAdjacentElement("beforeend",s);const u={width:s.clientWidth,height:s.clientHeight};return s.remove(),u},on=async(e,n)=>{if(!nn(e))return e;if(!Ui()&&!n.legacyMathML)return e.replace(Fi,"MathML is unsupported in this environment.");const{default:s}=await f.e("katex-").then(f.bind(f,"./node_modules/katex/dist/katex.mjs"));return e.split(re).map(l=>nn(l)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${l}
</div>
`:`<div>${l}</div>`).join("").replace(Fi,(l,u)=>s.renderToString(u,{throwOnError:!0,displayMode:!0,output:Ui()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},hr={getRows:Er,sanitizeText:zi,sanitizeTextOrArray:ar,hasBreaks:eo,splitBreaks:Mi,lineBreakRegex:re,removeScript:tn,getUrl:lr,evaluate:cr,getMax:rn,getMin:io},Oe=(e,n)=>n?m(e,{s:-40,l:10}):m(e,{s:-40,l:-10}),Wi="#ffffff",Hi="#f2f2f2";let ei=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 n,s,l,u,_,y,w,F,V,Q,Y;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||Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Oe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Oe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,j.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,j.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,R.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||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 H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=(0,j.A)(this["cScale"+H],75);else for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScale"+H]=(0,j.A)(this["cScale"+H],25);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleInv"+H]=this["cScaleInv"+H]||b(this["cScale"+H]);for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this.darkMode?this["cScalePeer"+H]=this["cScalePeer"+H]||(0,R.A)(this["cScale"+H],10):this["cScalePeer"+H]=this["cScalePeer"+H]||(0,j.A)(this["cScale"+H],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let H=0;H<this.THEME_COLOR_LIMIT;H++)this["cScaleLabel"+H]=this["cScaleLabel"+H]||this.scaleLabelColor;const S=this.darkMode?-4:-1;for(let H=0;H<5;H++)this["surface"+H]=this["surface"+H]||m(this.mainBkg,{h:180,s:-15,l:S*(5+H*3)}),this["surfacePeer"+H]=this["surfacePeer"+H]||m(this.mainBkg,{h:180,s:-15,l:S*(8+H*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||(0,at.A)(this.quadrant1Fill)?(0,R.A)(this.quadrant1Fill):(0,j.A)(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((V=this.xyChart)==null?void 0:V.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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?(0,j.A)(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=(0,R.A)(this.git0,25),this.git1=(0,R.A)(this.git1,25),this.git2=(0,R.A)(this.git2,25),this.git3=(0,R.A)(this.git3,25),this.git4=(0,R.A)(this.git4,25),this.git5=(0,R.A)(this.git5,25),this.git6=(0,R.A)(this.git6,25),this.git7=(0,R.A)(this.git7,25)):(this.git0=(0,j.A)(this.git0,25),this.git1=(0,j.A)(this.git1,25),this.git2=(0,j.A)(this.git2,25),this.git3=(0,j.A)(this.git3,25),this.git4=(0,j.A)(this.git4,25),this.git5=(0,j.A)(this.git5,25),this.git6=(0,j.A)(this.git6,25),this.git7=(0,j.A)(this.git7,25)),this.gitInv0=this.gitInv0||b(this.git0),this.gitInv1=this.gitInv1||b(this.git1),this.gitInv2=this.gitInv2||b(this.git2),this.gitInv3=this.gitInv3||b(this.git3),this.gitInv4=this.gitInv4||b(this.git4),this.gitInv5=this.gitInv5||b(this.git5),this.gitInv6=this.gitInv6||b(this.git6),this.gitInv7=this.gitInv7||b(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||Wi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Hi}calculate(n){if(typeof n!="object"){this.updateColors();return}const s=Object.keys(n);s.forEach(l=>{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const de=e=>{const n=new ei;return n.calculate(e),n};let sn=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,R.A)(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,R.A)(b("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,k.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,j.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,j.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,k.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,k.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;this.secondBkg=(0,R.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,R.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,R.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=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 S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||b(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScalePeer"+S]=this["cScalePeer"+S]||(0,R.A)(this["cScale"+S],10);for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||m(this.mainBkg,{h:30,s:-30,l:-(-10+S*4)}),this["surfacePeer"+S]=this["surfacePeer"+S]||m(this.mainBkg,{h:30,s:-30,l:-(-7+S*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];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||(0,at.A)(this.quadrant1Fill)?(0,R.A)(this.quadrant1Fill):(0,j.A)(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((V=this.xyChart)==null?void 0:V.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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?(0,j.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,R.A)(this.secondaryColor,20),this.git1=(0,R.A)(this.pie2||this.secondaryColor,20),this.git2=(0,R.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,R.A)(this.pie4||m(this.primaryColor,{h:-30}),20),this.git4=(0,R.A)(this.pie5||m(this.primaryColor,{h:-60}),20),this.git5=(0,R.A)(this.pie6||m(this.primaryColor,{h:-90}),10),this.git6=(0,R.A)(this.pie7||m(this.primaryColor,{h:60}),10),this.git7=(0,R.A)(this.pie8||m(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||b(this.git0),this.gitInv1=this.gitInv1||b(this.git1),this.gitInv2=this.gitInv2||b(this.git2),this.gitInv3=this.gitInv3||b(this.git3),this.gitInv4=this.gitInv4||b(this.git4),this.gitInv5=this.gitInv5||b(this.git5),this.gitInv6=this.gitInv6||b(this.git6),this.gitInv7=this.gitInv7||b(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||b(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||b(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||(0,R.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,R.A)(this.background,2)}calculate(n){if(typeof n!="object"){this.updateColors();return}const s=Object.keys(n);s.forEach(l=>{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const wn=e=>{const n=new sn;return n.calculate(e),n};let Mr=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=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,k.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var n,s,l,u,_,y,w,F,V,Q,Y;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||(0,j.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,j.A)(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=(0,j.A)(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||(0,j.A)(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||m(this["cScale"+S],{h:180});for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||m(this.mainBkg,{h:30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||m(this.mainBkg,{h:30,l:-(7+S*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||b(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||b(this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||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=(0,R.A)(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||(0,at.A)(this.quadrant1Fill)?(0,R.A)(this.quadrant1Fill):(0,j.A)(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((V=this.xyChart)==null?void 0:V.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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=(0,R.A)(this.git0,25),this.git1=(0,R.A)(this.git1,25),this.git2=(0,R.A)(this.git2,25),this.git3=(0,R.A)(this.git3,25),this.git4=(0,R.A)(this.git4,25),this.git5=(0,R.A)(this.git5,25),this.git6=(0,R.A)(this.git6,25),this.git7=(0,R.A)(this.git7,25)):(this.git0=(0,j.A)(this.git0,25),this.git1=(0,j.A)(this.git1,25),this.git2=(0,j.A)(this.git2,25),this.git3=(0,j.A)(this.git3,25),this.git4=(0,j.A)(this.git4,25),this.git5=(0,j.A)(this.git5,25),this.git6=(0,j.A)(this.git6,25),this.git7=(0,j.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,j.A)(b(this.git0),25),this.gitInv1=this.gitInv1||b(this.git1),this.gitInv2=this.gitInv2||b(this.git2),this.gitInv3=this.gitInv3||b(this.git3),this.gitInv4=this.gitInv4||b(this.git4),this.gitInv5=this.gitInv5||b(this.git5),this.gitInv6=this.gitInv6||b(this.git6),this.gitInv7=this.gitInv7||b(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||b(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||b(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||Wi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Hi}calculate(n){if(typeof n!="object"){this.updateColors();return}const s=Object.keys(n);s.forEach(l=>{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const ur=e=>{const n=new Mr;return n.calculate(e),n};let oo=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=(0,R.A)("#cde498",10),this.primaryBorderColor=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="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 n,s,l,u,_,y,w,F,V,Q,Y;this.actorBorder=(0,j.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||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||(0,j.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,j.A)(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=(0,j.A)(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||(0,j.A)(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||m(this["cScale"+S],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||m(this.mainBkg,{h:30,s:-30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||m(this.mainBkg,{h:30,s:-30,l:-(8+S*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||(0,at.A)(this.quadrant1Fill)?(0,R.A)(this.quadrant1Fill):(0,j.A)(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((V=this.xyChart)==null?void 0:V.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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=(0,R.A)(this.git0,25),this.git1=(0,R.A)(this.git1,25),this.git2=(0,R.A)(this.git2,25),this.git3=(0,R.A)(this.git3,25),this.git4=(0,R.A)(this.git4,25),this.git5=(0,R.A)(this.git5,25),this.git6=(0,R.A)(this.git6,25),this.git7=(0,R.A)(this.git7,25)):(this.git0=(0,j.A)(this.git0,25),this.git1=(0,j.A)(this.git1,25),this.git2=(0,j.A)(this.git2,25),this.git3=(0,j.A)(this.git3,25),this.git4=(0,j.A)(this.git4,25),this.git5=(0,j.A)(this.git5,25),this.git6=(0,j.A)(this.git6,25),this.git7=(0,j.A)(this.git7,25)),this.gitInv0=this.gitInv0||b(this.git0),this.gitInv1=this.gitInv1||b(this.git1),this.gitInv2=this.gitInv2||b(this.git2),this.gitInv3=this.gitInv3||b(this.git3),this.gitInv4=this.gitInv4||b(this.git4),this.gitInv5=this.gitInv5||b(this.git5),this.gitInv6=this.gitInv6||b(this.git6),this.gitInv7=this.gitInv7||b(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||b(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||b(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||Wi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Hi}calculate(n){if(typeof n!="object"){this.updateColors();return}const s=Object.keys(n);s.forEach(l=>{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}};const an=e=>{const n=new oo;return n.calculate(e),n};class xe{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,R.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=Oe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Oe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Oe(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="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 n,s,l,u,_,y,w,F,V,Q,Y;this.secondBkg=(0,R.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,R.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||b(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this.darkMode?this["cScalePeer"+S]=this["cScalePeer"+S]||(0,R.A)(this["cScale"+S],10):this["cScalePeer"+S]=this["cScalePeer"+S]||(0,j.A)(this["cScale"+S],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||m(this.mainBkg,{l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||m(this.mainBkg,{l:-(8+S*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=(0,R.A)(this.contrast,30),this.sectionBkgColor2=(0,R.A)(this.contrast,30),this.taskBorderColor=(0,j.A)(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=(0,R.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,j.A)(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 S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];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||(0,at.A)(this.quadrant1Fill)?(0,R.A)(this.quadrant1Fill):(0,j.A)(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:((n=this.xyChart)==null?void 0:n.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((V=this.xyChart)==null?void 0:V.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Y=this.xyChart)==null?void 0:Y.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=(0,j.A)(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||b(this.git0),this.gitInv1=this.gitInv1||b(this.git1),this.gitInv2=this.gitInv2||b(this.git2),this.gitInv3=this.gitInv3||b(this.git3),this.gitInv4=this.gitInv4||b(this.git4),this.gitInv5=this.gitInv5||b(this.git5),this.gitInv6=this.gitInv6||b(this.git6),this.gitInv7=this.gitInv7||b(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||Wi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Hi}calculate(n){if(typeof n!="object"){this.updateColors();return}const s=Object.keys(n);s.forEach(l=>{this[l]=n[l]}),this.updateColors(),s.forEach(l=>{this[l]=n[l]})}}const si={base:{getThemeVariables:de},dark:{getThemeVariables:wn},default:{getThemeVariables:ur},forest:{getThemeVariables:an},neutral:{getThemeVariables:e=>{const n=new xe;return n.calculate(e),n}}},ai={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},bi={...ai,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:si.default.getThemeVariables(),sequence:{...ai.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:{...ai.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ai.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:{...ai.pie,useWidth:984},xyChart:{...ai.xyChart,useWidth:void 0},requirement:{...ai.requirement,useWidth:void 0},gitGraph:{...ai.gitGraph,useMaxWidth:!1},sankey:{...ai.sankey,useMaxWidth:!1}},Yi=(e,n="")=>Object.keys(e).reduce((s,l)=>Array.isArray(e[l])?s:typeof e[l]=="object"&&e[l]!==null?[...s,n+l,...Yi(e[l],"")]:[...s,n+l],[]),dr=new Set(Yi(bi,"")),Bn=bi,Oi=e=>{if(At.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(n=>Oi(n));return}for(const n of Object.keys(e)){if(At.debug("Checking key",n),n.startsWith("__")||n.includes("proto")||n.includes("constr")||!dr.has(n)||e[n]==null){At.debug("sanitize deleting key: ",n),delete e[n];continue}if(typeof e[n]=="object"){At.debug("sanitizing object",n),Oi(e[n]);continue}const s=["themeCSS","fontFamily","altFontFamily"];for(const l of s)n.includes(l)&&(At.debug("sanitizing css option",n),e[n]=fr(e[n]))}if(e.themeVariables)for(const n of Object.keys(e.themeVariables)){const s=e.themeVariables[n];s?.match&&!s.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}At.debug("After sanitization",e)}},fr=e=>{let n=0,s=0;for(const l of e){if(n<s)return"{ /* ERROR: Unbalanced CSS */ }";l==="{"?n++:l==="}"&&s++}return n!==s?"{ /* ERROR: Unbalanced CSS */ }":e},Or=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ye=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,mr=/\s*%%.*\n/gm;class qi extends Error{constructor(n){super(n),this.name="UnknownDiagramError"}}const Di={},gr=function(e,n){e=e.replace(Or,"").replace(ye,"").replace(mr,`
`);for(const[s,{detector:l}]of Object.entries(Di))if(l(e,n))return s;throw new qi(`No diagram type detected matching given configuration for text: ${e}`)},En=(...e)=>{for(const{id:n,detector:s,loader:l}of e)Ye(n,s,l)},Ye=(e,n,s)=>{Di[e]?At.error(`Detector with key ${e} already exists`):Di[e]={detector:n,loader:s},At.debug(`Detector with key ${e} added${s?" with loader":""}`)},Ln=e=>Di[e].loader,ln=(e,n,{depth:s=2,clobber:l=!1}={})=>{const u={depth:s,clobber:l};return Array.isArray(n)&&!Array.isArray(e)?(n.forEach(_=>ln(e,_,u)),e):Array.isArray(n)&&Array.isArray(e)?(n.forEach(_=>{e.includes(_)||e.push(_)}),e):e===void 0||s<=0?e!=null&&typeof e=="object"&&typeof n=="object"?Object.assign(e,n):n:(n!==void 0&&typeof e=="object"&&typeof n=="object"&&Object.keys(n).forEach(_=>{typeof n[_]=="object"&&(e[_]===void 0||typeof e[_]=="object")?(e[_]===void 0&&(e[_]=Array.isArray(n[_])?[]:{}),e[_]=ln(e[_],n[_],{depth:s-1,clobber:l})):(l||typeof e[_]!="object"&&typeof n[_]!="object")&&(e[_]=n[_])}),e)},Ce=ln,Mn="\u200B",Po={curveBasis:A.qrM,curveBasisClosed:A.Yu4,curveBasisOpen:A.IA3,curveBumpX:A.Wi0,curveBumpY:A.PGM,curveBundle:A.OEq,curveCardinalClosed:A.olC,curveCardinalOpen:A.IrU,curveCardinal:A.y8u,curveCatmullRomClosed:A.Q7f,curveCatmullRomOpen:A.cVp,curveCatmullRom:A.oDi,curveLinear:A.lUB,curveLinearClosed:A.Lx9,curveMonotoneX:A.nVG,curveMonotoneY:A.uxU,curveNatural:A.Xf2,curveStep:A.GZz,curveStepAfter:A.UPb,curveStepBefore:A.dyv},bt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,v=function(e,n){const s=X(e,/(?:init\b)|(?:initialize\b)/);let l={};if(Array.isArray(s)){const y=s.map(w=>w.args);Oi(y),l=Ce(l,[...y])}else l=s.args;if(!l)return;let u=gr(e,n);const _="config";return l[_]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),l[u]=l[_],delete l[_]),l},X=function(e,n=null){try{const s=new RegExp(`[%]{2}(?![{]${bt.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),At.debug(`Detecting diagram directive${n!==null?" type:"+n:""} based on the text:${e}`);let l;const u=[];for(;(l=ye.exec(e))!==null;)if(l.index===ye.lastIndex&&ye.lastIndex++,l&&!n||n&&l[1]&&l[1].match(n)||n&&l[2]&&l[2].match(n)){const _=l[1]?l[1]:l[2],y=l[3]?l[3].trim():l[4]?JSON.parse(l[4].trim()):null;u.push({type:_,args:y})}return u.length===0?{type:e,args:null}:u.length===1?u[0]:u}catch(s){return At.error(`ERROR: ${s.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`),{type:void 0,args:null}}},pt=function(e){return e.replace(ye,"")},te=function(e,n){for(const[s,l]of n.entries())if(l.match(e))return s;return-1};function ve(e,n){if(!e)return n;const s=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Po[s]??n}function Te(e,n){const s=e.trim();if(s)return n.securityLevel!=="loose"?(0,P.Jf)(s):s}const Be=(e,...n)=>{const s=e.split("."),l=s.length-1,u=s[l];let _=window;for(let y=0;y<l;y++)if(_=_[s[y]],!_){At.error(`Function name: ${e} not found in window`);return}_[u](...n)};function xi(e,n){return!e||!n?0:Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Gi(e){let n,s=0;e.forEach(u=>{s+=xi(u,n),n=u});const l=s/2;return _r(e,l)}function Ee(e){return e.length===1?e[0]:Gi(e)}const pr=(e,n=2)=>{const s=Math.pow(10,n);return Math.round(e*s)/s},_r=(e,n)=>{let s,l=n;for(const u of e){if(s){const _=xi(u,s);if(_<l)l-=_;else{const y=l/_;if(y<=0)return s;if(y>=1)return{x:u.x,y:u.y};if(y>0&&y<1)return{x:pr((1-y)*s.x+y*u.x,5),y:pr((1-y)*s.y+y*u.y,5)}}}s=u}throw new Error("Could not find a suitable point for the given distance")},Ii=(e,n,s)=>{At.info(`our points ${JSON.stringify(n)}`),n[0]!==s&&(n=n.reverse());const u=_r(n,25),_=e?10:5,y=Math.atan2(n[0].y-u.y,n[0].x-u.x),w={x:0,y:0};return w.x=Math.sin(y)*_+(n[0].x+u.x)/2,w.y=-Math.cos(y)*_+(n[0].y+u.y)/2,w};function vi(e,n,s){const l=structuredClone(s);At.info("our points",l),n!=="start_left"&&n!=="start_right"&&l.reverse();const u=25+e,_=_r(l,u),y=10+e*.5,w=Math.atan2(l[0].y-_.y,l[0].x-_.x),F={x:0,y:0};return n==="start_left"?(F.x=Math.sin(w+Math.PI)*y+(l[0].x+_.x)/2,F.y=-Math.cos(w+Math.PI)*y+(l[0].y+_.y)/2):n==="end_right"?(F.x=Math.sin(w-Math.PI)*y+(l[0].x+_.x)/2-5,F.y=-Math.cos(w-Math.PI)*y+(l[0].y+_.y)/2-5):n==="end_left"?(F.x=Math.sin(w)*y+(l[0].x+_.x)/2-5,F.y=-Math.cos(w)*y+(l[0].y+_.y)/2-5):(F.x=Math.sin(w)*y+(l[0].x+_.x)/2,F.y=-Math.cos(w)*y+(l[0].y+_.y)/2),F}function js(e){let n="",s="";for(const l of e)l!==void 0&&(l.startsWith("color:")||l.startsWith("text-align:")?s=s+l+";":n=n+l+";");return{style:n,labelStyle:s}}let Ns=0;const Rs=()=>(Ns++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ns);function Ti(e){let n="";const s="0123456789abcdef",l=s.length;for(let u=0;u<e;u++)n+=s.charAt(Math.floor(Math.random()*l));return n}const jo=e=>Ti(e.length),No=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:""}},$s=function(e,n){const s=n.text.replace(hr.lineBreakRegex," "),[,l]=yr(n.fontSize),u=e.append("text");u.attr("x",n.x),u.attr("y",n.y),u.style("text-anchor",n.anchor),u.style("font-family",n.fontFamily),u.style("font-size",l),u.style("font-weight",n.fontWeight),u.attr("fill",n.fill),n.class!==void 0&&u.attr("class",n.class);const _=u.append("tspan");return _.attr("x",n.x+n.textMargin*2),_.attr("fill",n.fill),_.text(s),u},Fn=(0,dt.A)((e,n,s)=>{if(!e||(s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},s),hr.lineBreakRegex.test(e)))return e;const l=e.split(" "),u=[];let _="";return l.forEach((y,w)=>{const F=cn(`${y} `,s),V=cn(_,s);if(F>n){const{hyphenatedStrings:S,remainingWord:H}=xl(y,n,"-",s);u.push(_,...S),_=H}else V+F>=n?(u.push(_),_=y):_=[_,y].filter(Boolean).join(" ");w+1===l.length&&u.push(_)}),u.filter(y=>y!=="").join(s.joinWith)},(e,n,s)=>`${e}${n}${s.fontSize}${s.fontWeight}${s.fontFamily}${s.joinWith}`),xl=(0,dt.A)((e,n,s="-",l)=>{l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},l);const u=[...e],_=[];let y="";return u.forEach((w,F)=>{const V=`${y}${w}`;if(cn(V,l)>=n){const Y=F+1,S=u.length===Y,H=`${V}${s}`;_.push(S?V:H),y=""}else y=V}),{hyphenatedStrings:_,remainingWord:y}},(e,n,s="-",l)=>`${e}${n}${s}${l.fontSize}${l.fontWeight}${l.fontFamily}`);function zs(e,n){return Ro(e,n).height}function cn(e,n){return Ro(e,n).width}const Ro=(0,dt.A)((e,n)=>{const{fontSize:s=12,fontFamily:l="Arial",fontWeight:u=400}=n;if(!e)return{width:0,height:0};const[,_]=yr(s),y=["sans-serif",l],w=e.split(hr.lineBreakRegex),F=[],V=(0,A.Ltv)("body");if(!V.remove)return{width:0,height:0,lineHeight:0};const Q=V.append("svg");for(const S of y){let H=0;const Ot={width:0,height:0,lineHeight:0};for(const Dt of w){const Lt=No();Lt.text=Dt||Mn;const Vt=$s(Q,Lt).style("font-size",_).style("font-weight",u).style("font-family",S),kt=(Vt._groups||Vt)[0][0].getBBox();if(kt.width===0&&kt.height===0)throw new Error("svg element not in render tree");Ot.width=Math.round(Math.max(Ot.width,kt.width)),H=Math.round(kt.height),Ot.height+=H,Ot.lineHeight=Math.round(Math.max(Ot.lineHeight,H))}F.push(Ot)}Q.remove();const Y=isNaN(F[1].height)||isNaN(F[1].width)||isNaN(F[1].lineHeight)||F[0].height>F[1].height&&F[0].width>F[1].width&&F[0].lineHeight>F[1].lineHeight?0:1;return F[Y]},(e,n)=>`${e}${n.fontSize}${n.fontWeight}${n.fontFamily}`);class vl{constructor(n=!1,s){this.count=0,this.count=s?s.length:0,this.next=n?()=>this.count++:()=>Date.now()}}let so;const Tl=function(e){return so=so||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),so.innerHTML=e,unescape(so.textContent)};function Us(e){return"str"in e}const $o=(e,n,s,l)=>{var u;if(!l)return;const _=(u=e.node())==null?void 0:u.getBBox();_&&e.append("text").text(l).attr("x",_.x+_.width/2).attr("y",-s).attr("class",n)},yr=e=>{if(typeof e=="number")return[e,e+"px"];const n=parseInt(e??"",10);return Number.isNaN(n)?[void 0,void 0]:e===String(n)?[n,e+"px"]:[n,e]};function hn(e,n){return(0,gt.A)({},e,n)}const li={assignWithDepth:Ce,wrapLabel:Fn,calculateTextHeight:zs,calculateTextWidth:cn,calculateTextDimensions:Ro,cleanAndMerge:hn,detectInit:v,detectDirective:X,isSubstringInArray:te,interpolateToCurve:ve,calcLabelPosition:Ee,calcCardinalityPosition:Ii,calcTerminalLabelPosition:vi,formatUrl:Te,getStylesFromArray:js,generateId:Rs,random:jo,runFunc:Be,entityDecode:Tl,insertTitle:$o,parseFontSize:yr,InitIDGenerator:vl},On=function(e){let n=e;return n=n.replace(/style.*:\S*#.*;/g,function(s){return s.substring(0,s.length-1)}),n=n.replace(/classDef.*:\S*#.*;/g,function(s){return s.substring(0,s.length-1)}),n=n.replace(/#\w+;/g,function(s){const l=s.substring(1,s.length-1);return/^\+?\d+$/.test(l)?"\uFB02\xB0\xB0"+l+"\xB6\xDF":"\uFB02\xB0"+l+"\xB6\xDF"}),n},Dn=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Dr="10.9.0",Pi=Object.freeze(Bn);let he=Ce({},Pi),Ws,un=[],In=Ce({},Pi);const ao=(e,n)=>{let s=Ce({},e),l={};for(const u of n)Hs(u),l=Ce(l,u);if(s=Ce(s,l),l.theme&&l.theme in si){const u=Ce({},Ws),_=Ce(u.themeVariables||{},l.themeVariables);s.theme&&s.theme in si&&(s.themeVariables=si[s.theme].getThemeVariables(_))}return In=s,jn(In),In},Al=e=>(he=Ce({},Pi),he=Ce(he,e),e.theme&&si[e.theme]&&(he.themeVariables=si[e.theme].getThemeVariables(e.themeVariables)),ao(he,un),he),kl=e=>{Ws=Ce({},e)},Sl=e=>(he=Ce(he,e),ao(he,un),he),zo=()=>Ce({},he),Uo=e=>(jn(e),Ce(In,e),Ai()),Ai=()=>Ce({},In),Hs=e=>{e&&(["secure",...he.secure??[]].forEach(n=>{Object.hasOwn(e,n)&&(At.debug(`Denied attempt to modify a secure key ${n}`,e[n]),delete e[n])}),Object.keys(e).forEach(n=>{n.startsWith("__")&&delete e[n]}),Object.keys(e).forEach(n=>{typeof e[n]=="string"&&(e[n].includes("<")||e[n].includes(">")||e[n].includes("url(data:"))&&delete e[n],typeof e[n]=="object"&&Hs(e[n])}))},Ys=e=>{Oi(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),un.push(e),ao(he,un)},ji=(e=he)=>{un=[],ao(e,un)},qs={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Pn={},Gs=e=>{Pn[e]||(At.warn(qs[e]),Pn[e]=!0)},jn=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Gs("LAZY_LOAD_DEPRECATED")},Re="c4",lo={id:Re,detector:e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_c4Diagram-b2a90758_js").then(f.bind(f,"./node_modules/mermaid/dist/c4Diagram-b2a90758.js"));return{id:Re,diagram:e}}},Cr="flowchart",Ml={id:Cr,detector:(e,n)=>{var s,l;return((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"||((l=n?.flowchart)==null?void 0:l.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("vendors-node_modules_mermaid_dist_flowDiagram-5540d9b9_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowDiagram-5540d9b9.js"));return{id:Cr,diagram:e}}},ci="flowchart-v2",Ks={id:ci,detector:(e,n)=>{var s,l,u;return((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-d3"||((l=n?.flowchart)==null?void 0:l.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((u=n?.flowchart)==null?void 0:u.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_flowDiagram-v2-3b53844e_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowDiagram-v2-3b53844e.js"));return{id:ci,diagram:e}}},Xs="er",Dl={id:Xs,detector:e=>/^\s*erDiagram/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_erDiagram-47591fe2_js")]).then(f.bind(f,"./node_modules/mermaid/dist/erDiagram-47591fe2.js"));return{id:Xs,diagram:e}}},Zs="gitGraph",Js={id:Zs,detector:e=>/^\s*gitGraph/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_gitGraphDiagram-96e6b4ee_js").then(f.bind(f,"./node_modules/mermaid/dist/gitGraphDiagram-96e6b4ee.js"));return{id:Zs,diagram:e}}},Il="gantt",Pl={id:Il,detector:e=>/^\s*gantt/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_ganttDiagram-9a3bba1f_js").then(f.bind(f,"./node_modules/mermaid/dist/ganttDiagram-9a3bba1f.js"));return{id:Il,diagram:e}}},ea="info",Rl={id:ea,detector:e=>/^\s*info/.test(e),loader:async()=>{const{diagram:e}=await f.e("node_modules_mermaid_dist_infoDiagram-bcd20f53_js").then(f.bind(f,"./node_modules/mermaid/dist/infoDiagram-bcd20f53.js"));return{id:ea,diagram:e}}},ia="pie",$l={id:ia,detector:e=>/^\s*pie/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_pieDiagram-79897490_js").then(f.bind(f,"./node_modules/mermaid/dist/pieDiagram-79897490.js"));return{id:ia,diagram:e}}},ra="quadrantChart",zl={id:ra,detector:e=>/^\s*quadrantChart/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_quadrantDiagram-62f64e94_js").then(f.bind(f,"./node_modules/mermaid/dist/quadrantDiagram-62f64e94.js"));return{id:ra,diagram:e}}},na="xychart",Ul={id:na,detector:e=>/^\s*xychart-beta/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_xychartDiagram-ab372869_js")]).then(f.bind(f,"./node_modules/mermaid/dist/xychartDiagram-ab372869.js"));return{id:na,diagram:e}}},oa="requirement",Wl={id:oa,detector:e=>/^\s*requirement(Diagram)?/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_requirementDiagram-05bf5f74_js")]).then(f.bind(f,"./node_modules/mermaid/dist/requirementDiagram-05bf5f74.js"));return{id:oa,diagram:e}}},sa="sequence",Hl={id:sa,detector:e=>/^\s*sequenceDiagram/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_sequenceDiagram-acc0e65c_js").then(f.bind(f,"./node_modules/mermaid/dist/sequenceDiagram-acc0e65c.js"));return{id:sa,diagram:e}}},aa="class",Yl={id:aa,detector:(e,n)=>{var s;return((s=n?.class)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_classDiagram-30eddba6_js")]).then(f.bind(f,"./node_modules/mermaid/dist/classDiagram-30eddba6.js"));return{id:aa,diagram:e}}},la="classDiagram",ca={id:la,detector:(e,n)=>{var s;return/^\s*classDiagram/.test(e)&&((s=n?.class)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_classDiagram-v2-f2df5561_js")]).then(f.bind(f,"./node_modules/mermaid/dist/classDiagram-v2-f2df5561.js"));return{id:la,diagram:e}}},ha="state",ql={id:ha,detector:(e,n)=>{var s;return((s=n?.state)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_stateDiagram-0ff1cf1a_js")]).then(f.bind(f,"./node_modules/mermaid/dist/stateDiagram-0ff1cf1a.js"));return{id:ha,diagram:e}}},ua="stateDiagram",Gl={id:ua,detector:(e,n)=>{var s;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((s=n?.state)==null?void 0:s.defaultRenderer)==="dagre-wrapper")},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("-"),f.e("node_modules_mermaid_dist_stateDiagram-v2-9a9d610d_js")]).then(f.bind(f,"./node_modules/mermaid/dist/stateDiagram-v2-9a9d610d.js"));return{id:ua,diagram:e}}},da="journey",Vl={id:da,detector:e=>/^\s*journey/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_journeyDiagram-4fe6b3dc_js").then(f.bind(f,"./node_modules/mermaid/dist/journeyDiagram-4fe6b3dc.js"));return{id:da,diagram:e}}},Kl=function(e,n){for(let s of n)e.attr(s[0],s[1])},Vi=function(e,n,s){let l=new Map;return s?(l.set("width","100%"),l.set("style",`max-width: ${n}px;`)):(l.set("height",e),l.set("width",n)),l},qo=function(e,n,s,l){const u=Vi(n,s,l);Kl(e,u)},Go=function(e,n,s,l){const u=n.node().getBBox(),_=u.width,y=u.height;At.info(`SVG bounds: ${_}x${y}`,u);let w=0,F=0;At.info(`Graph bounds: ${w}x${F}`,e),w=_+s*2,F=y+s*2,At.info(`Calculated bounds: ${w}x${F}`),qo(n,F,w,l);const V=`${u.x-s} ${u.y-s} ${u.width+2*s} ${u.height+2*s}`;n.attr("viewBox",V)},hi={},eu=(e,n,s)=>{let l="";return e in hi&&hi[e]?l=hi[e](s):At.warn(`No theme found for ${e}`),` & {
font-family: ${s.fontFamily};
font-size: ${s.fontSize};
fill: ${s.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${s.errorBkgColor};
}
& .error-text {
fill: ${s.errorTextColor};
stroke: ${s.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: ${s.lineColor};
stroke: ${s.lineColor};
}
& .marker.cross {
stroke: ${s.lineColor};
}
& svg {
font-family: ${s.fontFamily};
font-size: ${s.fontSize};
}
${l}
${n}
`},iu=(e,n)=>{n!==void 0&&(hi[e]=n)},Xl=eu;let Vo="",Ko="",Xo="";const co=e=>zi(e,Ai()),ho=()=>{Vo="",Xo="",Ko=""},Ir=e=>{Vo=co(e).replace(/^\s+/g,"")},Pr=()=>Vo,Zo=e=>{Xo=co(e).replace(/\n\s+/g,`
`)},$e=()=>Xo,ze=e=>{Ko=co(e)},Jo=()=>Ko,uo=Object.freeze(Object.defineProperty({__proto__:null,clear:ho,getAccDescription:$e,getAccTitle:Pr,getDiagramTitle:Jo,setAccDescription:Zo,setAccTitle:Ir,setDiagramTitle:ze},Symbol.toStringTag,{value:"Module"})),fo=At,mo=ue,go=Ai,Ki=Uo,fa=Pi,ma=e=>zi(e,go()),ga=Go,Zl=()=>uo,br={},po=(e,n,s)=>{var l;if(br[e])throw new Error(`Diagram ${e} already registered.`);br[e]=n,s&&Ye(e,s),iu(e,n.styles),(l=n.injectUtils)==null||l.call(n,fo,mo,go,ma,ga,Zl(),()=>{})},Qo=e=>{if(e in br)return br[e];throw new Jl(e)};class Jl extends Error{constructor(n){super(`Diagram ${n} not found.`)}}const _o=e=>{var n;const{securityLevel:s}=go();let l=(0,A.Ltv)("body");if(s==="sandbox"){const y=((n=(0,A.Ltv)(`#i${e}`).node())==null?void 0:n.contentDocument)??document;l=(0,A.Ltv)(y.body)}return l.select(`#${e}`)},Ql={draw:(e,n,s)=>{At.debug(`rendering svg for syntax error
`);const l=_o(n),u=l.append("g");l.attr("viewBox","0 0 2412 512"),qo(l,100,512,!0),u.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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.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"),u.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${s}`)}},nu=Ql,ou={db:{},renderer:Ql,parser:{parser:{yy:{}},parse:()=>{}}},yo="flowchart-elk",lu={id:yo,detector:(e,n)=>{var s;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="elk")},loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_flowchart-elk-definition-5fe447d6_js")]).then(f.bind(f,"./node_modules/mermaid/dist/flowchart-elk-definition-5fe447d6.js"));return{id:yo,diagram:e}}},tc="timeline",Co={id:tc,detector:e=>/^\s*timeline/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_timeline-definition-fea2a41d_js").then(f.bind(f,"./node_modules/mermaid/dist/timeline-definition-fea2a41d.js"));return{id:tc,diagram:e}}},ts="mindmap",fn={id:ts,detector:e=>/^\s*mindmap/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_mindmap-definition-f354de21_js")]).then(f.bind(f,"./node_modules/mermaid/dist/mindmap-definition-f354de21.js"));return{id:ts,diagram:e}}},es="sankey",oc={id:es,detector:e=>/^\s*sankey-beta/.test(e),loader:async()=>{const{diagram:e}=await f.e("vendors-node_modules_mermaid_dist_sankeyDiagram-97764748_js").then(f.bind(f,"./node_modules/mermaid/dist/sankeyDiagram-97764748.js"));return{id:es,diagram:e}}},ui="block",is={id:ui,detector:e=>/^\s*block-beta/.test(e),loader:async()=>{const{diagram:e}=await Promise.all([f.e("-------"),f.e("vendors-node_modules_mermaid_dist_blockDiagram-91b80b7a_js")]).then(f.bind(f,"./node_modules/mermaid/dist/blockDiagram-91b80b7a.js"));return{id:ui,diagram:e}}};let rs=!1;const ba=()=>{rs||(rs=!0,po("error",ou,e=>e.toLowerCase().trim()==="error"),po("---",{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},e=>e.toLowerCase().trimStart().startsWith("---")),En(lo,ca,Yl,Dl,Pl,Rl,$l,Wl,Hl,lu,Ks,Ml,fn,Co,Js,Gl,ql,Vl,zl,oc,Ul,is))};class bo{constructor(n,s={}){this.text=n,this.metadata=s,this.type="graph",this.text=On(n),this.text+=`
`;const l=Ai();try{this.type=gr(n,l)}catch(_){this.type="error",this.detectError=_}const u=Qo(this.type);At.debug("Type "+this.type),this.db=u.db,this.renderer=u.renderer,this.parser=u.parser,this.parser.parser.yy=this.db,this.init=u.init,this.parse()}parse(){var n,s,l,u,_;if(this.detectError)throw this.detectError;(s=(n=this.db).clear)==null||s.call(n);const y=Ai();(l=this.init)==null||l.call(this,y),this.metadata.title&&((_=(u=this.db).setDiagramTitle)==null||_.call(u,this.metadata.title)),this.parser.parse(this.text)}async render(n,s){await this.renderer.draw(this.text,n,s,this)}getParser(){return this.parser}getType(){return this.type}}const Ni=async(e,n={})=>{const s=gr(e,Ai());try{Qo(s)}catch{const u=Ln(s);if(!u)throw new qi(`Diagram ${s} not found.`);const{id:_,diagram:y}=await u();po(_,y)}return new bo(e,n)};let ns=[];const xa=()=>{ns.forEach(e=>{e()}),ns=[]},sc="graphics-document document";function fu(e,n){e.attr("role",sc),n!==""&&e.attr("aria-roledescription",n)}function ac(e,n,s,l){if(e.insert!==void 0){if(s){const u=`chart-desc-${l}`;e.attr("aria-describedby",u),e.insert("desc",":first-child").attr("id",u).text(s)}if(n){const u=`chart-title-${l}`;e.attr("aria-labelledby",u),e.insert("title",":first-child").attr("id",u).text(n)}}}const xo=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function lc(e){return typeof e>"u"||e===null}function va(e){return typeof e=="object"&&e!==null}function mu(e){return Array.isArray(e)?e:lc(e)?[]:[e]}function os(e,n){var s,l,u,_;if(n)for(_=Object.keys(n),s=0,l=_.length;s<l;s+=1)u=_[s],e[u]=n[u];return e}function Ta(e,n){var s="",l;for(l=0;l<n;l+=1)s+=e;return s}function Aa(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ka=lc,Sa=va,ss=mu,as=Ta,wa=Aa,gu=os,qe={isNothing:ka,isObject:Sa,toArray:ss,repeat:as,isNegativeZero:wa,extend:gu};function Ba(e,n){var s="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(s+='in "'+e.mark.name+'" '),s+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(s+=`
`+e.mark.snippet),l+" "+s):l}function Rn(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Ba(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Rn.prototype=Object.create(Error.prototype),Rn.prototype.constructor=Rn,Rn.prototype.toString=function(n){return this.name+": "+Ba(this,n)};var di=Rn;function ls(e,n,s,l,u){var _="",y="",w=Math.floor(u/2)-1;return l-n>w&&(_=" ... ",n=l-w+_.length),s-l>w&&(y=" ...",s=l+w-y.length),{str:_+e.slice(n,s).replace(/\t/g,"\u2192")+y,pos:l-n+_.length}}function $n(e,n){return qe.repeat(" ",n-e.length)+e}function cs(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var s=/\r?\n|\r|\0/g,l=[0],u=[],_,y=-1;_=s.exec(e.buffer);)u.push(_.index),l.push(_.index+_[0].length),e.position<=_.index&&y<0&&(y=l.length-2);y<0&&(y=l.length-1);var w="",F,V,Q=Math.min(e.line+n.linesAfter,u.length).toString().length,Y=n.maxLength-(n.indent+Q+3);for(F=1;F<=n.linesBefore&&!(y-F<0);F++)V=ls(e.buffer,l[y-F],u[y-F],e.position-(l[y]-l[y-F]),Y),w=qe.repeat(" ",n.indent)+$n((e.line-F+1).toString(),Q)+" | "+V.str+`
`+w;for(V=ls(e.buffer,l[y],u[y],e.position,Y),w+=qe.repeat(" ",n.indent)+$n((e.line+1).toString(),Q)+" | "+V.str+`
`,w+=qe.repeat("-",n.indent+Q+3+V.pos)+`^
`,F=1;F<=n.linesAfter&&!(y+F>=u.length);F++)V=ls(e.buffer,l[y+F],u[y+F],e.position-(l[y]-l[y+F]),Y),w+=qe.repeat(" ",n.indent)+$n((e.line+F+1).toString(),Q)+" | "+V.str+`
`;return w.replace(/\n$/,"")}var vo=cs,cc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],hs=["scalar","sequence","mapping"];function hc(e){var n={};return e!==null&&Object.keys(e).forEach(function(s){e[s].forEach(function(l){n[String(l)]=s})}),n}function uc(e,n){if(n=n||{},Object.keys(n).forEach(function(s){if(cc.indexOf(s)===-1)throw new di('Unknown option "'+s+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(s){return s},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=hc(n.styleAliases||null),hs.indexOf(this.kind)===-1)throw new di('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ge=uc;function us(e,n){var s=[];return e[n].forEach(function(l){var u=s.length;s.forEach(function(_,y){_.tag===l.tag&&_.kind===l.kind&&_.multi===l.multi&&(u=y)}),s[u]=l}),s}function dc(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,s;function l(u){u.multi?(e.multi[u.kind].push(u),e.multi.fallback.push(u)):e[u.kind][u.tag]=e.fallback[u.tag]=u}for(n=0,s=arguments.length;n<s;n+=1)arguments[n].forEach(l);return e}function Ea(e){return this.extend(e)}Ea.prototype.extend=function(n){var s=[],l=[];if(n instanceof Ge)l.push(n);else if(Array.isArray(n))l=l.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(s=s.concat(n.implicit)),n.explicit&&(l=l.concat(n.explicit));else throw new di("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(_){if(!(_ instanceof Ge))throw new di("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(_.loadKind&&_.loadKind!=="scalar")throw new di("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(_.multi)throw new di("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(_){if(!(_ instanceof Ge))throw new di("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var u=Object.create(Ea.prototype);return u.implicit=(this.implicit||[]).concat(s),u.explicit=(this.explicit||[]).concat(l),u.compiledImplicit=us(u,"implicit"),u.compiledExplicit=us(u,"explicit"),u.compiledTypeMap=dc(u.compiledImplicit,u.compiledExplicit),u};var pu=Ea,fc=new Ge("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),_u=new Ge("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),La=new Ge("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),mc=new pu({explicit:[fc,_u,La]});function gc(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function pc(){return null}function _c(e){return e===null}var ds=new Ge("tag:yaml.org,2002:null",{kind:"scalar",resolve:gc,construct:pc,predicate:_c,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yc(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Cc(e){return e==="true"||e==="True"||e==="TRUE"}function bc(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Ma=new Ge("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yc,construct:Cc,predicate:bc,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function mn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fs(e){return 48<=e&&e<=55}function xc(e){return 48<=e&&e<=57}function vc(e){if(e===null)return!1;var n=e.length,s=0,l=!1,u;if(!n)return!1;if(u=e[s],(u==="-"||u==="+")&&(u=e[++s]),u==="0"){if(s+1===n)return!0;if(u=e[++s],u==="b"){for(s++;s<n;s++)if(u=e[s],u!=="_"){if(u!=="0"&&u!=="1")return!1;l=!0}return l&&u!=="_"}if(u==="x"){for(s++;s<n;s++)if(u=e[s],u!=="_"){if(!mn(e.charCodeAt(s)))return!1;l=!0}return l&&u!=="_"}if(u==="o"){for(s++;s<n;s++)if(u=e[s],u!=="_"){if(!fs(e.charCodeAt(s)))return!1;l=!0}return l&&u!=="_"}}if(u==="_")return!1;for(;s<n;s++)if(u=e[s],u!=="_"){if(!xc(e.charCodeAt(s)))return!1;l=!0}return!(!l||u==="_")}function Tc(e){var n=e,s=1,l;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),l=n[0],(l==="-"||l==="+")&&(l==="-"&&(s=-1),n=n.slice(1),l=n[0]),n==="0")return 0;if(l==="0"){if(n[1]==="b")return s*parseInt(n.slice(2),2);if(n[1]==="x")return s*parseInt(n.slice(2),16);if(n[1]==="o")return s*parseInt(n.slice(2),8)}return s*parseInt(n,10)}function Fa(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qe.isNegativeZero(e)}var Ac=new Ge("tag:yaml.org,2002:int",{kind:"scalar",resolve:vc,construct:Tc,predicate:Fa,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Oa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kc(e){return!(e===null||!Oa.test(e)||e[e.length-1]==="_")}function To(e){var n,s;return n=e.replace(/_/g,"").toLowerCase(),s=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:s*parseFloat(n,10)}var ms=/^[-+]?[0-9]+e/;function Sc(e,n){var s;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qe.isNegativeZero(e))return"-0.0";return s=e.toString(10),ms.test(s)?s.replace("e",".e"):s}function Ao(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||qe.isNegativeZero(e))}var gn=new Ge("tag:yaml.org,2002:float",{kind:"scalar",resolve:kc,construct:To,predicate:Ao,represent:Sc,defaultStyle:"lowercase"}),Da=mc.extend({implicit:[ds,Ma,Ac,gn]}),wc=Da,Ia=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pa=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 ja(e){return e===null?!1:Ia.exec(e)!==null||Pa.exec(e)!==null}function Bc(e){var n,s,l,u,_,y,w,F=0,V=null,Q,Y,S;if(n=Ia.exec(e),n===null&&(n=Pa.exec(e)),n===null)throw new Error("Date resolve error");if(s=+n[1],l=+n[2]-1,u=+n[3],!n[4])return new Date(Date.UTC(s,l,u));if(_=+n[4],y=+n[5],w=+n[6],n[7]){for(F=n[7].slice(0,3);F.length<3;)F+="0";F=+F}return n[9]&&(Q=+n[10],Y=+(n[11]||0),V=(Q*60+Y)*6e4,n[9]==="-"&&(V=-V)),S=new Date(Date.UTC(s,l,u,_,y,w,F)),V&&S.setTime(S.getTime()-V),S}function Na(e){return e.toISOString()}var Ra=new Ge("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ja,construct:Bc,instanceOf:Date,represent:Na});function $a(e){return e==="<<"||e===null}var za=new Ge("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$a}),ko=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Ec(e){if(e===null)return!1;var n,s,l=0,u=e.length,_=ko;for(s=0;s<u;s++)if(n=_.indexOf(e.charAt(s)),!(n>64)){if(n<0)return!1;l+=6}return l%8===0}function So(e){var n,s,l=e.replace(/[\r\n=]/g,""),u=l.length,_=ko,y=0,w=[];for(n=0;n<u;n++)n%4===0&&n&&(w.push(y>>16&255),w.push(y>>8&255),w.push(y&255)),y=y<<6|_.indexOf(l.charAt(n));return s=u%4*6,s===0?(w.push(y>>16&255),w.push(y>>8&255),w.push(y&255)):s===18?(w.push(y>>10&255),w.push(y>>2&255)):s===12&&w.push(y>>4&255),new Uint8Array(w)}function Ua(e){var n="",s=0,l,u,_=e.length,y=ko;for(l=0;l<_;l++)l%3===0&&l&&(n+=y[s>>18&63],n+=y[s>>12&63],n+=y[s>>6&63],n+=y[s&63]),s=(s<<8)+e[l];return u=_%3,u===0?(n+=y[s>>18&63],n+=y[s>>12&63],n+=y[s>>6&63],n+=y[s&63]):u===2?(n+=y[s>>10&63],n+=y[s>>4&63],n+=y[s<<2&63],n+=y[64]):u===1&&(n+=y[s>>2&63],n+=y[s<<4&63],n+=y[64],n+=y[64]),n}function Wa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Lc=new Ge("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ec,construct:So,predicate:Wa,represent:Ua}),Mc=Object.prototype.hasOwnProperty,Fc=Object.prototype.toString;function Oc(e){if(e===null)return!0;var n=[],s,l,u,_,y,w=e;for(s=0,l=w.length;s<l;s+=1){if(u=w[s],y=!1,Fc.call(u)!=="[object Object]")return!1;for(_ in u)if(Mc.call(u,_))if(!y)y=!0;else return!1;if(!y)return!1;if(n.indexOf(_)===-1)n.push(_);else return!1}return!0}function Dc(e){return e!==null?e:[]}var Ha=new Ge("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Oc,construct:Dc}),Xi=Object.prototype.toString;function fi(e){if(e===null)return!0;var n,s,l,u,_,y=e;for(_=new Array(y.length),n=0,s=y.length;n<s;n+=1){if(l=y[n],Xi.call(l)!=="[object Object]"||(u=Object.keys(l),u.length!==1))return!1;_[n]=[u[0],l[u[0]]]}return!0}function Zi(e){if(e===null)return[];var n,s,l,u,_,y=e;for(_=new Array(y.length),n=0,s=y.length;n<s;n+=1)l=y[n],u=Object.keys(l),_[n]=[u[0],l[u[0]]];return _}var Ji=new Ge("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fi,construct:Zi}),gs=Object.prototype.hasOwnProperty;function Ya(e){if(e===null)return!0;var n,s=e;for(n in s)if(gs.call(s,n)&&s[n]!==null)return!1;return!0}function ps(e){return e!==null?e:{}}var _s=new Ge("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ya,construct:ps}),ys=wc.extend({implicit:[Ra,za],explicit:[Lc,Ha,Ji,_s]}),ae=Object.prototype.hasOwnProperty,xr=1,Ic=2,vr=3,Cs=4,pn=1,yu=2,bs=3,Cu=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wo=/[\x85\u2028\u2029]/,bu=/[,\[\]\{\}]/,xs=/^(?:!|!!|![a-z\-]+!)$/i,Pc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jr(e){return Object.prototype.toString.call(e)}function Qi(e){return e===10||e===13}function tr(e){return e===9||e===32}function ii(e){return e===9||e===32||e===10||e===13}function Nr(e){return e===44||e===91||e===93||e===123||e===125}function xu(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Rr(e){return e===120?2:e===117?4:e===85?8:0}function zn(e){return 48<=e&&e<=57?e-48:-1}function _n(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function qa(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var vs=new Array(256),Tr=new Array(256),$r=0;$r<256;$r++)vs[$r]=_n($r)?1:0,Tr[$r]=_n($r);function Ga(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||ys,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jc(e,n){var s={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return s.snippet=vo(s),new di(n,s)}function wt(e,n){throw jc(e,n)}function Ts(e,n){e.onWarning&&e.onWarning.call(null,jc(e,n))}var Nc={YAML:function(n,s,l){var u,_,y;n.version!==null&&wt(n,"duplication of %YAML directive"),l.length!==1&&wt(n,"YAML directive accepts exactly one argument"),u=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),u===null&&wt(n,"ill-formed argument of the YAML directive"),_=parseInt(u[1],10),y=parseInt(u[2],10),_!==1&&wt(n,"unacceptable YAML version of the document"),n.version=l[0],n.checkLineBreaks=y<2,y!==1&&y!==2&&Ts(n,"unsupported YAML version of the document")},TAG:function(n,s,l){var u,_;l.length!==2&&wt(n,"TAG directive accepts exactly two arguments"),u=l[0],_=l[1],xs.test(u)||wt(n,"ill-formed tag handle (first argument) of the TAG directive"),ae.call(n.tagMap,u)&&wt(n,'there is a previously declared suffix for "'+u+'" tag handle'),Pc.test(_)||wt(n,"ill-formed tag prefix (second argument) of the TAG directive");try{_=decodeURIComponent(_)}catch{wt(n,"tag prefix is malformed: "+_)}n.tagMap[u]=_}};function zr(e,n,s,l){var u,_,y,w;if(n<s){if(w=e.input.slice(n,s),l)for(u=0,_=w.length;u<_;u+=1)y=w.charCodeAt(u),y===9||32<=y&&y<=1114111||wt(e,"expected valid JSON character");else Cu.test(w)&&wt(e,"the stream contains non-printable characters");e.result+=w}}function Rc(e,n,s,l){var u,_,y,w;for(qe.isObject(s)||wt(e,"cannot merge mappings; the provided source object is unacceptable"),u=Object.keys(s),y=0,w=u.length;y<w;y+=1)_=u[y],ae.call(n,_)||(n[_]=s[_],l[_]=!0)}function Un(e,n,s,l,u,_,y,w,F){var V,Q;if(Array.isArray(u))for(u=Array.prototype.slice.call(u),V=0,Q=u.length;V<Q;V+=1)Array.isArray(u[V])&&wt(e,"nested arrays are not supported inside keys"),typeof u=="object"&&jr(u[V])==="[object Object]"&&(u[V]="[object Object]");if(typeof u=="object"&&jr(u)==="[object Object]"&&(u="[object Object]"),u=String(u),n===null&&(n={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(_))for(V=0,Q=_.length;V<Q;V+=1)Rc(e,n,_[V],s);else Rc(e,n,_,s);else!e.json&&!ae.call(s,u)&&ae.call(n,u)&&(e.line=y||e.line,e.lineStart=w||e.lineStart,e.position=F||e.position,wt(e,"duplicated mapping key")),u==="__proto__"?Object.defineProperty(n,u,{configurable:!0,enumerable:!0,writable:!0,value:_}):n[u]=_,delete s[u];return n}function er(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):wt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function fe(e,n,s){for(var l=0,u=e.input.charCodeAt(e.position);u!==0;){for(;tr(u);)u===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),u=e.input.charCodeAt(++e.position);if(n&&u===35)do u=e.input.charCodeAt(++e.position);while(u!==10&&u!==13&&u!==0);if(Qi(u))for(er(e),u=e.input.charCodeAt(e.position),l++,e.lineIndent=0;u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);else break}return s!==-1&&l!==0&&e.lineIndent<s&&Ts(e,"deficient indentation"),l}function Ur(e){var n=e.position,s;return s=e.input.charCodeAt(n),!!((s===45||s===46)&&s===e.input.charCodeAt(n+1)&&s===e.input.charCodeAt(n+2)&&(n+=3,s=e.input.charCodeAt(n),s===0||ii(s)))}function As(e,n){n===1?e.result+=" ":n>1&&(e.result+=qe.repeat(`
`,n-1))}function $c(e,n,s){var l,u,_,y,w,F,V,Q,Y=e.kind,S=e.result,H;if(H=e.input.charCodeAt(e.position),ii(H)||Nr(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(u=e.input.charCodeAt(e.position+1),ii(u)||s&&Nr(u)))return!1;for(e.kind="scalar",e.result="",_=y=e.position,w=!1;H!==0;){if(H===58){if(u=e.input.charCodeAt(e.position+1),ii(u)||s&&Nr(u))break}else if(H===35){if(l=e.input.charCodeAt(e.position-1),ii(l))break}else{if(e.position===e.lineStart&&Ur(e)||s&&Nr(H))break;if(Qi(H))if(F=e.line,V=e.lineStart,Q=e.lineIndent,fe(e,!1,-1),e.lineIndent>=n){w=!0,H=e.input.charCodeAt(e.position);continue}else{e.position=y,e.line=F,e.lineStart=V,e.lineIndent=Q;break}}w&&(zr(e,_,y,!1),As(e,e.line-F),_=y=e.position,w=!1),tr(H)||(y=e.position+1),H=e.input.charCodeAt(++e.position)}return zr(e,_,y,!1),e.result?!0:(e.kind=Y,e.result=S,!1)}function yn(e,n){var s,l,u;if(s=e.input.charCodeAt(e.position),s!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=u=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===39)if(zr(e,l,e.position,!0),s=e.input.charCodeAt(++e.position),s===39)l=e.position,e.position++,u=e.position;else return!0;else Qi(s)?(zr(e,l,u,!0),As(e,fe(e,!1,n)),l=u=e.position):e.position===e.lineStart&&Ur(e)?wt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,u=e.position);wt(e,"unexpected end of the stream within a single quoted scalar")}function zc(e,n){var s,l,u,_,y,w;if(w=e.input.charCodeAt(e.position),w!==34)return!1;for(e.kind="scalar",e.result="",e.position++,s=l=e.position;(w=e.input.charCodeAt(e.position))!==0;){if(w===34)return zr(e,s,e.position,!0),e.position++,!0;if(w===92){if(zr(e,s,e.position,!0),w=e.input.charCodeAt(++e.position),Qi(w))fe(e,!1,n);else if(w<256&&vs[w])e.result+=Tr[w],e.position++;else if((y=Rr(w))>0){for(u=y,_=0;u>0;u--)w=e.input.charCodeAt(++e.position),(y=xu(w))>=0?_=(_<<4)+y:wt(e,"expected hexadecimal character");e.result+=qa(_),e.position++}else wt(e,"unknown escape sequence");s=l=e.position}else Qi(w)?(zr(e,s,l,!0),As(e,fe(e,!1,n)),s=l=e.position):e.position===e.lineStart&&Ur(e)?wt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}wt(e,"unexpected end of the stream within a double quoted scalar")}function Uc(e,n){var s=!0,l,u,_,y=e.tag,w,F=e.anchor,V,Q,Y,S,H,Ot=Object.create(null),Dt,Lt,Vt,kt;if(kt=e.input.charCodeAt(e.position),kt===91)Q=93,H=!1,w=[];else if(kt===123)Q=125,H=!0,w={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=w),kt=e.input.charCodeAt(++e.position);kt!==0;){if(fe(e,!0,n),kt=e.input.charCodeAt(e.position),kt===Q)return e.position++,e.tag=y,e.anchor=F,e.kind=H?"mapping":"sequence",e.result=w,!0;s?kt===44&&wt(e,"expected the node content, but found ','"):wt(e,"missed comma between flow collection entries"),Lt=Dt=Vt=null,Y=S=!1,kt===63&&(V=e.input.charCodeAt(e.position+1),ii(V)&&(Y=S=!0,e.position++,fe(e,!0,n))),l=e.line,u=e.lineStart,_=e.position,Wn(e,n,xr,!1,!0),Lt=e.tag,Dt=e.result,fe(e,!0,n),kt=e.input.charCodeAt(e.position),(S||e.line===l)&&kt===58&&(Y=!0,kt=e.input.charCodeAt(++e.position),fe(e,!0,n),Wn(e,n,xr,!1,!0),Vt=e.result),H?Un(e,w,Ot,Lt,Dt,Vt,l,u,_):Y?w.push(Un(e,null,Ot,Lt,Dt,Vt,l,u,_)):w.push(Dt),fe(e,!0,n),kt=e.input.charCodeAt(e.position),kt===44?(s=!0,kt=e.input.charCodeAt(++e.position)):s=!1}wt(e,"unexpected end of the stream within a flow collection")}function vu(e,n){var s,l,u=pn,_=!1,y=!1,w=n,F=0,V=!1,Q,Y;if(Y=e.input.charCodeAt(e.position),Y===124)l=!1;else if(Y===62)l=!0;else return!1;for(e.kind="scalar",e.result="";Y!==0;)if(Y=e.input.charCodeAt(++e.position),Y===43||Y===45)pn===u?u=Y===43?bs:yu:wt(e,"repeat of a chomping mode identifier");else if((Q=zn(Y))>=0)Q===0?wt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):y?wt(e,"repeat of an indentation width identifier"):(w=n+Q-1,y=!0);else break;if(tr(Y)){do Y=e.input.charCodeAt(++e.position);while(tr(Y));if(Y===35)do Y=e.input.charCodeAt(++e.position);while(!Qi(Y)&&Y!==0)}for(;Y!==0;){for(er(e),e.lineIndent=0,Y=e.input.charCodeAt(e.position);(!y||e.lineIndent<w)&&Y===32;)e.lineIndent++,Y=e.input.charCodeAt(++e.position);if(!y&&e.lineIndent>w&&(w=e.lineIndent),Qi(Y)){F++;continue}if(e.lineIndent<w){u===bs?e.result+=qe.repeat(`
`,_?1+F:F):u===pn&&_&&(e.result+=`
`);break}for(l?tr(Y)?(V=!0,e.result+=qe.repeat(`
`,_?1+F:F)):V?(V=!1,e.result+=qe.repeat(`
`,F+1)):F===0?_&&(e.result+=" "):e.result+=qe.repeat(`
`,F):e.result+=qe.repeat(`
`,_?1+F:F),_=!0,y=!0,F=0,s=e.position;!Qi(Y)&&Y!==0;)Y=e.input.charCodeAt(++e.position);zr(e,s,e.position,!1)}return!0}function Wc(e,n){var s,l=e.tag,u=e.anchor,_=[],y,w=!1,F;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),F=e.input.charCodeAt(e.position);F!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,wt(e,"tab characters must not be used in indentation")),!(F!==45||(y=e.input.charCodeAt(e.position+1),!ii(y))));){if(w=!0,e.position++,fe(e,!0,-1)&&e.lineIndent<=n){_.push(null),F=e.input.charCodeAt(e.position);continue}if(s=e.line,Wn(e,n,vr,!1,!0),_.push(e.result),fe(e,!0,-1),F=e.input.charCodeAt(e.position),(e.line===s||e.lineIndent>n)&&F!==0)wt(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return w?(e.tag=l,e.anchor=u,e.kind="sequence",e.result=_,!0):!1}function Tu(e,n,s){var l,u,_,y,w,F,V=e.tag,Q=e.anchor,Y={},S=Object.create(null),H=null,Ot=null,Dt=null,Lt=!1,Vt=!1,kt;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=Y),kt=e.input.charCodeAt(e.position);kt!==0;){if(!Lt&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,wt(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),_=e.line,(kt===63||kt===58)&&ii(l))kt===63?(Lt&&(Un(e,Y,S,H,Ot,null,y,w,F),H=Ot=Dt=null),Vt=!0,Lt=!0,u=!0):Lt?(Lt=!1,u=!0):wt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,kt=l;else{if(y=e.line,w=e.lineStart,F=e.position,!Wn(e,s,Ic,!1,!0))break;if(e.line===_){for(kt=e.input.charCodeAt(e.position);tr(kt);)kt=e.input.charCodeAt(++e.position);if(kt===58)kt=e.input.charCodeAt(++e.position),ii(kt)||wt(e,"a whitespace character is expected after the key-value separator within a block mapping"),Lt&&(Un(e,Y,S,H,Ot,null,y,w,F),H=Ot=Dt=null),Vt=!0,Lt=!1,u=!1,H=e.tag,Ot=e.result;else if(Vt)wt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=V,e.anchor=Q,!0}else if(Vt)wt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=V,e.anchor=Q,!0}if((e.line===_||e.lineIndent>n)&&(Lt&&(y=e.line,w=e.lineStart,F=e.position),Wn(e,n,Cs,!0,u)&&(Lt?Ot=e.result:Dt=e.result),Lt||(Un(e,Y,S,H,Ot,Dt,y,w,F),H=Ot=Dt=null),fe(e,!0,-1),kt=e.input.charCodeAt(e.position)),(e.line===_||e.lineIndent>n)&&kt!==0)wt(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return Lt&&Un(e,Y,S,H,Ot,null,y,w,F),Vt&&(e.tag=V,e.anchor=Q,e.kind="mapping",e.result=Y),Vt}function Au(e){var n,s=!1,l=!1,u,_,y;if(y=e.input.charCodeAt(e.position),y!==33)return!1;if(e.tag!==null&&wt(e,"duplication of a tag property"),y=e.input.charCodeAt(++e.position),y===60?(s=!0,y=e.input.charCodeAt(++e.position)):y===33?(l=!0,u="!!",y=e.input.charCodeAt(++e.position)):u="!",n=e.position,s){do y=e.input.charCodeAt(++e.position);while(y!==0&&y!==62);e.position<e.length?(_=e.input.slice(n,e.position),y=e.input.charCodeAt(++e.position)):wt(e,"unexpected end of the stream within a verbatim tag")}else{for(;y!==0&&!ii(y);)y===33&&(l?wt(e,"tag suffix cannot contain exclamation marks"):(u=e.input.slice(n-1,e.position+1),xs.test(u)||wt(e,"named tag handle cannot contain such characters"),l=!0,n=e.position+1)),y=e.input.charCodeAt(++e.position);_=e.input.slice(n,e.position),bu.test(_)&&wt(e,"tag suffix cannot contain flow indicator characters")}_&&!Pc.test(_)&&wt(e,"tag name cannot contain such characters: "+_);try{_=decodeURIComponent(_)}catch{wt(e,"tag name is malformed: "+_)}return s?e.tag=_:ae.call(e.tagMap,u)?e.tag=e.tagMap[u]+_:u==="!"?e.tag="!"+_:u==="!!"?e.tag="tag:yaml.org,2002:"+_:wt(e,'undeclared tag handle "'+u+'"'),!0}function ku(e){var n,s;if(s=e.input.charCodeAt(e.position),s!==38)return!1;for(e.anchor!==null&&wt(e,"duplication of an anchor property"),s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!ii(s)&&!Nr(s);)s=e.input.charCodeAt(++e.position);return e.position===n&&wt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function Su(e){var n,s,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),n=e.position;l!==0&&!ii(l)&&!Nr(l);)l=e.input.charCodeAt(++e.position);return e.position===n&&wt(e,"name of an alias node must contain at least one character"),s=e.input.slice(n,e.position),ae.call(e.anchorMap,s)||wt(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],fe(e,!0,-1),!0}function Wn(e,n,s,l,u){var _,y,w,F=1,V=!1,Q=!1,Y,S,H,Ot,Dt,Lt;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,_=y=w=Cs===s||vr===s,l&&fe(e,!0,-1)&&(V=!0,e.lineIndent>n?F=1:e.lineIndent===n?F=0:e.lineIndent<n&&(F=-1)),F===1)for(;Au(e)||ku(e);)fe(e,!0,-1)?(V=!0,w=_,e.lineIndent>n?F=1:e.lineIndent===n?F=0:e.lineIndent<n&&(F=-1)):w=!1;if(w&&(w=V||u),(F===1||Cs===s)&&(xr===s||Ic===s?Dt=n:Dt=n+1,Lt=e.position-e.lineStart,F===1?w&&(Wc(e,Lt)||Tu(e,Lt,Dt))||Uc(e,Dt)?Q=!0:(y&&vu(e,Dt)||yn(e,Dt)||zc(e,Dt)?Q=!0:Su(e)?(Q=!0,(e.tag!==null||e.anchor!==null)&&wt(e,"alias node should not have any properties")):$c(e,Dt,xr===s)&&(Q=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):F===0&&(Q=w&&Wc(e,Lt))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&wt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),Y=0,S=e.implicitTypes.length;Y<S;Y+=1)if(Ot=e.implicitTypes[Y],Ot.resolve(e.result)){e.result=Ot.construct(e.result),e.tag=Ot.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ae.call(e.typeMap[e.kind||"fallback"],e.tag))Ot=e.typeMap[e.kind||"fallback"][e.tag];else for(Ot=null,H=e.typeMap.multi[e.kind||"fallback"],Y=0,S=H.length;Y<S;Y+=1)if(e.tag.slice(0,H[Y].tag.length)===H[Y].tag){Ot=H[Y];break}Ot||wt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&Ot.kind!==e.kind&&wt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+Ot.kind+'", not "'+e.kind+'"'),Ot.resolve(e.result,e.tag)?(e.result=Ot.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):wt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||Q}function Bo(e){var n=e.position,s,l,u,_=!1,y;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(y=e.input.charCodeAt(e.position))!==0&&(fe(e,!0,-1),y=e.input.charCodeAt(e.position),!(e.lineIndent>0||y!==37));){for(_=!0,y=e.input.charCodeAt(++e.position),s=e.position;y!==0&&!ii(y);)y=e.input.charCodeAt(++e.position);for(l=e.input.slice(s,e.position),u=[],l.length<1&&wt(e,"directive name must not be less than one character in length");y!==0;){for(;tr(y);)y=e.input.charCodeAt(++e.position);if(y===35){do y=e.input.charCodeAt(++e.position);while(y!==0&&!Qi(y));break}if(Qi(y))break;for(s=e.position;y!==0&&!ii(y);)y=e.input.charCodeAt(++e.position);u.push(e.input.slice(s,e.position))}y!==0&&er(e),ae.call(Nc,l)?Nc[l](e,l,u):Ts(e,'unknown document directive "'+l+'"')}if(fe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,fe(e,!0,-1)):_&&wt(e,"directives end mark is expected"),Wn(e,e.lineIndent-1,Cs,!1,!0),fe(e,!0,-1),e.checkLineBreaks&&wo.test(e.input.slice(n,e.position))&&Ts(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ur(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,fe(e,!0,-1));return}if(e.position<e.length-1)wt(e,"end of the stream or a document separator is expected");else return}function Hc(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var s=new Ga(e,n),l=e.indexOf("\0");for(l!==-1&&(s.position=l,wt(s,"null byte is not allowed in input")),s.input+="\0";s.input.charCodeAt(s.position)===32;)s.lineIndent+=1,s.position+=1;for(;s.position<s.length-1;)Bo(s);return s.documents}function Va(e,n,s){n!==null&&typeof n=="object"&&typeof s>"u"&&(s=n,n=null);var l=Hc(e,s);if(typeof n!="function")return l;for(var u=0,_=l.length;u<_;u+=1)n(l[u])}function wu(e,n){var s=Hc(e,n);if(s.length!==0){if(s.length===1)return s[0];throw new di("expected a single document in the stream, but found more")}}var ir=Va,Bu=wu,Ar={loadAll:ir,load:Bu},Eu=Da,Ka=Ar.load;function Lu(e){const n=e.match(Or);if(!n)return{text:e,metadata:{}};let s=Ka(n[1],{schema:Eu})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const l={};return s.displayMode&&(l.displayMode=s.displayMode.toString()),s.title&&(l.title=s.title.toString()),s.config&&(l.config=s.config),{text:e.slice(n[0].length),metadata:l}}const Mu=e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(n,s,l)=>"<"+s+l.replace(/="([^"]*)"/g,"='$1'")+">"),Yc=e=>{const{text:n,metadata:s}=Lu(e),{displayMode:l,title:u,config:_={}}=s;return l&&(_.gantt||(_.gantt={}),_.gantt.displayMode=l),{title:u,config:_,text:n}},qc=e=>{const n=li.detectInit(e)??{},s=li.detectDirective(e,"wrap");return Array.isArray(s)?n.wrap=s.some(({type:l})=>{}):s?.type==="wrap"&&(n.wrap=!0),{text:pt(e),directive:n}};function Eo(e){const n=Mu(e),s=Yc(n),l=qc(s.text),u=hn(s.config,l.directive);return e=xo(l.text),{code:e,title:s.title,config:u}}const ks=5e4,Hn="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Gc="sandbox",Xa="loose",De="http://www.w3.org/2000/svg",Vc="http://www.w3.org/1999/xlink",Kc="http://www.w3.org/1999/xhtml",Xt="100%",Xc="100%",Yn="border:0;margin:0;",qn="margin:0",Zc="allow-top-navigation-by-user-activation allow-popups",Jc='The "iframe" tag is not supported by your browser.',Qc=["foreignobject"],th=["dominant-baseline"];function Za(e){const n=Eo(e);return ji(),Ys(n.config??{}),n}async function Ja(e,n){ba(),e=Za(e).code;try{await Bs(e)}catch(s){if(n?.suppressErrors)return!1;throw s}return!0}const Ss=(e,n,s=[])=>`
.${e} ${n} { ${s.join(" !important; ")} !important; }`,eh=(e,n={})=>{var s;let l="";if(e.themeCSS!==void 0&&(l+=`
${e.themeCSS}`),e.fontFamily!==void 0&&(l+=`
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(l+=`
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!(0,Qr.A)(n)){const w=e.htmlLabels||((s=e.flowchart)==null?void 0:s.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const F in n){const V=n[F];(0,Qr.A)(V.styles)||w.forEach(Q=>{l+=Ss(V.id,Q,V.styles)}),(0,Qr.A)(V.textStyles)||(l+=Ss(V.id,"tspan",V.textStyles))}}return l},ih=(e,n,s,l)=>{const u=eh(e,s),_=Xl(n,u,e.themeVariables);return Wt(Xn(`${l}{${_}}`),zt)},rh=(e="",n,s)=>{let l=e;return!s&&!n&&(l=l.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),l=Dn(l),l=l.replace(/<br>/g,"<br/>"),l},Qa=(e="",n)=>{var s,l;const u=(l=(s=n?.viewBox)==null?void 0:s.baseVal)!=null&&l.height?n.viewBox.baseVal.height+"px":Xc,_=btoa('<body style="'+qn+'">'+e+"</body>");return`<iframe style="width:${Xt};height:${u};${Yn}" src="data:text/html;base64,${_}" sandbox="${Zc}">
${Jc}
</iframe>`},tl=(e,n,s,l,u)=>{const _=e.append("div");_.attr("id",s),l&&_.attr("style",l);const y=_.append("svg").attr("id",n).attr("width","100%").attr("xmlns",De);return u&&y.attr("xmlns:xlink",u),y.append("g"),e};function ws(e,n){return e.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const nh=(e,n,s,l)=>{var u,_,y;(u=e.getElementById(n))==null||u.remove(),(_=e.getElementById(s))==null||_.remove(),(y=e.getElementById(l))==null||y.remove()},oh=async function(e,n,s){var l,u,_,y,w,F;ba();const V=Za(n);n=V.code;const Q=Ai();At.debug(Q),n.length>(Q?.maxTextSize??ks)&&(n=Hn);const Y="#"+e,S="i"+e,H="#"+S,Ot="d"+e,Dt="#"+Ot;let Lt=(0,A.Ltv)("body");const Vt=Q.securityLevel===Gc,kt=Q.securityLevel===Xa,mi=Q.fontFamily;if(s!==void 0){if(s&&(s.innerHTML=""),Vt){const rr=ws((0,A.Ltv)(s),S);Lt=(0,A.Ltv)(rr.nodes()[0].contentDocument.body),Lt.node().style.margin=0}else Lt=(0,A.Ltv)(s);tl(Lt,e,Ot,`font-family: ${mi}`,Vc)}else{if(nh(document,e,Ot,S),Vt){const rr=ws((0,A.Ltv)("body"),S);Lt=(0,A.Ltv)(rr.nodes()[0].contentDocument.body),Lt.node().style.margin=0}else Lt=(0,A.Ltv)("body");tl(Lt,e,Ot)}let Ae,gi;try{Ae=await Bs(n,{title:V.title})}catch(rr){Ae=new bo("error"),gi=rr}const pi=Lt.select(Dt).node(),ne=Ae.type,cl=pi.firstChild,dh=cl.firstChild,hl=(u=(l=Ae.renderer).getClasses)==null?void 0:u.call(l,n,Ae),ul=ih(Q,ne,hl,Y),Ls=document.createElement("style");Ls.innerHTML=ul,cl.insertBefore(Ls,dh);try{await Ae.renderer.draw(n,e,Dr,Ae)}catch(rr){throw nu.draw(n,e,Dr),rr}const Cn=Lt.select(`${Dt} svg`),Ms=(y=(_=Ae.db).getAccTitle)==null?void 0:y.call(_),fh=(F=(w=Ae.db).getAccDescription)==null?void 0:F.call(w);ah(ne,Cn,Ms,fh),Lt.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Kc);let Hr=Lt.select(Dt).node().innerHTML;if(At.debug("config.arrowMarkerAbsolute",Q.arrowMarkerAbsolute),Hr=rh(Hr,Vt,cr(Q.arrowMarkerAbsolute)),Vt){const rr=Lt.select(Dt+" svg").node();Hr=Qa(Hr,rr)}else kt||(Hr=M.sanitize(Hr,{ADD_TAGS:Qc,ADD_ATTR:th}));if(xa(),gi)throw gi;const mh=Vt?H:Dt,Fs=(0,A.Ltv)(mh).node();return Fs&&"remove"in Fs&&Fs.remove(),{svg:Hr,bindFunctions:Ae.db.bindFunctions}};function sh(e={}){var n;e?.fontFamily&&!((n=e.themeVariables)!=null&&n.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),kl(e),e?.theme&&e.theme in si?e.themeVariables=si[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=si.default.getThemeVariables(e.themeVariables));const s=typeof e=="object"?Al(e):zo();ue(s.logLevel),ba()}const Bs=(e,n={})=>{const{code:s}=Eo(e);return Ni(s,n)};function ah(e,n,s,l){fu(n,e),ac(n,s,l,n.attr("id"))}const Wr=Object.freeze({render:oh,parse:Ja,getDiagramFromText:Bs,initialize:sh,getConfig:Ai,setConfig:Uo,getSiteConfig:zo,updateSiteConfig:Sl,reset:()=>{ji()},globalReset:()=>{ji(Pi)},defaultConfig:Pi});ue(Ai().logLevel),ji(Ai());const lh=async()=>{At.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(Di).map(async([s,{detector:l,loader:u}])=>{if(u)try{Qo(s)}catch{try{const{diagram:y,id:w}=await u();po(w,y,l)}catch(y){throw At.error(`Failed to load external diagram with key ${s}. Removing from detectors.`),delete Di[s],y}}}))).filter(s=>s.status==="rejected");if(n.length>0){At.error(`Failed to load ${n.length} external diagrams`);for(const s of n)At.error(s);throw new Error(`Failed to load ${n.length} external diagrams`)}},el=(e,n,s)=>{At.warn(e),Us(e)?(s&&s(e.str,e.hash),n.push({...e,message:e.str,error:e})):(s&&s(e),e instanceof Error&&n.push({str:e.message,message:e.message,hash:e.name,error:e}))},il=async function(e={querySelector:".mermaid"}){try{await ch(e)}catch(n){if(Us(n)&&At.error(n.str),ki.parseError&&ki.parseError(n),!e.suppressErrors)throw At.error("Use the suppressErrors option to suppress these errors"),n}},ch=async function({postRenderCallback:e,querySelector:n,nodes:s}={querySelector:".mermaid"}){const l=Wr.getConfig();At.debug(`${e?"":"No "}Callback function found`);let u;if(s)u=s;else if(n)u=document.querySelectorAll(n);else throw new Error("Nodes and querySelector are both undefined");At.debug(`Found ${u.length} diagrams`),l?.startOnLoad!==void 0&&(At.debug("Start On Load: "+l?.startOnLoad),Wr.updateSiteConfig({startOnLoad:l?.startOnLoad}));const _=new li.InitIDGenerator(l.deterministicIds,l.deterministicIDSeed);let y;const w=[];for(const F of Array.from(u)){At.info("Rendering diagram: "+F.id);if(F.getAttribute("data-processed"))continue;F.setAttribute("data-processed","true");const V=`mermaid-${_.next()}`;y=F.innerHTML,y=(0,B.T)(li.entityDecode(y)).trim().replace(/<br\s*\/?>/gi,"<br/>");const Q=li.detectInit(y);Q&&At.debug("Detected early reinit: ",Q);try{const{svg:Y,bindFunctions:S}=await ll(V,y,F);F.innerHTML=Y,e&&await e(V),S&&S(F)}catch(Y){el(Y,w,ki.parseError)}}if(w.length>0)throw w[0]},rl=function(e){Wr.initialize(e)},nl=async function(e,n,s){At.warn("mermaid.init is deprecated. Please use run instead."),e&&rl(e);const l={postRenderCallback:s,querySelector:".mermaid"};typeof n=="string"?l.querySelector=n:n&&(n instanceof HTMLElement?l.nodes=[n]:l.nodes=n),await il(l)},hh=async(e,{lazyLoad:n=!0}={})=>{En(...e),n===!1&&await lh()},ol=function(){if(ki.startOnLoad){const{startOnLoad:e}=Wr.getConfig();e&&ki.run().catch(n=>At.error("Mermaid failed to initialize",n))}};if(typeof document<"u"){window.addEventListener("load",ol,!1)}const uh=function(e){ki.parseError=e},Lo=[];let Es=!1;const sl=async()=>{if(!Es){for(Es=!0;Lo.length>0;){const e=Lo.shift();if(e)try{await e()}catch(n){At.error("Error executing queue",n)}}Es=!1}},al=async(e,n)=>new Promise((s,l)=>{const u=()=>new Promise((_,y)=>{Wr.parse(e,n).then(w=>{_(w),s(w)},w=>{var F;At.error("Error parsing",w),(F=ki.parseError)==null||F.call(ki,w),y(w),l(w)})});Lo.push(u),sl().catch(l)}),ll=(e,n,s)=>new Promise((l,u)=>{const _=()=>new Promise((y,w)=>{Wr.render(e,n,s).then(F=>{y(F),l(F)},F=>{var V;At.error("Error parsing",F),(V=ki.parseError)==null||V.call(ki,F),w(F),u(F)})});Lo.push(_),sl().catch(u)}),ki={startOnLoad:!0,mermaidAPI:Wr,parse:al,render:ll,init:nl,run:il,registerExternalDiagrams:hh,initialize:rl,parseError:void 0,contentLoaded:ol,setParseErrorHandler:uh,detectType:gr}},"./node_modules/mermaid/dist/mermaid.core.mjs":function(mt,D,f){"use strict";f.d(D,{default:function(){return B.N}});var B=f("./node_modules/mermaid/dist/mermaid-f47111a7.js"),E=f("./node_modules/dayjs/dayjs.min.js"),P=f("./node_modules/@braintree/sanitize-url/dist/index.js"),A=f("./node_modules/d3/src/index.js"),M=f("./node_modules/dompurify/dist/purify.js")}}]);