github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/static/js/484-21d9ea41.chunk.min.js (about)

     1  /*! For license information please see 484-21d9ea41.chunk.min.js.LICENSE.txt */
     2  (self.webpackChunkgeekdoc=self.webpackChunkgeekdoc||[]).push([[484],{7967:function(t,e){"use strict";e.N=void 0;var i=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,n=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|&colon;)/gim,s=[".","/"];e.N=function(t){var e,l=(e=t||"",e.replace(r,(function(t,e){return String.fromCharCode(e)}))).replace(n,"").replace(o,"").trim();if(!l)return"about:blank";if(function(t){return s.indexOf(t[0])>-1}(l))return l;var c=l.match(a);if(!c)return l;var h=c[0];return i.test(h)?"about:blank":l}},7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",r="second",n="minute",o="hour",a="day",s="week",l="month",c="quarter",h="year",u="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},m=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},y={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),r=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(n,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,l),o=i-n<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:s,d:a,D:u,h:o,m:n,s:r,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",b={};b[_]=g;var C=function(t){return t instanceof w},x=function t(e,i,r){var n;if(!e)return _;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(n=o),i&&(b[o]=i,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;b[s]=e,n=s}return!r&&n&&(_=n),n||!r&&_},v=function(t,e){if(C(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new w(i)},k=y;k.l=x,k.i=C,k.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function g(t){this.$L=x(t.locale,null,!0),this.parse(t)}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(k.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(t,e){var i=v(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return v(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<v(t)},m.$g=function(t,e,i){return k.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,c=!!k.u(e)||e,f=k.p(t),d=function(t,e){var r=k.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return c?r:r.endOf(a)},p=function(t,e){return k.w(i.toDate()[t].apply(i.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},g=this.$W,m=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(f){case h:return c?d(1,0):d(31,11);case l:return c?d(1,m):d(0,m+1);case s:var b=this.$locale().weekStart||0,C=(g<b?g+7:g)-b;return d(c?y-C:y+(6-C),m);case a:case u:return p(_+"Hours",0);case o:return p(_+"Minutes",1);case n:return p(_+"Seconds",2);case r:return p(_+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var s,c=k.p(t),f="set"+(this.$u?"UTC":""),d=(s={},s[a]=f+"Date",s[u]=f+"Date",s[l]=f+"Month",s[h]=f+"FullYear",s[o]=f+"Hours",s[n]=f+"Minutes",s[r]=f+"Seconds",s[i]=f+"Milliseconds",s)[c],p=c===a?this.$D+(e-this.$W):e;if(c===l||c===h){var g=this.clone().set(u,1);g.$d[d](p),g.init(),this.$d=g.set(u,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[k.p(t)]()},m.add=function(i,c){var u,f=this;i=Number(i);var d=k.p(c),p=function(t){var e=v(f);return k.w(e.date(e.date()+Math.round(t*i)),f)};if(d===l)return this.set(l,this.$M+i);if(d===h)return this.set(h,this.$y+i);if(d===a)return p(1);if(d===s)return p(7);var g=(u={},u[n]=t,u[o]=e,u[r]=1e3,u)[d]||1,m=this.$d.getTime()+i*g;return k.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,c=i.months,h=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},u=function(t){return k.s(o%12||12,t,"0")},d=i.meridiem||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:k.s(s+1,2,"0"),MMM:h(i.monthsShort,s,c,3),MMMM:h(c,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:h(i.weekdaysMin,this.$W,l,2),ddd:h(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:k.s(o,2,"0"),h:u(1),hh:u(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:k.s(a,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:n};return r.replace(p,(function(t,e){return e||g[t]||n.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,u,f){var d,p=k.p(u),g=v(i),m=(g.utcOffset()-this.utcOffset())*t,y=this-g,_=k.m(this,g);return _=(d={},d[h]=_/12,d[l]=_,d[c]=_/3,d[s]=(y-m)/6048e5,d[a]=(y-m)/864e5,d[o]=y/e,d[n]=y/t,d[r]=y/1e3,d)[p]||y,f?_:k.a(_)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=x(t,e,!0);return r&&(i.$L=r),i},m.clone=function(){return k.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),T=w.prototype;return v.prototype=T,[["$ms",i],["$s",r],["$m",n],["$H",o],["$W",a],["$M",l],["$y",h],["$D",u]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,w,v),t.$i=!0),v},v.locale=x,v.isDayjs=C,v.unix=function(t){return v(1e3*t)},v.en=b[_],v.Ls=b,v.p={},v}()},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,i){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,i)}function i(t,r,n){return i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,i,r){var n=[null];n.push.apply(n,i);var o=new(Function.bind.apply(t,n));return r&&e(o,r.prototype),o},i.apply(null,arguments)}function r(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}var o=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,h=Object.freeze,u=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,g=d.construct;p||(p=function(t,e,i){return t.apply(e,i)}),h||(h=function(t){return t}),u||(u=function(t){return t}),g||(g=function(t,e){return i(t,r(e))});var m,y=M(Array.prototype.forEach),_=M(Array.prototype.pop),b=M(Array.prototype.push),C=M(String.prototype.toLowerCase),x=M(String.prototype.toString),v=M(String.prototype.match),k=M(String.prototype.replace),w=M(String.prototype.indexOf),T=M(String.prototype.trim),S=M(RegExp.prototype.test),B=(m=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return g(m,e)});function M(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return p(t,e,r)}}function F(t,e,i){i=i||C,a&&a(t,null);for(var r=e.length;r--;){var n=e[r];if("string"==typeof n){var o=i(n);o!==n&&(s(e)||(e[r]=o),n=o)}t[n]=!0}return t}function L(t){var e,i=f(null);for(e in t)!0===p(o,t,[e])&&(i[e]=t[e]);return i}function A(t,e){for(;null!==t;){var i=c(t,e);if(i){if(i.get)return M(i.get);if("function"==typeof i.value)return M(i.value)}t=l(t)}return function(t){return console.warn("fallback value for",t),null}}var E=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=h(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),$=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=h(["#text"]),Z=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),j=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),P=u(/<%[\w\W]*|[\w\W]*%>/gm),U=u(/\${[\w\W]*}/gm),H=u(/^data-[\-\w.\u00B7-\uFFFF]/),Y=u(/^aria-[\-\w]+$/),V=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=u(/^(?:\w+script|data):/i),X=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=u(/^html$/i),Q=function(){return"undefined"==typeof window?null:window};return function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(t){return e(t)};if(n.version="2.4.5",n.removed=[],!i||!i.document||9!==i.document.nodeType)return n.isSupported=!1,n;var o=i.document,a=i.document,s=i.DocumentFragment,l=i.HTMLTemplateElement,c=i.Node,u=i.Element,f=i.NodeFilter,d=i.NamedNodeMap,p=void 0===d?i.NamedNodeMap||i.MozNamedAttrMap:d,g=i.HTMLFormElement,m=i.DOMParser,M=i.trustedTypes,K=u.prototype,tt=A(K,"cloneNode"),et=A(K,"nextSibling"),it=A(K,"childNodes"),rt=A(K,"parentNode");if("function"==typeof l){var nt=a.createElement("template");nt.content&&nt.content.ownerDocument&&(a=nt.content.ownerDocument)}var ot=function(e,i){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,n="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(n)&&(r=i.currentScript.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(M,o),at=ot?ot.createHTML(""):"",st=a,lt=st.implementation,ct=st.createNodeIterator,ht=st.createDocumentFragment,ut=st.getElementsByTagName,ft=o.importNode,dt={};try{dt=L(a).documentMode?a.documentMode:{}}catch(t){}var pt={};n.isSupported="function"==typeof rt&&lt&&void 0!==lt.createHTMLDocument&&9!==dt;var gt,mt,yt=W,_t=P,bt=U,Ct=H,xt=Y,vt=G,kt=X,wt=V,Tt=null,St=F({},[].concat(r(E),r(O),r(N),r(D),r(z))),Bt=null,Mt=F({},[].concat(r(Z),r(j),r(R),r(q))),Ft=Object.seal(Object.create(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}})),Lt=null,At=null,Et=!0,Ot=!0,Nt=!1,It=!0,Dt=!1,$t=!1,zt=!1,Zt=!1,jt=!1,Rt=!1,qt=!1,Wt=!0,Pt=!1,Ut=!0,Ht=!1,Yt={},Vt=null,Gt=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xt=null,Jt=F({},["audio","video","img","source","image","track"]),Qt=null,Kt=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",re=ie,ne=!1,oe=null,ae=F({},[te,ee,ie],x),se=["application/xhtml+xml","text/html"],le=null,ce=a.createElement("form"),he=function(t){return t instanceof RegExp||t instanceof Function},ue=function(e){le&&le===e||(e&&"object"===t(e)||(e={}),e=L(e),gt=gt=-1===se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===gt?x:C,Tt="ALLOWED_TAGS"in e?F({},e.ALLOWED_TAGS,mt):St,Bt="ALLOWED_ATTR"in e?F({},e.ALLOWED_ATTR,mt):Mt,oe="ALLOWED_NAMESPACES"in e?F({},e.ALLOWED_NAMESPACES,x):ae,Qt="ADD_URI_SAFE_ATTR"in e?F(L(Kt),e.ADD_URI_SAFE_ATTR,mt):Kt,Xt="ADD_DATA_URI_TAGS"in e?F(L(Jt),e.ADD_DATA_URI_TAGS,mt):Jt,Vt="FORBID_CONTENTS"in e?F({},e.FORBID_CONTENTS,mt):Gt,Lt="FORBID_TAGS"in e?F({},e.FORBID_TAGS,mt):{},At="FORBID_ATTR"in e?F({},e.FORBID_ATTR,mt):{},Yt="USE_PROFILES"in e&&e.USE_PROFILES,Et=!1!==e.ALLOW_ARIA_ATTR,Ot=!1!==e.ALLOW_DATA_ATTR,Nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,It=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Dt=e.SAFE_FOR_TEMPLATES||!1,$t=e.WHOLE_DOCUMENT||!1,jt=e.RETURN_DOM||!1,Rt=e.RETURN_DOM_FRAGMENT||!1,qt=e.RETURN_TRUSTED_TYPE||!1,Zt=e.FORCE_BODY||!1,Wt=!1!==e.SANITIZE_DOM,Pt=e.SANITIZE_NAMED_PROPS||!1,Ut=!1!==e.KEEP_CONTENT,Ht=e.IN_PLACE||!1,wt=e.ALLOWED_URI_REGEXP||wt,re=e.NAMESPACE||ie,Ft=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&he(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ft.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&he(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ft.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ft.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Ot=!1),Rt&&(jt=!0),Yt&&(Tt=F({},r(z)),Bt=[],!0===Yt.html&&(F(Tt,E),F(Bt,Z)),!0===Yt.svg&&(F(Tt,O),F(Bt,j),F(Bt,q)),!0===Yt.svgFilters&&(F(Tt,N),F(Bt,j),F(Bt,q)),!0===Yt.mathMl&&(F(Tt,D),F(Bt,R),F(Bt,q))),e.ADD_TAGS&&(Tt===St&&(Tt=L(Tt)),F(Tt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Bt===Mt&&(Bt=L(Bt)),F(Bt,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&F(Qt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Vt===Gt&&(Vt=L(Vt)),F(Vt,e.FORBID_CONTENTS,mt)),Ut&&(Tt["#text"]=!0),$t&&F(Tt,["html","head","body"]),Tt.table&&(F(Tt,["tbody"]),delete Lt.tbody),h&&h(e),le=e)},fe=F({},["mi","mo","mn","ms","mtext"]),de=F({},["foreignobject","desc","title","annotation-xml"]),pe=F({},["title","style","font","a","script"]),ge=F({},O);F(ge,N),F(ge,I);var me=F({},D);F(me,$);var ye=function(t){b(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},_e=function(t,e){try{b(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Bt[t])if(jt||Rt)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){var e,i;if(Zt)t="<remove></remove>"+t;else{var r=v(t,/^[\r\n\t ]+/);i=r&&r[0]}"application/xhtml+xml"===gt&&re===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var n=ot?ot.createHTML(t):t;if(re===ie)try{e=(new m).parseFromString(n,gt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(re,"template",null);try{e.documentElement.innerHTML=ne?at:n}catch(t){}}var o=e.body||e.documentElement;return t&&i&&o.insertBefore(a.createTextNode(i),o.childNodes[0]||null),re===ie?ut.call(e,$t?"html":"body")[0]:$t?e.documentElement:o},Ce=function(t){return ct.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},xe=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ve=function(t,e,i){pt[t]&&y(pt[t],(function(t){t.call(n,e,i,le)}))},ke=function(t){var e,i;if(ve("beforeSanitizeElements",t,null),(i=t)instanceof g&&("string"!=typeof i.nodeName||"string"!=typeof i.textContent||"function"!=typeof i.removeChild||!(i.attributes instanceof p)||"function"!=typeof i.removeAttribute||"function"!=typeof i.setAttribute||"string"!=typeof i.namespaceURI||"function"!=typeof i.insertBefore||"function"!=typeof i.hasChildNodes))return ye(t),!0;if(S(/[\u0080-\uFFFF]/,t.nodeName))return ye(t),!0;var r=mt(t.nodeName);if(ve("uponSanitizeElement",t,{tagName:r,allowedTags:Tt}),t.hasChildNodes()&&!xe(t.firstElementChild)&&(!xe(t.content)||!xe(t.content.firstElementChild))&&S(/<[/\w]/g,t.innerHTML)&&S(/<[/\w]/g,t.textContent))return ye(t),!0;if("select"===r&&S(/<template/i,t.innerHTML))return ye(t),!0;if(!Tt[r]||Lt[r]){if(!Lt[r]&&Te(r)){if(Ft.tagNameCheck instanceof RegExp&&S(Ft.tagNameCheck,r))return!1;if(Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(r))return!1}if(Ut&&!Vt[r]){var o=rt(t)||t.parentNode,a=it(t)||t.childNodes;if(a&&o)for(var s=a.length-1;s>=0;--s)o.insertBefore(tt(a[s],!0),et(t))}return ye(t),!0}return t instanceof u&&!function(t){var e=rt(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});var i=C(t.tagName),r=C(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===ee?e.namespaceURI===ie?"svg"===i:e.namespaceURI===te?"svg"===i&&("annotation-xml"===r||fe[r]):Boolean(ge[i]):t.namespaceURI===te?e.namespaceURI===ie?"math"===i:e.namespaceURI===ee?"math"===i&&de[r]:Boolean(me[i]):t.namespaceURI===ie?!(e.namespaceURI===ee&&!de[r])&&!(e.namespaceURI===te&&!fe[r])&&!me[i]&&(pe[i]||!ge[i]):!("application/xhtml+xml"!==gt||!oe[t.namespaceURI]))}(t)?(ye(t),!0):"noscript"!==r&&"noembed"!==r||!S(/<\/no(script|embed)/i,t.innerHTML)?(Dt&&3===t.nodeType&&(e=t.textContent,e=k(e,yt," "),e=k(e,_t," "),e=k(e,bt," "),t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)),ve("afterSanitizeElements",t,null),!1):(ye(t),!0)},we=function(t,e,i){if(Wt&&("id"===e||"name"===e)&&(i in a||i in ce))return!1;if(Ot&&!At[e]&&S(Ct,e));else if(Et&&S(xt,e));else if(!Bt[e]||At[e]){if(!(Te(t)&&(Ft.tagNameCheck instanceof RegExp&&S(Ft.tagNameCheck,t)||Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(t))&&(Ft.attributeNameCheck instanceof RegExp&&S(Ft.attributeNameCheck,e)||Ft.attributeNameCheck instanceof Function&&Ft.attributeNameCheck(e))||"is"===e&&Ft.allowCustomizedBuiltInElements&&(Ft.tagNameCheck instanceof RegExp&&S(Ft.tagNameCheck,i)||Ft.tagNameCheck instanceof Function&&Ft.tagNameCheck(i))))return!1}else if(Qt[e]);else if(S(wt,k(i,kt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==w(i,"data:")||!Xt[t])if(Nt&&!S(vt,k(i,kt,"")));else if(i)return!1;return!0},Te=function(t){return t.indexOf("-")>0},Se=function(e){var i,r,o,a;ve("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Bt};for(a=s.length;a--;){var c=i=s[a],h=c.name,u=c.namespaceURI;if(r="value"===h?i.value:T(i.value),o=mt(h),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ve("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(_e(h,e),l.keepAttr))if(It||!S(/\/>/i,r)){Dt&&(r=k(r,yt," "),r=k(r,_t," "),r=k(r,bt," "));var f=mt(e.nodeName);if(we(f,o,r)){if(!Pt||"id"!==o&&"name"!==o||(_e(h,e),r="user-content-"+r),ot&&"object"===t(M)&&"function"==typeof M.getAttributeType)if(u);else switch(M.getAttributeType(f,o)){case"TrustedHTML":r=ot.createHTML(r);break;case"TrustedScriptURL":r=ot.createScriptURL(r)}try{u?e.setAttributeNS(u,h,r):e.setAttribute(h,r),_(n.removed)}catch(t){}}}else _e(h,e)}ve("afterSanitizeAttributes",e,null)}},Be=function t(e){var i,r=Ce(e);for(ve("beforeSanitizeShadowDOM",e,null);i=r.nextNode();)ve("uponSanitizeShadowNode",i,null),ke(i)||(i.content instanceof s&&t(i.content),Se(i));ve("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(e){var r,a,l,h,u,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ne=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw B("toString is not a function");if("string"!=typeof(e=e.toString()))throw B("dirty is not a string, aborting")}if(!n.isSupported){if("object"===t(i.toStaticHTML)||"function"==typeof i.toStaticHTML){if("string"==typeof e)return i.toStaticHTML(e);if(xe(e))return i.toStaticHTML(e.outerHTML)}return e}if(zt||ue(f),n.removed=[],"string"==typeof e&&(Ht=!1),Ht){if(e.nodeName){var d=mt(e.nodeName);if(!Tt[d]||Lt[d])throw B("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(a=(r=be("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!jt&&!Dt&&!$t&&-1===e.indexOf("<"))return ot&&qt?ot.createHTML(e):e;if(!(r=be(e)))return jt?null:qt?at:""}r&&Zt&&ye(r.firstChild);for(var p=Ce(Ht?e:r);l=p.nextNode();)3===l.nodeType&&l===h||ke(l)||(l.content instanceof s&&Be(l.content),Se(l),h=l);if(h=null,Ht)return e;if(jt){if(Rt)for(u=ht.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(Bt.shadowroot||Bt.shadowrootmod)&&(u=ft.call(o,u,!0)),u}var g=$t?r.outerHTML:r.innerHTML;return $t&&Tt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(J,r.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+g),Dt&&(g=k(g,yt," "),g=k(g,_t," "),g=k(g,bt," ")),ot&&qt?ot.createHTML(g):g},n.setConfig=function(t){ue(t),zt=!0},n.clearConfig=function(){le=null,zt=!1},n.isValidAttribute=function(t,e,i){le||ue({});var r=mt(t),n=mt(e);return we(r,n,i)},n.addHook=function(t,e){"function"==typeof e&&(pt[t]=pt[t]||[],b(pt[t],e))},n.removeHook=function(t){if(pt[t])return _(pt[t])},n.removeHooks=function(t){pt[t]&&(pt[t]=[])},n.removeAllHooks=function(){pt={}},n}()}()},5740:function(t,e,i){"use strict";function r(t,e){let i;if(void 0===e)for(const e of t)null!=e&&(i<e||void 0===i&&e>=e)&&(i=e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(i<n||void 0===i&&n>=n)&&(i=n)}return i}function n(t,e){let i;if(void 0===e)for(const e of t)null!=e&&(i>e||void 0===i&&e>=e)&&(i=e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(i>n||void 0===i&&n>=n)&&(i=n)}return i}function o(t){return t}i.d(e,{Nb1:function(){return Ka},LLu:function(){return _},F5q:function(){return y},$0Z:function(){return fs},Dts:function(){return ps},WQY:function(){return ms},qpX:function(){return _s},u93:function(){return bs},tFB:function(){return xs},YY7:function(){return ws},OvA:function(){return Ss},dCK:function(){return Ms},zgE:function(){return As},fGX:function(){return Os},$m7:function(){return Is},c_6:function(){return is},fxm:function(){return $s},FdL:function(){return Us},ak_:function(){return Hs},SxZ:function(){return Gs},eA_:function(){return Js},jsv:function(){return Ks},iJ:function(){return Qs},JHv:function(){return lr},jvg:function(){return os},Fp7:function(){return r},VV$:function(){return n},ve8:function(){return ls},BYU:function(){return Qr},PKp:function(){return sn},Xf:function(){return wa},Ys:function(){return Ta},td_:function(){return Sa},YPS:function(){return qi},rr1:function(){return wn},i$Z:function(){return io},WQD:function(){return vn},Z_i:function(){return Cn},F0B:function(){return Wn},NGh:function(){return Mn}});var a=1,s=2,l=3,c=4,h=1e-6;function u(t){return"translate("+t+",0)"}function f(t){return"translate(0,"+t+")"}function d(t){return e=>+t(e)}function p(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function g(){return!this.__axis}function m(t,e){var i=[],r=null,n=null,m=6,y=6,_=3,b="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,C=t===a||t===c?-1:1,x=t===c||t===s?"x":"y",v=t===a||t===l?u:f;function k(u){var f=null==r?e.ticks?e.ticks.apply(e,i):e.domain():r,k=null==n?e.tickFormat?e.tickFormat.apply(e,i):o:n,w=Math.max(m,0)+_,T=e.range(),S=+T[0]+b,B=+T[T.length-1]+b,M=(e.bandwidth?p:d)(e.copy(),b),F=u.selection?u.selection():u,L=F.selectAll(".domain").data([null]),A=F.selectAll(".tick").data(f,e).order(),E=A.exit(),O=A.enter().append("g").attr("class","tick"),N=A.select("line"),I=A.select("text");L=L.merge(L.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(O),N=N.merge(O.append("line").attr("stroke","currentColor").attr(x+"2",C*m)),I=I.merge(O.append("text").attr("fill","currentColor").attr(x,C*w).attr("dy",t===a?"0em":t===l?"0.71em":"0.32em")),u!==F&&(L=L.transition(u),A=A.transition(u),N=N.transition(u),I=I.transition(u),E=E.transition(u).attr("opacity",h).attr("transform",(function(t){return isFinite(t=M(t))?v(t+b):this.getAttribute("transform")})),O.attr("opacity",h).attr("transform",(function(t){var e=this.parentNode.__axis;return v((e&&isFinite(e=e(t))?e:M(t))+b)}))),E.remove(),L.attr("d",t===c||t===s?y?"M"+C*y+","+S+"H"+b+"V"+B+"H"+C*y:"M"+b+","+S+"V"+B:y?"M"+S+","+C*y+"V"+b+"H"+B+"V"+C*y:"M"+S+","+b+"H"+B),A.attr("opacity",1).attr("transform",(function(t){return v(M(t)+b)})),N.attr(x+"2",C*m),I.attr(x,C*w).text(k),F.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===s?"start":t===c?"end":"middle"),F.each((function(){this.__axis=M}))}return k.scale=function(t){return arguments.length?(e=t,k):e},k.ticks=function(){return i=Array.from(arguments),k},k.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),k):i.slice()},k.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),k):r&&r.slice()},k.tickFormat=function(t){return arguments.length?(n=t,k):n},k.tickSize=function(t){return arguments.length?(m=y=+t,k):m},k.tickSizeInner=function(t){return arguments.length?(m=+t,k):m},k.tickSizeOuter=function(t){return arguments.length?(y=+t,k):y},k.tickPadding=function(t){return arguments.length?(_=+t,k):_},k.offset=function(t){return arguments.length?(b=+t,k):b},k}function y(t){return m(a,t)}function _(t){return m(l,t)}function b(){}function C(t){return null==t?b:function(){return this.querySelector(t)}}function x(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function v(){return[]}function k(t){return null==t?v:function(){return this.querySelectorAll(t)}}function w(t){return function(){return this.matches(t)}}function T(t){return function(e){return e.matches(t)}}var S=Array.prototype.find;function B(){return this.firstElementChild}var M=Array.prototype.filter;function F(){return Array.from(this.children)}function L(t){return new Array(t.length)}function A(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function E(t,e,i,r,n,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new A(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function O(t,e,i,r,n,o,a){var s,l,c,h=new Map,u=e.length,f=o.length,d=new Array(u);for(s=0;s<u;++s)(l=e[s])&&(d[s]=c=a.call(l,l.__data__,s,e)+"",h.has(c)?n[s]=l:h.set(c,l));for(s=0;s<f;++s)c=a.call(t,o[s],s,o)+"",(l=h.get(c))?(r[s]=l,l.__data__=o[s],h.delete(c)):i[s]=new A(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&h.get(d[s])===l&&(n[s]=l)}function N(t){return t.__data__}function I(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function D(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}A.prototype={constructor:A,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var $="http://www.w3.org/1999/xhtml",z={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Z(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),z.hasOwnProperty(e)?{space:z[e],local:t}:t}function j(t){return function(){this.removeAttribute(t)}}function R(t){return function(){this.removeAttributeNS(t.space,t.local)}}function q(t,e){return function(){this.setAttribute(t,e)}}function W(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function P(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function H(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Y(t){return function(){this.style.removeProperty(t)}}function V(t,e,i){return function(){this.style.setProperty(t,e,i)}}function G(t,e,i){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function X(t,e){return t.style.getPropertyValue(e)||H(t).getComputedStyle(t,null).getPropertyValue(e)}function J(t){return function(){delete this[t]}}function Q(t,e){return function(){this[t]=e}}function K(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function tt(t){return t.trim().split(/^|\s+/)}function et(t){return t.classList||new it(t)}function it(t){this._node=t,this._names=tt(t.getAttribute("class")||"")}function rt(t,e){for(var i=et(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function nt(t,e){for(var i=et(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function ot(t){return function(){rt(this,t)}}function at(t){return function(){nt(this,t)}}function st(t,e){return function(){(e.apply(this,arguments)?rt:nt)(this,t)}}function lt(){this.textContent=""}function ct(t){return function(){this.textContent=t}}function ht(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ut(){this.innerHTML=""}function ft(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===$&&e.documentElement.namespaceURI===$?e.createElement(t):e.createElementNS(i,t)}}function yt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _t(t){var e=Z(t);return(e.local?yt:mt)(e)}function bt(){return null}function Ct(){var t=this.parentNode;t&&t.removeChild(this)}function xt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kt(t){return function(){var e=this.__on;if(e){for(var i,r=0,n=-1,o=e.length;r<o;++r)i=e[r],t.type&&i.type!==t.type||i.name!==t.name?e[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?e.length=n:delete this.__on}}}function wt(t,e,i){return function(){var r,n=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(n)for(var a=0,s=n.length;a<s;++a)if((r=n[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=i),void(r.value=e);this.addEventListener(t.type,o,i),r={type:t.type,name:t.name,value:e,listener:o,options:i},n?n.push(r):this.__on=[r]}}function Tt(t,e,i){var r=H(t),n=r.CustomEvent;"function"==typeof n?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function St(t,e){return function(){return Tt(this,t,e)}}function Bt(t,e){return function(){return Tt(this,t,e.apply(this,arguments))}}it.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mt=[null];function Ft(t,e){this._groups=t,this._parents=e}function Lt(){return new Ft([[document.documentElement]],Mt)}Ft.prototype=Lt.prototype={constructor:Ft,select:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o,a,s=e[n],l=s.length,c=r[n]=new Array(l),h=0;h<l;++h)(o=s[h])&&(a=t.call(o,o.__data__,h,s))&&("__data__"in o&&(a.__data__=o.__data__),c[h]=a);return new Ft(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return x(t.apply(this,arguments))}}(t):k(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),n.push(a));return new Ft(r,n)},selectChild:function(t){return this.select(null==t?B:function(t){return function(){return S.call(this.children,t)}}("function"==typeof t?t:T(t)))},selectChildren:function(t){return this.selectAll(null==t?F:function(t){return function(){return M.call(this.children,t)}}("function"==typeof t?t:T(t)))},filter:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o,a=e[n],s=a.length,l=r[n]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Ft(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,N);var i,r=e?O:E,n=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),h=0;h<a;++h){var u=n[h],f=o[h],d=f.length,p=I(t.call(u,u&&u.__data__,h,n)),g=p.length,m=l[h]=new Array(g),y=s[h]=new Array(g);r(u,f,m,y,c[h]=new Array(d),p,e);for(var _,b,C=0,x=0;C<g;++C)if(_=m[C]){for(C>=x&&(x=C+1);!(b=y[x])&&++x<g;);_._next=b||null}}return(s=new Ft(s,n))._enter=l,s._exit=c,s},enter:function(){return new Ft(this._enter||this._groups.map(L),this._parents)},exit:function(){return new Ft(this._exit||this._groups.map(L),this._parents)},join:function(t,e,i){var r=this.enter(),n=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(n=e(n))&&(n=n.selection()),null==i?o.remove():i(o),r&&n?r.merge(n).order():n},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,a=Math.min(n,o),s=new Array(n),l=0;l<a;++l)for(var c,h=i[l],u=r[l],f=h.length,d=s[l]=new Array(f),p=0;p<f;++p)(c=h[p]||u[p])&&(d[p]=c);for(;l<n;++l)s[l]=i[l];return new Ft(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r,n=t[e],o=n.length-1,a=n[o];--o>=0;)(r=n[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=D);for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var a,s=i[o],l=s.length,c=n[o]=new Array(l),h=0;h<l;++h)(a=s[h])&&(c[h]=a);c.sort(e)}return new Ft(n,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var a=r[n];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n,o=e[i],a=0,s=o.length;a<s;++a)(n=o[a])&&t.call(n,n.__data__,a,o);return this},attr:function(t,e){var i=Z(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((null==e?i.local?R:j:"function"==typeof e?i.local?U:P:i.local?W:q)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((null==e?Y:"function"==typeof e?G:V)(t,e,null==i?"":i)):X(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?J:"function"==typeof e?K:Q)(t,e)):this.node()[t]},classed:function(t,e){var i=tt(t+"");if(arguments.length<2){for(var r=et(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each(("function"==typeof e?st:e?ot:at)(i,e))},text:function(t){return arguments.length?this.each(null==t?lt:("function"==typeof t?ht:ct)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?dt:ft)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(gt)},append:function(t){var e="function"==typeof t?t:_t(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var i="function"==typeof t?t:_t(t),r=null==e?bt:"function"==typeof e?e:C(e);return this.select((function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ct)},clone:function(t){return this.select(t?vt:xt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var r,n,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?wt:kt,r=0;r<a;++r)this.each(s(o[r],e,i));return this}var s=this.node().__on;if(s)for(var l,c=0,h=s.length;c<h;++c)for(r=0,l=s[c];r<a;++r)if((n=o[r]).type===l.type&&n.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bt:St)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r,n=t[e],o=0,a=n.length;o<a;++o)(r=n[o])&&(yield r)}};var At=Lt,Et={value:()=>{}};function Ot(){for(var t,e=0,i=arguments.length,r={};e<i;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Nt(r)}function Nt(t){this._=t}function It(t,e){for(var i,r=0,n=t.length;r<n;++r)if((i=t[r]).name===e)return i.value}function Dt(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Et,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=i&&t.push({name:e,value:i}),t}Nt.prototype=Ot.prototype={constructor:Nt,on:function(t,e){var i,r,n=this._,o=(r=n,(t+"").trim().split(/^|\s+/).map((function(t){var e="",i=t.indexOf(".");if(i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(i=(t=o[a]).type)n[i]=Dt(n[i],t.name,e);else if(null==e)for(i in n)n[i]=Dt(n[i],t.name,null);return this}for(;++a<s;)if((i=(t=o[a]).type)&&(i=It(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Nt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,r,n=new Array(i),o=0;o<i;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(r=this._[t]).length;o<i;++o)r[o].value.apply(e,n)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};var $t,zt,Zt=Ot,jt=0,Rt=0,qt=0,Wt=1e3,Pt=0,Ut=0,Ht=0,Yt="object"==typeof performance&&performance.now?performance:Date,Vt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Gt(){return Ut||(Vt(Xt),Ut=Yt.now()+Ht)}function Xt(){Ut=0}function Jt(){this._call=this._time=this._next=null}function Qt(t,e,i){var r=new Jt;return r.restart(t,e,i),r}function Kt(){Ut=(Pt=Yt.now())+Ht,jt=Rt=0;try{!function(){Gt(),++jt;for(var t,e=$t;e;)(t=Ut-e._time)>=0&&e._call.call(void 0,t),e=e._next;--jt}()}finally{jt=0,function(){for(var t,e,i=$t,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:$t=e);zt=t,ee(r)}(),Ut=0}}function te(){var t=Yt.now(),e=t-Pt;e>Wt&&(Ht-=e,Pt=t)}function ee(t){jt||(Rt&&(Rt=clearTimeout(Rt)),t-Ut>24?(t<1/0&&(Rt=setTimeout(Kt,t-Yt.now()-Ht)),qt&&(qt=clearInterval(qt))):(qt||(Pt=Yt.now(),qt=setInterval(te,Wt)),jt=1,Vt(Kt)))}function ie(t,e,i){var r=new Jt;return e=null==e?0:+e,r.restart((i=>{r.stop(),t(i+e)}),e,i),r}Jt.prototype=Qt.prototype={constructor:Jt,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?Gt():+i)+(null==e?0:+e),this._next||zt===this||(zt?zt._next=this:$t=this,zt=this),this._call=t,this._time=i,ee()},stop:function(){this._call&&(this._call=null,this._time=1/0,ee())}};var re=Zt("start","end","cancel","interrupt"),ne=[],oe=0,ae=2,se=3,le=5,ce=6;function he(t,e,i,r,n,o){var a=t.__transition;if(a){if(i in a)return}else t.__transition={};!function(t,e,i){var r,n=t.__transition;function o(l){var c,h,u,f;if(1!==i.state)return s();for(c in n)if((f=n[c]).name===i.name){if(f.state===se)return ie(o);4===f.state?(f.state=ce,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete n[c]):+c<e&&(f.state=ce,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete n[c])}if(ie((function(){i.state===se&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(l))})),i.state=ae,i.on.call("start",t,t.__data__,i.index,i.group),i.state===ae){for(i.state=se,r=new Array(u=i.tween.length),c=0,h=-1;c<u;++c)(f=i.tween[c].value.call(t,t.__data__,i.index,i.group))&&(r[++h]=f);r.length=h+1}}function a(e){for(var n=e<i.duration?i.ease.call(null,e/i.duration):(i.timer.restart(s),i.state=le,1),o=-1,a=r.length;++o<a;)r[o].call(t,n);i.state===le&&(i.on.call("end",t,t.__data__,i.index,i.group),s())}function s(){for(var r in i.state=ce,i.timer.stop(),delete n[e],n)return;delete t.__transition}n[e]=i,i.timer=Qt((function(t){i.state=1,i.timer.restart(o,i.delay,i.time),i.delay<=t&&o(t-i.delay)}),0,i.time)}(t,i,{name:e,index:r,group:n,on:re,tween:ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:oe})}function ue(t,e){var i=de(t,e);if(i.state>oe)throw new Error("too late; already scheduled");return i}function fe(t,e){var i=de(t,e);if(i.state>se)throw new Error("too late; already running");return i}function de(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function pe(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var ge,me=180/Math.PI,ye={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _e(t,e,i,r,n,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,l/=s),t*r<e*i&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*me,skewX:Math.atan(l)*me,scaleX:a,scaleY:s}}function be(t,e,i,r){function n(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,r,n,o,a,s){if(t!==n||r!==o){var l=a.push("translate(",null,e,null,i);s.push({i:l-4,x:pe(t,n)},{i:l-2,x:pe(r,o)})}else(n||o)&&a.push("translate("+n+e+o+i)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,i,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:i.push(n(i)+"rotate(",null,r)-2,x:pe(t,e)})):e&&i.push(n(i)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,i,o){t!==e?o.push({i:i.push(n(i)+"skewX(",null,r)-2,x:pe(t,e)}):e&&i.push(n(i)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,i,r,o,a){if(t!==i||e!==r){var s=o.push(n(o)+"scale(",null,",",null,")");a.push({i:s-4,x:pe(t,i)},{i:s-2,x:pe(e,r)})}else 1===i&&1===r||o.push(n(o)+"scale("+i+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,i=-1,r=l.length;++i<r;)s[(e=l[i]).i]=e.x(t);return s.join("")}}}var Ce=be((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ye:_e(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),xe=be((function(t){return null==t?ye:(ge||(ge=document.createElementNS("http://www.w3.org/2000/svg","g")),ge.setAttribute("transform",t),(t=ge.transform.baseVal.consolidate())?_e((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ye)}),", ",")",")");function ve(t,e){var i,r;return function(){var n=fe(this,t),o=n.tween;if(o!==i)for(var a=0,s=(r=i=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}n.tween=r}}function ke(t,e,i){var r,n;if("function"!=typeof i)throw new Error;return function(){var o=fe(this,t),a=o.tween;if(a!==r){n=(r=a).slice();for(var s={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=s;break}l===c&&n.push(s)}o.tween=n}}function we(t,e,i){var r=t._id;return t.each((function(){var t=fe(this,r);(t.value||(t.value={}))[e]=i.apply(this,arguments)})),function(t){return de(t,r).value[e]}}function Te(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Se(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Be(){}var Me=.7,Fe=1/Me,Le="\\s*([+-]?\\d+)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Ne=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),Ie=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),De=new RegExp(`^rgba\\(${Le},${Le},${Le},${Ae}\\)$`),$e=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Ae}\\)$`),ze=new RegExp(`^hsl\\(${Ae},${Ee},${Ee}\\)$`),Ze=new RegExp(`^hsla\\(${Ae},${Ee},${Ee},${Ae}\\)$`),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Re(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function We(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Oe.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?Pe(e):3===i?new Ve(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?Ue(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?Ue(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ne.exec(t))?new Ve(e[1],e[2],e[3],1):(e=Ie.exec(t))?new Ve(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=De.exec(t))?Ue(e[1],e[2],e[3],e[4]):(e=$e.exec(t))?Ue(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ze.exec(t))?ti(e[1],e[2]/100,e[3]/100,1):(e=Ze.exec(t))?ti(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?Pe(je[t]):"transparent"===t?new Ve(NaN,NaN,NaN,0):null}function Pe(t){return new Ve(t>>16&255,t>>8&255,255&t,1)}function Ue(t,e,i,r){return r<=0&&(t=e=i=NaN),new Ve(t,e,i,r)}function He(t){return t instanceof Be||(t=We(t)),t?new Ve((t=t.rgb()).r,t.g,t.b,t.opacity):new Ve}function Ye(t,e,i,r){return 1===arguments.length?He(t):new Ve(t,e,i,null==r?1:r)}function Ve(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}function Ge(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}`}function Xe(){const t=Je(this.opacity);return`${1===t?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===t?")":`, ${t})`}`}function Je(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ke(t){return((t=Qe(t))<16?"0":"")+t.toString(16)}function ti(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ii(t,e,i,r)}function ei(t){if(t instanceof ii)return new ii(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=We(t)),!t)return new ii;if(t instanceof ii)return t;var e=(t=t.rgb()).r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),a=NaN,s=o-n,l=(o+n)/2;return s?(a=e===o?(i-r)/s+6*(i<r):i===o?(r-e)/s+2:(e-i)/s+4,s/=l<.5?o+n:2-o-n,a*=60):s=l>0&&l<1?0:a,new ii(a,s,l,t.opacity)}function ii(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}function ri(t){return(t=(t||0)%360)<0?t+360:t}function ni(t){return Math.max(0,Math.min(1,t||0))}function oi(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function ai(t,e,i,r,n){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*r+a*n)/6}Te(Be,We,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Re,formatHex:Re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ei(this).formatHsl()},formatRgb:qe,toString:qe}),Te(Ve,Ye,Se(Be,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new Ve(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Me:Math.pow(Me,t),new Ve(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ve(Qe(this.r),Qe(this.g),Qe(this.b),Je(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:Ge,formatHex:Ge,formatHex8:function(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}${Ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xe,toString:Xe})),Te(ii,(function(t,e,i,r){return 1===arguments.length?ei(t):new ii(t,e,i,null==r?1:r)}),Se(Be,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new ii(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Me:Math.pow(Me,t),new ii(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new Ve(oi(t>=240?t-240:t+120,n,r),oi(t,n,r),oi(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new ii(ri(this.h),ni(this.s),ni(this.l),Je(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Je(this.opacity);return`${1===t?"hsl(":"hsla("}${ri(this.h)}, ${100*ni(this.s)}%, ${100*ni(this.l)}%${1===t?")":`, ${t})`}`}}));var si=t=>()=>t;function li(t,e){return function(i){return t+i*e}}function ci(t,e){var i=e-t;return i?li(t,i):si(isNaN(t)?e:t)}var hi=function t(e){var i=function(t){return 1==(t=+t)?ci:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}(e,i,t):si(isNaN(e)?i:e)}}(e);function r(t,e){var r=i((t=Ye(t)).r,(e=Ye(e)).r),n=i(t.g,e.g),o=i(t.b,e.b),a=ci(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=n(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ui(t){return function(e){var i,r,n=e.length,o=new Array(n),a=new Array(n),s=new Array(n);for(i=0;i<n;++i)r=Ye(e[i]),o[i]=r.r||0,a[i]=r.g||0,s[i]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}ui((function(t){var e=t.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),n=t[r],o=t[r+1],a=r>0?t[r-1]:2*n-o,s=r<e-1?t[r+2]:2*o-n;return ai((i-r/e)*e,a,n,o,s)}})),ui((function(t){var e=t.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*e),n=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ai((i-r/e)*e,n,o,a,s)}}));var fi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,di=new RegExp(fi.source,"g");function pi(t,e){var i,r,n,o=fi.lastIndex=di.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(i=fi.exec(t))&&(r=di.exec(e));)(n=r.index)>o&&(n=e.slice(o,n),s[a]?s[a]+=n:s[++a]=n),(i=i[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:pe(i,r)})),o=di.lastIndex;return o<e.length&&(n=e.slice(o),s[a]?s[a]+=n:s[++a]=n),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var i,r=0;r<e;++r)s[(i=l[r]).i]=i.x(t);return s.join("")})}function gi(t,e){var i;return("number"==typeof e?pe:e instanceof We?hi:(i=We(e))?(e=i,hi):pi)(t,e)}function mi(t){return function(){this.removeAttribute(t)}}function yi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _i(t,e,i){var r,n,o=i+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?n:n=e(r=a,i)}}function bi(t,e,i){var r,n,o=i+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?n:n=e(r=a,i)}}function Ci(t,e,i){var r,n,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===r&&s===n?o:(n=s,o=e(r=a,l));this.removeAttribute(t)}}function xi(t,e,i){var r,n,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===r&&s===n?o:(n=s,o=e(r=a,l));this.removeAttributeNS(t.space,t.local)}}function vi(t,e){var i,r;function n(){var n=e.apply(this,arguments);return n!==r&&(i=(r=n)&&function(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}(t,n)),i}return n._value=e,n}function ki(t,e){var i,r;function n(){var n=e.apply(this,arguments);return n!==r&&(i=(r=n)&&function(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}(t,n)),i}return n._value=e,n}function wi(t,e){return function(){ue(this,t).delay=+e.apply(this,arguments)}}function Ti(t,e){return e=+e,function(){ue(this,t).delay=e}}function Si(t,e){return function(){fe(this,t).duration=+e.apply(this,arguments)}}function Bi(t,e){return e=+e,function(){fe(this,t).duration=e}}var Mi=At.prototype.constructor;function Fi(t){return function(){this.style.removeProperty(t)}}var Li=0;function Ai(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Ei(){return++Li}var Oi=At.prototype;Ai.prototype=function(t){return At().transition(t)}.prototype={constructor:Ai,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=C(t));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var s,l,c=r[a],h=c.length,u=o[a]=new Array(h),f=0;f<h;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),u[f]=l,he(u[f],e,i,f,u,de(s,i)));return new Ai(o,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=k(t));for(var r=this._groups,n=r.length,o=[],a=[],s=0;s<n;++s)for(var l,c=r[s],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var f,d=t.call(l,l.__data__,u,c),p=de(l,i),g=0,m=d.length;g<m;++g)(f=d[g])&&he(f,e,i,g,d,p);o.push(d),a.push(l)}return new Ai(o,a,e,i)},selectChild:Oi.selectChild,selectChildren:Oi.selectChildren,filter:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o,a=e[n],s=a.length,l=r[n]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Ai(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),a=new Array(r),s=0;s<o;++s)for(var l,c=e[s],h=i[s],u=c.length,f=a[s]=new Array(u),d=0;d<u;++d)(l=c[d]||h[d])&&(f[d]=l);for(;s<r;++s)a[s]=e[s];return new Ai(a,this._parents,this._name,this._id)},selection:function(){return new Mi(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=Ei(),r=this._groups,n=r.length,o=0;o<n;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var h=de(a,e);he(a,t,i,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ai(r,this._parents,t,i)},call:Oi.call,nodes:Oi.nodes,node:Oi.node,size:Oi.size,empty:Oi.empty,each:Oi.each,on:function(t,e){var i=this._id;return arguments.length<2?de(this.node(),i).on.on(t):this.each(function(t,e,i){var r,n,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ue:fe;return function(){var a=o(this,t),s=a.on;s!==r&&(n=(r=s).copy()).on(e,i),a.on=n}}(i,t,e))},attr:function(t,e){var i=Z(t),r="transform"===i?xe:gi;return this.attrTween(t,"function"==typeof e?(i.local?xi:Ci)(i,r,we(this,"attr."+t,e)):null==e?(i.local?yi:mi)(i):(i.local?bi:_i)(i,r,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var r=Z(t);return this.tween(i,(r.local?vi:ki)(r,e))},style:function(t,e,i){var r="transform"==(t+="")?Ce:gi;return null==e?this.styleTween(t,function(t,e){var i,r,n;return function(){var o=X(this,t),a=(this.style.removeProperty(t),X(this,t));return o===a?null:o===i&&a===r?n:n=e(i=o,r=a)}}(t,r)).on("end.style."+t,Fi(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var r,n,o;return function(){var a=X(this,t),s=i(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=X(this,t)),a===l?null:a===r&&l===n?o:(n=l,o=e(r=a,s))}}(t,r,we(this,"style."+t,e))).each(function(t,e){var i,r,n,o,a="style."+e,s="end."+a;return function(){var l=fe(this,t),c=l.on,h=null==l.value[a]?o||(o=Fi(e)):void 0;c===i&&n===h||(r=(i=c).copy()).on(s,n=h),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,i){var r,n,o=i+"";return function(){var a=X(this,t);return a===o?null:a===r?n:n=e(r=a,i)}}(t,r,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,i){var r,n;function o(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&function(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}(t,o,i)),r}return o._value=e,o}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(we(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function r(){var r=t.apply(this,arguments);return r!==i&&(e=(i=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r,n=de(this.node(),i).tween,o=0,a=n.length;o<a;++o)if((r=n[o]).name===t)return r.value;return null}return this.each((null==e?ve:ke)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?wi:Ti)(e,t)):de(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Si:Bi)(e,t)):de(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){fe(this,t).ease=e}}(e,t)):de(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var i=e.apply(this,arguments);if("function"!=typeof i)throw new Error;fe(this,t).ease=i}}(this._id,t))},end:function(){var t,e,i=this,r=i._id,n=i.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--n&&o()}};i.each((function(){var i=fe(this,r),n=i.on;n!==t&&((e=(t=n).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),i.on=e})),0===n&&o()}))},[Symbol.iterator]:Oi[Symbol.iterator]};var Ni={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ii(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}At.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var i,r,n,o=t.__transition,a=!0;if(o){for(n in e=null==e?null:e+"",o)(i=o[n]).name===e?(r=i.state>ae&&i.state<le,i.state=ce,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete o[n]):a=!1;a&&delete t.__transition}}(this,t)}))},At.prototype.transition=function(t){var e,i;t instanceof Ai?(e=t._id,t=t._name):(e=Ei(),(i=Ni).time=Gt(),t=null==t?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&he(a,t,e,c,s,i||Ii(a,e));return new Ai(r,this._parents,t,e)};const{abs:Di,max:$i,min:zi}=Math;function Zi(t){return{type:t}}function ji(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Ri(t){return(e,i)=>function(t,e){return fetch(t,e).then(ji)}(e,i).then((e=>(new DOMParser).parseFromString(e,t)))}["w","e"].map(Zi),["n","s"].map(Zi),["n","w","e","s","nw","ne","sw","se"].map(Zi),Ri("application/xml"),Ri("text/html");var qi=Ri("image/svg+xml");const Wi=Math.PI/180,Pi=180/Math.PI,Ui=.96422,Hi=1,Yi=.82521,Vi=4/29,Gi=6/29,Xi=3*Gi*Gi,Ji=Gi*Gi*Gi;function Qi(t){if(t instanceof Ki)return new Ki(t.l,t.a,t.b,t.opacity);if(t instanceof or)return ar(t);t instanceof Ve||(t=He(t));var e,i,r=rr(t.r),n=rr(t.g),o=rr(t.b),a=tr((.2225045*r+.7168786*n+.0606169*o)/Hi);return r===n&&n===o?e=i=a:(e=tr((.4360747*r+.3850649*n+.1430804*o)/Ui),i=tr((.0139322*r+.0971045*n+.7141733*o)/Yi)),new Ki(116*a-16,500*(e-a),200*(a-i),t.opacity)}function Ki(t,e,i,r){this.l=+t,this.a=+e,this.b=+i,this.opacity=+r}function tr(t){return t>Ji?Math.pow(t,1/3):t/Xi+Vi}function er(t){return t>Gi?t*t*t:Xi*(t-Vi)}function ir(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nr(t,e,i,r){return 1===arguments.length?function(t){if(t instanceof or)return new or(t.h,t.c,t.l,t.opacity);if(t instanceof Ki||(t=Qi(t)),0===t.a&&0===t.b)return new or(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Pi;return new or(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new or(t,e,i,null==r?1:r)}function or(t,e,i,r){this.h=+t,this.c=+e,this.l=+i,this.opacity=+r}function ar(t){if(isNaN(t.h))return new Ki(t.l,0,0,t.opacity);var e=t.h*Wi;return new Ki(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function sr(t){return function(e,i){var r=t((e=nr(e)).h,(i=nr(i)).h),n=ci(e.c,i.c),o=ci(e.l,i.l),a=ci(e.opacity,i.opacity);return function(t){return e.h=r(t),e.c=n(t),e.l=o(t),e.opacity=a(t),e+""}}}Te(Ki,(function(t,e,i,r){return 1===arguments.length?Qi(t):new Ki(t,e,i,null==r?1:r)}),Se(Be,{brighter(t){return new Ki(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Ki(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new Ve(ir(3.1338561*(e=Ui*er(e))-1.6168667*(t=Hi*er(t))-.4906146*(i=Yi*er(i))),ir(-.9787684*e+1.9161415*t+.033454*i),ir(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),Te(or,nr,Se(Be,{brighter(t){return new or(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new or(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ar(this).rgb()}}));var lr=sr((function(t,e){var i=e-t;return i?li(t,i>180||i<-180?i-360*Math.round(i/360):i):si(isNaN(t)?e:t)}));sr(ci);const cr=Math.sqrt(50),hr=Math.sqrt(10),ur=Math.sqrt(2);function fr(t,e,i){const r=(e-t)/Math.max(0,i),n=Math.floor(Math.log10(r)),o=r/Math.pow(10,n),a=o>=cr?10:o>=hr?5:o>=ur?2:1;let s,l,c;return n<0?(c=Math.pow(10,-n)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,n)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=i&&i<2?fr(t,e,2*i):[s,l,c]}function dr(t,e,i){return fr(t=+t,e=+e,i=+i)[2]}function pr(t,e,i){i=+i;const r=(e=+e)<(t=+t),n=r?dr(e,t,i):dr(t,e,i);return(r?-1:1)*(n<0?1/-n:n)}function gr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function mr(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yr(t){let e,i,r;function n(t,r,n=0,o=t.length){if(n<o){if(0!==e(r,r))return o;do{const e=n+o>>>1;i(t[e],r)<0?n=e+1:o=e}while(n<o)}return n}return 2!==t.length?(e=gr,i=(e,i)=>gr(t(e),i),r=(e,i)=>t(e)-i):(e=t===gr||t===mr?t:_r,i=t,r=t),{left:n,center:function(t,e,i=0,o=t.length){const a=n(t,e,i,o-1);return a>i&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,n=0,o=t.length){if(n<o){if(0!==e(r,r))return o;do{const e=n+o>>>1;i(t[e],r)<=0?n=e+1:o=e}while(n<o)}return n}}}function _r(){return 0}const br=yr(gr),Cr=br.right;br.left,yr((function(t){return null===t?NaN:+t})).center;var xr=Cr;function vr(t,e){var i,r=e?e.length:0,n=t?Math.min(r,t.length):0,o=new Array(n),a=new Array(r);for(i=0;i<n;++i)o[i]=Sr(t[i],e[i]);for(;i<r;++i)a[i]=e[i];return function(t){for(i=0;i<n;++i)a[i]=o[i](t);return a}}function kr(t,e){var i=new Date;return t=+t,e=+e,function(r){return i.setTime(t*(1-r)+e*r),i}}function wr(t,e){var i,r={},n={};for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?r[i]=Sr(t[i],e[i]):n[i]=e[i];return function(t){for(i in r)n[i]=r[i](t);return n}}function Tr(t,e){e||(e=[]);var i,r=t?Math.min(e.length,t.length):0,n=e.slice();return function(o){for(i=0;i<r;++i)n[i]=t[i]*(1-o)+e[i]*o;return n}}function Sr(t,e){var i,r,n=typeof e;return null==e||"boolean"===n?si(e):("number"===n?pe:"string"===n?(i=We(e))?(e=i,hi):pi:e instanceof We?hi:e instanceof Date?kr:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?vr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?wr:pe:Tr))(t,e)}function Br(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function Mr(t){return+t}var Fr=[0,1];function Lr(t){return t}function Ar(t,e){return(e-=t=+t)?function(i){return(i-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i}function Er(t,e,i){var r=t[0],n=t[1],o=e[0],a=e[1];return n<r?(r=Ar(n,r),o=i(a,o)):(r=Ar(r,n),o=i(o,a)),function(t){return o(r(t))}}function Or(t,e,i){var r=Math.min(t.length,e.length)-1,n=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)n[a]=Ar(t[a],t[a+1]),o[a]=i(e[a],e[a+1]);return function(e){var i=xr(t,e,1,r)-1;return o[i](n[i](e))}}function Nr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ir(){return function(){var t,e,i,r,n,o,a=Fr,s=Fr,l=Sr,c=Lr;function h(){var t,e,i,l=Math.min(a.length,s.length);return c!==Lr&&(t=a[0],e=a[l-1],t>e&&(i=t,t=e,e=i),c=function(i){return Math.max(t,Math.min(e,i))}),r=l>2?Or:Er,n=o=null,u}function u(e){return null==e||isNaN(e=+e)?i:(n||(n=r(a.map(t),s,l)))(t(c(e)))}return u.invert=function(i){return c(e((o||(o=r(s,a.map(t),pe)))(i)))},u.domain=function(t){return arguments.length?(a=Array.from(t,Mr),h()):a.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),h()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=Br,h()},u.clamp=function(t){return arguments.length?(c=!!t||Lr,h()):c!==Lr},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,r){return t=i,e=r,h()}}()(Lr,Lr)}function Dr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var $r,zr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zr(t){if(!(e=zr.exec(t)))throw new Error("invalid format: "+t);var e;return new jr({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]})}function jr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Rr(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,r=t.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+t.slice(i+1)]}function qr(t){return(t=Rr(Math.abs(t)))?t[1]:NaN}function Wr(t,e){var i=Rr(t,e);if(!i)return t+"";var r=i[0],n=i[1];return n<0?"0."+new Array(-n).join("0")+r:r.length>n+1?r.slice(0,n+1)+"."+r.slice(n+1):r+new Array(n-r.length+2).join("0")}Zr.prototype=jr.prototype,jr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Pr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Wr(100*t,e),r:Wr,s:function(t,e){var i=Rr(t,e);if(!i)return t+"";var r=i[0],n=i[1],o=n-($r=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Rr(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ur(t){return t}var Hr,Yr,Vr,Gr=Array.prototype.map,Xr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Jr(t){var e=t.domain;return t.ticks=function(t){var i=e();return function(t,e,i){if(!((i=+i)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[n,o,a]=r?fr(e,t,i):fr(t,e,i);if(!(o>=n))return[];const s=o-n+1,l=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)l[t]=(o-t)/-a;else for(let t=0;t<s;++t)l[t]=(o-t)*a;else if(a<0)for(let t=0;t<s;++t)l[t]=(n+t)/-a;else for(let t=0;t<s;++t)l[t]=(n+t)*a;return l}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var r=e();return function(t,e,i,r){var n,o=pr(t,e,i);switch((r=Zr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(n=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qr(e)/3)))-qr(Math.abs(t)))}(o,a))||(r.precision=n),Vr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(n=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,qr(e)-qr(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=n-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(n=function(t){return Math.max(0,-qr(Math.abs(t)))}(o))||(r.precision=n-2*("%"===r.type))}return Yr(r)}(r[0],r[r.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var r,n,o=e(),a=0,s=o.length-1,l=o[a],c=o[s],h=10;for(c<l&&(n=l,l=c,c=n,n=a,a=s,s=n);h-- >0;){if((n=dr(l,c,i))===r)return o[a]=l,o[s]=c,e(o);if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n;else{if(!(n<0))break;l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}r=n}return t},t}function Qr(){var t=Ir();return t.copy=function(){return Nr(t,Qr())},Dr.apply(t,arguments),Jr(t)}Hr=function(t){var e,i,r=void 0===t.grouping||void 0===t.thousands?Ur:(e=Gr.call(t.grouping,Number),i=t.thousands+"",function(t,r){for(var n=t.length,o=[],a=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(n-=s,n+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(i)}),n=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Ur:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Gr.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=Zr(t)).fill,i=t.align,u=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,_=t.type;"n"===_?(g=!0,_="g"):Pr[_]||(void 0===m&&(m=12),y=!0,_="g"),(d||"0"===e&&"="===i)&&(d=!0,e="0",i="=");var b="$"===f?n:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C="$"===f?o:/[%p]/.test(_)?l:"",x=Pr[_],v=/[defgprs%]/.test(_);function k(t){var n,o,l,f=b,k=C;if("c"===_)k=x(t)+k,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:x(Math.abs(t),m),y&&(t=function(t){t:for(var e,i=t.length,r=1,n=-1;r<i;++r)switch(t[r]){case".":n=e=r;break;case"0":0===n&&(n=r),e=r;break;default:if(!+t[r])break t;n>0&&(n=0)}return n>0?t.slice(0,n)+t.slice(e+1):t}(t)),w&&0==+t&&"+"!==u&&(w=!1),f=(w?"("===u?u:c:"-"===u||"("===u?"":u)+f,k=("s"===_?Xr[8+$r/3]:"")+k+(w&&"("===u?")":""),v)for(n=-1,o=t.length;++n<o;)if(48>(l=t.charCodeAt(n))||l>57){k=(46===l?a+t.slice(n+1):t.slice(n))+k,t=t.slice(0,n);break}}g&&!d&&(t=r(t,1/0));var T=f.length+t.length+k.length,S=T<p?new Array(p-T+1).join(e):"";switch(g&&d&&(t=r(S+t,S.length?p-k.length:1/0),S=""),i){case"<":t=f+t+k+S;break;case"=":t=f+S+t+k;break;case"^":t=S.slice(0,T=S.length>>1)+f+t+k+S.slice(T);break;default:t=S+f+t+k}return s(t)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return t+""},k}return{format:u,formatPrefix:function(t,e){var i=u(((t=Zr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(qr(e)/3))),n=Math.pow(10,-r),o=Xr[8+r/3];return function(t){return i(n*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Yr=Hr.format,Vr=Hr.formatPrefix;class Kr extends Map{constructor(t,e=on){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,i]of t)this.set(e,i)}get(t){return super.get(en(this,t))}has(t){return super.has(en(this,t))}set(t,e){return super.set(rn(this,t),e)}delete(t){return super.delete(nn(this,t))}}class tn extends Set{constructor(t,e=on){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(en(this,t))}add(t){return super.add(rn(this,t))}delete(t){return super.delete(nn(this,t))}}function en({_intern:t,_key:e},i){const r=e(i);return t.has(r)?t.get(r):i}function rn({_intern:t,_key:e},i){const r=e(i);return t.has(r)?t.get(r):(t.set(r,i),i)}function nn({_intern:t,_key:e},i){const r=e(i);return t.has(r)&&(i=t.get(r),t.delete(r)),i}function on(t){return null!==t&&"object"==typeof t?t.valueOf():t}const an=Symbol("implicit");function sn(){var t=new Kr,e=[],i=[],r=an;function n(n){let o=t.get(n);if(void 0===o){if(r!==an)return r;t.set(n,o=e.push(n)-1)}return i[o%i.length]}return n.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Kr;for(const r of i)t.has(r)||t.set(r,e.push(r)-1);return n},n.range=function(t){return arguments.length?(i=Array.from(t),n):i.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return sn(e,i).unknown(r)},Dr.apply(n,arguments),n}const ln=1e3,cn=6e4,hn=60*cn,un=24*hn,fn=7*un,dn=30*un,pn=365*un,gn=new Date,mn=new Date;function yn(t,e,i,r){function n(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return n.floor=e=>(t(e=new Date(+e)),e),n.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),n.round=t=>{const e=n(t),i=n.ceil(t);return t-e<i-t?e:i},n.offset=(t,i)=>(e(t=new Date(+t),null==i?1:Math.floor(i)),t),n.range=(i,r,o)=>{const a=[];if(i=n.ceil(i),o=null==o?1:Math.floor(o),!(i<r&&o>0))return a;let s;do{a.push(s=new Date(+i)),e(i,o),t(i)}while(s<i&&i<r);return a},n.filter=i=>yn((e=>{if(e>=e)for(;t(e),!i(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!i(t););else for(;--r>=0;)for(;e(t,1),!i(t););})),i&&(n.count=(e,r)=>(gn.setTime(+e),mn.setTime(+r),t(gn),t(mn),Math.floor(i(gn,mn))),n.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?n.filter(r?e=>r(e)%t==0:e=>n.count(0,e)%t==0):n:null)),n}const _n=yn((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));_n.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?yn((e=>{e.setTime(Math.floor(e/t)*t)}),((e,i)=>{e.setTime(+e+i*t)}),((e,i)=>(i-e)/t)):_n:null),_n.range;const bn=yn((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ln)}),((t,e)=>(e-t)/ln),(t=>t.getUTCSeconds())),Cn=(bn.range,yn((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ln)}),((t,e)=>{t.setTime(+t+e*cn)}),((t,e)=>(e-t)/cn),(t=>t.getMinutes()))),xn=(Cn.range,yn((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*cn)}),((t,e)=>(e-t)/cn),(t=>t.getUTCMinutes()))),vn=(xn.range,yn((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ln-t.getMinutes()*cn)}),((t,e)=>{t.setTime(+t+e*hn)}),((t,e)=>(e-t)/hn),(t=>t.getHours()))),kn=(vn.range,yn((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*hn)}),((t,e)=>(e-t)/hn),(t=>t.getUTCHours()))),wn=(kn.range,yn((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cn)/un),(t=>t.getDate()-1))),Tn=(wn.range,yn((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/un),(t=>t.getUTCDate()-1))),Sn=(Tn.range,yn((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/un),(t=>Math.floor(t/un))));function Bn(t){return yn((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cn)/fn))}Sn.range;const Mn=Bn(0),Fn=Bn(1),Ln=Bn(2),An=Bn(3),En=Bn(4),On=Bn(5),Nn=Bn(6);function In(t){return yn((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/fn))}Mn.range,Fn.range,Ln.range,An.range,En.range,On.range,Nn.range;const Dn=In(0),$n=In(1),zn=In(2),Zn=In(3),jn=In(4),Rn=In(5),qn=In(6),Wn=(Dn.range,$n.range,zn.range,Zn.range,jn.range,Rn.range,qn.range,yn((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Pn=(Wn.range,yn((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Un=(Pn.range,yn((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())));Un.every=t=>isFinite(t=Math.floor(t))&&t>0?yn((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,i)=>{e.setFullYear(e.getFullYear()+i*t)})):null,Un.range;const Hn=yn((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()));function Yn(t,e,i,r,n,o){const a=[[bn,1,ln],[bn,5,5e3],[bn,15,15e3],[bn,30,3e4],[o,1,cn],[o,5,5*cn],[o,15,15*cn],[o,30,30*cn],[n,1,hn],[n,3,3*hn],[n,6,6*hn],[n,12,12*hn],[r,1,un],[r,2,2*un],[i,1,fn],[e,1,dn],[e,3,3*dn],[t,1,pn]];function s(e,i,r){const n=Math.abs(i-e)/r,o=yr((([,,t])=>t)).right(a,n);if(o===a.length)return t.every(pr(e/pn,i/pn,r));if(0===o)return _n.every(Math.max(pr(e,i,r),1));const[s,l]=a[n/a[o-1][2]<a[o][2]/n?o-1:o];return s.every(l)}return[function(t,e,i){const r=e<t;r&&([t,e]=[e,t]);const n=i&&"function"==typeof i.range?i:s(t,e,i),o=n?n.range(t,+e+1):[];return r?o.reverse():o},s]}Hn.every=t=>isFinite(t=Math.floor(t))&&t>0?yn((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,i)=>{e.setUTCFullYear(e.getUTCFullYear()+i*t)})):null,Hn.range;const[Vn,Gn]=Yn(Hn,Pn,Dn,Sn,kn,xn),[Xn,Jn]=Yn(Un,Wn,Mn,wn,vn,Cn);function Qn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Kn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function to(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var eo,io,ro={"-":"",_:" ",0:"0"},no=/^\s*\d+/,oo=/^%/,ao=/[\\^$*+?|[\]().{}]/g;function so(t,e,i){var r=t<0?"-":"",n=(r?-t:t)+"",o=n.length;return r+(o<i?new Array(i-o+1).join(e)+n:n)}function lo(t){return t.replace(ao,"\\$&")}function co(t){return new RegExp("^(?:"+t.map(lo).join("|")+")","i")}function ho(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function uo(t,e,i){var r=no.exec(e.slice(i,i+1));return r?(t.w=+r[0],i+r[0].length):-1}function fo(t,e,i){var r=no.exec(e.slice(i,i+1));return r?(t.u=+r[0],i+r[0].length):-1}function po(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.U=+r[0],i+r[0].length):-1}function go(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.V=+r[0],i+r[0].length):-1}function mo(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.W=+r[0],i+r[0].length):-1}function yo(t,e,i){var r=no.exec(e.slice(i,i+4));return r?(t.y=+r[0],i+r[0].length):-1}function _o(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function bo(t,e,i){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function Co(t,e,i){var r=no.exec(e.slice(i,i+1));return r?(t.q=3*r[0]-3,i+r[0].length):-1}function xo(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.m=r[0]-1,i+r[0].length):-1}function vo(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.d=+r[0],i+r[0].length):-1}function ko(t,e,i){var r=no.exec(e.slice(i,i+3));return r?(t.m=0,t.d=+r[0],i+r[0].length):-1}function wo(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.H=+r[0],i+r[0].length):-1}function To(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.M=+r[0],i+r[0].length):-1}function So(t,e,i){var r=no.exec(e.slice(i,i+2));return r?(t.S=+r[0],i+r[0].length):-1}function Bo(t,e,i){var r=no.exec(e.slice(i,i+3));return r?(t.L=+r[0],i+r[0].length):-1}function Mo(t,e,i){var r=no.exec(e.slice(i,i+6));return r?(t.L=Math.floor(r[0]/1e3),i+r[0].length):-1}function Fo(t,e,i){var r=oo.exec(e.slice(i,i+1));return r?i+r[0].length:-1}function Lo(t,e,i){var r=no.exec(e.slice(i));return r?(t.Q=+r[0],i+r[0].length):-1}function Ao(t,e,i){var r=no.exec(e.slice(i));return r?(t.s=+r[0],i+r[0].length):-1}function Eo(t,e){return so(t.getDate(),e,2)}function Oo(t,e){return so(t.getHours(),e,2)}function No(t,e){return so(t.getHours()%12||12,e,2)}function Io(t,e){return so(1+wn.count(Un(t),t),e,3)}function Do(t,e){return so(t.getMilliseconds(),e,3)}function $o(t,e){return Do(t,e)+"000"}function zo(t,e){return so(t.getMonth()+1,e,2)}function Zo(t,e){return so(t.getMinutes(),e,2)}function jo(t,e){return so(t.getSeconds(),e,2)}function Ro(t){var e=t.getDay();return 0===e?7:e}function qo(t,e){return so(Mn.count(Un(t)-1,t),e,2)}function Wo(t){var e=t.getDay();return e>=4||0===e?En(t):En.ceil(t)}function Po(t,e){return t=Wo(t),so(En.count(Un(t),t)+(4===Un(t).getDay()),e,2)}function Uo(t){return t.getDay()}function Ho(t,e){return so(Fn.count(Un(t)-1,t),e,2)}function Yo(t,e){return so(t.getFullYear()%100,e,2)}function Vo(t,e){return so((t=Wo(t)).getFullYear()%100,e,2)}function Go(t,e){return so(t.getFullYear()%1e4,e,4)}function Xo(t,e){var i=t.getDay();return so((t=i>=4||0===i?En(t):En.ceil(t)).getFullYear()%1e4,e,4)}function Jo(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+so(e/60|0,"0",2)+so(e%60,"0",2)}function Qo(t,e){return so(t.getUTCDate(),e,2)}function Ko(t,e){return so(t.getUTCHours(),e,2)}function ta(t,e){return so(t.getUTCHours()%12||12,e,2)}function ea(t,e){return so(1+Tn.count(Hn(t),t),e,3)}function ia(t,e){return so(t.getUTCMilliseconds(),e,3)}function ra(t,e){return ia(t,e)+"000"}function na(t,e){return so(t.getUTCMonth()+1,e,2)}function oa(t,e){return so(t.getUTCMinutes(),e,2)}function aa(t,e){return so(t.getUTCSeconds(),e,2)}function sa(t){var e=t.getUTCDay();return 0===e?7:e}function la(t,e){return so(Dn.count(Hn(t)-1,t),e,2)}function ca(t){var e=t.getUTCDay();return e>=4||0===e?jn(t):jn.ceil(t)}function ha(t,e){return t=ca(t),so(jn.count(Hn(t),t)+(4===Hn(t).getUTCDay()),e,2)}function ua(t){return t.getUTCDay()}function fa(t,e){return so($n.count(Hn(t)-1,t),e,2)}function da(t,e){return so(t.getUTCFullYear()%100,e,2)}function pa(t,e){return so((t=ca(t)).getUTCFullYear()%100,e,2)}function ga(t,e){return so(t.getUTCFullYear()%1e4,e,4)}function ma(t,e){var i=t.getUTCDay();return so((t=i>=4||0===i?jn(t):jn.ceil(t)).getUTCFullYear()%1e4,e,4)}function ya(){return"+0000"}function _a(){return"%"}function ba(t){return+t}function Ca(t){return Math.floor(+t/1e3)}function xa(t){return new Date(t)}function va(t){return t instanceof Date?+t:+new Date(+t)}function ka(t,e,i,r,n,o,a,s,l,c){var h=Ir(),u=h.invert,f=h.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),_=c("%b %d"),b=c("%B"),C=c("%Y");function x(t){return(l(t)<t?d:s(t)<t?p:a(t)<t?g:o(t)<t?m:r(t)<t?n(t)<t?y:_:i(t)<t?b:C)(t)}return h.invert=function(t){return new Date(u(t))},h.domain=function(t){return arguments.length?f(Array.from(t,va)):f().map(xa)},h.ticks=function(e){var i=f();return t(i[0],i[i.length-1],null==e?10:e)},h.tickFormat=function(t,e){return null==e?x:c(e)},h.nice=function(t){var i=f();return t&&"function"==typeof t.range||(t=e(i[0],i[i.length-1],null==t?10:t)),t?f(function(t,e){var i,r=0,n=(t=t.slice()).length-1,o=t[r],a=t[n];return a<o&&(i=r,r=n,n=i,i=o,o=a,a=i),t[r]=e.floor(o),t[n]=e.ceil(a),t}(i,t)):h},h.copy=function(){return Nr(h,ka(t,e,i,r,n,o,a,s,l,c))},h}function wa(){return Dr.apply(ka(Xn,Jn,Un,Wn,Mn,wn,vn,Cn,bn,io).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ta(t){return"string"==typeof t?new Ft([[document.querySelector(t)]],[document.documentElement]):new Ft([[t]],Mt)}function Sa(t){return"string"==typeof t?new Ft([document.querySelectorAll(t)],[document.documentElement]):new Ft([x(t)],Mt)}function Ba(t){return function(){return t}}eo=function(t){var e=t.dateTime,i=t.date,r=t.time,n=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=co(n),h=ho(n),u=co(o),f=ho(o),d=co(a),p=ho(a),g=co(s),m=ho(s),y=co(l),_=ho(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Eo,e:Eo,f:$o,g:Vo,G:Xo,H:Oo,I:No,j:Io,L:Do,m:zo,M:Zo,p:function(t){return n[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ba,s:Ca,S:jo,u:Ro,U:qo,V:Po,w:Uo,W:Ho,x:null,X:null,y:Yo,Y:Go,Z:Jo,"%":_a},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Qo,e:Qo,f:ra,g:pa,G:ma,H:Ko,I:ta,j:ea,L:ia,m:na,M:oa,p:function(t){return n[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ba,s:Ca,S:aa,u:sa,U:la,V:ha,w:ua,W:fa,x:null,X:null,y:da,Y:ga,Z:ya,"%":_a},x={a:function(t,e,i){var r=d.exec(e.slice(i));return r?(t.w=p.get(r[0].toLowerCase()),i+r[0].length):-1},A:function(t,e,i){var r=u.exec(e.slice(i));return r?(t.w=f.get(r[0].toLowerCase()),i+r[0].length):-1},b:function(t,e,i){var r=y.exec(e.slice(i));return r?(t.m=_.get(r[0].toLowerCase()),i+r[0].length):-1},B:function(t,e,i){var r=g.exec(e.slice(i));return r?(t.m=m.get(r[0].toLowerCase()),i+r[0].length):-1},c:function(t,i,r){return w(t,e,i,r)},d:vo,e:vo,f:Mo,g:_o,G:yo,H:wo,I:wo,j:ko,L:Bo,m:xo,M:To,p:function(t,e,i){var r=c.exec(e.slice(i));return r?(t.p=h.get(r[0].toLowerCase()),i+r[0].length):-1},q:Co,Q:Lo,s:Ao,S:So,u:fo,U:po,V:go,w:uo,W:mo,x:function(t,e,r){return w(t,i,e,r)},X:function(t,e,i){return w(t,r,e,i)},y:_o,Y:yo,Z:bo,"%":Fo};function v(t,e){return function(i){var r,n,o,a=[],s=-1,l=0,c=t.length;for(i instanceof Date||(i=new Date(+i));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(n=ro[r=t.charAt(++s)])?r=t.charAt(++s):n="e"===r?" ":"0",(o=e[r])&&(r=o(i,n)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function k(t,e){return function(i){var r,n,o=to(1900,void 0,1);if(w(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(n=(r=Kn(to(o.y,0,1))).getUTCDay(),r=n>4||0===n?$n.ceil(r):$n(r),r=Tn.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(n=(r=Qn(to(o.y,0,1))).getDay(),r=n>4||0===n?Fn.ceil(r):Fn(r),r=wn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),n="Z"in o?Kn(to(o.y,0,1)).getUTCDay():Qn(to(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(n+5)%7:o.w+7*o.U-(n+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Kn(o)):Qn(o)}}function w(t,e,i,r){for(var n,o,a=0,s=e.length,l=i.length;a<s;){if(r>=l)return-1;if(37===(n=e.charCodeAt(a++))){if(n=e.charAt(a++),!(o=x[n in ro?e.charAt(a++):n])||(r=o(t,i,r))<0)return-1}else if(n!=i.charCodeAt(r++))return-1}return r}return b.x=v(i,b),b.X=v(r,b),b.c=v(e,b),C.x=v(i,C),C.X=v(r,C),C.c=v(e,C),{format:function(t){var e=v(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=v(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),io=eo.format,eo.parse,eo.utcFormat,eo.utcParse;const Ma=Math.abs,Fa=Math.atan2,La=Math.cos,Aa=Math.max,Ea=Math.min,Oa=Math.sin,Na=Math.sqrt,Ia=1e-12,Da=Math.PI,$a=Da/2,za=2*Da;function Za(t){return t>=1?$a:t<=-1?-$a:Math.asin(t)}const ja=Math.PI,Ra=2*ja,qa=1e-6,Wa=Ra-qa;function Pa(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=arguments[e]+t[e]}class Ua{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Pa:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Pa;const i=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*i)/i+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,r){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(t,e,i,r,n,o){this._append`C${+t},${+e},${+i},${+r},${this._x1=+n},${this._y1=+o}`}arcTo(t,e,i,r,n){if(t=+t,e=+e,i=+i,r=+r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=this._x1,a=this._y1,s=i-t,l=r-e,c=o-t,h=a-e,u=c*c+h*h;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>qa)if(Math.abs(h*s-l*c)>qa&&n){let f=i-o,d=r-a,p=s*s+l*l,g=f*f+d*d,m=Math.sqrt(p),y=Math.sqrt(u),_=n*Math.tan((ja-Math.acos((p+u-g)/(2*m*y)))/2),b=_/y,C=_/m;Math.abs(b-1)>qa&&this._append`L${t+b*c},${e+b*h}`,this._append`A${n},${n},0,0,${+(h*f>c*d)},${this._x1=t+C*s},${this._y1=e+C*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,r,n,o){if(t=+t,e=+e,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),s=i*Math.sin(r),l=t+a,c=e+s,h=1^o,u=o?r-n:n-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>qa||Math.abs(this._y1-c)>qa)&&this._append`L${l},${c}`,i&&(u<0&&(u=u%Ra+Ra),u>Wa?this._append`A${i},${i},0,1,${h},${t-a},${e-s}A${i},${i},0,1,${h},${this._x1=l},${this._y1=c}`:u>qa&&this._append`A${i},${i},0,${+(u>=ja)},${h},${this._x1=t+i*Math.cos(n)},${this._y1=e+i*Math.sin(n)}`)}rect(t,e,i,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Ha(t){let e=3;return t.digits=function(i){if(!arguments.length)return e;if(null==i)e=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new Ua(e)}function Ya(t){return t.innerRadius}function Va(t){return t.outerRadius}function Ga(t){return t.startAngle}function Xa(t){return t.endAngle}function Ja(t){return t&&t.padAngle}function Qa(t,e,i,r,n,o,a){var s=t-i,l=e-r,c=(a?o:-o)/Na(s*s+l*l),h=c*l,u=-c*s,f=t+h,d=e+u,p=i+h,g=r+u,m=(f+p)/2,y=(d+g)/2,_=p-f,b=g-d,C=_*_+b*b,x=n-o,v=f*g-p*d,k=(b<0?-1:1)*Na(Aa(0,x*x*C-v*v)),w=(v*b-_*k)/C,T=(-v*_-b*k)/C,S=(v*b+_*k)/C,B=(-v*_+b*k)/C,M=w-m,F=T-y,L=S-m,A=B-y;return M*M+F*F>L*L+A*A&&(w=S,T=B),{cx:w,cy:T,x01:-h,y01:-u,x11:w*(n/x-1),y11:T*(n/x-1)}}function Ka(){var t=Ya,e=Va,i=Ba(0),r=null,n=Ga,o=Xa,a=Ja,s=null,l=Ha(c);function c(){var c,h,u,f=+t.apply(this,arguments),d=+e.apply(this,arguments),p=n.apply(this,arguments)-$a,g=o.apply(this,arguments)-$a,m=Ma(g-p),y=g>p;if(s||(s=c=l()),d<f&&(h=d,d=f,f=h),d>Ia)if(m>za-Ia)s.moveTo(d*La(p),d*Oa(p)),s.arc(0,0,d,p,g,!y),f>Ia&&(s.moveTo(f*La(g),f*Oa(g)),s.arc(0,0,f,g,p,y));else{var _,b,C=p,x=g,v=p,k=g,w=m,T=m,S=a.apply(this,arguments)/2,B=S>Ia&&(r?+r.apply(this,arguments):Na(f*f+d*d)),M=Ea(Ma(d-f)/2,+i.apply(this,arguments)),F=M,L=M;if(B>Ia){var A=Za(B/f*Oa(S)),E=Za(B/d*Oa(S));(w-=2*A)>Ia?(v+=A*=y?1:-1,k-=A):(w=0,v=k=(p+g)/2),(T-=2*E)>Ia?(C+=E*=y?1:-1,x-=E):(T=0,C=x=(p+g)/2)}var O=d*La(C),N=d*Oa(C),I=f*La(k),D=f*Oa(k);if(M>Ia){var $,z=d*La(x),Z=d*Oa(x),j=f*La(v),R=f*Oa(v);if(m<Da)if($=function(t,e,i,r,n,o,a,s){var l=i-t,c=r-e,h=a-n,u=s-o,f=u*l-h*c;if(!(f*f<Ia))return[t+(f=(h*(e-o)-u*(t-n))/f)*l,e+f*c]}(O,N,j,R,z,Z,I,D)){var q=O-$[0],W=N-$[1],P=z-$[0],U=Z-$[1],H=1/Oa(((u=(q*P+W*U)/(Na(q*q+W*W)*Na(P*P+U*U)))>1?0:u<-1?Da:Math.acos(u))/2),Y=Na($[0]*$[0]+$[1]*$[1]);F=Ea(M,(f-Y)/(H-1)),L=Ea(M,(d-Y)/(H+1))}else F=L=0}T>Ia?L>Ia?(_=Qa(j,R,O,N,d,L,y),b=Qa(z,Z,I,D,d,L,y),s.moveTo(_.cx+_.x01,_.cy+_.y01),L<M?s.arc(_.cx,_.cy,L,Fa(_.y01,_.x01),Fa(b.y01,b.x01),!y):(s.arc(_.cx,_.cy,L,Fa(_.y01,_.x01),Fa(_.y11,_.x11),!y),s.arc(0,0,d,Fa(_.cy+_.y11,_.cx+_.x11),Fa(b.cy+b.y11,b.cx+b.x11),!y),s.arc(b.cx,b.cy,L,Fa(b.y11,b.x11),Fa(b.y01,b.x01),!y))):(s.moveTo(O,N),s.arc(0,0,d,C,x,!y)):s.moveTo(O,N),f>Ia&&w>Ia?F>Ia?(_=Qa(I,D,z,Z,f,-F,y),b=Qa(O,N,j,R,f,-F,y),s.lineTo(_.cx+_.x01,_.cy+_.y01),F<M?s.arc(_.cx,_.cy,F,Fa(_.y01,_.x01),Fa(b.y01,b.x01),!y):(s.arc(_.cx,_.cy,F,Fa(_.y01,_.x01),Fa(_.y11,_.x11),!y),s.arc(0,0,f,Fa(_.cy+_.y11,_.cx+_.x11),Fa(b.cy+b.y11,b.cx+b.x11),y),s.arc(b.cx,b.cy,F,Fa(b.y11,b.x11),Fa(b.y01,b.x01),!y))):s.arc(0,0,f,k,v,y):s.lineTo(I,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var i=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+n.apply(this,arguments)+ +o.apply(this,arguments))/2-Da/2;return[La(r)*i,Oa(r)*i]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ba(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Ba(+t),c):e},c.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Ba(+t),c):i},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Ba(+t),c):r},c.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:Ba(+t),c):n},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ba(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ba(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function ts(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function es(t){this._context=t}function is(t){return new es(t)}function rs(t){return t[0]}function ns(t){return t[1]}function os(t,e){var i=Ba(!0),r=null,n=is,o=null,a=Ha(s);function s(s){var l,c,h,u=(s=ts(s)).length,f=!1;for(null==r&&(o=n(h=a())),l=0;l<=u;++l)!(l<u&&i(c=s[l],l,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,l,s),+e(c,l,s));if(h)return o=null,h+""||null}return t="function"==typeof t?t:void 0===t?rs:Ba(t),e="function"==typeof e?e:void 0===e?ns:Ba(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Ba(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Ba(+t),s):e},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:Ba(!!t),s):i},s.curve=function(t){return arguments.length?(n=t,null!=r&&(o=n(r)),s):n},s.context=function(t){return arguments.length?(null==t?r=o=null:o=n(r=t),s):r},s}function as(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ss(t){return t}function ls(){var t=ss,e=as,i=null,r=Ba(0),n=Ba(za),o=Ba(0);function a(a){var s,l,c,h,u,f=(a=ts(a)).length,d=0,p=new Array(f),g=new Array(f),m=+r.apply(this,arguments),y=Math.min(za,Math.max(-za,n.apply(this,arguments)-m)),_=Math.min(Math.abs(y)/f,o.apply(this,arguments)),b=_*(y<0?-1:1);for(s=0;s<f;++s)(u=g[p[s]=s]=+t(a[s],s,a))>0&&(d+=u);for(null!=e?p.sort((function(t,i){return e(g[t],g[i])})):null!=i&&p.sort((function(t,e){return i(a[t],a[e])})),s=0,c=d?(y-f*b)/d:0;s<f;++s,m=h)l=p[s],h=m+((u=g[l])>0?u*c:0)+b,g[l]={data:a[l],index:s,value:u,startAngle:m,endAngle:h,padAngle:_};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:Ba(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,i=null,a):e},a.sort=function(t){return arguments.length?(i=t,e=null,a):i},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ba(+t),a):r},a.endAngle=function(t){return arguments.length?(n="function"==typeof t?t:Ba(+t),a):n},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ba(+t),a):o},a}function cs(){}function hs(t,e,i){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+i)/6)}function us(t){this._context=t}function fs(t){return new us(t)}function ds(t){this._context=t}function ps(t){return new ds(t)}function gs(t){this._context=t}function ms(t){return new gs(t)}Ua.prototype,Array.prototype.slice,es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hs(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ds.prototype={areaStart:cs,areaEnd:cs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:hs(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:hs(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ys{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function _s(t){return new ys(t,!0)}function bs(t){return new ys(t,!1)}function Cs(t,e){this._basis=new us(t),this._beta=e}Cs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r,n=t[0],o=e[0],a=t[i]-n,s=e[i]-o,l=-1;++l<=i;)r=l/i,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var xs=function t(e){function i(t){return 1===e?new us(t):new Cs(t,e)}return i.beta=function(e){return t(+e)},i}(.85);function vs(t,e,i){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-i),t._x2,t._y2)}function ks(t,e){this._context=t,this._k=(1-e)/6}ks.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ws=function t(e){function i(t){return new ks(t,e)}return i.tension=function(e){return t(+e)},i}(0);function Ts(t,e){this._context=t,this._k=(1-e)/6}Ts.prototype={areaStart:cs,areaEnd:cs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ss=function t(e){function i(t){return new Ts(t,e)}return i.tension=function(e){return t(+e)},i}(0);function Bs(t,e){this._context=t,this._k=(1-e)/6}Bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ms=function t(e){function i(t){return new Bs(t,e)}return i.tension=function(e){return t(+e)},i}(0);function Fs(t,e,i){var r=t._x1,n=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Ia){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ia){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,o,a,t._x2,t._y2)}function Ls(t,e){this._context=t,this._alpha=e}Ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:Fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var As=function t(e){function i(t){return e?new Ls(t,e):new ks(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function Es(t,e){this._context=t,this._alpha=e}Es.prototype={areaStart:cs,areaEnd:cs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:Fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Os=function t(e){function i(t){return e?new Es(t,e):new Ts(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function Ns(t,e){this._context=t,this._alpha=e}Ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:Fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Is=function t(e){function i(t){return e?new Ns(t,e):new Bs(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function Ds(t){this._context=t}function $s(t){return new Ds(t)}function zs(t){return t<0?-1:1}function Zs(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),a=(i-t._y1)/(n||r<0&&-0),s=(o*n+a*r)/(r+n);return(zs(o)+zs(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function js(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function Rs(t,e,i){var r=t._x0,n=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,n+s*e,o-s,a-s*i,o,a)}function qs(t){this._context=t}function Ws(t){this._context=new Ps(t)}function Ps(t){this._context=t}function Us(t){return new qs(t)}function Hs(t){return new Ws(t)}function Ys(t){this._context=t}function Vs(t){var e,i,r=t.length-1,n=new Array(r),o=new Array(r),a=new Array(r);for(n[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/o[e-1],o[e]-=i,a[e]-=i*a[e-1];for(n[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)n[e]=(a[e]-n[e+1])/o[e];for(o[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function Gs(t){return new Ys(t)}function Xs(t,e){this._context=t,this._t=e}function Js(t){return new Xs(t,.5)}function Qs(t){return new Xs(t,0)}function Ks(t){return new Xs(t,1)}function tl(t,e,i){this.k=t,this.x=e,this.y=i}Ds.prototype={areaStart:cs,areaEnd:cs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Rs(this,this._t0,js(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e=+e,(t=+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,Rs(this,js(this,i=Zs(this,t,e)),i);break;default:Rs(this,this._t0,i=Zs(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(Ws.prototype=Object.create(qs.prototype)).point=function(t,e){qs.prototype.point.call(this,e,t)},Ps.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}},Ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var r=Vs(t),n=Vs(e),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[a],e[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Xs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}},tl.prototype={constructor:tl,scale:function(t){return 1===t?this:new tl(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new tl(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new tl(1,0,0),tl.prototype},4549:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var r=i(5971),n=i(2142),o=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=n.w.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=n.w.ALL}is(t){return this.type===t}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=n.w.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:i,l:n}=t;void 0===e&&(t.h=r.Z.channel.rgb2hsl(t,"h")),void 0===i&&(t.s=r.Z.channel.rgb2hsl(t,"s")),void 0===n&&(t.l=r.Z.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:i,b:n}=t;void 0===e&&(t.r=r.Z.channel.hsl2rgb(t,"r")),void 0===i&&(t.g=r.Z.channel.hsl2rgb(t,"g")),void 0===n&&(t.b=r.Z.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(n.w.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(n.w.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(n.w.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(n.w.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(n.w.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(n.w.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},1767:function(t,e,i){"use strict";i.d(e,{Z:function(){return g}});var r=i(4549),n=i(2142);const o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(o.re);if(!e)return;const i=e[1],n=parseInt(i,16),a=i.length,s=a%4==0,l=a>4,c=l?1:17,h=l?8:4,u=s?0:-1,f=l?255:15;return r.Z.set({r:(n>>h*(u+3)&f)*c,g:(n>>h*(u+2)&f)*c,b:(n>>h*(u+1)&f)*c,a:s?(n&f)*c/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:o}=t;return o<1?`#${n.Q[Math.round(e)]}${n.Q[Math.round(i)]}${n.Q[Math.round(r)]}${n.Q[Math.round(255*o)]}`:`#${n.Q[Math.round(e)]}${n.Q[Math.round(i)]}${n.Q[Math.round(r)]}`}};var a=o,s=i(5971);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(l.hueRe);if(e){const[,t,i]=e;switch(i){case"grad":return s.Z.channel.clamp.h(.9*parseFloat(t));case"rad":return s.Z.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.Z.channel.clamp.h(360*parseFloat(t))}}return s.Z.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const i=t.match(l.re);if(!i)return;const[,n,o,a,c,h]=i;return r.Z.set({h:l._hue2deg(n),s:s.Z.channel.clamp.s(parseFloat(o)),l:s.Z.channel.clamp.l(parseFloat(a)),a:c?s.Z.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${s.Z.lang.round(e)}, ${s.Z.lang.round(i)}%, ${s.Z.lang.round(r)}%, ${n})`:`hsl(${s.Z.lang.round(e)}, ${s.Z.lang.round(i)}%, ${s.Z.lang.round(r)}%)`}};var c=l;const h={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=h.colors[t];if(e)return a.parse(e)},stringify:t=>{const e=a.stringify(t);for(const t in h.colors)if(h.colors[t]===e)return t}};var u=h;const f={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const i=t.match(f.re);if(!i)return;const[,n,o,a,l,c,h,u,d]=i;return r.Z.set({r:s.Z.channel.clamp.r(o?2.55*parseFloat(n):parseFloat(n)),g:s.Z.channel.clamp.g(l?2.55*parseFloat(a):parseFloat(a)),b:s.Z.channel.clamp.b(h?2.55*parseFloat(c):parseFloat(c)),a:u?s.Z.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${s.Z.lang.round(e)}, ${s.Z.lang.round(i)}, ${s.Z.lang.round(r)}, ${s.Z.lang.round(n)})`:`rgb(${s.Z.lang.round(e)}, ${s.Z.lang.round(i)}, ${s.Z.lang.round(r)})`}};var d=f;const p={format:{keyword:h,hex:a,rgb:f,rgba:f,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=a.parse(t)||d.parse(t)||c.parse(t)||u.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(n.w.HSL)||void 0===t.data.r?c.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?d.stringify(t):a.stringify(t)};var g=p},2142:function(t,e,i){"use strict";i.d(e,{Q:function(){return n},w:function(){return o}});var r=i(5971);const n={};for(let t=0;t<=255;t++)n[t]=r.Z.unit.dec2hex(t);const o={ALL:0,RGB:1,HSL:2}},6174:function(t,e,i){"use strict";var r=i(5971),n=i(1767);e.Z=(t,e,i)=>{const o=n.Z.parse(t),a=o[e],s=r.Z.channel.clamp[e](a+i);return a!==s&&(o[e]=s),n.Z.stringify(o)}},7201:function(t,e,i){"use strict";var r=i(6174);e.Z=(t,e)=>(0,r.Z)(t,"l",-e)},2281:function(t,e,i){"use strict";var r=i(6174);e.Z=(t,e)=>(0,r.Z)(t,"l",e)},5971:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});const r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},n)=>{if(!e)return 2.55*i;t/=360,e/=100;const o=(i/=100)<.5?i*(1+e):i+e-i*e,a=2*i-o;switch(n){case"r":return 255*r.hue2rgb(a,o,t+1/3);case"g":return 255*r.hue2rgb(a,o,t);case"b":return 255*r.hue2rgb(a,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),a=(n+o)/2;if("l"===r)return 100*a;if(n===o)return 0;const s=n-o;if("s"===r)return 100*(a>.5?s/(2-n-o):s/(n+o));switch(n){case t:return 60*((e-i)/s+(e<i?6:0));case e:return 60*((i-t)/s+2);case i:return 60*((t-e)/s+4);default:return-1}}};var n={channel:r,lang:{clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},2536:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var r=i(9651),n=function(t,e){for(var i=t.length;i--;)if((0,r.Z)(t[i][0],e))return i;return-1},o=Array.prototype.splice;function a(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,i=n(e,t);return!(i<0||(i==e.length-1?e.pop():o.call(e,i,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]},a.prototype.has=function(t){return n(this.__data__,t)>-1},a.prototype.set=function(t,e){var i=this.__data__,r=n(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this};var s=a},6183:function(t,e,i){"use strict";var r=i(2119),n=i(6092),o=(0,r.Z)(n.Z,"Map");e.Z=o},520:function(t,e,i){"use strict";i.d(e,{Z:function(){return f}});var r=(0,i(2119).Z)(Object,"create"),n=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(r){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},a.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};var s=a,l=i(2536),c=i(6183),h=function(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map};function u(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(c.Z||l.Z),string:new s}},u.prototype.delete=function(t){var e=h(this,t).delete(t);return this.size-=e?1:0,e},u.prototype.get=function(t){return h(this,t).get(t)},u.prototype.has=function(t){return h(this,t).has(t)},u.prototype.set=function(t,e){var i=h(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this};var f=u},3203:function(t,e,i){"use strict";var r=i(2119),n=i(6092),o=(0,r.Z)(n.Z,"Set");e.Z=o},7685:function(t,e,i){"use strict";var r=i(6092).Z.Symbol;e.Z=r},1922:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var r=i(7685),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,s=r.Z?r.Z.toStringTag:void 0,l=Object.prototype.toString,c=r.Z?r.Z.toStringTag:void 0,h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=o.call(t,s),i=t[s];try{t[s]=void 0;var r=!0}catch(t){}var n=a.call(t);return r&&(e?t[s]=i:delete t[s]),n}(t):function(t){return l.call(t)}(t)}},8448:function(t,e,i){"use strict";i.d(e,{Z:function(){return a}});var r=i(2764),n=(0,i(1851).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,a=function(t){if(!(0,r.Z)(t))return n(t);var e=[];for(var i in Object(t))o.call(t,i)&&"constructor"!=i&&e.push(i);return e}},1162:function(t,e){"use strict";e.Z=function(t){return function(e){return t(e)}}},3413:function(t,e){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;e.Z=i},2119:function(t,e,i){"use strict";i.d(e,{Z:function(){return m}});var r,n=i(3234),o=i(6092).Z["__core-js_shared__"],a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=i(7226),l=i(19),c=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,f=h.toString,d=u.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=function(t){return!(!(0,s.Z)(t)||(e=t,a&&a in e))&&((0,n.Z)(t)?p:c).test((0,l.Z)(t));var e},m=function(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return g(i)?i:void 0}},6155:function(t,e,i){"use strict";i.d(e,{Z:function(){return k}});var r=i(2119),n=i(6092),o=(0,r.Z)(n.Z,"DataView"),a=i(6183),s=(0,r.Z)(n.Z,"Promise"),l=i(3203),c=(0,r.Z)(n.Z,"WeakMap"),h=i(1922),u=i(19),f="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,u.Z)(o),_=(0,u.Z)(a.Z),b=(0,u.Z)(s),C=(0,u.Z)(l.Z),x=(0,u.Z)(c),v=h.Z;(o&&v(new o(new ArrayBuffer(1)))!=m||a.Z&&v(new a.Z)!=f||s&&v(s.resolve())!=d||l.Z&&v(new l.Z)!=p||c&&v(new c)!=g)&&(v=function(t){var e=(0,h.Z)(t),i="[object Object]"==e?t.constructor:void 0,r=i?(0,u.Z)(i):"";if(r)switch(r){case y:return m;case _:return f;case b:return d;case C:return p;case x:return g}return e});var k=v},2764:function(t,e){"use strict";var i=Object.prototype;e.Z=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},4254:function(t,e,i){"use strict";var r=i(3413),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n&&r.Z.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();e.Z=s},1851:function(t,e){"use strict";e.Z=function(t,e){return function(i){return t(e(i))}}},6092:function(t,e,i){"use strict";var r=i(3413),n="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||n||Function("return this")();e.Z=o},19:function(t,e){"use strict";var i=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9651:function(t,e){"use strict";e.Z=function(t,e){return t===e||t!=t&&e!=e}},4732:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var r=i(1922),n=i(8533),o=function(t){return(0,n.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)},a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return(0,n.Z)(t)&&s.call(t,"callee")&&!l.call(t,"callee")},h=c},7771:function(t,e){"use strict";var i=Array.isArray;e.Z=i},585:function(t,e,i){"use strict";var r=i(3234),n=i(1656);e.Z=function(t){return null!=t&&(0,n.Z)(t.length)&&!(0,r.Z)(t)}},6706:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var r=i(6092),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n?r.Z.Buffer:void 0,s=(a?a.isBuffer:void 0)||function(){return!1}},9697:function(t,e,i){"use strict";var r=i(8448),n=i(6155),o=i(4732),a=i(7771),s=i(585),l=i(6706),c=i(2764),h=i(7212),u=Object.prototype.hasOwnProperty;e.Z=function(t){if(null==t)return!0;if((0,s.Z)(t)&&((0,a.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.Z)(t)||(0,h.Z)(t)||(0,o.Z)(t)))return!t.length;var e=(0,n.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,c.Z)(t))return!(0,r.Z)(t).length;for(var i in t)if(u.call(t,i))return!1;return!0}},3234:function(t,e,i){"use strict";var r=i(1922),n=i(7226);e.Z=function(t){if(!(0,n.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1656:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7226:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},8533:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},7212:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var r=i(1922),n=i(1656),o=i(8533),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=i(1162),l=i(4254),c=l.Z&&l.Z.isTypedArray,h=c?(0,s.Z)(c):function(t){return(0,o.Z)(t)&&(0,n.Z)(t.length)&&!!a[(0,r.Z)(t)]}},2454:function(t,e,i){"use strict";var r=i(520);function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var a=t.apply(this,r);return i.cache=o.set(n,a)||o,a};return i.cache=new(n.Cache||r.Z),i}n.Cache=r.Z,e.Z=n},3110:function(t,e,i){"use strict";i.d(e,{a:function(){return J},b:function(){return C},c:function(){return pt},d:function(){return $},e:function(){return S},f:function(){return N},g:function(){return G},h:function(){return V},i:function(){return Y},j:function(){return z},k:function(){return w},l:function(){return g},m:function(){return U},n:function(){return P},o:function(){return st},p:function(){return lt},q:function(){return ht},r:function(){return Q},s:function(){return m},t:function(){return A},u:function(){return H},v:function(){return ct},w:function(){return ut},x:function(){return ft},y:function(){return at},z:function(){return T}});var r=i(7856),n=i(7484),o=i(1767),a=i(5971),s=(t,e)=>{const i=o.Z.parse(t);for(const t in e)i[t]=a.Z.channel.clamp[t](e[t]);return o.Z.stringify(i)},l=(t,e)=>{const i=o.Z.parse(t),r={};for(const t in e)e[t]&&(r[t]=i[t]+e[t]);return s(t,r)},c=i(4549),h=(t,e,i=0,r=1)=>{if("number"!=typeof t)return s(t,{a:e});const n=c.Z.set({r:a.Z.channel.clamp.r(t),g:a.Z.channel.clamp.g(e),b:a.Z.channel.clamp.b(i),a:a.Z.channel.clamp.a(r)});return o.Z.stringify(n)},u=(t,e=100)=>{const i=o.Z.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,((t,e,i=50)=>{const{r:r,g:n,b:a,a:s}=o.Z.parse(t),{r:l,g:c,b:u,a:f}=o.Z.parse(e),d=i/100,p=2*d-1,g=s-f,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return h(r*m+l*y,n*m+c*y,a*m+u*y,s*d+f*(1-d))})(i,t,e)},f=i(7201),d=i(2281);const p={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},g={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},m=function(t="fatal"){let e=p.fatal;"string"==typeof t?(t=t.toLowerCase())in p&&(e=p[t]):"number"==typeof t&&(e=t),g.trace=()=>{},g.debug=()=>{},g.info=()=>{},g.warn=()=>{},g.error=()=>{},g.fatal=()=>{},e<=p.fatal&&(g.fatal=console.error?console.error.bind(console,y("FATAL"),"color: orange"):console.log.bind(console,"",y("FATAL"))),e<=p.error&&(g.error=console.error?console.error.bind(console,y("ERROR"),"color: orange"):console.log.bind(console,"",y("ERROR"))),e<=p.warn&&(g.warn=console.warn?console.warn.bind(console,y("WARN"),"color: orange"):console.log.bind(console,"",y("WARN"))),e<=p.info&&(g.info=console.info?console.info.bind(console,y("INFO"),"color: lightblue"):console.log.bind(console,"",y("INFO"))),e<=p.debug&&(g.debug=console.debug?console.debug.bind(console,y("DEBUG"),"color: lightgreen"):console.log.bind(console,"",y("DEBUG"))),e<=p.trace&&(g.trace=console.debug?console.debug.bind(console,y("TRACE"),"color: lightgreen"):console.log.bind(console,"",y("TRACE")))},y=t=>`%c${n().format("ss.SSS")} : ${t} : `,_=t=>r.sanitize(t),b=(t,e)=>{var i;if(!1!==(null==(i=e.flowchart)?void 0:i.htmlLabels)){const i=e.securityLevel;"antiscript"===i||"strict"===i?t=_(t):"loose"!==i&&(t=(t=(t=k(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=v(t))}return t},C=(t,e)=>t?t=e.dompurifyConfig?r.sanitize(b(t,e),e.dompurifyConfig).toString():r.sanitize(b(t,e),{FORBID_TAGS:["style"]}).toString():t,x=/<br\s*\/?>/gi,v=t=>t.replace(/#br#/g,"<br/>"),k=t=>t.replace(x,"#br#"),w=t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),T=function(t){let e=t;if(t.split("~").length-1>=2){let t=e;do{e=t,t=e.replace(/~([^\s,:;]+)~/,"<$1>")}while(t!=e);return T(t)}return e},S={getRows:t=>t?k(t).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:C,sanitizeTextOrArray:(t,e)=>"string"==typeof t?C(t,e):t.flat().map((t=>C(t,e))),hasBreaks:t=>x.test(t),splitBreaks:t=>t.split(x),lineBreakRegex:x,removeScript:_,getUrl: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},evaluate:w},B=(t,e)=>l(t,e?{s:-40,l:10}:{s:-40,l:-10}),M="#ffffff",F="#f2f2f2";class L{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,d.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,d.Z)(this.contrast,55),this.border2=this.contrast,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,f.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,d.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,d.Z)(this.contrast,30),this.sectionBkgColor2=(0,d.Z)(this.contrast,30),this.taskBorderColor=(0,f.Z)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,d.Z)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,f.Z)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,f.Z)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||l(this.primaryColor,{h:-30}),this.git4=this.pie5||l(this.primaryColor,{h:-60}),this.git5=this.pie6||l(this.primaryColor,{h:-90}),this.git6=this.pie7||l(this.primaryColor,{h:60}),this.git7=this.pie8||l(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const A={base:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||l(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||l(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||B(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||B(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||B(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||u(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||u(this.tertiaryColor),this.lineColor=this.lineColor||u(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,f.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,f.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||u(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,d.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,f.Z)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,f.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,f.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||l(this.primaryColor,{h:64}),this.fillType3=this.fillType3||l(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||l(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||l(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||l(this.primaryColor,{h:128}),this.fillType7=this.fillType7||l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-10}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,f.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)):(this.git0=(0,f.Z)(this.git0,25),this.git1=(0,f.Z)(this.git1,25),this.git2=(0,f.Z)(this.git2,25),this.git3=(0,f.Z)(this.git3,25),this.git4=(0,f.Z)(this.git4,25),this.git5=(0,f.Z)(this.git5,25),this.git6=(0,f.Z)(this.git6,25),this.git7=(0,f.Z)(this.git7,25)),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},dark:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,d.Z)(this.primaryColor,16),this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=u(this.background),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,d.Z)(u("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=h(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,f.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=h(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=h(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="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,d.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,d.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,d.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,f.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,d.Z)(this.secondaryColor,20),this.git1=(0,d.Z)(this.pie2||this.secondaryColor,20),this.git2=(0,d.Z)(this.pie3||this.tertiaryColor,20),this.git3=(0,d.Z)(this.pie4||l(this.primaryColor,{h:-30}),20),this.git4=(0,d.Z)(this.pie5||l(this.primaryColor,{h:-60}),20),this.git5=(0,d.Z)(this.pie6||l(this.primaryColor,{h:-90}),10),this.git6=(0,d.Z)(this.pie7||l(this.primaryColor,{h:60}),10),this.git7=(0,d.Z)(this.pie8||l(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,d.Z)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,d.Z)(this.background,2)}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},default:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=l(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=h(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="calculated",this.personBkg="calculated",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||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,f.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,f.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,f.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,f.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||u(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||u(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,d.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||l(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||l(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)):(this.git0=(0,f.Z)(this.git0,25),this.git1=(0,f.Z)(this.git1,25),this.git2=(0,f.Z)(this.git2,25),this.git3=(0,f.Z)(this.git3,25),this.git4=(0,f.Z)(this.git4,25),this.git5=(0,f.Z)(this.git5,25),this.git6=(0,f.Z)(this.git6,25),this.git7=(0,f.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,f.Z)(u(this.git0),25),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||u(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||u(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},forest:{getThemeVariables:t=>{const e=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,d.Z)("#cde498",10),this.primaryBorderColor=B(this.primaryColor,this.darkMode),this.secondaryBorderColor=B(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=B(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.primaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,f.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,f.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,f.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,f.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,f.Z)(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.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||l(this.primaryColor,{l:-30}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)):(this.git0=(0,f.Z)(this.git0,25),this.git1=(0,f.Z)(this.git1,25),this.git2=(0,f.Z)(this.git2,25),this.git3=(0,f.Z)(this.git3,25),this.git4=(0,f.Z)(this.git4,25),this.git5=(0,f.Z)(this.git5,25),this.git6=(0,f.Z)(this.git6,25),this.git7=(0,f.Z)(this.git7,25)),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||F}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};return e.calculate(t),e}},neutral:{getThemeVariables:t=>{const e=new L;return e.calculate(t),e}}},E={theme:"default",themeVariables:A.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{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,useMaxWidth:!0,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,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,displayMode:"",axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0,textPosition:.75},requirement:{useWidth:void 0,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},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,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,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},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"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};E.class&&(E.class.arrowMarkerAbsolute=E.arrowMarkerAbsolute),E.gitGraph&&(E.gitGraph.arrowMarkerAbsolute=E.arrowMarkerAbsolute);const O=(t,e="")=>Object.keys(t).reduce(((i,r)=>Array.isArray(t[r])?i:"object"==typeof t[r]&&null!==t[r]?[...i,e+r,...O(t[r],"")]:[...i,e+r]),[]),N=O(E,""),I=E,D=function(t,e,i){const{depth:r,clobber:n}=Object.assign({depth:2,clobber:!1},i);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>D(t,e,i))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((i=>{"object"!=typeof e[i]||void 0!==t[i]&&"object"!=typeof t[i]?(n||"object"!=typeof t[i]&&"object"!=typeof e[i])&&(t[i]=e[i]):(void 0===t[i]&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=D(t[i],e[i],{depth:r-1,clobber:n}))})),t)},$=D,z=Object.freeze(I);let Z,j=$({},z),R=[],q=$({},z);const W=(t,e)=>{let i=$({},t),r={};for(const t of e)X(t),r=$(r,t);if(i=$(i,r),r.theme&&r.theme in A){const t=$({},Z),e=$(t.themeVariables||{},r.themeVariables);i.theme&&i.theme in A&&(i.themeVariables=A[i.theme].getThemeVariables(e))}return q=i,et(q),q},P=t=>(j=$({},z),j=$(j,t),t.theme&&A[t.theme]&&(j.themeVariables=A[t.theme].getThemeVariables(t.themeVariables)),W(j,R),j),U=t=>{Z=$({},t)},H=t=>(j=$(j,t),W(j,R),j),Y=()=>$({},j),V=t=>(et(t),$(q,t),G()),G=()=>$({},q),X=t=>{["secure",...j.secure??[]].forEach((e=>{void 0!==t[e]&&(g.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{0===e.indexOf("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&X(t[e])}))},J=t=>{t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),R.push(t),W(j,R)},Q=(t=j)=>{R=[],W(t,R)};var K=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(K||{});const tt={},et=t=>{var e;t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&(tt[e="LAZY_LOAD_DEPRECATED"]||(g.warn(K[e]),tt[e]=!0))};let it="",rt="",nt="";const ot=t=>C(t,G()),at=function(){it="",nt="",rt=""},st=function(t){it=ot(t).replace(/^\s+/g,"")},lt=function(){return it||rt},ct=function(t){nt=ot(t).replace(/\n\s+/g,"\n")},ht=function(){return nt},ut=function(t){rt=ot(t)},ft=function(){return rt},dt={getAccTitle:lt,setAccTitle:st,getDiagramTitle:ft,setDiagramTitle:ut,getAccDescription:ht,setAccDescription:ct,clear:at},pt=Object.freeze(Object.defineProperty({__proto__:null,clear:at,default:dt,getAccDescription:ht,getAccTitle:lt,getDiagramTitle:ft,setAccDescription:ct,setAccTitle:st,setDiagramTitle:ut},Symbol.toStringTag,{value:"Module"}))},5484:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var r=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce((function(t,e){var i=e.match(/\n([\t ]+|(?!\s).)/g);return i?t.concat(i.map((function(t){var e,i;return null!==(i=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==i?i:0}))):t}),[]);if(n.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,n)+"}","g");r=r.map((function(t){return t.replace(o,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return e.forEach((function(t,e){var i=a.match(/(?:^|\n)( *)$/),n=i?i[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map((function(t,e){return 0===e?t:""+n+t})).join("\n")),a+=o+r[e+1]})),a},n=i(3110),o=i(1188),a=i(6848);i(7856),i(7484),i(7967),i(5740);const s=(t,e,i)=>{n.l.warn(t),(0,o.i)(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},l=async function(t={querySelector:".mermaid"}){try{await c(t)}catch(e){if((0,o.i)(e)&&n.l.error(e.str),m.parseError&&m.parseError(e),!t.suppressErrors)throw n.l.error("Use the suppressErrors option to suppress these errors"),e}},c=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const l=a.m.getConfig();let c;if(n.l.debug((t?"":"No ")+"Callback function found"),i)c=i;else{if(!e)throw new Error("Nodes and querySelector are both undefined");c=document.querySelectorAll(e)}n.l.debug(`Found ${c.length} diagrams`),void 0!==(null==l?void 0:l.startOnLoad)&&(n.l.debug("Start On Load: "+(null==l?void 0:l.startOnLoad)),a.m.updateSiteConfig({startOnLoad:null==l?void 0:l.startOnLoad}));const h=new o.u.initIdGenerator(l.deterministicIds,l.deterministicIDSeed);let u;const f=[];for(const e of Array.from(c)){if(n.l.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const i=`mermaid-${h.next()}`;u=e.innerHTML,u=r(o.u.entityDecode(u)).trim().replace(/<br\s*\/?>/gi,"<br/>");const a=o.u.detectInit(u);a&&n.l.debug("Detected early reinit: ",a);try{const{svg:r,bindFunctions:n}=await g(i,u,e);e.innerHTML=r,t&&await t(i),n&&n(e)}catch(t){s(t,f,m.parseError)}}if(f.length>0)throw f[0]},h=function(t){a.m.initialize(t)},u=function(){if(m.startOnLoad){const{startOnLoad:t}=a.m.getConfig();t&&m.run().catch((t=>n.l.error("Mermaid failed to initialize",t)))}};"undefined"!=typeof document&&window.addEventListener("load",u,!1);const f=[];let d=!1;const p=async()=>{if(!d){for(d=!0;f.length>0;){const t=f.shift();if(t)try{await t()}catch(t){n.l.error("Error executing queue",t)}}d=!1}},g=(t,e,i)=>new Promise(((r,o)=>{f.push((()=>new Promise(((s,l)=>{a.m.render(t,e,i).then((t=>{s(t),r(t)}),(t=>{var e;n.l.error("Error parsing",t),null==(e=m.parseError)||e.call(m,t),l(t),o(t)}))})))),p().catch(o)})),m={startOnLoad:!0,mermaidAPI:a.m,parse:async(t,e)=>new Promise(((i,r)=>{f.push((()=>new Promise(((o,s)=>{a.m.parse(t,e).then((t=>{o(t),i(t)}),(t=>{var e;n.l.error("Error parsing",t),null==(e=m.parseError)||e.call(m,t),s(t),r(t)}))})))),p().catch(r)})),render:g,init:async function(t,e,i){n.l.warn("mermaid.init is deprecated. Please use run instead."),t&&h(t);const r={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await l(r)},run:l,registerExternalDiagrams:async(t,{lazyLoad:e=!0}={})=>{(0,o.r)(...t),!1===e&&await(0,o.l)()},initialize:h,parseError:void 0,contentLoaded:u,setParseErrorHandler:function(t){m.parseError=t},detectType:o.d}},6848:function(t,e,i){"use strict";i.d(e,{a:function(){return Nt},d:function(){return zt},m:function(){return qt}});var r=i(5740),n="comm",o="rule",a="decl",s=Math.abs,l=String.fromCharCode;function c(t){return t.trim()}function h(t,e,i){return t.replace(e,i)}function u(t,e){return t.indexOf(e)}function f(t,e){return 0|t.charCodeAt(e)}function d(t,e,i){return t.slice(e,i)}function p(t){return t.length}function g(t){return t.length}function m(t,e){return e.push(t),t}function y(t,e){for(var i="",r=g(t),n=0;n<r;n++)i+=e(t[n],n,t,e)||"";return i}function _(t,e,i,r){switch(t.type){case"@import":case a:return t.return=t.return||t.value;case n:return"";case"@keyframes":return t.return=t.value+"{"+y(t.children,r)+"}";case o:t.value=t.props.join(",")}return p(i=y(t.children,r))?t.return=t.value+"{"+i+"}":""}Object.assign;var b=1,C=1,x=0,v=0,k=0,w="";function T(t,e,i,r,n,o,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:b,column:C,length:a,return:""}}function S(){return k=v>0?f(w,--v):0,C--,10===k&&(C=1,b--),k}function B(){return k=v<x?f(w,v++):0,C++,10===k&&(C=1,b++),k}function M(){return f(w,v)}function F(){return v}function L(t,e){return d(w,t,e)}function A(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(t){return c(L(v-1,I(91===t?t+2:40===t?t+1:t)))}function O(t){for(;(k=M())&&k<33;)B();return A(t)>2||A(k)>3?"":" "}function N(t,e){for(;--e&&B()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return L(t,F()+(e<6&&32==M()&&32==B()))}function I(t){for(;B();)switch(k){case t:return v;case 34:case 39:34!==t&&39!==t&&I(k);break;case 40:41===t&&I(t);break;case 92:B()}return v}function D(t,e){for(;B()&&t+k!==57&&(t+k!==84||47!==M()););return"/*"+L(e,v-1)+"*"+l(47===t?t:B())}function $(t){for(;!A(M());)B();return L(t,v)}function z(t){return function(t){return w="",t}(Z("",null,null,null,[""],t=function(t){return b=C=1,x=p(w=t),v=0,[]}(t),0,[0],t))}function Z(t,e,i,r,n,o,a,s,c){for(var d=0,g=0,y=a,_=0,b=0,C=0,x=1,v=1,k=1,w=0,T="",L=n,A=o,I=r,z=T;v;)switch(C=w,w=B()){case 40:if(108!=C&&58==f(z,y-1)){-1!=u(z+=h(E(w),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:z+=E(w);break;case 9:case 10:case 13:case 32:z+=O(C);break;case 92:z+=N(F()-1,7);continue;case 47:switch(M()){case 42:case 47:m(R(D(B(),F()),e,i),c);break;default:z+="/"}break;case 123*x:s[d++]=p(z)*k;case 125*x:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+g:-1==k&&(z=h(z,/\f/g,"")),b>0&&p(z)-y&&m(b>32?q(z+";",r,i,y-1):q(h(z," ","")+";",r,i,y-2),c);break;case 59:z+=";";default:if(m(I=j(z,e,i,d,g,n,s,T,L=[],A=[],y),o),123===w)if(0===g)Z(z,e,I,I,L,o,y,s,A);else switch(99===_&&110===f(z,3)?100:_){case 100:case 109:case 115:Z(t,I,I,r&&m(j(t,I,I,0,0,n,s,T,n,L=[],y),A),n,A,y,s,r?L:A);break;default:Z(z,I,I,I,[""],A,0,s,A)}}d=g=b=0,x=k=1,T=z="",y=a;break;case 58:y=1+p(z),b=C;default:if(x<1)if(123==w)--x;else if(125==w&&0==x++&&125==S())continue;switch(z+=l(w),w*x){case 38:k=g>0?1:(z+="\f",-1);break;case 44:s[d++]=(p(z)-1)*k,k=1;break;case 64:45===M()&&(z+=E(B())),_=M(),g=y=p(T=z+=$(F())),w++;break;case 45:45===C&&2==p(z)&&(x=0)}}return o}function j(t,e,i,r,n,a,l,u,f,p,m){for(var y=n-1,_=0===n?a:[""],b=g(_),C=0,x=0,v=0;C<r;++C)for(var k=0,w=d(t,y+1,y=s(x=l[C])),S=t;k<b;++k)(S=c(x>0?_[k]+" "+w:h(w,/&\f/g,_[k])))&&(f[v++]=S);return T(t,e,i,0===n?o:u,f,p,m)}function R(t,e,i){return T(t,e,i,n,l(k),d(t,2,-2),0)}function q(t,e,i,r){return T(t,e,i,a,d(t,0,r),d(t,r+1,-1),r)}var W=i(3110),P=i(1188),U=i(7856),H=i(9697);const Y="10.1.0",V={id:"c4",detector:t=>null!==t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/),loader:async()=>{const{diagram:t}=await i.e(733).then(i.bind(i,6733));return{id:"c4",diagram:t}}},G="flowchart",X={id:G,detector:(t,e)=>{var i,r;return"dagre-wrapper"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&"elk"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&null!==t.match(/^\s*graph/)},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(211),i.e(99),i.e(566),i.e(863),i.e(433)]).then(i.bind(i,3433));return{id:G,diagram:t}}},J="flowchart-v2",Q={id:J,detector:(t,e)=>{var i,r,n;return"dagre-d3"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&"elk"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&(null!==t.match(/^\s*graph/)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)||null!==t.match(/^\s*flowchart/))},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(211),i.e(99),i.e(566),i.e(863),i.e(478)]).then(i.bind(i,9478));return{id:J,diagram:t}}},K={id:"er",detector:t=>null!==t.match(/^\s*erDiagram/),loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(725)]).then(i.bind(i,8725));return{id:"er",diagram:t}}},tt="gitGraph",et={id:tt,detector:t=>null!==t.match(/^\s*gitGraph/),loader:async()=>{const{diagram:t}=await i.e(314).then(i.bind(i,5314));return{id:tt,diagram:t}}},it="gantt",rt={id:it,detector:t=>null!==t.match(/^\s*gantt/),loader:async()=>{const{diagram:t}=await i.e(706).then(i.bind(i,4706));return{id:it,diagram:t}}},nt="info",ot={id:nt,detector:t=>null!==t.match(/^\s*info/),loader:async()=>{const{diagram:t}=await i.e(234).then(i.bind(i,6234));return{id:nt,diagram:t}}},at={id:"pie",detector:t=>null!==t.match(/^\s*pie/),loader:async()=>{const{diagram:t}=await i.e(730).then(i.bind(i,6730));return{id:"pie",diagram:t}}},st="requirement",lt={id:st,detector:t=>null!==t.match(/^\s*requirement(Diagram)?/),loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(941)]).then(i.bind(i,6941));return{id:st,diagram:t}}},ct="sequence",ht={id:ct,detector:t=>null!==t.match(/^\s*sequenceDiagram/),loader:async()=>{const{diagram:t}=await i.e(899).then(i.bind(i,2899));return{id:ct,diagram:t}}},ut="class",ft={id:ut,detector:(t,e)=>{var i;return"dagre-wrapper"!==(null==(i=null==e?void 0:e.class)?void 0:i.defaultRenderer)&&null!==t.match(/^\s*classDiagram/)},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(1),i.e(855)]).then(i.bind(i,2855));return{id:ut,diagram:t}}},dt="classDiagram",pt={id:dt,detector:(t,e)=>{var i;return null!==t.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(i=null==e?void 0:e.class)?void 0:i.defaultRenderer)||null!==t.match(/^\s*classDiagram-v2/)},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(211),i.e(99),i.e(566),i.e(1),i.e(619)]).then(i.bind(i,2171));return{id:dt,diagram:t}}},gt="state",mt={id:gt,detector:(t,e)=>{var i;return"dagre-wrapper"!==(null==(i=null==e?void 0:e.state)?void 0:i.defaultRenderer)&&null!==t.match(/^\s*stateDiagram/)},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(341),i.e(185)]).then(i.bind(i,5185));return{id:gt,diagram:t}}},yt="stateDiagram",_t={id:yt,detector:(t,e)=>{var i,r;return null!==t.match(/^\s*stateDiagram-v2/)||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(i=null==e?void 0:e.state)?void 0:i.defaultRenderer))||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.all([i.e(451),i.e(211),i.e(99),i.e(566),i.e(341),i.e(964)]).then(i.bind(i,6964));return{id:yt,diagram:t}}},bt="journey",Ct={id:bt,detector:t=>null!==t.match(/^\s*journey/),loader:async()=>{const{diagram:t}=await i.e(492).then(i.bind(i,492));return{id:bt,diagram:t}}},xt={setConf:function(){},draw:(t,e,i)=>{try{W.l.debug("Renering svg for syntax error\n");const t=(0,r.Ys)("#"+e),n=t.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),t.attr("height",100),t.attr("width",500),t.attr("viewBox","768 0 912 512")}catch(t){W.l.error("Error while rendering info diagram"),W.l.error((0,P.g)(t))}}},vt={db:{clear:()=>{}},styles:()=>"",renderer:xt,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},kt="flowchart-elk",wt={id:kt,detector:(t,e)=>{var i;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&"elk"===(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.all([i.e(211),i.e(99),i.e(863),i.e(216)]).then(i.bind(i,4216));return{id:kt,diagram:t}}},Tt="timeline",St={id:Tt,detector:t=>null!==t.match(/^\s*timeline/),loader:async()=>{const{diagram:t}=await i.e(573).then(i.bind(i,4582));return{id:Tt,diagram:t}}},Bt="mindmap",Mt={id:Bt,detector:t=>null!==t.match(/^\s*mindmap/),loader:async()=>{const{diagram:t}=await Promise.all([i.e(211),i.e(926)]).then(i.bind(i,7926));return{id:Bt,diagram:t}}};let Ft=!1;const Lt=()=>{Ft||(Ft=!0,(0,P.a)("error",vt,(t=>"error"===t.toLowerCase().trim())),(0,P.a)("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,P.r)(V,pt,ft,K,rt,ot,at,lt,ht,wt,Q,X,Mt,St,et,_t,mt,Ct))};class At{constructor(t){var e,i;this.text=t,this.type="graph",this.text+="\n";const r=(0,W.g)();try{this.type=(0,P.d)(t,r)}catch(t){this.type="error",this.detectError=t}const n=(0,P.b)(this.type);W.l.debug("Type "+this.type),this.db=n.db,null==(i=(e=this.db).clear)||i.call(e),this.renderer=n.renderer,this.parser=n.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=t=>o((t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,""))((0,P.e)(t,this.db))),this.parser.parser.yy=this.db,n.init&&(n.init(r),W.l.info("Initialized diagram "+this.type,r)),this.parse()}parse(){var t,e;if(this.detectError)throw this.detectError;null==(e=(t=this.db).clear)||e.call(t),this.parser.parse(this.text)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}}const Et=async t=>{const e=(0,P.d)(t,(0,W.g)());try{(0,P.b)(e)}catch(t){const i=(0,P.c)(e);if(!i)throw new P.U(`Diagram ${e} not found.`);const{id:r,diagram:n}=await i();(0,P.a)(r,n)}return new At(t)};let Ot=[];const Nt=t=>{Ot.push(t)},It=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],Dt=["foreignobject"],$t=["dominant-baseline"],zt=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},Zt=(t,e,i=[])=>`\n.${t} ${e} { ${i.join(" !important; ")} !important; }`,jt=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function Rt(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const qt=Object.freeze({render:async function(t,e,i){var n,o,a,s;Lt(),(0,W.r)();const l=P.u.detectInit(e);l&&((0,P.f)(l),(0,W.a)(l));const c=(0,W.g)();W.l.debug(c),e.length>((null==c?void 0:c.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),e=e.replace(/\r\n?/g,"\n");const h="#"+t,u="i"+t,f="#"+u,d="d"+t,p="#"+d;let g=(0,r.Ys)("body");const m="sandbox"===c.securityLevel,b="loose"===c.securityLevel,C=c.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),m){const t=Rt((0,r.Ys)(i),u);g=(0,r.Ys)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,r.Ys)(i);jt(g,t,d,`font-family: ${C}`,"http://www.w3.org/1999/xlink")}else{if(((t,e,i,r)=>{var n,o,a;null==(n=t.getElementById(e))||n.remove(),null==(o=t.getElementById(i))||o.remove(),null==(a=t.getElementById(r))||a.remove()})(document,t,d,u),m){const t=Rt((0,r.Ys)("body"),u);g=(0,r.Ys)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,r.Ys)("body");jt(g,t,d)}let x,v;e=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}(e);try{x=await Et(e)}catch(t){x=new At("error"),v=t}const k=g.select(p).node(),w=x.type,T=k.firstChild,S=T.firstChild,B=((t,e,i,r)=>{const n=((t,e,i={})=>{var r;let n="";if(void 0!==t.themeCSS&&(n+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!(0,H.Z)(i)&&It.includes(e)){const e=t.htmlLabels||(null==(r=t.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in i){const r=i[t];(0,H.Z)(r.styles)||e.forEach((t=>{n+=Zt(r.id,t,r.styles)})),(0,H.Z)(r.textStyles)||(n+=Zt(r.id,"tspan",r.textStyles))}}return n})(t,e,i);return y(z(`${r}{${(0,P.h)(e,n,t.themeVariables)}}`),_)})(c,w,It.includes(w)?x.renderer.getClasses(e,x):{},h),M=document.createElement("style");M.innerHTML=B,T.insertBefore(M,S);try{await x.renderer.draw(e,t,Y,x)}catch(i){throw xt.draw(e,t,Y),i}!function(t,e,i,r){(function(t,e){t.attr("role","graphics-document document"),(0,H.Z)(e)||t.attr("aria-roledescription",e)})(e,t),function(t,e,i,r){if(void 0!==t.insert&&(e||i)){if(i){const e="chart-desc-"+r;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(i)}if(e){const i="chart-title-"+r;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}(e,i,r,e.attr("id"))}(w,g.select(`${p} svg`),null==(o=(n=x.db).getAccTitle)?void 0:o.call(n),null==(s=(a=x.db).getAccDescription)?void 0:s.call(a)),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let F=g.select(p).node().innerHTML;if(W.l.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),F=((t="",e,i)=>{let r=t;return i||e||(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=zt(r),r=r.replace(/<br>/g,"<br/>"),r})(F,m,(0,W.k)(c.arrowMarkerAbsolute)),m?F=((t="",e)=>`<iframe style="width:100%;height:${e?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;base64,${btoa('<body style="margin:0">'+t+"</body>")}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n  The "iframe" tag is not supported by your browser.\n</iframe>`)(F,g.select(p+" svg").node()):b||(F=U.sanitize(F,{ADD_TAGS:Dt,ADD_ATTR:$t})),Ot.forEach((t=>{t()})),Ot=[],v)throw v;const L=m?f:p,A=(0,r.Ys)(L).node();return A&&"remove"in A&&A.remove(),{svg:F,bindFunctions:x.db.bindFunctions}},parse:async function(t,e){Lt();try{(await Et(t)).parse()}catch(t){if(null==e?void 0:e.suppressErrors)return!1;throw t}return!0},parseDirective:P.p,getDiagramFromText:Et,initialize:function(t={}){var e;(null==t?void 0:t.fontFamily)&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,W.m)(t),(null==t?void 0:t.theme)&&t.theme in W.t?t.themeVariables=W.t[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=W.t.default.getThemeVariables(t.themeVariables));const i="object"==typeof t?(0,W.n)(t):(0,W.i)();(0,W.s)(i.logLevel),Lt()},getConfig:W.g,setConfig:W.h,getSiteConfig:W.i,updateSiteConfig:W.u,reset:()=>{(0,W.r)()},globalReset:()=>{(0,W.r)(W.j)},defaultConfig:W.j});(0,W.s)((0,W.g)().logLevel),(0,W.r)((0,W.g)())},1188:function(t,e,i){"use strict";i.d(e,{U:function(){return Qt},a:function(){return Xt},b:function(){return Jt},c:function(){return ae},d:function(){return ie},e:function(){return It},f:function(){return we},g:function(){return Be},h:function(){return Zt},i:function(){return Se},j:function(){return xe},k:function(){return Dt},l:function(){return ne},m:function(){return Ce},n:function(){return de},o:function(){return ue},p:function(){return Rt},q:function(){return me},r:function(){return re},s:function(){return $t},t:function(){return Ut},u:function(){return Fe},v:function(){return Yt},w:function(){return _e},x:function(){return Me},y:function(){return ge}});var r=i(7967),n=i(5740),o=i(3110),a=i(2454);function s(t){return null==t}var l={isNothing:s,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:s(t)?[]:[t]},repeat:function(t,e){var i,r="";for(i=0;i<e;i+=1)r+=t;return r},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var i,r,n,o;if(e)for(i=0,r=(o=Object.keys(e)).length;i<r;i+=1)t[n=o[i]]=e[n];return t}};function c(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+="\n\n"+t.mark.snippet),r+" "+i):r}function h(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=function(t){return this.name+": "+c(this,t)};var u=h;function f(t,e,i,r,n){var o="",a="",s=Math.floor(n/2)-1;return r-e>s&&(e=r-s+(o=" ... ").length),i-r>s&&(i=r+s-(a=" ...").length),{str:o+t.slice(e,i).replace(/\t/g,"→")+a,pos:r-e+o.length}}function d(t,e){return l.repeat(" ",e-t.length)+t}var p=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,n=[0],o=[],a=-1;i=r.exec(t.buffer);)o.push(i.index),n.push(i.index+i[0].length),t.position<=i.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s,c,h="",u=Math.min(t.line+e.linesAfter,o.length).toString().length,p=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)c=f(t.buffer,n[a-s],o[a-s],t.position-(n[a]-n[a-s]),p),h=l.repeat(" ",e.indent)+d((t.line-s+1).toString(),u)+" | "+c.str+"\n"+h;for(c=f(t.buffer,n[a],o[a],t.position,p),h+=l.repeat(" ",e.indent)+d((t.line+1).toString(),u)+" | "+c.str+"\n",h+=l.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=o.length);s++)c=f(t.buffer,n[a+s],o[a+s],t.position-(n[a]-n[a+s]),p),h+=l.repeat(" ",e.indent)+d((t.line+s+1).toString(),u)+" | "+c.str+"\n";return h.replace(/\n$/,"")},g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"],y=function(t,e){var i,r;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===g.indexOf(e))throw new u('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=(i=e.styleAliases||null,r={},null!==i&&Object.keys(i).forEach((function(t){i[t].forEach((function(e){r[String(e)]=t}))})),r),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function _(t,e){var i=[];return t[e].forEach((function(t){var e=i.length;i.forEach((function(i,r){i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi&&(e=r)})),i[e]=t})),i}function b(t){return this.extend(t)}b.prototype.extend=function(t){var e=[],i=[];if(t instanceof y)i.push(t);else if(Array.isArray(t))i=i.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),i.forEach((function(t){if(!(t instanceof y))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(b.prototype);return r.implicit=(this.implicit||[]).concat(e),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=_(r,"implicit"),r.compiledExplicit=_(r,"explicit"),r.compiledTypeMap=function(){var t,e,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(i.multi[t.kind].push(t),i.multi.fallback.push(t)):i[t.kind][t.tag]=i.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(r);return i}(r.compiledImplicit,r.compiledExplicit),r};var C=new b({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})]}),x=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),v=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function k(t){return 48<=t&&t<=55}function w(t){return 48<=t&&t<=57}var T=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,i,r=t.length,n=0,o=!1;if(!r)return!1;if("-"!==(e=t[n])&&"+"!==e||(e=t[++n]),"0"===e){if(n+1===r)return!0;if("b"===(e=t[++n])){for(n++;n<r;n++)if("_"!==(e=t[n])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!(48<=(i=t.charCodeAt(n))&&i<=57||65<=i&&i<=70||97<=i&&i<=102))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!k(t.charCodeAt(n)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;n<r;n++)if("_"!==(e=t[n])){if(!w(t.charCodeAt(n)))return!1;o=!0}return!(!o||"_"===e)},construct:function(t){var e,i=t,r=1;if(-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),"-"!==(e=i[0])&&"+"!==e||("-"===e&&(r=-1),e=(i=i.slice(1))[0]),"0"===i)return 0;if("0"===e){if("b"===i[1])return r*parseInt(i.slice(2),2);if("x"===i[1])return r*parseInt(i.slice(2),16);if("o"===i[1])return r*parseInt(i.slice(2),8)}return r*parseInt(i,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!l.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),S=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),B=/^[-+]?[0-9]+e/,M=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!S.test(t)||"_"===t[t.length-1])},construct:function(t){var e,i;return i="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:i*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||l.isNegativeZero(t))},represent:function(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l.isNegativeZero(t))return"-0.0";return i=t.toString(10),B.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),F=C.extend({implicit:[x,v,T,M]}),L=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),A=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),E=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==L.exec(t)||null!==A.exec(t))},construct:function(t){var e,i,r,n,o,a,s,l,c=0,h=null;if(null===(e=L.exec(t))&&(e=A.exec(t)),null===e)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(h=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(h=-h)),l=new Date(Date.UTC(i,r,n,o,a,s,c)),h&&l.setTime(l.getTime()-h),l},instanceOf:Date,represent:function(t){return t.toISOString()}}),O=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",I=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,i,r=0,n=t.length,o=N;for(i=0;i<n;i++)if(!((e=o.indexOf(t.charAt(i)))>64)){if(e<0)return!1;r+=6}return r%8==0},construct:function(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=N,a=0,s=[];for(e=0;e<n;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(r.charAt(e));return 0==(i=n%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===i?(s.push(a>>10&255),s.push(a>>2&255)):12===i&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,i,r="",n=0,o=t.length,a=N;for(e=0;e<o;e++)e%3==0&&e&&(r+=a[n>>18&63],r+=a[n>>12&63],r+=a[n>>6&63],r+=a[63&n]),n=(n<<8)+t[e];return 0==(i=o%3)?(r+=a[n>>18&63],r+=a[n>>12&63],r+=a[n>>6&63],r+=a[63&n]):2===i?(r+=a[n>>10&63],r+=a[n>>4&63],r+=a[n<<2&63],r+=a[64]):1===i&&(r+=a[n>>2&63],r+=a[n<<4&63],r+=a[64],r+=a[64]),r}}),D=Object.prototype.hasOwnProperty,$=Object.prototype.toString,z=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,i,r,n,o,a=[],s=t;for(e=0,i=s.length;e<i;e+=1){if(r=s[e],o=!1,"[object Object]"!==$.call(r))return!1;for(n in r)if(D.call(r,n)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(n))return!1;a.push(n)}return!0},construct:function(t){return null!==t?t:[]}}),Z=Object.prototype.toString,j=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,i,r,n,o,a=t;for(o=new Array(a.length),e=0,i=a.length;e<i;e+=1){if(r=a[e],"[object Object]"!==Z.call(r))return!1;if(1!==(n=Object.keys(r)).length)return!1;o[e]=[n[0],r[n[0]]]}return!0},construct:function(t){if(null===t)return[];var e,i,r,n,o,a=t;for(o=new Array(a.length),e=0,i=a.length;e<i;e+=1)r=a[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}}),R=Object.prototype.hasOwnProperty,q=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,i=t;for(e in i)if(R.call(i,e)&&null!==i[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),W=F.extend({implicit:[E,O],explicit:[I,z,j,q]}),P=Object.prototype.hasOwnProperty,U=1,H=2,Y=3,V=4,G=1,X=2,J=3,Q=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,K=/[\x85\u2028\u2029]/,tt=/[,\[\]\{\}]/,et=/^(?:!|!!|![a-z\-]+!)$/i,it=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function rt(t){return Object.prototype.toString.call(t)}function nt(t){return 10===t||13===t}function ot(t){return 9===t||32===t}function at(t){return 9===t||32===t||10===t||13===t}function st(t){return 44===t||91===t||93===t||123===t||125===t}function lt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function ct(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function ht(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var ut=new Array(256),ft=new Array(256),dt=0;dt<256;dt++)ut[dt]=ct(dt)?1:0,ft[dt]=ct(dt);function pt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||W,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gt(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=p(i),new u(e,i)}function mt(t,e){throw gt(t,e)}function yt(t,e){t.onWarning&&t.onWarning.call(null,gt(t,e))}var _t={YAML:function(t,e,i){var r,n,o;null!==t.version&&mt(t,"duplication of %YAML directive"),1!==i.length&&mt(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]))&&mt(t,"ill-formed argument of the YAML directive"),n=parseInt(r[1],10),o=parseInt(r[2],10),1!==n&&mt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&yt(t,"unsupported YAML version of the document")},TAG:function(t,e,i){var r,n;2!==i.length&&mt(t,"TAG directive accepts exactly two arguments"),r=i[0],n=i[1],et.test(r)||mt(t,"ill-formed tag handle (first argument) of the TAG directive"),P.call(t.tagMap,r)&&mt(t,'there is a previously declared suffix for "'+r+'" tag handle'),it.test(n)||mt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){mt(t,"tag prefix is malformed: "+n)}t.tagMap[r]=n}};function bt(t,e,i,r){var n,o,a,s;if(e<i){if(s=t.input.slice(e,i),r)for(n=0,o=s.length;n<o;n+=1)9===(a=s.charCodeAt(n))||32<=a&&a<=1114111||mt(t,"expected valid JSON character");else Q.test(s)&&mt(t,"the stream contains non-printable characters");t.result+=s}}function Ct(t,e,i,r){var n,o,a,s;for(l.isObject(i)||mt(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(n=Object.keys(i)).length;a<s;a+=1)o=n[a],P.call(e,o)||(e[o]=i[o],r[o]=!0)}function xt(t,e,i,r,n,o,a,s,l){var c,h;if(Array.isArray(n))for(c=0,h=(n=Array.prototype.slice.call(n)).length;c<h;c+=1)Array.isArray(n[c])&&mt(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===rt(n[c])&&(n[c]="[object Object]");if("object"==typeof n&&"[object Object]"===rt(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(c=0,h=o.length;c<h;c+=1)Ct(t,e,o[c],i);else Ct(t,e,o,i);else t.json||P.call(i,n)||!P.call(e,n)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,mt(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function vt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):mt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function kt(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);0!==n;){for(;ot(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)do{n=t.input.charCodeAt(++t.position)}while(10!==n&&13!==n&&0!==n);if(!nt(n))break;for(vt(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==i&&0!==r&&t.lineIndent<i&&yt(t,"deficient indentation"),r}function wt(t){var e,i=t.position;return!(45!==(e=t.input.charCodeAt(i))&&46!==e||e!==t.input.charCodeAt(i+1)||e!==t.input.charCodeAt(i+2)||(i+=3,0!==(e=t.input.charCodeAt(i))&&!at(e)))}function Tt(t,e){1===e?t.result+=" ":e>1&&(t.result+=l.repeat("\n",e-1))}function St(t,e){var i,r,n=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),45===r)&&at(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,kt(t,!0,-1)&&t.lineIndent<=e)a.push(null),r=t.input.charCodeAt(t.position);else if(i=t.line,Ft(t,e,Y,!1,!0),a.push(t.result),kt(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&0!==r)mt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=n,t.anchor=o,t.kind="sequence",t.result=a,!0)}function Bt(t){var e,i,r,n,o=!1,a=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&mt(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(o=!0,n=t.input.charCodeAt(++t.position)):33===n?(a=!0,i="!!",n=t.input.charCodeAt(++t.position)):i="!",e=t.position,o){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&62!==n);t.position<t.length?(r=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):mt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!at(n);)33===n&&(a?mt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),et.test(i)||mt(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),tt.test(r)&&mt(t,"tag suffix cannot contain flow indicator characters")}r&&!it.test(r)&&mt(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){mt(t,"tag name is malformed: "+r)}return o?t.tag=r:P.call(t.tagMap,i)?t.tag=t.tagMap[i]+r:"!"===i?t.tag="!"+r:"!!"===i?t.tag="tag:yaml.org,2002:"+r:mt(t,'undeclared tag handle "'+i+'"'),!0}function Mt(t){var e,i;if(38!==(i=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&mt(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!at(i)&&!st(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&mt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Ft(t,e,i,r,n){var o,a,s,c,h,u,f,d,p,g=1,m=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=V===i||Y===i,r&&kt(t,!0,-1)&&(m=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;Bt(t)||Mt(t);)kt(t,!0,-1)?(m=!0,s=o,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):s=!1;if(s&&(s=m||n),1!==g&&V!==i||(d=U===i||H===i?e:e+1,p=t.position-t.lineStart,1===g?s&&(St(t,p)||function(t,e,i){var r,n,o,a,s,l,c,h=t.tag,u=t.anchor,f={},d=Object.create(null),p=null,g=null,m=null,y=!1,_=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=f),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,63!==c&&58!==c||!at(r)){if(a=t.line,s=t.lineStart,l=t.position,!Ft(t,i,H,!1,!0))break;if(t.line===o){for(c=t.input.charCodeAt(t.position);ot(c);)c=t.input.charCodeAt(++t.position);if(58===c)at(c=t.input.charCodeAt(++t.position))||mt(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(xt(t,f,d,p,g,null,a,s,l),p=g=m=null),_=!0,y=!1,n=!1,p=t.tag,g=t.result;else{if(!_)return t.tag=h,t.anchor=u,!0;mt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return t.tag=h,t.anchor=u,!0;mt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(xt(t,f,d,p,g,null,a,s,l),p=g=m=null),_=!0,y=!0,n=!0):y?(y=!1,n=!0):mt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=r;if((t.line===o||t.lineIndent>e)&&(y&&(a=t.line,s=t.lineStart,l=t.position),Ft(t,e,V,!0,n)&&(y?g=t.result:m=t.result),y||(xt(t,f,d,p,g,m,a,s,l),p=g=m=null),kt(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==c)mt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&xt(t,f,d,p,g,null,a,s,l),_&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=f),_}(t,p,d))||function(t,e){var i,r,n,o,a,s,l,c,h,u,f,d,p=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(d=t.input.charCodeAt(t.position)))a=93,c=!1,o=[];else{if(123!==d)return!1;a=125,c=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),d=t.input.charCodeAt(++t.position);0!==d;){if(kt(t,!0,e),(d=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=o,!0;p?44===d&&mt(t,"expected the node content, but found ','"):mt(t,"missed comma between flow collection entries"),f=null,s=l=!1,63===d&&at(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,kt(t,!0,e)),i=t.line,r=t.lineStart,n=t.position,Ft(t,e,U,!1,!0),u=t.tag,h=t.result,kt(t,!0,e),d=t.input.charCodeAt(t.position),!l&&t.line!==i||58!==d||(s=!0,d=t.input.charCodeAt(++t.position),kt(t,!0,e),Ft(t,e,U,!1,!0),f=t.result),c?xt(t,o,y,u,h,f,i,r,n):s?o.push(xt(t,null,y,u,h,f,i,r,n)):o.push(h),kt(t,!0,e),44===(d=t.input.charCodeAt(t.position))?(p=!0,d=t.input.charCodeAt(++t.position)):p=!1}mt(t,"unexpected end of the stream within a flow collection")}(t,d)?y=!0:(a&&function(t,e){var i,r,n,o,a,s=G,c=!1,h=!1,u=e,f=0,d=!1;if(124===(o=t.input.charCodeAt(t.position)))r=!1;else{if(62!==o)return!1;r=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)G===s?s=43===o?J:X:mt(t,"repeat of a chomping mode identifier");else{if(!((n=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===n?mt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?mt(t,"repeat of an indentation width identifier"):(u=e+n-1,h=!0)}if(ot(o)){do{o=t.input.charCodeAt(++t.position)}while(ot(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!nt(o)&&0!==o)}for(;0!==o;){for(vt(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!h||t.lineIndent<u)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!h&&t.lineIndent>u&&(u=t.lineIndent),nt(o))f++;else{if(t.lineIndent<u){s===J?t.result+=l.repeat("\n",c?1+f:f):s===G&&c&&(t.result+="\n");break}for(r?ot(o)?(d=!0,t.result+=l.repeat("\n",c?1+f:f)):d?(d=!1,t.result+=l.repeat("\n",f+1)):0===f?c&&(t.result+=" "):t.result+=l.repeat("\n",f):t.result+=l.repeat("\n",c?1+f:f),c=!0,h=!0,f=0,i=t.position;!nt(o)&&0!==o;)o=t.input.charCodeAt(++t.position);bt(t,i,t.position,!1)}}return!0}(t,d)||function(t,e){var i,r,n;if(39!==(i=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(bt(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else nt(i)?(bt(t,r,n,!0),Tt(t,kt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&wt(t)?mt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);mt(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var i,r,n,o,a,s,l;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return bt(t,i,t.position,!0),t.position++,!0;if(92===s){if(bt(t,i,t.position,!0),nt(s=t.input.charCodeAt(++t.position)))kt(t,!1,e);else if(s<256&&ut[s])t.result+=ft[s],t.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(n=a,o=0;n>0;n--)(a=lt(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:mt(t,"expected hexadecimal character");t.result+=ht(o),t.position++}else mt(t,"unknown escape sequence");i=r=t.position}else nt(s)?(bt(t,i,r,!0),Tt(t,kt(t,!1,e)),i=r=t.position):t.position===t.lineStart&&wt(t)?mt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}mt(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?y=!0:function(t){var e,i,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!at(r)&&!st(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&mt(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),P.call(t.anchorMap,i)||mt(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],kt(t,!0,-1),!0}(t)?(y=!0,null===t.tag&&null===t.anchor||mt(t,"alias node should not have any properties")):function(t,e,i){var r,n,o,a,s,l,c,h,u=t.kind,f=t.result;if(at(h=t.input.charCodeAt(t.position))||st(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h)return!1;if((63===h||45===h)&&(at(r=t.input.charCodeAt(t.position+1))||i&&st(r)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;0!==h;){if(58===h){if(at(r=t.input.charCodeAt(t.position+1))||i&&st(r))break}else if(35===h){if(at(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&wt(t)||i&&st(h))break;if(nt(h)){if(s=t.line,l=t.lineStart,c=t.lineIndent,kt(t,!1,-1),t.lineIndent>=e){a=!0,h=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=c;break}}a&&(bt(t,n,o,!1),Tt(t,t.line-s),n=o=t.position,a=!1),ot(h)||(o=t.position+1),h=t.input.charCodeAt(++t.position)}return bt(t,n,o,!1),!!t.result||(t.kind=u,t.result=f,!1)}(t,d,U===i)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(y=s&&St(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&mt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,h=t.implicitTypes.length;c<h;c+=1)if((f=t.implicitTypes[c]).resolve(t.result)){t.result=f.construct(t.result),t.tag=f.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(P.call(t.typeMap[t.kind||"fallback"],t.tag))f=t.typeMap[t.kind||"fallback"][t.tag];else for(f=null,c=0,h=(u=t.typeMap.multi[t.kind||"fallback"]).length;c<h;c+=1)if(t.tag.slice(0,u[c].tag.length)===u[c].tag){f=u[c];break}f||mt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&f.kind!==t.kind&&mt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+f.kind+'", not "'+t.kind+'"'),f.resolve(t.result,t.tag)?(t.result=f.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):mt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function Lt(t){var e,i,r,n,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(kt(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){for(a=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!at(n);)n=t.input.charCodeAt(++t.position);for(r=[],(i=t.input.slice(e,t.position)).length<1&&mt(t,"directive name must not be less than one character in length");0!==n;){for(;ot(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!nt(n));break}if(nt(n))break;for(e=t.position;0!==n&&!at(n);)n=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==n&&vt(t),P.call(_t,i)?_t[i](t,i,r):yt(t,'unknown document directive "'+i+'"')}kt(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,kt(t,!0,-1)):a&&mt(t,"directives end mark is expected"),Ft(t,t.lineIndent-1,V,!1,!0),kt(t,!0,-1),t.checkLineBreaks&&K.test(t.input.slice(o,t.position))&&yt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&wt(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,kt(t,!0,-1)):t.position<t.length-1&&mt(t,"end of the stream or a document separator is expected")}function At(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var i=new pt(t,e),r=t.indexOf("\0");for(-1!==r&&(i.position=r,mt(i,"null byte is not allowed in input")),i.input+="\0";32===i.input.charCodeAt(i.position);)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Lt(i);return i.documents}var Et=C,Ot=function(t,e){var i=At(t,e);if(0!==i.length){if(1===i.length)return i[0];throw new u("expected a single document in the stream, but found more")}};const Nt=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function It(t,e){var i,r;const n=t.match(Nt);if(n){const o=Ot(n[1],{schema:Et});return(null==o?void 0:o.title)&&(null==(i=e.setDiagramTitle)||i.call(e,o.title)),(null==o?void 0:o.displayMode)&&(null==(r=e.setDisplayMode)||r.call(e,o.displayMode)),t.slice(n[0].length)}return t}const Dt=function(t,e,i,r){const n=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}(e,i,r);!function(t,e){for(let i of e)t.attr(i[0],i[1])}(t,n)},$t=function(t,e,i,r){const n=e.node().getBBox(),a=n.width,s=n.height;o.l.info(`SVG bounds: ${a}x${s}`,n);let l=0,c=0;o.l.info(`Graph bounds: ${l}x${c}`,t),l=a+2*i,c=s+2*i,o.l.info(`Calculated bounds: ${l}x${c}`),Dt(e,c,l,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},zt={},Zt=(t,e,i)=>{let r="";return t in zt&&zt[t]?r=zt[t](i):o.l.warn(`No theme found for ${t}`),` & {\n    font-family: ${i.fontFamily};\n    font-size: ${i.fontSize};\n    fill: ${i.textColor}\n  }\n\n  /* Classes common for multiple diagrams */\n\n  & .error-icon {\n    fill: ${i.errorBkgColor};\n  }\n  & .error-text {\n    fill: ${i.errorTextColor};\n    stroke: ${i.errorTextColor};\n  }\n\n  & .edge-thickness-normal {\n    stroke-width: 2px;\n  }\n  & .edge-thickness-thick {\n    stroke-width: 3.5px\n  }\n  & .edge-pattern-solid {\n    stroke-dasharray: 0;\n  }\n\n  & .edge-pattern-dashed{\n    stroke-dasharray: 3;\n  }\n  .edge-pattern-dotted {\n    stroke-dasharray: 2;\n  }\n\n  & .marker {\n    fill: ${i.lineColor};\n    stroke: ${i.lineColor};\n  }\n  & .marker.cross {\n    stroke: ${i.lineColor};\n  }\n\n  & svg {\n    font-family: ${i.fontFamily};\n    font-size: ${i.fontSize};\n  }\n\n  ${r}\n\n  ${e}\n`};let jt={};const Rt=function(t,e,i,r){o.l.debug("parseDirective is being called",e,i,r);try{if(void 0!==e)switch(e=e.trim(),i){case"open_directive":jt={};break;case"type_directive":if(!jt)throw new Error("currentDirective is undefined");jt.type=e.toLowerCase();break;case"arg_directive":if(!jt)throw new Error("currentDirective is undefined");jt.args=JSON.parse(e);break;case"close_directive":qt(t,jt,r),jt=void 0}}catch(t){o.l.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),o.l.error(t.message)}},qt=function(t,e,i){switch(o.l.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":["config"].forEach((t=>{void 0!==e.args[t]&&("flowchart-v2"===i&&(i="flowchart"),e.args[i]=e.args[t],delete e.args[t])})),o.l.info("sanitize in handleDirective",e.args),we(e.args),o.l.info("sanitize in handleDirective (done)",e.args),(0,o.a)(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.l.warn("themeCss encountered");break;default:o.l.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}},Wt=o.l,Pt=o.s,Ut=o.g,Ht=t=>(0,o.b)(t,Ut()),Yt=$t,Vt=(t,e,i,r)=>Rt(t,e,i,r),Gt={},Xt=(t,e,i)=>{if(Gt[t])throw new Error(`Diagram ${t} already registered.`);var r,n;Gt[t]=e,i&&oe(t,i),r=t,n=e.styles,zt[r]=n,e.injectUtils&&e.injectUtils(Wt,Pt,Ut,Ht,Yt,o.c,Vt)},Jt=t=>{if(t in Gt)return Gt[t];throw new Error(`Diagram ${t} not found.`)};class Qt extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const Kt=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,te=/\s*%%.*\n/gm,ee={},ie=function(t,e){t=t.replace(Nt,"").replace(Kt,"").replace(te,"\n");for(const[i,{detector:r}]of Object.entries(ee))if(r(t,e))return i;throw new Qt(`No diagram type detected matching given configuration for text: ${t}`)},re=(...t)=>{for(const{id:e,detector:i,loader:r}of t)oe(e,i,r)},ne=async()=>{o.l.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ee).map((async([t,{detector:e,loader:i}])=>{if(i)try{Jt(t)}catch(r){try{const{diagram:t,id:r}=await i();Xt(r,t,e)}catch(e){throw o.l.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete ee[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){o.l.error(`Failed to load ${t.length} external diagrams`);for(const e of t)o.l.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}},oe=(t,e,i)=>{ee[t]?o.l.error(`Detector with key ${t} already exists`):ee[t]={detector:e,loader:i},o.l.debug(`Detector with key ${t} added${i?" with loader":""}`)},ae=t=>ee[t].loader,se={curveBasis:n.$0Z,curveBasisClosed:n.Dts,curveBasisOpen:n.WQY,curveBumpX:n.qpX,curveBumpY:n.u93,curveBundle:n.tFB,curveCardinalClosed:n.OvA,curveCardinalOpen:n.dCK,curveCardinal:n.YY7,curveCatmullRomClosed:n.fGX,curveCatmullRomOpen:n.$m7,curveCatmullRom:n.zgE,curveLinear:n.c_6,curveLinearClosed:n.fxm,curveMonotoneX:n.FdL,curveMonotoneY:n.ak_,curveNatural:n.SxZ,curveStep:n.eA_,curveStepAfter:n.jsv,curveStepBefore:n.iJ},le=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ce=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,he=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${ce.source})(?=[}][%]{2}).*\n`,"ig");let r;t=t.trim().replace(i,"").replace(/'/gm,'"'),o.l.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const n=[];for(;null!==(r=le.exec(t));)if(r.index===le.lastIndex&&le.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:t,args:e})}return 0===n.length&&n.push({type:t,args:null}),1===n.length?n[0]:n}catch(i){return o.l.error(`ERROR: ${i.message} - Unable to parse directive\n      ${null!==e?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}};function ue(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return se[i]||e}function fe(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function de(t){let e="",i="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let pe=0;const ge=()=>(pe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+pe),me=t=>function(t){let e="";for(let i=0;i<t;i++)e+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return e}(t.length),ye=function(t,e){const i=e.text.replace(o.e.lineBreakRegex," "),[,r]=Me(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),void 0!==e.class&&n.attr("class",e.class);const a=n.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(i),n},_e=(0,a.Z)(((t,e,i)=>{if(!t)return t;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),o.e.lineBreakRegex.test(t))return t;const r=t.split(" "),n=[];let a="";return r.forEach(((t,o)=>{const s=xe(`${t} `,i),l=xe(a,i);if(s>e){const{hyphenatedStrings:r,remainingWord:o}=be(t,e,"-",i);n.push(a,...r),a=o}else l+s>=e?(n.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&n.push(a)})),n.filter((t=>""!==t)).join(i.joinWith)}),((t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`)),be=(0,a.Z)(((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let a="";return n.forEach(((t,s)=>{const l=`${a}${t}`;if(xe(l,r)>=e){const t=s+1,e=n.length===t,r=`${l}${i}`;o.push(e?l:r),a=""}else a=l})),{hyphenatedStrings:o,remainingWord:a}}),((t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function Ce(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),ve(t,e).height}function xe(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),ve(t,e).width}const ve=(0,a.Z)(((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:i,fontFamily:r,fontWeight:a}=e;if(!t)return{width:0,height:0};const[,s]=Me(i),l=["sans-serif",r],c=t.split(o.e.lineBreakRegex),h=[],u=(0,n.Ys)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const f=u.append("svg");for(const t of l){let e=0;const i={width:0,height:0,lineHeight:0};for(const r of c){const n={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};n.text=r;const o=ye(f,n).style("font-size",s).style("font-weight",a).style("font-family",t),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw new Error("svg element not in render tree");i.width=Math.round(Math.max(i.width,l.width)),e=Math.round(l.height),i.height+=e,i.lineHeight=Math.round(Math.max(i.lineHeight,e))}h.push(i)}return f.remove(),h[isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));let ke;const we=t=>{if(o.l.debug("directiveSanitizer called with",t),"object"==typeof t&&(t.length?t.forEach((t=>we(t))):Object.keys(t).forEach((e=>{o.l.debug("Checking key",e),e.startsWith("__")&&(o.l.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(o.l.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(o.l.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(o.l.debug("sanitizing themeCss option"),t[e]=Te(t[e])),e.includes("fontFamily")&&(o.l.debug("sanitizing fontFamily option"),t[e]=Te(t[e])),e.includes("altFontFamily")&&(o.l.debug("sanitizing altFontFamily option"),t[e]=Te(t[e])),o.f.includes(e)?"object"==typeof t[e]&&(o.l.debug("sanitize deleting object",e),we(t[e])):(o.l.debug("sanitize deleting option",e),delete t[e])}))),t.themeVariables){const e=Object.keys(t.themeVariables);for(const i of e){const e=t.themeVariables[i];e&&e.match&&!e.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}}o.l.debug("After sanitization",t)},Te=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?e++:"}"===r&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t};function Se(t){return"str"in t}function Be(t){return t instanceof Error?t.message:String(t)}const Me=t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},Fe={assignWithDepth:o.d,wrapLabel:_e,calculateTextHeight:Ce,calculateTextWidth:xe,calculateTextDimensions:ve,detectInit:function(t,e){const i=he(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const t=i.map((t=>t.args));we(t),r=(0,o.d)(r,[...t])}else r=i.args;if(r){let i=ie(t,e);["config"].forEach((t=>{void 0!==r[t]&&("flowchart-v2"===i&&(i="flowchart"),r[i]=r[t],delete r[t])}))}return r},detectDirective:he,isSubstringInArray:function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1},interpolateToCurve:ue,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){let e,i=0;t.forEach((t=>{i+=fe(t,e),e=t}));let r,n=i/2;return e=void 0,t.forEach((t=>{if(e&&!r){const i=fe(t,e);if(i<n)n-=i;else{const o=n/i;o<=0&&(r=e),o>=1&&(r={x:t.x,y:t.y}),o>0&&o<1&&(r={x:(1-o)*e.x+o*t.x,y:(1-o)*e.y+o*t.y})}}e=t})),r}(t)},calcCardinalityPosition:(t,e,i)=>{let r;o.l.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let n,a=25;r=void 0,e.forEach((t=>{if(r&&!n){const e=fe(t,r);if(e<a)a-=e;else{const i=a/e;i<=0&&(n=r),i>=1&&(n={x:t.x,y:t.y}),i>0&&i<1&&(n={x:(1-i)*r.x+i*t.x,y:(1-i)*r.y+i*t.y})}}r=t}));const s=t?10:5,l=Math.atan2(e[0].y-n.y,e[0].x-n.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(e[0].x+n.x)/2,c.y=-Math.cos(l)*s+(e[0].y+n.y)/2,c},calcTerminalLabelPosition:function(t,e,i){let r,n=JSON.parse(JSON.stringify(i));o.l.info("our points",n),"start_left"!==e&&"start_right"!==e&&(n=n.reverse()),n.forEach((t=>{r=t}));let a,s=25+t;r=void 0,n.forEach((t=>{if(r&&!a){const e=fe(t,r);if(e<s)s-=e;else{const i=s/e;i<=0&&(a=r),i>=1&&(a={x:t.x,y:t.y}),i>0&&i<1&&(a={x:(1-i)*r.x+i*t.x,y:(1-i)*r.y+i*t.y})}}r=t}));const l=10+.5*t,c=Math.atan2(n[0].y-a.y,n[0].x-a.x),h={x:0,y:0};return h.x=Math.sin(c)*l+(n[0].x+a.x)/2,h.y=-Math.cos(c)*l+(n[0].y+a.y)/2,"start_left"===e&&(h.x=Math.sin(c+Math.PI)*l+(n[0].x+a.x)/2,h.y=-Math.cos(c+Math.PI)*l+(n[0].y+a.y)/2),"end_right"===e&&(h.x=Math.sin(c-Math.PI)*l+(n[0].x+a.x)/2-5,h.y=-Math.cos(c-Math.PI)*l+(n[0].y+a.y)/2-5),"end_left"===e&&(h.x=Math.sin(c)*l+(n[0].x+a.x)/2-5,h.y=-Math.cos(c)*l+(n[0].y+a.y)/2-5),h},formatUrl:function(t,e){const i=t.trim();if(i)return"loose"!==e.securityLevel?(0,r.N)(i):i},getStylesFromArray:de,generateId:ge,random:me,runFunc:(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let t=0;t<r;t++)if(o=o[i[t]],!o)return;o[n](...e)},entityDecode:function(t){return ke=ke||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ke.innerHTML=t,unescape(ke.textContent)},initIdGenerator:class{constructor(t,e){this.deterministic=t,this.seed=e,this.count=e?e.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:we,sanitizeCss:Te,insertTitle:(t,e,i,r)=>{if(!r)return;const n=t.node().getBBox();t.append("text").text(r).attr("x",n.x+n.width/2).attr("y",-i).attr("class",e)},parseFontSize:Me}}}]);