All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.chunks.mermaid.esm.min.chunk-ITX3UAHE.mjs Maven / Gradle / Ivy

Go to download

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

The newest version!
import{a as i,b as ul,c as Nu,e as fl}from"./chunk-GTKDMUJJ.mjs";var ml=ul((Jo,tn)=>{"use strict";(function(t,e){typeof Jo=="object"&&typeof tn<"u"?tn.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Jo,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",s="minute",a="hour",l="day",c="week",h="month",u="quarter",d="year",f="date",g="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,W={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:i(function(v){var x=["th","st","nd","rd"],y=v%100;return"["+v+(x[(y-20)%10]||x[y]||x[0])+"]"},"ordinal")},$=i(function(v,x,y){var M=String(v);return!M||M.length>=x?v:""+Array(x+1-M.length).join(y)+v},"m"),V={s:$,z:i(function(v){var x=-v.utcOffset(),y=Math.abs(x),M=Math.floor(y/60),k=y%60;return(x<=0?"+":"-")+$(M,2,"0")+":"+$(k,2,"0")},"z"),m:i(function v(x,y){if(x.date()1)return v(I[0])}else{var G=x.name;F[G]=x,k=G}return!M&&k&&(L=k),k||!M&&L},"t"),w=i(function(v,x){if(T(v))return v.clone();var y=typeof x=="object"?x:{};return y.date=v,y.args=arguments,new K(y)},"O"),U=V;U.l=j,U.i=T,U.w=function(v,x){return w(v,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var K=function(){function v(y){this.$L=j(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[H]=!0}i(v,"M");var x=v.prototype;return x.parse=function(y){this.$d=function(M){var k=M.date,N=M.utc;if(k===null)return new Date(NaN);if(U.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var I=k.match(S);if(I){var G=I[2]-1||0,tt=(I[7]||"0").substring(0,3);return N?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,tt)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,tt)}}return new Date(k)}(y),this.init()},x.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},x.$utils=function(){return U},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(y,M){var k=w(y);return this.startOf(M)<=k&&k<=this.endOf(M)},x.isAfter=function(y,M){return w(y){"use strict";(function(t,e){typeof fn=="object"&&typeof mn<"u"?mn.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=e())})(fn,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:n}=Object,{freeze:s,seal:a,create:l}=Object,{apply:c,construct:h}=typeof Reflect<"u"&&Reflect;s||(s=i(function(z){return z},"freeze")),a||(a=i(function(z){return z},"seal")),c||(c=i(function(z,rt,Z){return z.apply(rt,Z)},"apply")),h||(h=i(function(z,rt){return new z(...rt)},"construct"));let u=T(Array.prototype.forEach),d=T(Array.prototype.pop),f=T(Array.prototype.push),g=T(String.prototype.toLowerCase),S=T(String.prototype.toString),A=T(String.prototype.match),W=T(String.prototype.replace),$=T(String.prototype.indexOf),V=T(String.prototype.trim),L=T(Object.prototype.hasOwnProperty),F=T(RegExp.prototype.test),H=j(TypeError);function T(Q){return function(z){for(var rt=arguments.length,Z=new Array(rt>1?rt-1:0),Mt=1;Mt2&&arguments[2]!==void 0?arguments[2]:g;e&&e(Q,null);let Z=z.length;for(;Z--;){let Mt=z[Z];if(typeof Mt=="string"){let se=rt(Mt);se!==Mt&&(r(z)||(z[Z]=se),Mt=se)}Q[Mt]=!0}return Q}i(w,"addToSet");function U(Q){for(let z=0;z/gm),ut=a(/\${[\w\W]*}/gm),$t=a(/^data-[\-\w.\u00B7-\uFFFF]/),At=a(/^aria-[\-\w]+$/),ht=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=a(/^html$/i),C=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var St=Object.freeze({__proto__:null,MUSTACHE_EXPR:mt,ERB_EXPR:qt,TMPLIT_EXPR:ut,DATA_ATTR:$t,ARIA_ATTR:At,IS_ALLOWED_URI:ht,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:Y,DOCTYPE_NAME:X,CUSTOM_ELEMENT:C});let et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Et=i(function(){return typeof window>"u"?null:window},"getGlobal"),Dt=i(function(z,rt){if(typeof z!="object"||typeof z.createPolicy!="function")return null;let Z=null,Mt="data-tt-policy-suffix";rt&&rt.hasAttribute(Mt)&&(Z=rt.getAttribute(Mt));let se="dompurify"+(Z?"#"+Z:"");try{return z.createPolicy(se,{createHTML(tr){return tr},createScriptURL(tr){return tr}})}catch{return console.warn("TrustedTypes policy "+se+" could not be created."),null}},"_createTrustedTypesPolicy");function Kt(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Et(),z=i(P=>Kt(P),"DOMPurify");if(z.version="3.1.6",z.removed=[],!Q||!Q.document||Q.document.nodeType!==et.document)return z.isSupported=!1,z;let{document:rt}=Q,Z=rt,Mt=Z.currentScript,{DocumentFragment:se,HTMLTemplateElement:tr,Node:qo,Element:Ra,NodeFilter:Er,NamedNodeMap:pu=Q.NamedNodeMap||Q.MozNamedAttrMap,HTMLFormElement:du,DOMParser:gu,trustedTypes:Ti}=Q,Dr=Ra.prototype,xu=E(Dr,"cloneNode"),yu=E(Dr,"remove"),Cu=E(Dr,"nextSibling"),_u=E(Dr,"childNodes"),ki=E(Dr,"parentNode");if(typeof tr=="function"){let P=rt.createElement("template");P.content&&P.content.ownerDocument&&(rt=P.content.ownerDocument)}let Ot,Or="",{implementation:zo,createNodeIterator:bu,createDocumentFragment:Tu,getElementsByTagName:ku}=rt,{importNode:Su}=Z,Qt={};z.isSupported=typeof t=="function"&&typeof ki=="function"&&zo&&zo.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Po,ERB_EXPR:$o,TMPLIT_EXPR:Wo,DATA_ATTR:vu,ARIA_ATTR:wu,IS_SCRIPT_OR_DATA:Bu,ATTR_WHITESPACE:Na,CUSTOM_ELEMENT:Fu}=St,{IS_ALLOWED_URI:qa}=St,yt=null,za=w({},[...v,...x,...y,...k,...I]),Ct=null,Pa=w({},[...G,...tt,...ot,...nt]),ft=Object.seal(l(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}})),Ir=null,Ho=null,$a=!0,Uo=!0,Wa=!1,Ha=!0,er=!1,Yo=!0,Ie=!1,Go=!1,Vo=!1,rr=!1,Si=!1,vi=!1,Ua=!0,Ya=!1,Mu="user-content-",Xo=!0,Rr=!1,ir={},or=null,Ga=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Va=null,Xa=w({},["audio","video","img","source","image","track"]),jo=null,ja=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wi="http://www.w3.org/1998/Math/MathML",Bi="http://www.w3.org/2000/svg",ae="http://www.w3.org/1999/xhtml",nr=ae,Zo=!1,Ko=null,Lu=w({},[wi,Bi,ae],S),Nr=null,Au=["application/xhtml+xml","text/html"],Eu="text/html",_t=null,sr=null,Du=rt.createElement("form"),Za=i(function(m){return m instanceof RegExp||m instanceof Function},"isRegexOrFunction"),Qo=i(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(sr&&sr===m)){if((!m||typeof m!="object")&&(m={}),m=K(m),Nr=Au.indexOf(m.PARSER_MEDIA_TYPE)===-1?Eu:m.PARSER_MEDIA_TYPE,_t=Nr==="application/xhtml+xml"?S:g,yt=L(m,"ALLOWED_TAGS")?w({},m.ALLOWED_TAGS,_t):za,Ct=L(m,"ALLOWED_ATTR")?w({},m.ALLOWED_ATTR,_t):Pa,Ko=L(m,"ALLOWED_NAMESPACES")?w({},m.ALLOWED_NAMESPACES,S):Lu,jo=L(m,"ADD_URI_SAFE_ATTR")?w(K(ja),m.ADD_URI_SAFE_ATTR,_t):ja,Va=L(m,"ADD_DATA_URI_TAGS")?w(K(Xa),m.ADD_DATA_URI_TAGS,_t):Xa,or=L(m,"FORBID_CONTENTS")?w({},m.FORBID_CONTENTS,_t):Ga,Ir=L(m,"FORBID_TAGS")?w({},m.FORBID_TAGS,_t):{},Ho=L(m,"FORBID_ATTR")?w({},m.FORBID_ATTR,_t):{},ir=L(m,"USE_PROFILES")?m.USE_PROFILES:!1,$a=m.ALLOW_ARIA_ATTR!==!1,Uo=m.ALLOW_DATA_ATTR!==!1,Wa=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Ha=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,er=m.SAFE_FOR_TEMPLATES||!1,Yo=m.SAFE_FOR_XML!==!1,Ie=m.WHOLE_DOCUMENT||!1,rr=m.RETURN_DOM||!1,Si=m.RETURN_DOM_FRAGMENT||!1,vi=m.RETURN_TRUSTED_TYPE||!1,Vo=m.FORCE_BODY||!1,Ua=m.SANITIZE_DOM!==!1,Ya=m.SANITIZE_NAMED_PROPS||!1,Xo=m.KEEP_CONTENT!==!1,Rr=m.IN_PLACE||!1,qa=m.ALLOWED_URI_REGEXP||ht,nr=m.NAMESPACE||ae,ft=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Za(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ft.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Za(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ft.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ft.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),er&&(Uo=!1),Si&&(rr=!0),ir&&(yt=w({},I),Ct=[],ir.html===!0&&(w(yt,v),w(Ct,G)),ir.svg===!0&&(w(yt,x),w(Ct,tt),w(Ct,nt)),ir.svgFilters===!0&&(w(yt,y),w(Ct,tt),w(Ct,nt)),ir.mathMl===!0&&(w(yt,k),w(Ct,ot),w(Ct,nt))),m.ADD_TAGS&&(yt===za&&(yt=K(yt)),w(yt,m.ADD_TAGS,_t)),m.ADD_ATTR&&(Ct===Pa&&(Ct=K(Ct)),w(Ct,m.ADD_ATTR,_t)),m.ADD_URI_SAFE_ATTR&&w(jo,m.ADD_URI_SAFE_ATTR,_t),m.FORBID_CONTENTS&&(or===Ga&&(or=K(or)),w(or,m.FORBID_CONTENTS,_t)),Xo&&(yt["#text"]=!0),Ie&&w(yt,["html","head","body"]),yt.table&&(w(yt,["tbody"]),delete Ir.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=m.TRUSTED_TYPES_POLICY,Or=Ot.createHTML("")}else Ot===void 0&&(Ot=Dt(Ti,Mt)),Ot!==null&&typeof Or=="string"&&(Or=Ot.createHTML(""));s&&s(m),sr=m}},"_parseConfig"),Ka=w({},["mi","mo","mn","ms","mtext"]),Qa=w({},["foreignobject","annotation-xml"]),Ou=w({},["title","style","font","a","script"]),Ja=w({},[...x,...y,...M]),tl=w({},[...k,...N]),Iu=i(function(m){let _=ki(m);(!_||!_.tagName)&&(_={namespaceURI:nr,tagName:"template"});let O=g(m.tagName),at=g(_.tagName);return Ko[m.namespaceURI]?m.namespaceURI===Bi?_.namespaceURI===ae?O==="svg":_.namespaceURI===wi?O==="svg"&&(at==="annotation-xml"||Ka[at]):!!Ja[O]:m.namespaceURI===wi?_.namespaceURI===ae?O==="math":_.namespaceURI===Bi?O==="math"&&Qa[at]:!!tl[O]:m.namespaceURI===ae?_.namespaceURI===Bi&&!Qa[at]||_.namespaceURI===wi&&!Ka[at]?!1:!tl[O]&&(Ou[O]||!Ja[O]):!!(Nr==="application/xhtml+xml"&&Ko[m.namespaceURI]):!1},"_checkValidNamespace"),Jt=i(function(m){f(z.removed,{element:m});try{ki(m).removeChild(m)}catch{yu(m)}},"_forceRemove"),Fi=i(function(m,_){try{f(z.removed,{attribute:_.getAttributeNode(m),from:_})}catch{f(z.removed,{attribute:null,from:_})}if(_.removeAttribute(m),m==="is"&&!Ct[m])if(rr||Si)try{Jt(_)}catch{}else try{_.setAttribute(m,"")}catch{}},"_removeAttribute"),el=i(function(m){let _=null,O=null;if(Vo)m=""+m;else{let vt=A(m,/^[\r\n\t ]+/);O=vt&&vt[0]}Nr==="application/xhtml+xml"&&nr===ae&&(m=''+m+"");let at=Ot?Ot.createHTML(m):m;if(nr===ae)try{_=new gu().parseFromString(at,Nr)}catch{}if(!_||!_.documentElement){_=zo.createDocument(nr,"template",null);try{_.documentElement.innerHTML=Zo?Or:at}catch{}}let Lt=_.body||_.documentElement;return m&&O&&Lt.insertBefore(rt.createTextNode(O),Lt.childNodes[0]||null),nr===ae?ku.call(_,Ie?"html":"body")[0]:Ie?_.documentElement:Lt},"_initDocument"),rl=i(function(m){return bu.call(m.ownerDocument||m,m,Er.SHOW_ELEMENT|Er.SHOW_COMMENT|Er.SHOW_TEXT|Er.SHOW_PROCESSING_INSTRUCTION|Er.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),il=i(function(m){return m instanceof du&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof pu)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},"_isClobbered"),ol=i(function(m){return typeof qo=="function"&&m instanceof qo},"_isNode"),le=i(function(m,_,O){Qt[m]&&u(Qt[m],at=>{at.call(z,_,O,sr)})},"_executeHook"),nl=i(function(m){let _=null;if(le("beforeSanitizeElements",m,null),il(m))return Jt(m),!0;let O=_t(m.nodeName);if(le("uponSanitizeElement",m,{tagName:O,allowedTags:yt}),m.hasChildNodes()&&!ol(m.firstElementChild)&&F(/<[/\w]/g,m.innerHTML)&&F(/<[/\w]/g,m.textContent)||m.nodeType===et.progressingInstruction||Yo&&m.nodeType===et.comment&&F(/<[/\w]/g,m.data))return Jt(m),!0;if(!yt[O]||Ir[O]){if(!Ir[O]&&al(O)&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,O)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(O)))return!1;if(Xo&&!or[O]){let at=ki(m)||m.parentNode,Lt=_u(m)||m.childNodes;if(Lt&&at){let vt=Lt.length;for(let zt=vt-1;zt>=0;--zt){let te=xu(Lt[zt],!0);te.__removalCount=(m.__removalCount||0)+1,at.insertBefore(te,Cu(m))}}}return Jt(m),!0}return m instanceof Ra&&!Iu(m)||(O==="noscript"||O==="noembed"||O==="noframes")&&F(/<\/no(script|embed|frames)/i,m.innerHTML)?(Jt(m),!0):(er&&m.nodeType===et.text&&(_=m.textContent,u([Po,$o,Wo],at=>{_=W(_,at," ")}),m.textContent!==_&&(f(z.removed,{element:m.cloneNode()}),m.textContent=_)),le("afterSanitizeElements",m,null),!1)},"_sanitizeElements"),sl=i(function(m,_,O){if(Ua&&(_==="id"||_==="name")&&(O in rt||O in Du))return!1;if(!(Uo&&!Ho[_]&&F(vu,_))){if(!($a&&F(wu,_))){if(!Ct[_]||Ho[_]){if(!(al(m)&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,m)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(m))&&(ft.attributeNameCheck instanceof RegExp&&F(ft.attributeNameCheck,_)||ft.attributeNameCheck instanceof Function&&ft.attributeNameCheck(_))||_==="is"&&ft.allowCustomizedBuiltInElements&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,O)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(O))))return!1}else if(!jo[_]){if(!F(qa,W(O,Na,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&m!=="script"&&$(O,"data:")===0&&Va[m])){if(!(Wa&&!F(Bu,W(O,Na,"")))){if(O)return!1}}}}}}return!0},"_isValidAttribute"),al=i(function(m){return m!=="annotation-xml"&&A(m,Fu)},"_isBasicCustomElement"),ll=i(function(m){le("beforeSanitizeAttributes",m,null);let{attributes:_}=m;if(!_)return;let O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ct},at=_.length;for(;at--;){let Lt=_[at],{name:vt,namespaceURI:zt,value:te}=Lt,qr=_t(vt),It=vt==="value"?te:V(te);if(O.attrName=qr,O.attrValue=It,O.keepAttr=!0,O.forceKeepAttr=void 0,le("uponSanitizeAttribute",m,O),It=O.attrValue,Yo&&F(/((--!?|])>)|<\/(style|title)/i,It)){Fi(vt,m);continue}if(O.forceKeepAttr||(Fi(vt,m),!O.keepAttr))continue;if(!Ha&&F(/\/>/i,It)){Fi(vt,m);continue}er&&u([Po,$o,Wo],cl=>{It=W(It,cl," ")});let hl=_t(m.nodeName);if(sl(hl,qr,It)){if(Ya&&(qr==="id"||qr==="name")&&(Fi(vt,m),It=Mu+It),Ot&&typeof Ti=="object"&&typeof Ti.getAttributeType=="function"&&!zt)switch(Ti.getAttributeType(hl,qr)){case"TrustedHTML":{It=Ot.createHTML(It);break}case"TrustedScriptURL":{It=Ot.createScriptURL(It);break}}try{zt?m.setAttributeNS(zt,vt,It):m.setAttribute(vt,It),il(m)?Jt(m):d(z.removed)}catch{}}}le("afterSanitizeAttributes",m,null)},"_sanitizeAttributes"),Ru=i(function P(m){let _=null,O=rl(m);for(le("beforeSanitizeShadowDOM",m,null);_=O.nextNode();)le("uponSanitizeShadowNode",_,null),!nl(_)&&(_.content instanceof se&&P(_.content),ll(_));le("afterSanitizeShadowDOM",m,null)},"_sanitizeShadowDOM");return z.sanitize=function(P){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,O=null,at=null,Lt=null;if(Zo=!P,Zo&&(P=""),typeof P!="string"&&!ol(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!z.isSupported)return P;if(Go||Qo(m),z.removed=[],typeof P=="string"&&(Rr=!1),Rr){if(P.nodeName){let te=_t(P.nodeName);if(!yt[te]||Ir[te])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof qo)_=el(""),O=_.ownerDocument.importNode(P,!0),O.nodeType===et.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?_=O:_.appendChild(O);else{if(!rr&&!er&&!Ie&&P.indexOf("<")===-1)return Ot&&vi?Ot.createHTML(P):P;if(_=el(P),!_)return rr?null:vi?Or:""}_&&Vo&&Jt(_.firstChild);let vt=rl(Rr?P:_);for(;at=vt.nextNode();)nl(at)||(at.content instanceof se&&Ru(at.content),ll(at));if(Rr)return P;if(rr){if(Si)for(Lt=Tu.call(_.ownerDocument);_.firstChild;)Lt.appendChild(_.firstChild);else Lt=_;return(Ct.shadowroot||Ct.shadowrootmode)&&(Lt=Su.call(Z,Lt,!0)),Lt}let zt=Ie?_.outerHTML:_.innerHTML;return Ie&&yt["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&F(X,_.ownerDocument.doctype.name)&&(zt="
`+zt),er&&u([Po,$o,Wo],te=>{zt=W(zt,te," ")}),Ot&&vi?Ot.createHTML(zt):zt},z.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qo(P),Go=!0},z.clearConfig=function(){sr=null,Go=!1},z.isValidAttribute=function(P,m,_){sr||Qo({});let O=_t(P),at=_t(m);return sl(O,at,_)},z.addHook=function(P,m){typeof m=="function"&&(Qt[P]=Qt[P]||[],f(Qt[P],m))},z.removeHook=function(P){if(Qt[P])return d(Qt[P])},z.removeHooks=function(P){Qt[P]&&(Qt[P]=[])},z.removeAllHooks=function(){Qt={}},z}i(Kt,"createDOMPurify");var bi=Kt();return bi})});var pl=fl(ml(),1);var he={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},J={trace:i((...t)=>{},"trace"),debug:i((...t)=>{},"debug"),info:i((...t)=>{},"info"),warn:i((...t)=>{},"warn"),error:i((...t)=>{},"error"),fatal:i((...t)=>{},"fatal")},dl=i(function(t="fatal"){let e=he.fatal;typeof t=="string"?t.toLowerCase()in he&&(e=he[t]):typeof t=="number"&&(e=t),J.trace=()=>{},J.debug=()=>{},J.info=()=>{},J.warn=()=>{},J.error=()=>{},J.fatal=()=>{},e<=he.fatal&&(J.fatal=console.error?console.error.bind(console,Ut("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ut("FATAL"))),e<=he.error&&(J.error=console.error?console.error.bind(console,Ut("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ut("ERROR"))),e<=he.warn&&(J.warn=console.warn?console.warn.bind(console,Ut("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ut("WARN"))),e<=he.info&&(J.info=console.info?console.info.bind(console,Ut("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ut("INFO"))),e<=he.debug&&(J.debug=console.debug?console.debug.bind(console,Ut("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ut("DEBUG"))),e<=he.trace&&(J.trace=console.debug?console.debug.bind(console,Ut("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ut("TRACE")))},"setLogLevel"),Ut=i(t=>`%c${(0,pl.default)().format("ss.SSS")} : ${t} : `,"format");var gl=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,xl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yl=/\s*%%.*\n/gm;var Mi=class extends Error{static{i(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}};var Li={},px=i(function(t,e){t=t.replace(gl,"").replace(xl,"").replace(yl,`
`);for(let[r,{detector:o}]of Object.entries(Li))if(o(t,e))return r;throw new Mi(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),dx=i((...t)=>{for(let{id:e,detector:r,loader:o}of t)en(e,r,o)},"registerLazyLoadedDiagrams"),en=i((t,e,r)=>{Li[t]&&J.warn(`Detector with key ${t} already exists. Overwriting.`),Li[t]={detector:e,loader:r},J.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),gx=i(t=>Li[t].loader,"getDiagramLoader");var rn=i((t,e,{depth:r=2,clobber:o=!1}={})=>{let n={depth:r,clobber:o};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>rn(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=rn(t[s],e[s],{depth:r-1,clobber:o})):(o||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),Rt=rn;var Ai={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i(t=>t>=255?255:t<0?0:t,"r"),g:i(t=>t>=255?255:t<0?0:t,"g"),b:i(t=>t>=255?255:t<0?0:t,"b"),h:i(t=>t%360,"h"),s:i(t=>t>=100?100:t<0?0:t,"s"),l:i(t=>t>=100?100:t<0?0:t,"l"),a:i(t=>t>=1?1:t<0?0:t,"a")},toLinear:i(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:i((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:i(({h:t,s:e,l:r},o)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(o){case"r":return Ai.hue2rgb(s,n,t+.3333333333333333)*255;case"g":return Ai.hue2rgb(s,n,t)*255;case"b":return Ai.hue2rgb(s,n,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:i(({r:t,g:e,b:r},o)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),s=Math.min(t,e,r),a=(n+s)/2;if(o==="l")return a*100;if(n===s)return 0;let l=n-s,c=a>.5?l/(2-n-s):l/(n+s);if(o==="s")return c*100;switch(n){case t:return((e-r)/l+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:i(t=>Math.round(t*1e10)/1e10,"round")},_l=qu;var zu={dec2hex:i(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},bl=zu;var Pu={channel:Cl,lang:_l,unit:bl},q=Pu;var ce={};for(let t=0;t<=255;t++)ce[t]=q.unit.dec2hex(t);var dt={ALL:0,RGB:1,HSL:2};var on=class{static{i(this,"Type")}constructor(){this.type=dt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=dt.ALL}is(e){return this.type===e}},Tl=on;var nn=class{static{i(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Tl}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=dt.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:o,l:n}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),o===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:o,b:n}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),o===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(dt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(dt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(dt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(dt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(dt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(dt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},kl=nn;var $u=new kl({r:0,g:0,b:0,a:0},"transparent"),_e=$u;var Sl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(Sl.re);if(!e)return;let r=e[1],o=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,l=a?1:17,c=a?8:4,h=s?0:-1,u=a?255:15;return _e.set({r:(o>>c*(h+3)&u)*l,g:(o>>c*(h+2)&u)*l,b:(o>>c*(h+1)&u)*l,a:s?(o&u)*l/255:1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`#${ce[Math.round(e)]}${ce[Math.round(r)]}${ce[Math.round(o)]}${ce[Math.round(n*255)]}`:`#${ce[Math.round(e)]}${ce[Math.round(r)]}${ce[Math.round(o)]}`},"stringify")},Re=Sl;var Ei={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i(t=>{let e=t.match(Ei.hueRe);if(e){let[,r,o]=e;switch(o){case"grad":return q.channel.clamp.h(parseFloat(r)*.9);case"rad":return q.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(r)*360)}}return q.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:i(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Ei.re);if(!r)return;let[,o,n,s,a,l]=r;return _e.set({h:Ei._hue2deg(o),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:a?q.channel.clamp.a(l?parseFloat(a)/100:parseFloat(a)):1},t)},"parse"),stringify:i(t=>{let{h:e,s:r,l:o,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%)`},"stringify")},zr=Ei;var Di={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i(t=>{t=t.toLowerCase();let e=Di.colors[t];if(e)return Re.parse(e)},"parse"),stringify:i(t=>{let e=Re.stringify(t);for(let r in Di.colors)if(Di.colors[r]===e)return r},"stringify")},sn=Di;var vl={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(vl.re);if(!r)return;let[,o,n,s,a,l,c,h,u]=r;return _e.set({r:q.channel.clamp.r(n?parseFloat(o)*2.55:parseFloat(o)),g:q.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:h?q.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)})`},"stringify")},Pr=vl;var Wu={format:{keyword:sn,hex:Re,rgb:Pr,rgba:Pr,hsl:zr,hsla:zr},parse:i(t=>{if(typeof t!="string")return t;let e=Re.parse(t)||Pr.parse(t)||zr.parse(t)||sn.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:i(t=>!t.changed&&t.color?t.color:t.type.is(dt.HSL)||t.data.r===void 0?zr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Pr.stringify(t):Re.stringify(t),"stringify")},gt=Wu;var Hu=i((t,e)=>{let r=gt.parse(t);for(let o in e)r[o]=q.channel.clamp[o](e[o]);return gt.stringify(r)},"change"),Oi=Hu;var Uu=i((t,e,r=0,o=1)=>{if(typeof t!="number")return Oi(t,{a:e});let n=_e.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(o)});return gt.stringify(n)},"rgba"),ue=Uu;var Yu=i((t,e)=>q.lang.round(gt.parse(t)[e]),"channel"),Gu=Yu;var Vu=i(t=>{let{r:e,g:r,b:o}=gt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(o);return q.lang.round(n)},"luminance"),wl=Vu;var Xu=i(t=>wl(t)>=.5,"isLight"),Bl=Xu;var ju=i(t=>!Bl(t),"isDark"),Yt=ju;var Zu=i((t,e,r)=>{let o=gt.parse(t),n=o[e],s=q.channel.clamp[e](n+r);return n!==s&&(o[e]=s),gt.stringify(o)},"adjustChannel"),Ii=Zu;var Ku=i((t,e)=>Ii(t,"l",e),"lighten"),D=Ku;var Qu=i((t,e)=>Ii(t,"l",-e),"darken"),R=Qu;var Ju=i((t,e)=>{let r=gt.parse(t),o={};for(let n in e)e[n]&&(o[n]=r[n]+e[n]);return Oi(t,o)},"adjust"),p=Ju;var tf=i((t,e,r=50)=>{let{r:o,g:n,b:s,a}=gt.parse(t),{r:l,g:c,b:h,a:u}=gt.parse(e),d=r/100,f=d*2-1,g=a-u,A=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,W=1-A,$=o*A+l*W,V=n*A+c*W,L=s*A+h*W,F=a*d+u*(1-d);return ue($,V,L,F)},"mix"),Fl=tf;var ef=i((t,e=100)=>{let r=gt.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Fl(r,t,e)},"invert"),b=ef;var be="#ffffff",Te="#f2f2f2";var pt=i((t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),"mkBorder");var an=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||D(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Ml=i(t=>{let e=new an;return e.calculate(t),e},"getThemeVariables");var ln=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=D(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(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=D(b("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ue(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=R("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=R(this.sectionBkgColor,10),this.taskBorderColor=ue(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ue(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=D(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=D(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=D(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Ll=i(t=>{let e=new ln;return e.calculate(t),e},"getThemeVariables");var hn=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ue(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Al=i(t=>{let e=new hn;return e.calculate(t),e},"getThemeVariables");var cn=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=D("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=R(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},El=i(t=>{let e=new cn;return e.calculate(t),e},"getThemeVariables");var un=class{static{i(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=D(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=D(this.contrast,55),this.border2=this.contrast,this.actorBorder=D(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Dl=i(t=>{let e=new un;return e.calculate(t),e},"getThemeVariables");var ke={base:{getThemeVariables:Ml},dark:{getThemeVariables:Ll},default:{getThemeVariables:Al},forest:{getThemeVariables:El},neutral:{getThemeVariables:Dl}};var fe={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1};var Ol={...fe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:ke.default.getThemeVariables(),sequence:{...fe.sequence,messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:i(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:i(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fe.c4,useWidth:void 0,personFont:i(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:i(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:i(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:i(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:i(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:i(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:i(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:i(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:i(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:i(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:i(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:i(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:i(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:i(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:i(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:i(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:i(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:i(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:i(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:i(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:i(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fe.pie,useWidth:984},xyChart:{...fe.xyChart,useWidth:void 0},requirement:{...fe.requirement,useWidth:void 0},packet:{...fe.packet}},Il=i((t,e="")=>Object.keys(t).reduce((r,o)=>Array.isArray(t[o])?r:typeof t[o]=="object"&&t[o]!==null?[...r,e+o,...Il(t[o],"")]:[...r,e+o],[]),"keyify"),Rl=new Set(Il(Ol,"")),Nl=Ol;var Ri=i(t=>{if(J.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Ri(e));return}for(let e of Object.keys(t)){if(J.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Rl.has(e)||t[e]==null){J.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){J.debug("sanitizing object",e),Ri(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let o of r)e.includes(o)&&(J.debug("sanitizing css option",e),t[e]=rf(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}J.debug("After sanitization",t)}},"sanitizeDirective"),rf=i(t=>{let e=0,r=0;for(let o of t){if(e{let r=Rt({},t),o={};for(let n of e)$l(n),o=Rt(o,n);if(r=Rt(r,o),o.theme&&o.theme in ke){let n=Rt({},zl),s=Rt(n.themeVariables||{},o.themeVariables);r.theme&&r.theme in ke&&(r.themeVariables=ke[r.theme].getThemeVariables(s))}return $r=r,Wl($r),$r},"updateCurrentConfig"),of=i(t=>(Pt=Rt({},Wr),Pt=Rt(Pt,t),t.theme&&ke[t.theme]&&(Pt.themeVariables=ke[t.theme].getThemeVariables(t.themeVariables)),Ni(Pt,ar),Pt),"setSiteConfig"),nC=i(t=>{zl=Rt({},t)},"saveConfigFromInitialize"),sC=i(t=>(Pt=Rt(Pt,t),Ni(Pt,ar),Pt),"updateSiteConfig"),aC=i(()=>Rt({},Pt),"getSiteConfig"),Pl=i(t=>(Wl(t),Rt($r,t),Hr()),"setConfig"),Hr=i(()=>Rt({},$r),"getConfig"),$l=i(t=>{t&&(["secure",...Pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(J.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&$l(t[e])}))},"sanitize"),lC=i(t=>{Ri(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),ar.push(t),Ni(Pt,ar)},"addDirective"),hC=i((t=Pt)=>{ar=[],Ni(t,ar)},"reset"),nf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ql={},sf=i(t=>{ql[t]||(J.warn(nf[t]),ql[t]=!0)},"issueWarning"),Wl=i(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&sf("LAZY_LOAD_DEPRECATED")},"checkConfig");var lr=fl(Hl(),1);var Ur=//gi,af=i(t=>t?Xl(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),lf=(()=>{let t=!1;return()=>{t||(hf(),t=!0)}})();function hf(){let t="data-temp-href-target";lr.default.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),lr.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}i(hf,"setupDompurifyHooks");var Vl=i(t=>(lf(),lr.default.sanitize(t)),"removeScript"),Ul=i((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=Vl(t):r!=="loose"&&(t=Xl(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=mf(t))}return t},"sanitizeMore"),Ne=i((t,e)=>t&&(e.dompurifyConfig?t=lr.default.sanitize(Ul(t,e),e.dompurifyConfig).toString():t=lr.default.sanitize(Ul(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),cf=i((t,e)=>typeof t=="string"?Ne(t,e):t.flat().map(r=>Ne(r,e)),"sanitizeTextOrArray"),uf=i(t=>Ur.test(t),"hasBreaks"),ff=i(t=>t.split(Ur),"splitBreaks"),mf=i(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),Xl=i(t=>t.replace(Ur,"#br#"),"breakToPlaceholder"),pf=i(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),df=i(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),gf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),xf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),mC=i(function(t){let e=t.split(/(,)/),r=[];for(let o=0;o0&&o+1Math.max(0,t.split(e).length-1),"countOccurrence"),yf=i((t,e)=>{let r=pn(t,"~"),o=pn(e,"~");return r===1&&o===1},"shouldCombineSets"),Cf=i(t=>{let e=pn(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let o=[...t],n=o.indexOf("~"),s=o.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)o[n]="<",o[s]=">",n=o.indexOf("~"),s=o.lastIndexOf("~");return r&&o.unshift("~"),o.join("")},"processSet"),Yl=i(()=>window.MathMLElement!==void 0,"isMathMLSupported"),dn=/\$\$(.*)\$\$/g,Gl=i(t=>(t.match(dn)?.length??0)>0,"hasKatex"),pC=i(async(t,e)=>{t=await _f(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),_f=i(async(t,e)=>{if(!Gl(t))return t;if(!(Yl()||e.legacyMathML||e.forceLegacyMathML))return t.replace(dn,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-SWYD7GD6.mjs"),o=e.forceLegacyMathML||!Yl()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Ur).map(n=>Gl(n)?`
${n}
`:`
${n}
`).join("").replace(dn,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),dC={getRows:af,sanitizeText:Ne,sanitizeTextOrArray:cf,hasBreaks:uf,splitBreaks:ff,lineBreakRegex:Ur,removeScript:Vl,getUrl:pf,evaluate:df,getMax:gf,getMin:xf};var bf=i(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Tf=i(function(t,e,r){let o=new Map;return r?(o.set("width","100%"),o.set("style",`max-width: ${e}px;`)):(o.set("height",t),o.set("width",e)),o},"calculateSvgSizeAttrs"),kf=i(function(t,e,r,o){let n=Tf(e,r,o);bf(t,n)},"configureSvgSize"),jl=i(function(t,e,r,o){let n=e.node().getBBox(),s=n.width,a=n.height;J.info(`SVG bounds: ${s}x${a}`,n);let l=0,c=0;J.info(`Graph bounds: ${l}x${c}`,t),l=s+r*2,c=a+r*2,J.info(`Calculated bounds: ${l}x${c}`),kf(e,c,l,o);let h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox");var qi={},Sf=i((t,e,r)=>{let o="";return t in qi&&qi[t]?o=qi[t](r):J.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: 1px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-thickness-invisible { stroke-width: 0; fill: none; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${r.lineColor}; stroke: ${r.lineColor}; } & .marker.cross { stroke: ${r.lineColor}; } & svg { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; } & p { margin: 0 } ${o} ${e} `},"getStyles"),Zl=i((t,e)=>{e!==void 0&&(qi[t]=e)},"addStylesForDiagram"),TC=Sf;var _n={};Nu(_n,{clear:()=>vf,getAccDescription:()=>Mf,getAccTitle:()=>Bf,getDiagramTitle:()=>Af,setAccDescription:()=>Ff,setAccTitle:()=>wf,setDiagramTitle:()=>Lf});var gn="",xn="",yn="",Cn=i(t=>Ne(t,Hr()),"sanitizeText"),vf=i(()=>{gn="",yn="",xn=""},"clear"),wf=i(t=>{gn=Cn(t).replace(/^\s+/g,"")},"setAccTitle"),Bf=i(()=>gn,"getAccTitle"),Ff=i(t=>{yn=Cn(t).replace(/\n\s+/g,` `)},"setAccDescription"),Mf=i(()=>yn,"getAccDescription"),Lf=i(t=>{xn=Cn(t)},"setDiagramTitle"),Af=i(()=>xn,"getDiagramTitle");var Kl=J,Ef=dl,Ql=Hr,OC=Pl,IC=Wr;var Df=i(t=>Ne(t,Ql()),"sanitizeText"),Of=jl,If=i(()=>_n,"getCommonDb"),zi={},RC=i((t,e,r)=>{zi[t]&&Kl.warn(`Diagram with id ${t} already registered. Overwriting.`),zi[t]=e,r&&en(t,r),Zl(t,e.styles),e.injectUtils?.(Kl,Ef,Ql,Df,Of,If(),()=>{})},"registerDiagram"),NC=i(t=>{if(t in zi)return zi[t];throw new bn(t)},"getDiagram"),bn=class extends Error{static{i(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}};function Jl(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r=n)&&(r=n)}return r}i(Jl,"max");function th(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}i(th,"min");function qe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}i(qe,"ascending");function Tn(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}i(Tn,"descending");function ze(t){let e,r,o;t.length!==2?(e=qe,r=i((l,c)=>qe(t(l),c),"compare2"),o=i((l,c)=>t(l)-c,"delta")):(e=t===qe||t===Tn?t:Rf,r=t,o=t);function n(l,c,h=0,u=l.length){if(h>>1;r(l[d],c)<0?h=d+1:u=d}while(h>>1;r(l[d],c)<=0?h=d+1:u=d}while(hh&&o(l[d-1],c)>-o(l[d],c)?d-1:d}return i(a,"center"),{left:n,center:a,right:s}}i(ze,"bisector");function Rf(){return 0}i(Rf,"zero");function kn(t){return t===null?NaN:+t}i(kn,"number");var eh=ze(qe),rh=eh.right,Nf=eh.left,qf=ze(kn).center,Sn=rh;var hr=class extends Map{static{i(this,"InternMap")}constructor(e,r=$f){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[o,n]of e)this.set(o,n)}get(e){return super.get(ih(this,e))}has(e){return super.has(ih(this,e))}set(e,r){return super.set(zf(this,e),r)}delete(e){return super.delete(Pf(this,e))}};function ih({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):r}i(ih,"intern_get");function zf({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):(t.set(o,r),r)}i(zf,"intern_set");function Pf({_intern:t,_key:e},r){let o=e(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}i(Pf,"intern_delete");function $f(t){return t!==null&&typeof t=="object"?t.valueOf():t}i($f,"keyof");var Wf=Math.sqrt(50),Hf=Math.sqrt(10),Uf=Math.sqrt(2);function Pi(t,e,r){let o=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),a=s>=Wf?10:s>=Hf?5:s>=Uf?2:1,l,c,h;return n<0?(h=Math.pow(10,-n)/a,l=Math.round(t*h),c=Math.round(e*h),l/he&&--c,h=-h):(h=Math.pow(10,n)*a,l=Math.round(t/h),c=Math.round(e/h),l*he&&--c),c0))return[];if(t===e)return[t];let o=e=n))return[];let l=s-n+1,c=new Array(l);if(o)if(a<0)for(let h=0;h+t(e)}i(Vf,"number");function Xf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}i(Xf,"center");function jf(){return!this.__axis}i(jf,"entering");function nh(t,e){var r=[],o=null,n=null,s=6,a=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===Ui||t===Hi?-1:1,u=t===Hi||t===wn?"x":"y",d=t===Ui||t===Bn?Yf:Gf;function f(g){var S=o??(e.ticks?e.ticks.apply(e,r):e.domain()),A=n??(e.tickFormat?e.tickFormat.apply(e,r):vn),W=Math.max(s,0)+l,$=e.range(),V=+$[0]+c,L=+$[$.length-1]+c,F=(e.bandwidth?Xf:Vf)(e.copy(),c),H=g.selection?g.selection():g,T=H.selectAll(".domain").data([null]),j=H.selectAll(".tick").data(S,e).order(),w=j.exit(),U=j.enter().append("g").attr("class","tick"),K=j.select("line"),E=j.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),j=j.merge(U),K=K.merge(U.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),E=E.merge(U.append("text").attr("fill","currentColor").attr(u,h*W).attr("dy",t===Ui?"0em":t===Bn?"0.71em":"0.32em")),g!==H&&(T=T.transition(g),j=j.transition(g),K=K.transition(g),E=E.transition(g),w=w.transition(g).attr("opacity",oh).attr("transform",function(v){return isFinite(v=F(v))?d(v+c):this.getAttribute("transform")}),U.attr("opacity",oh).attr("transform",function(v){var x=this.parentNode.__axis;return d((x&&isFinite(x=x(v))?x:F(v))+c)})),w.remove(),T.attr("d",t===Hi||t===wn?a?"M"+h*a+","+V+"H"+c+"V"+L+"H"+h*a:"M"+c+","+V+"V"+L:a?"M"+V+","+h*a+"V"+c+"H"+L+"V"+h*a:"M"+V+","+c+"H"+L),j.attr("opacity",1).attr("transform",function(v){return d(F(v)+c)}),K.attr(u+"2",h*s),E.attr(u,h*W).text(A),H.filter(jf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===wn?"start":t===Hi?"end":"middle"),H.each(function(){this.__axis=F})}return i(f,"axis"),f.scale=function(g){return arguments.length?(e=g,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),f):r.slice()},f.tickValues=function(g){return arguments.length?(o=g==null?null:Array.from(g),f):o&&o.slice()},f.tickFormat=function(g){return arguments.length?(n=g,f):n},f.tickSize=function(g){return arguments.length?(s=a=+g,f):s},f.tickSizeInner=function(g){return arguments.length?(s=+g,f):s},f.tickSizeOuter=function(g){return arguments.length?(a=+g,f):a},f.tickPadding=function(g){return arguments.length?(l=+g,f):l},f.offset=function(g){return arguments.length?(c=+g,f):c},f}i(nh,"axis");function Zf(t){return nh(Ui,t)}i(Zf,"axisTop");function Kf(t){return nh(Bn,t)}i(Kf,"axisBottom");function Qf(){}i(Qf,"none");function Se(t){return t==null?Qf:function(){return this.querySelector(t)}}i(Se,"default");function Fn(t){typeof t!="function"&&(t=Se(t));for(var e=this._groups,r=e.length,o=new Array(r),n=0;n=L&&(L=V+1);!(H=W[L])&&++L=0;)(a=o[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}i(Pn,"default");function $n(t){t||(t=um);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}i(e,"compareNode");for(var r=this._groups,o=r.length,n=new Array(o),s=0;se?1:t>=e?0:NaN}i(um,"ascending");function Wn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}i(Wn,"default");function Hn(){return Array.from(this)}i(Hn,"default");function Un(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Xn.hasOwnProperty(e)?{space:Xn[e],local:t}:t}i(ee,"default");function fm(t){return function(){this.removeAttribute(t)}}i(fm,"attrRemove");function mm(t){return function(){this.removeAttributeNS(t.space,t.local)}}i(mm,"attrRemoveNS");function pm(t,e){return function(){this.setAttribute(t,e)}}i(pm,"attrConstant");function dm(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}i(dm,"attrConstantNS");function gm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}i(gm,"attrFunction");function xm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}i(xm,"attrFunctionNS");function jn(t,e){var r=ee(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?mm:fm:typeof e=="function"?r.local?xm:gm:r.local?dm:pm)(r,e))}i(jn,"default");function Xr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}i(Xr,"default");function ym(t){return function(){this.style.removeProperty(t)}}i(ym,"styleRemove");function Cm(t,e,r){return function(){this.style.setProperty(t,e,r)}}i(Cm,"styleConstant");function _m(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}i(_m,"styleFunction");function Zn(t,e,r){return arguments.length>1?this.each((e==null?ym:typeof e=="function"?_m:Cm)(t,e,r??"")):ve(this.node(),t)}i(Zn,"default");function ve(t,e){return t.style.getPropertyValue(e)||Xr(t).getComputedStyle(t,null).getPropertyValue(e)}i(ve,"styleValue");function bm(t){return function(){delete this[t]}}i(bm,"propertyRemove");function Tm(t,e){return function(){this[t]=e}}i(Tm,"propertyConstant");function km(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}i(km,"propertyFunction");function Kn(t,e){return arguments.length>1?this.each((e==null?bm:typeof e=="function"?km:Tm)(t,e)):this.node()[t]}i(Kn,"default");function sh(t){return t.trim().split(/^|\s+/)}i(sh,"classArray");function Qn(t){return t.classList||new ah(t)}i(Qn,"classList");function ah(t){this._node=t,this._names=sh(t.getAttribute("class")||"")}i(ah,"ClassList");ah.prototype={add:i(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:i(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:i(function(t){return this._names.indexOf(t)>=0},"contains")};function lh(t,e){for(var r=Qn(t),o=-1,n=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}i(Wm,"parseTypenames");function Hm(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,n=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Vi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Vi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=jm.exec(t))?new wt(e[1],e[2],e[3],1):(e=Zm.exec(t))?new wt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Km.exec(t))?Vi(e[1],e[2],e[3],e[4]):(e=Qm.exec(t))?Vi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Jm.exec(t))?Ch(e[1],e[2]/100,e[3]/100,1):(e=tp.exec(t))?Ch(e[1],e[2]/100,e[3]/100,e[4]):mh.hasOwnProperty(t)?gh(mh[t]):t==="transparent"?new wt(NaN,NaN,NaN,0):null}i(Vt,"color");function gh(t){return new wt(t>>16&255,t>>8&255,t&255,1)}i(gh,"rgbn");function Vi(t,e,r,o){return o<=0&&(t=e=r=NaN),new wt(t,e,r,o)}i(Vi,"rgba");function ps(t){return t instanceof Be||(t=Vt(t)),t?(t=t.rgb(),new wt(t.r,t.g,t.b,t.opacity)):new wt}i(ps,"rgbConvert");function dr(t,e,r,o){return arguments.length===1?ps(t):new wt(t,e,r,o??1)}i(dr,"rgb");function wt(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}i(wt,"Rgb");we(wt,dr,mr(Be,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Zr:Math.pow(Zr,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wt($e(this.r),$e(this.g),$e(this.b),Zi(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:xh,formatHex:xh,formatHex8:ip,formatRgb:yh,toString:yh}));function xh(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}i(xh,"rgb_formatHex");function ip(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe((isNaN(this.opacity)?1:this.opacity)*255)}`}i(ip,"rgb_formatHex8");function yh(){let t=Zi(this.opacity);return`${t===1?"rgb(":"rgba("}${$e(this.r)}, ${$e(this.g)}, ${$e(this.b)}${t===1?")":`, ${t})`}`}i(yh,"rgb_formatRgb");function Zi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}i(Zi,"clampa");function $e(t){return Math.max(0,Math.min(255,Math.round(t)||0))}i($e,"clampi");function Pe(t){return t=$e(t),(t<16?"0":"")+t.toString(16)}i(Pe,"hex");function Ch(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Gt(t,e,r,o)}i(Ch,"hsla");function bh(t){if(t instanceof Gt)return new Gt(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=Vt(t)),!t)return new Gt;if(t instanceof Gt)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,n=Math.min(e,r,o),s=Math.max(e,r,o),a=NaN,l=s-n,c=(s+n)/2;return l?(e===s?a=(r-o)/l+(r0&&c<1?0:a,new Gt(a,l,c,t.opacity)}i(bh,"hslConvert");function Th(t,e,r,o){return arguments.length===1?bh(t):new Gt(t,e,r,o??1)}i(Th,"hsl");function Gt(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}i(Gt,"Hsl");we(Gt,Th,mr(Be,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new Gt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Zr:Math.pow(Zr,t),new Gt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,n=2*r-o;return new wt(ms(t>=240?t-240:t+120,n,o),ms(t,n,o),ms(t<120?t+240:t-120,n,o),this.opacity)},clamp(){return new Gt(_h(this.h),Xi(this.s),Xi(this.l),Zi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Zi(this.opacity);return`${t===1?"hsl(":"hsla("}${_h(this.h)}, ${Xi(this.s)*100}%, ${Xi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function _h(t){return t=(t||0)%360,t<0?t+360:t}i(_h,"clamph");function Xi(t){return Math.max(0,Math.min(1,t||0))}i(Xi,"clampt");function ms(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}i(ms,"hsl2rgb");var kh=Math.PI/180,Sh=180/Math.PI;var Ki=18,vh=.96422,wh=1,Bh=.82521,Fh=4/29,gr=6/29,Mh=3*gr*gr,op=gr*gr*gr;function Lh(t){if(t instanceof ie)return new ie(t.l,t.a,t.b,t.opacity);if(t instanceof pe)return Ah(t);t instanceof wt||(t=ps(t));var e=ys(t.r),r=ys(t.g),o=ys(t.b),n=ds((.2225045*e+.7168786*r+.0606169*o)/wh),s,a;return e===r&&r===o?s=a=n:(s=ds((.4360747*e+.3850649*r+.1430804*o)/vh),a=ds((.0139322*e+.0971045*r+.7141733*o)/Bh)),new ie(116*n-16,500*(s-n),200*(n-a),t.opacity)}i(Lh,"labConvert");function Cs(t,e,r,o){return arguments.length===1?Lh(t):new ie(t,e,r,o??1)}i(Cs,"lab");function ie(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}i(ie,"Lab");we(ie,Cs,mr(Be,{brighter(t){return new ie(this.l+Ki*(t??1),this.a,this.b,this.opacity)},darker(t){return new ie(this.l-Ki*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=vh*gs(e),t=wh*gs(t),r=Bh*gs(r),new wt(xs(3.1338561*e-1.6168667*t-.4906146*r),xs(-.9787684*e+1.9161415*t+.033454*r),xs(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function ds(t){return t>op?Math.pow(t,1/3):t/Mh+Fh}i(ds,"xyz2lab");function gs(t){return t>gr?t*t*t:Mh*(t-Fh)}i(gs,"lab2xyz");function xs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}i(xs,"lrgb2rgb");function ys(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}i(ys,"rgb2lrgb");function np(t){if(t instanceof pe)return new pe(t.h,t.c,t.l,t.opacity);if(t instanceof ie||(t=Lh(t)),t.a===0&&t.b===0)return new pe(NaN,0()=>t,"default");function Eh(t,e){return function(r){return t+r*e}}i(Eh,"linear");function sp(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}i(sp,"exponential");function Dh(t,e){var r=e-t;return r?Eh(t,r>180||r<-180?r-360*Math.round(r/360):r):xr(isNaN(t)?e:t)}i(Dh,"hue");function Oh(t){return(t=+t)==1?de:function(e,r){return r-e?sp(e,r,t):xr(isNaN(e)?r:e)}}i(Oh,"gamma");function de(t,e){var r=e-t;return r?Eh(t,r):xr(isNaN(t)?e:t)}i(de,"nogamma");function Ih(t){return function(e,r){var o=t((e=Qr(e)).h,(r=Qr(r)).h),n=de(e.c,r.c),s=de(e.l,r.l),a=de(e.opacity,r.opacity);return function(l){return e.h=o(l),e.c=n(l),e.l=s(l),e.opacity=a(l),e+""}}}i(Ih,"hcl");var ap=Ih(Dh),lp=Ih(de);function _s(t,e,r,o,n){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*r+(1+3*t+3*s-3*a)*o+a*n)/6}i(_s,"basis");function bs(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[o],s=t[o+1],a=o>0?t[o-1]:2*n-s,l=or&&(s=e.slice(r,s),l[a]?l[a]+=s:l[++a]=s),(o=o[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:bt(o,n)})),r=ws.lastIndex;return r180?u+=360:u-h>180&&(h+=360),f.push({i:d.push(n(d)+"rotate(",null,o)-2,x:bt(h,u)})):u&&d.push(n(d)+"rotate("+u+o)}i(a,"rotate");function l(h,u,d,f){h!==u?f.push({i:d.push(n(d)+"skewX(",null,o)-2,x:bt(h,u)}):u&&d.push(n(d)+"skewX("+u+o)}i(l,"skewX");function c(h,u,d,f,g,S){if(h!==d||u!==f){var A=g.push(n(g)+"scale(",null,",",null,")");S.push({i:A-4,x:bt(h,d)},{i:A-2,x:bt(u,f)})}else(d!==1||f!==1)&&g.push(n(g)+"scale("+d+","+f+")")}return i(c,"scale"),function(h,u){var d=[],f=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,d,f),a(h.rotate,u.rotate,d,f),l(h.skewX,u.skewX,d,f),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,d,f),h=u=null,function(g){for(var S=-1,A=f.length,W;++Se&&(r=t,t=e,e=r),function(o){return Math.max(t,Math.min(e,o))}}i(mp,"clamper");function pp(t,e,r){var o=t[0],n=t[1],s=e[0],a=e[1];return n2?dp:pp,c=h=null,d}i(u,"rescale");function d(f){return f==null||isNaN(f=+f)?s:(c||(c=l(t.map(o),e,r)))(o(a(f)))}return i(d,"scale"),d.invert=function(f){return a(n((h||(h=l(e,t.map(o),bt)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,Es),u()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Qi,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Cr,u()):a!==Cr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,g){return o=f,n=g,u()}}i(gp,"transformer");function ti(){return gp()(Cr,Cr)}i(ti,"continuous");function Os(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}i(Os,"default");function He(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}i(He,"formatDecimalParts");function Xt(t){return t=He(Math.abs(t)),t?t[1]:NaN}i(Xt,"default");function Is(t,e){return function(r,o){for(var n=r.length,s=[],a=0,l=t[0],c=0;n>0&&l>0&&(c+l+1>o&&(l=Math.max(1,o-c)),s.push(r.substring(n-=l,n+l)),!((c+=l+1)>o));)l=t[a=(a+1)%t.length];return s.reverse().join(e)}}i(Is,"default");function Rs(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}i(Rs,"default");var xp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Le(t){if(!(e=xp.exec(t)))throw new Error("invalid format: "+t);var e;return new io({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}i(Le,"formatSpecifier");Le.prototype=io.prototype;function io(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}i(io,"FormatSpecifier");io.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 Ns(t){t:for(var e=t.length,r=1,o=-1,n;r0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(n+1):t}i(Ns,"default");var qs;function zs(t,e){var r=He(t,e);if(!r)return t+"";var o=r[0],n=r[1],s=n-(qs=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=o.length;return s===a?o:s>a?o+new Array(s-a+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+He(t,Math.max(0,e+s-1))[0]}i(zs,"default");function oo(t,e){var r=He(t,e);if(!r)return t+"";var o=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}i(oo,"default");var Ps={"%":i((t,e)=>(t*100).toFixed(e),"%"),b:i(t=>Math.round(t).toString(2),"b"),c:i(t=>t+"","c"),d:Os,e:i((t,e)=>t.toExponential(e),"e"),f:i((t,e)=>t.toFixed(e),"f"),g:i((t,e)=>t.toPrecision(e),"g"),o:i(t=>Math.round(t).toString(8),"o"),p:i((t,e)=>oo(t*100,e),"p"),r:oo,s:zs,X:i(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:i(t=>Math.round(t).toString(16),"x")};function no(t){return t}i(no,"default");var Uh=Array.prototype.map,Yh=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function $s(t){var e=t.grouping===void 0||t.thousands===void 0?no:Is(Uh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?no:Rs(Uh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(d){d=Le(d);var f=d.fill,g=d.align,S=d.sign,A=d.symbol,W=d.zero,$=d.width,V=d.comma,L=d.precision,F=d.trim,H=d.type;H==="n"?(V=!0,H="g"):Ps[H]||(L===void 0&&(L=12),F=!0,H="g"),(W||f==="0"&&g==="=")&&(W=!0,f="0",g="=");var T=A==="$"?r:A==="#"&&/[boxX]/.test(H)?"0"+H.toLowerCase():"",j=A==="$"?o:/[%p]/.test(H)?a:"",w=Ps[H],U=/[defgprs%]/.test(H);L=L===void 0?6:/[gprs]/.test(H)?Math.max(1,Math.min(21,L)):Math.max(0,Math.min(20,L));function K(E){var v=T,x=j,y,M,k;if(H==="c")x=w(E)+x,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?c:w(Math.abs(E),L),F&&(E=Ns(E)),N&&+E==0&&S!=="+"&&(N=!1),v=(N?S==="("?S:l:S==="-"||S==="("?"":S)+v,x=(H==="s"?Yh[8+qs/3]:"")+x+(N&&S==="("?")":""),U){for(y=-1,M=E.length;++yk||k>57){x=(k===46?n+E.slice(y+1):E.slice(y))+x,E=E.slice(0,y);break}}}V&&!W&&(E=e(E,1/0));var I=v.length+E.length+x.length,G=I<$?new Array($-I+1).join(f):"";switch(V&&W&&(E=e(G+E,G.length?$-x.length:1/0),G=""),g){case"<":E=v+E+x+G;break;case"=":E=v+G+E+x;break;case"^":E=G.slice(0,I=G.length>>1)+v+E+x+G.slice(I);break;default:E=G+v+E+x;break}return s(E)}return i(K,"format"),K.toString=function(){return d+""},K}i(h,"newFormat");function u(d,f){var g=h((d=Le(d),d.type="f",d)),S=Math.max(-8,Math.min(8,Math.floor(Xt(f)/3)))*3,A=Math.pow(10,-S),W=Yh[8+S/3];return function($){return g(A*$)+W}}return i(u,"formatPrefix"),{format:h,formatPrefix:u}}i($s,"default");var so,ao,lo;Ws({thousands:",",grouping:[3],currency:["$",""]});function Ws(t){return so=$s(t),ao=so.format,lo=so.formatPrefix,so}i(Ws,"defaultLocale");function ho(t){return Math.max(0,-Xt(Math.abs(t)))}i(ho,"default");function co(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xt(e)/3)))*3-Xt(Math.abs(t)))}i(co,"default");function uo(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Xt(e)-Xt(t))+1}i(uo,"default");function Hs(t,e,r,o){var n=cr(t,e,r),s;switch(o=Le(o??",f"),o.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return o.precision==null&&!isNaN(s=co(n,a))&&(o.precision=s),lo(o,a)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(s=uo(n,Math.max(Math.abs(t),Math.abs(e))))&&(o.precision=s-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(s=ho(n))&&(o.precision=s-(o.type==="%")*2);break}}return ao(o)}i(Hs,"tickFormat");function yp(t){var e=t.domain;return t.ticks=function(r){var o=e();return $i(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var n=e();return Hs(n[0],n[n.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=e(),n=0,s=o.length-1,a=o[n],l=o[s],c,h,u=10;for(l0;){if(h=Yr(a,l,r),h===c)return o[n]=a,o[s]=l,e(o);if(h>0)a=Math.floor(a/h)*h,l=Math.ceil(l/h)*h;else if(h<0)a=Math.ceil(a*h)/h,l=Math.floor(l*h)/h;else break;c=h}return t},t}i(yp,"linearish");function Us(){var t=ti();return t.copy=function(){return ro(t,Us())},Me.apply(t,arguments),yp(t)}i(Us,"linear");var Ys=new Date,Gs=new Date;function st(t,e,r,o){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i(n,"interval"),n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{let a=n(s),l=n.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,l)=>{let c=[];if(s=n.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let h;do c.push(h=new Date(+s)),e(s,l),t(s);while(hst(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;e(a,-1),!s(a););else for(;--l>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(Ys.setTime(+s),Gs.setTime(+a),t(Ys),t(Gs),Math.floor(r(Ys,Gs))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(o?a=>o(a)%s===0:a=>n.count(0,a)%s===0):n)),n}i(st,"timeInterval");var Ue=st(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ue.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?st(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Ue);var Gh=Ue.range;var oe=st(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Vh=oe.range;var _r=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Cp=_r.range,fo=st(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),_p=fo.range;var br=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),bp=br.range,mo=st(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Tp=mo.range;var ge=st(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),kp=ge.range,ri=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Sp=ri.range,po=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),vp=po.range;function Ve(t){return st(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}i(Ve,"timeWeekday");var xe=Ve(0),Tr=Ve(1),jh=Ve(2),Zh=Ve(3),Ae=Ve(4),Kh=Ve(5),Qh=Ve(6),Jh=xe.range,wp=Tr.range,Bp=jh.range,Fp=Zh.range,Mp=Ae.range,Lp=Kh.range,Ap=Qh.range;function Xe(t){return st(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}i(Xe,"utcWeekday");var je=Xe(0),kr=Xe(1),tc=Xe(2),ec=Xe(3),Ee=Xe(4),rc=Xe(5),ic=Xe(6),oc=je.range,Ep=kr.range,Dp=tc.range,Op=ec.range,Ip=Ee.range,Rp=rc.range,Np=ic.range;var Sr=st(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),qp=Sr.range,go=st(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),zp=go.range;var Wt=st(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Pp=Wt.range,jt=st(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());jt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var $p=jt.range;function sc(t,e,r,o,n,s){let a=[[oe,1,1e3],[oe,5,5*1e3],[oe,15,15*1e3],[oe,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[o,1,864e5],[o,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,u,d){let f=uW).right(a,f);if(g===a.length)return t.every(cr(h/31536e6,u/31536e6,d));if(g===0)return Ue.every(Math.max(cr(h,u,d),1));let[S,A]=a[f/a[g-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(et=Zs(ii(C.y,0,1)),Et=et.getUTCDay(),et=Et>4||Et===0?kr.ceil(et):kr(et),et=ri.offset(et,(C.V-1)*7),C.y=et.getUTCFullYear(),C.m=et.getUTCMonth(),C.d=et.getUTCDate()+(C.w+6)%7):(et=js(ii(C.y,0,1)),Et=et.getDay(),et=Et>4||Et===0?Tr.ceil(et):Tr(et),et=ge.offset(et,(C.V-1)*7),C.y=et.getFullYear(),C.m=et.getMonth(),C.d=et.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Et="Z"in C?Zs(ii(C.y,0,1)).getUTCDay():js(ii(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Et+5)%7:C.w+C.U*7-(Et+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Zs(C)):js(C)}}i(j,"newParse");function w(B,Y,X,C){for(var St=0,et=Y.length,Et=X.length,Dt,Kt;St=Et)return-1;if(Dt=Y.charCodeAt(St++),Dt===37){if(Dt=Y.charAt(St++),Kt=H[Dt in ac?Y.charAt(St++):Dt],!Kt||(C=Kt(B,X,C))<0)return-1}else if(Dt!=X.charCodeAt(C++))return-1}return C}i(w,"parseSpecifier");function U(B,Y,X){var C=h.exec(Y.slice(X));return C?(B.p=u.get(C[0].toLowerCase()),X+C[0].length):-1}i(U,"parsePeriod");function K(B,Y,X){var C=g.exec(Y.slice(X));return C?(B.w=S.get(C[0].toLowerCase()),X+C[0].length):-1}i(K,"parseShortWeekday");function E(B,Y,X){var C=d.exec(Y.slice(X));return C?(B.w=f.get(C[0].toLowerCase()),X+C[0].length):-1}i(E,"parseWeekday");function v(B,Y,X){var C=$.exec(Y.slice(X));return C?(B.m=V.get(C[0].toLowerCase()),X+C[0].length):-1}i(v,"parseShortMonth");function x(B,Y,X){var C=A.exec(Y.slice(X));return C?(B.m=W.get(C[0].toLowerCase()),X+C[0].length):-1}i(x,"parseMonth");function y(B,Y,X){return w(B,e,Y,X)}i(y,"parseLocaleDateTime");function M(B,Y,X){return w(B,r,Y,X)}i(M,"parseLocaleDate");function k(B,Y,X){return w(B,o,Y,X)}i(k,"parseLocaleTime");function N(B){return a[B.getDay()]}i(N,"formatShortWeekday");function I(B){return s[B.getDay()]}i(I,"formatWeekday");function G(B){return c[B.getMonth()]}i(G,"formatShortMonth");function tt(B){return l[B.getMonth()]}i(tt,"formatMonth");function ot(B){return n[+(B.getHours()>=12)]}i(ot,"formatPeriod");function nt(B){return 1+~~(B.getMonth()/3)}i(nt,"formatQuarter");function mt(B){return a[B.getUTCDay()]}i(mt,"formatUTCShortWeekday");function qt(B){return s[B.getUTCDay()]}i(qt,"formatUTCWeekday");function ut(B){return c[B.getUTCMonth()]}i(ut,"formatUTCShortMonth");function $t(B){return l[B.getUTCMonth()]}i($t,"formatUTCMonth");function At(B){return n[+(B.getUTCHours()>=12)]}i(At,"formatUTCPeriod");function ht(B){return 1+~~(B.getUTCMonth()/3)}return i(ht,"formatUTCQuarter"),{format:i(function(B){var Y=T(B+="",L);return Y.toString=function(){return B},Y},"format"),parse:i(function(B){var Y=j(B+="",!1);return Y.toString=function(){return B},Y},"parse"),utcFormat:i(function(B){var Y=T(B+="",F);return Y.toString=function(){return B},Y},"utcFormat"),utcParse:i(function(B){var Y=j(B+="",!0);return Y.toString=function(){return B},Y},"utcParse")}}i(Ks,"formatLocale");var ac={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,Yp=/^%/,Gp=/[\\^$*+?|[\]().{}]/g;function it(t,e,r){var o=t<0?"-":"",n=(o?-t:t)+"",s=n.length;return o+(s[e.toLowerCase(),r]))}i(ni,"formatLookup");function Xp(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}i(Xp,"parseWeekdayNumberSunday");function jp(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}i(jp,"parseWeekdayNumberMonday");function Zp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}i(Zp,"parseWeekNumberSunday");function Kp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}i(Kp,"parseWeekNumberISO");function Qp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}i(Qp,"parseWeekNumberMonday");function lc(t,e,r){var o=Tt.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}i(lc,"parseFullYear");function hc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}i(hc,"parseYear");function Jp(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}i(Jp,"parseZone");function td(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}i(td,"parseQuarter");function ed(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}i(ed,"parseMonthNumber");function cc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}i(cc,"parseDayOfMonth");function rd(t,e,r){var o=Tt.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}i(rd,"parseDayOfYear");function uc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}i(uc,"parseHour24");function id(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}i(id,"parseMinutes");function od(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}i(od,"parseSeconds");function nd(t,e,r){var o=Tt.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}i(nd,"parseMilliseconds");function sd(t,e,r){var o=Tt.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}i(sd,"parseMicroseconds");function ad(t,e,r){var o=Yp.exec(e.slice(r,r+1));return o?r+o[0].length:-1}i(ad,"parseLiteralPercent");function ld(t,e,r){var o=Tt.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}i(ld,"parseUnixTimestamp");function hd(t,e,r){var o=Tt.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}i(hd,"parseUnixTimestampSeconds");function fc(t,e){return it(t.getDate(),e,2)}i(fc,"formatDayOfMonth");function cd(t,e){return it(t.getHours(),e,2)}i(cd,"formatHour24");function ud(t,e){return it(t.getHours()%12||12,e,2)}i(ud,"formatHour12");function fd(t,e){return it(1+ge.count(Wt(t),t),e,3)}i(fd,"formatDayOfYear");function xc(t,e){return it(t.getMilliseconds(),e,3)}i(xc,"formatMilliseconds");function md(t,e){return xc(t,e)+"000"}i(md,"formatMicroseconds");function pd(t,e){return it(t.getMonth()+1,e,2)}i(pd,"formatMonthNumber");function dd(t,e){return it(t.getMinutes(),e,2)}i(dd,"formatMinutes");function gd(t,e){return it(t.getSeconds(),e,2)}i(gd,"formatSeconds");function xd(t){var e=t.getDay();return e===0?7:e}i(xd,"formatWeekdayNumberMonday");function yd(t,e){return it(xe.count(Wt(t)-1,t),e,2)}i(yd,"formatWeekNumberSunday");function yc(t){var e=t.getDay();return e>=4||e===0?Ae(t):Ae.ceil(t)}i(yc,"dISO");function Cd(t,e){return t=yc(t),it(Ae.count(Wt(t),t)+(Wt(t).getDay()===4),e,2)}i(Cd,"formatWeekNumberISO");function _d(t){return t.getDay()}i(_d,"formatWeekdayNumberSunday");function bd(t,e){return it(Tr.count(Wt(t)-1,t),e,2)}i(bd,"formatWeekNumberMonday");function Td(t,e){return it(t.getFullYear()%100,e,2)}i(Td,"formatYear");function kd(t,e){return t=yc(t),it(t.getFullYear()%100,e,2)}i(kd,"formatYearISO");function Sd(t,e){return it(t.getFullYear()%1e4,e,4)}i(Sd,"formatFullYear");function vd(t,e){var r=t.getDay();return t=r>=4||r===0?Ae(t):Ae.ceil(t),it(t.getFullYear()%1e4,e,4)}i(vd,"formatFullYearISO");function wd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+it(e/60|0,"0",2)+it(e%60,"0",2)}i(wd,"formatZone");function mc(t,e){return it(t.getUTCDate(),e,2)}i(mc,"formatUTCDayOfMonth");function Bd(t,e){return it(t.getUTCHours(),e,2)}i(Bd,"formatUTCHour24");function Fd(t,e){return it(t.getUTCHours()%12||12,e,2)}i(Fd,"formatUTCHour12");function Md(t,e){return it(1+ri.count(jt(t),t),e,3)}i(Md,"formatUTCDayOfYear");function Cc(t,e){return it(t.getUTCMilliseconds(),e,3)}i(Cc,"formatUTCMilliseconds");function Ld(t,e){return Cc(t,e)+"000"}i(Ld,"formatUTCMicroseconds");function Ad(t,e){return it(t.getUTCMonth()+1,e,2)}i(Ad,"formatUTCMonthNumber");function Ed(t,e){return it(t.getUTCMinutes(),e,2)}i(Ed,"formatUTCMinutes");function Dd(t,e){return it(t.getUTCSeconds(),e,2)}i(Dd,"formatUTCSeconds");function Od(t){var e=t.getUTCDay();return e===0?7:e}i(Od,"formatUTCWeekdayNumberMonday");function Id(t,e){return it(je.count(jt(t)-1,t),e,2)}i(Id,"formatUTCWeekNumberSunday");function _c(t){var e=t.getUTCDay();return e>=4||e===0?Ee(t):Ee.ceil(t)}i(_c,"UTCdISO");function Rd(t,e){return t=_c(t),it(Ee.count(jt(t),t)+(jt(t).getUTCDay()===4),e,2)}i(Rd,"formatUTCWeekNumberISO");function Nd(t){return t.getUTCDay()}i(Nd,"formatUTCWeekdayNumberSunday");function qd(t,e){return it(kr.count(jt(t)-1,t),e,2)}i(qd,"formatUTCWeekNumberMonday");function zd(t,e){return it(t.getUTCFullYear()%100,e,2)}i(zd,"formatUTCYear");function Pd(t,e){return t=_c(t),it(t.getUTCFullYear()%100,e,2)}i(Pd,"formatUTCYearISO");function $d(t,e){return it(t.getUTCFullYear()%1e4,e,4)}i($d,"formatUTCFullYear");function Wd(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Ee(t):Ee.ceil(t),it(t.getUTCFullYear()%1e4,e,4)}i(Wd,"formatUTCFullYearISO");function Hd(){return"+0000"}i(Hd,"formatUTCZone");function pc(){return"%"}i(pc,"formatLiteralPercent");function dc(t){return+t}i(dc,"formatUnixTimestamp");function gc(t){return Math.floor(+t/1e3)}i(gc,"formatUnixTimestampSeconds");var vr,xo,bc,Tc,kc;Qs({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 Qs(t){return vr=Ks(t),xo=vr.format,bc=vr.parse,Tc=vr.utcFormat,kc=vr.utcParse,vr}i(Qs,"defaultLocale");function Js(t,e){t=t.slice();var r=0,o=t.length-1,n=t[r],s=t[o],a;return s1?0:t<-1?wr:Math.acos(t)}i(Bc,"acos");function ia(t){return t>=1?si:t<=-1?-si:Math.asin(t)}i(ia,"asin");var oa=Math.PI,na=2*oa,Ke=1e-6,Vd=na-Ke;function Fc(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Fc;let r=10**e;return function(o){this._+=o[0];for(let n=1,s=o.length;nKe)if(!(Math.abs(d*c-h*u)>Ke)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=o-a,S=n-l,A=c*c+h*h,W=g*g+S*S,$=Math.sqrt(A),V=Math.sqrt(f),L=s*Math.tan((oa-Math.acos((A+f-W)/(2*$*V)))/2),F=L/V,H=L/$;Math.abs(F-1)>Ke&&this._append`L${e+F*u},${r+F*d}`,this._append`A${s},${s},0,0,${+(d*g>u*S)},${this._x1=e+H*c},${this._y1=r+H*h}`}}arc(e,r,o,n,s,a){if(e=+e,r=+r,o=+o,a=!!a,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(n),c=o*Math.sin(n),h=e+l,u=r+c,d=1^a,f=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Ke||Math.abs(this._y1-u)>Ke)&&this._append`L${h},${u}`,o&&(f<0&&(f=f%na+na),f>Vd?this._append`A${o},${o},0,1,${d},${e-l},${r-c}A${o},${o},0,1,${d},${this._x1=h},${this._y1=u}`:f>Ke&&this._append`A${o},${o},0,${+(f>=oa)},${d},${this._x1=e+o*Math.cos(s)},${this._y1=r+o*Math.sin(s)}`)}rect(e,r,o,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function Mc(){return new Qe}i(Mc,"path");Mc.prototype=Qe.prototype;function Co(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);e=o}return t},()=>new Qe(e)}i(Co,"withPath");function jd(t){return t.innerRadius}i(jd,"arcInnerRadius");function Zd(t){return t.outerRadius}i(Zd,"arcOuterRadius");function Kd(t){return t.startAngle}i(Kd,"arcStartAngle");function Qd(t){return t.endAngle}i(Qd,"arcEndAngle");function Jd(t){return t&&t.padAngle}i(Jd,"arcPadAngle");function tg(t,e,r,o,n,s,a,l){var c=r-t,h=o-e,u=a-n,d=l-s,f=d*c-u*h;if(!(f*fy*y+M*M&&(w=K,U=E),{cx:w,cy:U,x01:-u,y01:-d,x11:w*(n/H-1),y11:U*(n/H-1)}}i(_o,"cornerTangents");function Lc(){var t=jd,e=Zd,r=lt(0),o=null,n=Kd,s=Qd,a=Jd,l=null,c=Co(h);function h(){var u,d,f=+t.apply(this,arguments),g=+e.apply(this,arguments),S=n.apply(this,arguments)-si,A=s.apply(this,arguments)-si,W=ra(A-S),$=A>S;if(l||(l=u=c()),gkt))l.moveTo(0,0);else if(W>Br-kt)l.moveTo(g*De(S),g*Zt(S)),l.arc(0,0,g,S,A,!$),f>kt&&(l.moveTo(f*De(A),f*Zt(A)),l.arc(0,0,f,A,S,$));else{var V=S,L=A,F=S,H=A,T=W,j=W,w=a.apply(this,arguments)/2,U=w>kt&&(o?+o.apply(this,arguments):Ze(f*f+g*g)),K=yo(ra(g-f)/2,+r.apply(this,arguments)),E=K,v=K,x,y;if(U>kt){var M=ia(U/f*Zt(w)),k=ia(U/g*Zt(w));(T-=M*2)>kt?(M*=$?1:-1,F+=M,H-=M):(T=0,F=H=(S+A)/2),(j-=k*2)>kt?(k*=$?1:-1,V+=k,L-=k):(j=0,V=L=(S+A)/2)}var N=g*De(V),I=g*Zt(V),G=f*De(H),tt=f*Zt(H);if(K>kt){var ot=g*De(L),nt=g*Zt(L),mt=f*De(F),qt=f*Zt(F),ut;if(Wkt?v>kt?(x=_o(mt,qt,N,I,g,v,$),y=_o(ot,nt,G,tt,g,v,$),l.moveTo(x.cx+x.x01,x.cy+x.y01),vkt)||!(T>kt)?l.lineTo(G,tt):E>kt?(x=_o(G,tt,ot,nt,f,-E,$),y=_o(N,I,mt,qt,f,-E,$),l.lineTo(x.cx+x.x01,x.cy+x.y01),Et?1:e>=t?0:NaN}i(sa,"default");function aa(t){return t}i(aa,"default");function Ic(){var t=aa,e=sa,r=null,o=lt(0),n=lt(Br),s=lt(0);function a(l){var c,h=(l=ai(l)).length,u,d,f=0,g=new Array(h),S=new Array(h),A=+o.apply(this,arguments),W=Math.min(Br,Math.max(-Br,n.apply(this,arguments)-A)),$,V=Math.min(Math.abs(W)/h,s.apply(this,arguments)),L=V*(W<0?-1:1),F;for(c=0;c0&&(f+=F);for(e!=null?g.sort(function(H,T){return e(S[H],S[T])}):r!=null&&g.sort(function(H,T){return r(l[H],l[T])}),c=0,d=f?(W-h*L)/f:0;c0?F*d:0)+L,S[u]={data:l[u],index:c,value:F,startAngle:A,endAngle:$,padAngle:V};return S}return i(a,"pie"),a.value=function(l){return arguments.length?(t=typeof l=="function"?l:lt(+l),a):t},a.sortValues=function(l){return arguments.length?(e=l,r=null,a):e},a.sort=function(l){return arguments.length?(r=l,e=null,a):r},a.startAngle=function(l){return arguments.length?(o=typeof l=="function"?l:lt(+l),a):o},a.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:lt(+l),a):n},a.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:lt(+l),a):s},a}i(Ic,"default");var To=class{static{i(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function eg(t){return new To(t,!0)}i(eg,"bumpX");function rg(t){return new To(t,!1)}i(rg,"bumpY");function Fr(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}i(Fr,"point");function li(t){this._context=t}i(li,"Basis");li.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:Fr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Rc(t){return new li(t)}i(Rc,"default");function Ht(){}i(Ht,"default");function Nc(t){this._context=t}i(Nc,"BasisClosed");Nc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function qc(t){return new Nc(t)}i(qc,"default");function zc(t){this._context=t}i(zc,"BasisOpen");zc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Pc(t){return new zc(t)}i(Pc,"default");function $c(t,e){this._basis=new li(t),this._beta=e}i($c,"Bundle");$c.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var o=t[0],n=e[0],s=t[r]-o,a=e[r]-n,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+c*s),this._beta*e[l]+(1-this._beta)*(n+c*a));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};var ig=i(function t(e){function r(o){return e===1?new li(o):new $c(o,e)}return i(r,"bundle"),r.beta=function(o){return t(+o)},r},"custom")(.85);function Mr(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}i(Mr,"point");function ko(t,e){this._context=t,this._k=(1-e)/6}i(ko,"Cardinal");ko.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var og=i(function t(e){function r(o){return new ko(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function So(t,e){this._context=t,this._k=(1-e)/6}i(So,"CardinalClosed");So.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ng=i(function t(e){function r(o){return new So(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function vo(t,e){this._context=t,this._k=(1-e)/6}i(vo,"CardinalOpen");vo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var sg=i(function t(e){function r(o){return new vo(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function hi(t,e,r){var o=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>kt){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,n=(n*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>kt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(o,n,s,a,t._x2,t._y2)}i(hi,"point");function Wc(t,e){this._context=t,this._alpha=e}i(Wc,"CatmullRom");Wc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ag=i(function t(e){function r(o){return e?new Wc(o,e):new ko(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Hc(t,e){this._context=t,this._alpha=e}i(Hc,"CatmullRomClosed");Hc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var lg=i(function t(e){function r(o){return e?new Hc(o,e):new So(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Uc(t,e){this._context=t,this._alpha=e}i(Uc,"CatmullRomOpen");Uc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var hg=i(function t(e){function r(o){return e?new Uc(o,e):new vo(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Yc(t){this._context=t}i(Yc,"LinearClosed");Yc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};function Gc(t){return new Yc(t)}i(Gc,"default");function Vc(t){return t<0?-1:1}i(Vc,"sign");function Xc(t,e,r){var o=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(o||n<0&&-0),a=(r-t._y1)/(n||o<0&&-0),l=(s*n+a*o)/(o+n);return(Vc(s)+Vc(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(l))||0}i(Xc,"slope3");function jc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}i(jc,"slope2");function la(t,e,r){var o=t._x0,n=t._y0,s=t._x1,a=t._y1,l=(s-o)/3;t._context.bezierCurveTo(o+l,n+l*e,s-l,a-l*r,s,a)}i(la,"point");function wo(t){this._context=t}i(wo,"MonotoneX");wo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:la(this,this._t0,jc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,la(this,jc(this,r=Xc(this,t,e)),r);break;default:la(this,this._t0,r=Xc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};function Zc(t){this._context=new Kc(t)}i(Zc,"MonotoneY");(Zc.prototype=Object.create(wo.prototype)).point=function(t,e){wo.prototype.point.call(this,e,t)};function Kc(t){this._context=t}i(Kc,"ReflectContext");Kc.prototype={moveTo:i(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:i(function(t,e,r,o,n,s){this._context.bezierCurveTo(e,t,o,r,s,n)},"bezierCurveTo")};function cg(t){return new wo(t)}i(cg,"monotoneX");function ug(t){return new Zc(t)}i(ug,"monotoneY");function Jc(t){this._context=t}i(Jc,"Natural");Jc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var o=Qc(t),n=Qc(e),s=0,a=1;a=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};function eu(t){return new Bo(t,.5)}i(eu,"default");function fg(t){return new Bo(t,0)}i(fg,"stepBefore");function mg(t){return new Bo(t,1)}i(mg,"stepAfter");var pg={value:i(()=>{},"value")};function iu(){for(var t=0,e=arguments.length,r={},o;t=0&&(o=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}i(dg,"parseTypenames");Fo.prototype=iu.prototype={constructor:Fo,on:i(function(t,e){var r=this._,o=dg(t+"",r),n,s=-1,a=o.length;if(arguments.length<2){for(;++s0)for(var r=new Array(n),o=0,n,s;o=0&&t._call.call(void 0,e),t=t._next;--Lr}i(au,"timerFlush");function ou(){Je=(Lo=mi.now())+Ao,Lr=ui=0;try{au()}finally{Lr=0,Cg(),Je=0}}i(ou,"wake");function yg(){var t=mi.now(),e=t-Lo;e>nu&&(Ao-=e,Lo=t)}i(yg,"poke");function Cg(){for(var t,e=Mo,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Mo=r);fi=t,ca(o)}i(Cg,"nap");function ca(t){if(!Lr){ui&&(ui=clearTimeout(ui));var e=t-Je;e>24?(t<1/0&&(ui=setTimeout(ou,t-mi.now()-Ao)),ci&&(ci=clearInterval(ci))):(ci||(Lo=mi.now(),ci=setInterval(yg,nu)),Lr=1,su(ou))}}i(ca,"sleep");function gi(t,e,r){var o=new pi;return e=e==null?0:+e,o.restart(n=>{o.stop(),t(n+e)},e,r),o}i(gi,"default");var _g=ha("start","end","cancel","interrupt"),bg=[],cu=0,lu=1,Oo=2,Do=3,hu=4,Io=5,xi=6;function ye(t,e,r,o,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;Tg(t,r,{name:e,index:o,group:n,on:_g,tween:bg,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:cu})}i(ye,"default");function yi(t,e){var r=xt(t,e);if(r.state>cu)throw new Error("too late; already scheduled");return r}i(yi,"init");function Ft(t,e){var r=xt(t,e);if(r.state>Do)throw new Error("too late; already running");return r}i(Ft,"set");function xt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}i(xt,"get");function Tg(t,e,r){var o=t.__transition,n;o[e]=r,r.timer=Eo(s,0,r.time);function s(h){r.state=lu,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}i(s,"schedule");function a(h){var u,d,f,g;if(r.state!==lu)return c();for(u in o)if(g=o[u],g.name===r.name){if(g.state===Do)return gi(a);g.state===hu?(g.state=xi,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete o[u]):+uOo&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}i($g,"start");function Wg(t,e,r){var o,n,s=$g(e)?yi:Ft;return function(){var a=s(this,t),l=a.on;l!==o&&(n=(o=l).copy()).on(e,r),a.on=n}}i(Wg,"onFunction");function ba(t,e){var r=this._id;return arguments.length<2?xt(this.node(),r).on.on(t):this.each(Wg(r,t,e))}i(ba,"default");function Hg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}i(Hg,"removeFunction");function Ta(){return this.on("end.remove",Hg(this._id))}i(Ta,"default");function ka(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Se(t));for(var o=this._groups,n=o.length,s=new Array(n),a=0;a




© 2015 - 2024 Weber Informatics LLC | Privacy Policy