@flowfuse/node-red-dashboard 1.30.1 → 1.30.2-fd95cf0-202512301416.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/dist/apple-touch-icon.png +0 -0
  3. package/dist/assets/_basePickBy-FqRZvdub.js +0 -1
  4. package/dist/assets/_baseUniq-DiFk0efX.js +0 -1
  5. package/dist/assets/architectureDiagram-VXUJARFQ-jAqyWwtR.js +0 -36
  6. package/dist/assets/blockDiagram-VD42YOAC-CKJM_wgX.js +0 -122
  7. package/dist/assets/c4Diagram-YG6GDRKO-CxvH_CnU.js +0 -10
  8. package/dist/assets/chunk-4BX2VUAB-DIDmWMKO.js +0 -1
  9. package/dist/assets/chunk-55IACEB6-Df5y1Lp_.js +0 -1
  10. package/dist/assets/chunk-B4BG7PRW-CO-AHyum.js +0 -165
  11. package/dist/assets/chunk-DI55MBZ5-BybdrWiR.js +0 -220
  12. package/dist/assets/chunk-FMBD7UC4-X9A-MON_.js +0 -15
  13. package/dist/assets/chunk-QN33PNHL-Cu4PVK5_.js +0 -1
  14. package/dist/assets/chunk-QZHKN3VN-Dc9O1mlv.js +0 -1
  15. package/dist/assets/chunk-TZMSLE5B-BONSH9X8.js +0 -1
  16. package/dist/assets/classDiagram-2ON5EDUG-Cxnli4ed.js +0 -1
  17. package/dist/assets/classDiagram-v2-WZHVMYZB-Cxnli4ed.js +0 -1
  18. package/dist/assets/clone-B9AAPnxW.js +0 -1
  19. package/dist/assets/cose-bilkent-S5V4N54A-DLVc0vYA.js +0 -1
  20. package/dist/assets/cytoscape.esm-EolcthU4.js +0 -16
  21. package/dist/assets/dagre-6UL2VRFP-BUmOTBjK.js +0 -4
  22. package/dist/assets/diagram-PSM6KHXK-DDqf8b18.js +0 -24
  23. package/dist/assets/diagram-QEK2KX5R-p3AlQ66r.js +0 -43
  24. package/dist/assets/diagram-S2PKOQOG-CGFyLHgt.js +0 -24
  25. package/dist/assets/disconnected-BuxohaUu.png +0 -0
  26. package/dist/assets/echarts-B5dUVA7m.js +0 -73
  27. package/dist/assets/erDiagram-Q2GNP2WA-Bt9WYEVl.js +0 -60
  28. package/dist/assets/flowDiagram-NV44I4VS-C5THihSS.js +0 -162
  29. package/dist/assets/ganttDiagram-JELNMOA3-DAkh2oA5.js +0 -267
  30. package/dist/assets/gitGraphDiagram-NY62KEGX-CHv2T5DP.js +0 -65
  31. package/dist/assets/graph-BUdFdnDY.js +0 -1
  32. package/dist/assets/index-BKldaNxV.css +0 -13
  33. package/dist/assets/index-CgN92DC4.js +0 -121
  34. package/dist/assets/infoDiagram-WHAUD3N6-D3Iff__M.js +0 -2
  35. package/dist/assets/journeyDiagram-XKPGCS4Q-Dma7uvIP.js +0 -139
  36. package/dist/assets/kanban-definition-3W4ZIXB7-D56zGc6I.js +0 -89
  37. package/dist/assets/katex-ChWnQ-fc.js +0 -261
  38. package/dist/assets/layout-CX2674-m.js +0 -1
  39. package/dist/assets/logo-DIAzbBuw.png +0 -0
  40. package/dist/assets/materialdesignicons-webfont-B7mPwVP_.ttf +0 -0
  41. package/dist/assets/materialdesignicons-webfont-CSr8KVlo.eot +0 -0
  42. package/dist/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 +0 -0
  43. package/dist/assets/materialdesignicons-webfont-PXm3-2wK.woff +0 -0
  44. package/dist/assets/mermaid-4yaRk5L6.js +0 -256
  45. package/dist/assets/mindmap-definition-VGOIOE7T-M2wzuJex.js +0 -68
  46. package/dist/assets/pieDiagram-ADFJNKIX-CS__cEty.js +0 -30
  47. package/dist/assets/quadrantDiagram-AYHSOK5B-Cq8EFFXy.js +0 -7
  48. package/dist/assets/requirementDiagram-UZGBJVZJ-DJ7dPR9-.js +0 -64
  49. package/dist/assets/sankeyDiagram-TZEHDZUN-Bv2bFVOF.js +0 -10
  50. package/dist/assets/sequenceDiagram-WL72ISMW-CNC5hfHr.js +0 -145
  51. package/dist/assets/stateDiagram-FKZM4ZOC-DPogLVYr.js +0 -1
  52. package/dist/assets/stateDiagram-v2-4FDKWEC3-DYEZ0q8X.js +0 -1
  53. package/dist/assets/timeline-definition-IT6M3QCI-DtZbKxJ6.js +0 -61
  54. package/dist/assets/treemap-KMMF4GRG--xu3S5FE.js +0 -128
  55. package/dist/assets/vue-vendor-0dSdYzIF.js +0 -49
  56. package/dist/assets/workbox-window.prod.es5-BIl4cyR9.js +0 -2
  57. package/dist/assets/xychartDiagram-PRI3JC2R-HntCx39-.js +0 -7
  58. package/dist/favicon.ico +0 -0
  59. package/dist/favicon.svg +0 -482
  60. package/dist/index.html +0 -24
  61. package/dist/logo-512x512.png +0 -0
  62. package/dist/logo.svg +0 -482
  63. package/dist/maskable-icon-512x512.png +0 -0
  64. package/dist/pwa-192x192.png +0 -0
  65. package/dist/pwa-512x512.png +0 -0
  66. package/dist/pwa-64x64.png +0 -0
  67. package/dist/sw.js +0 -2
@@ -1,256 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-6UL2VRFP-BUmOTBjK.js","./graph-BUdFdnDY.js","./_baseUniq-DiFk0efX.js","./layout-CX2674-m.js","./_basePickBy-FqRZvdub.js","./clone-B9AAPnxW.js","./cose-bilkent-S5V4N54A-DLVc0vYA.js","./cytoscape.esm-EolcthU4.js","./c4Diagram-YG6GDRKO-CxvH_CnU.js","./chunk-TZMSLE5B-BONSH9X8.js","./flowDiagram-NV44I4VS-C5THihSS.js","./chunk-FMBD7UC4-X9A-MON_.js","./chunk-55IACEB6-Df5y1Lp_.js","./chunk-QN33PNHL-Cu4PVK5_.js","./erDiagram-Q2GNP2WA-Bt9WYEVl.js","./gitGraphDiagram-NY62KEGX-CHv2T5DP.js","./chunk-4BX2VUAB-DIDmWMKO.js","./chunk-QZHKN3VN-Dc9O1mlv.js","./treemap-KMMF4GRG--xu3S5FE.js","./infoDiagram-WHAUD3N6-D3Iff__M.js","./pieDiagram-ADFJNKIX-CS__cEty.js","./requirementDiagram-UZGBJVZJ-DJ7dPR9-.js","./sequenceDiagram-WL72ISMW-CNC5hfHr.js","./classDiagram-2ON5EDUG-Cxnli4ed.js","./chunk-B4BG7PRW-CO-AHyum.js","./classDiagram-v2-WZHVMYZB-Cxnli4ed.js","./stateDiagram-FKZM4ZOC-DPogLVYr.js","./chunk-DI55MBZ5-BybdrWiR.js","./stateDiagram-v2-4FDKWEC3-DYEZ0q8X.js","./journeyDiagram-XKPGCS4Q-Dma7uvIP.js","./mindmap-definition-VGOIOE7T-M2wzuJex.js","./kanban-definition-3W4ZIXB7-D56zGc6I.js","./diagram-S2PKOQOG-CGFyLHgt.js","./diagram-QEK2KX5R-p3AlQ66r.js","./blockDiagram-VD42YOAC-CKJM_wgX.js","./architectureDiagram-VXUJARFQ-jAqyWwtR.js","./diagram-PSM6KHXK-DDqf8b18.js"])))=>i.map(i=>d[i]);
2
- var dx=Object.defineProperty;var px=(e,t,r)=>t in e?dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var vt=(e,t,r)=>px(e,typeof t!="symbol"?t+"":t,r);const gx="modulepreload",mx=function(e,t){return new URL(e,t).href},fh={},kt=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),c=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));n=Promise.allSettled(r.map(l=>{if(l=mx(l,i),l in fh)return;fh[l]=!0;const h=l.endsWith(".css"),u=h?'[rel="stylesheet"]':"";if(!!i)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===l&&(!h||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":gx,h||(d.as="script"),d.crossOrigin="",d.href=l,c&&d.setAttribute("nonce",c),document.head.appendChild(d),h)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:pf,setPrototypeOf:dh,isFrozen:yx,getPrototypeOf:xx,getOwnPropertyDescriptor:bx}=Object;let{freeze:se,seal:ye,create:Io}=Object,{apply:Po,construct:No}=typeof Reflect<"u"&&Reflect;se||(se=function(t){return t});ye||(ye=function(t){return t});Po||(Po=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});No||(No=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const Vn=oe(Array.prototype.forEach),_x=oe(Array.prototype.lastIndexOf),ph=oe(Array.prototype.pop),Ni=oe(Array.prototype.push),Cx=oe(Array.prototype.splice),ha=oe(String.prototype.toLowerCase),no=oe(String.prototype.toString),ao=oe(String.prototype.match),zi=oe(String.prototype.replace),wx=oe(String.prototype.indexOf),kx=oe(String.prototype.trim),Ce=oe(Object.prototype.hasOwnProperty),re=oe(RegExp.prototype.test),Wi=vx(TypeError);function oe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Po(e,t,i)}}function vx(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return No(e,r)}}function dt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ha;dh&&dh(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(yx(t)||(t[i]=a),n=a)}e[n]=!0}return e}function Sx(e){for(let t=0;t<e.length;t++)Ce(e,t)||(e[t]=null);return e}function Oe(e){const t=Io(null);for(const[r,i]of pf(e))Ce(e,r)&&(Array.isArray(i)?t[r]=Sx(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Oe(i):t[r]=i);return t}function qi(e,t){for(;e!==null;){const i=bx(e,t);if(i){if(i.get)return oe(i.get);if(typeof i.value=="function")return oe(i.value)}e=xx(e)}function r(){return null}return r}const gh=se(["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","search","section","select","shadow","slot","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"]),so=se(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oo=se(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Tx=se(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lo=se(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mx=se(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mh=se(["#text"]),yh=se(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),co=se(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),xh=se(["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"]),Xn=se(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ax=ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Lx=ye(/<%[\w\W]*|[\w\W]*%>/gm),Bx=ye(/\$\{[\w\W]*/gm),Ex=ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),$x=ye(/^aria-[\-\w]+$/),gf=ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fx=ye(/^(?:\w+script|data):/i),Dx=ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mf=ye(/^html$/i),Ox=ye(/^[a-z][.\w]*(-[.\w]+)+$/i);var bh=Object.freeze({__proto__:null,ARIA_ATTR:$x,ATTR_WHITESPACE:Dx,CUSTOM_ELEMENT:Ox,DATA_ATTR:Ex,DOCTYPE_NAME:mf,ERB_EXPR:Lx,IS_ALLOWED_URI:gf,IS_SCRIPT_OR_DATA:Fx,MUSTACHE_EXPR:Ax,TMPLIT_EXPR:Bx});const Hi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Rx=function(){return typeof window>"u"?null:window},Ix=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},_h=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rx();const t=rt=>yf(rt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Hi.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:f,trustedTypes:d}=e,p=c.prototype,m=qi(p,"cloneNode"),y=qi(p,"remove"),x=qi(p,"nextSibling"),b=qi(p,"childNodes"),C=qi(p,"parentNode");if(typeof o=="function"){const rt=r.createElement("template");rt.content&&rt.content.ownerDocument&&(r=rt.content.ownerDocument)}let k,w="";const{implementation:_,createNodeIterator:v,createDocumentFragment:D,getElementsByTagName:I}=r,{importNode:O}=i;let T=_h();t.isSupported=typeof pf=="function"&&typeof C=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:E,TMPLIT_EXPR:M,DATA_ATTR:B,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:q}=bh;let{IS_ALLOWED_URI:Y}=bh,U=null;const ft=dt({},[...gh,...so,...oo,...lo,...mh]);let st=null;const mt=dt({},[...yh,...co,...xh,...Xn]);let ot=Object.seal(Io(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}})),ht=null,ut=null;const xt=Object.seal(Io(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let z=!0,G=!0,et=!1,N=!0,St=!1,gt=!0,Lt=!1,Wt=!1,_e=!1,Ue=!1,qn=!1,Hn=!1,Xc=!0,Zc=!1;const ax="user-content-";let Zs=!0,Ii=!1,Xr={},Ee=null;const Ks=dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Kc=null;const Qc=dt({},["audio","video","img","source","image","track"]);let Qs=null;const Jc=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Un="http://www.w3.org/1998/Math/MathML",jn="http://www.w3.org/2000/svg",je="http://www.w3.org/1999/xhtml";let Zr=je,Js=!1,to=null;const sx=dt({},[Un,jn,je],no);let Yn=dt({},["mi","mo","mn","ms","mtext"]),Gn=dt({},["annotation-xml"]);const ox=dt({},["title","style","font","a","script"]);let Pi=null;const lx=["application/xhtml+xml","text/html"],cx="text/html";let Dt=null,Kr=null;const hx=r.createElement("form"),th=function(S){return S instanceof RegExp||S instanceof Function},eo=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Kr&&Kr===S)){if((!S||typeof S!="object")&&(S={}),S=Oe(S),Pi=lx.indexOf(S.PARSER_MEDIA_TYPE)===-1?cx:S.PARSER_MEDIA_TYPE,Dt=Pi==="application/xhtml+xml"?no:ha,U=Ce(S,"ALLOWED_TAGS")?dt({},S.ALLOWED_TAGS,Dt):ft,st=Ce(S,"ALLOWED_ATTR")?dt({},S.ALLOWED_ATTR,Dt):mt,to=Ce(S,"ALLOWED_NAMESPACES")?dt({},S.ALLOWED_NAMESPACES,no):sx,Qs=Ce(S,"ADD_URI_SAFE_ATTR")?dt(Oe(Jc),S.ADD_URI_SAFE_ATTR,Dt):Jc,Kc=Ce(S,"ADD_DATA_URI_TAGS")?dt(Oe(Qc),S.ADD_DATA_URI_TAGS,Dt):Qc,Ee=Ce(S,"FORBID_CONTENTS")?dt({},S.FORBID_CONTENTS,Dt):Ks,ht=Ce(S,"FORBID_TAGS")?dt({},S.FORBID_TAGS,Dt):Oe({}),ut=Ce(S,"FORBID_ATTR")?dt({},S.FORBID_ATTR,Dt):Oe({}),Xr=Ce(S,"USE_PROFILES")?S.USE_PROFILES:!1,z=S.ALLOW_ARIA_ATTR!==!1,G=S.ALLOW_DATA_ATTR!==!1,et=S.ALLOW_UNKNOWN_PROTOCOLS||!1,N=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,St=S.SAFE_FOR_TEMPLATES||!1,gt=S.SAFE_FOR_XML!==!1,Lt=S.WHOLE_DOCUMENT||!1,Ue=S.RETURN_DOM||!1,qn=S.RETURN_DOM_FRAGMENT||!1,Hn=S.RETURN_TRUSTED_TYPE||!1,_e=S.FORCE_BODY||!1,Xc=S.SANITIZE_DOM!==!1,Zc=S.SANITIZE_NAMED_PROPS||!1,Zs=S.KEEP_CONTENT!==!1,Ii=S.IN_PLACE||!1,Y=S.ALLOWED_URI_REGEXP||gf,Zr=S.NAMESPACE||je,Yn=S.MATHML_TEXT_INTEGRATION_POINTS||Yn,Gn=S.HTML_INTEGRATION_POINTS||Gn,ot=S.CUSTOM_ELEMENT_HANDLING||{},S.CUSTOM_ELEMENT_HANDLING&&th(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ot.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&th(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ot.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ot.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(G=!1),qn&&(Ue=!0),Xr&&(U=dt({},mh),st=[],Xr.html===!0&&(dt(U,gh),dt(st,yh)),Xr.svg===!0&&(dt(U,so),dt(st,co),dt(st,Xn)),Xr.svgFilters===!0&&(dt(U,oo),dt(st,co),dt(st,Xn)),Xr.mathMl===!0&&(dt(U,lo),dt(st,xh),dt(st,Xn))),S.ADD_TAGS&&(typeof S.ADD_TAGS=="function"?xt.tagCheck=S.ADD_TAGS:(U===ft&&(U=Oe(U)),dt(U,S.ADD_TAGS,Dt))),S.ADD_ATTR&&(typeof S.ADD_ATTR=="function"?xt.attributeCheck=S.ADD_ATTR:(st===mt&&(st=Oe(st)),dt(st,S.ADD_ATTR,Dt))),S.ADD_URI_SAFE_ATTR&&dt(Qs,S.ADD_URI_SAFE_ATTR,Dt),S.FORBID_CONTENTS&&(Ee===Ks&&(Ee=Oe(Ee)),dt(Ee,S.FORBID_CONTENTS,Dt)),S.ADD_FORBID_CONTENTS&&(Ee===Ks&&(Ee=Oe(Ee)),dt(Ee,S.ADD_FORBID_CONTENTS,Dt)),Zs&&(U["#text"]=!0),Lt&&dt(U,["html","head","body"]),U.table&&(dt(U,["tbody"]),delete ht.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=S.TRUSTED_TYPES_POLICY,w=k.createHTML("")}else k===void 0&&(k=Ix(d,n)),k!==null&&typeof w=="string"&&(w=k.createHTML(""));se&&se(S),Kr=S}},eh=dt({},[...so,...oo,...Tx]),rh=dt({},[...lo,...Mx]),ux=function(S){let W=C(S);(!W||!W.tagName)&&(W={namespaceURI:Zr,tagName:"template"});const J=ha(S.tagName),Mt=ha(W.tagName);return to[S.namespaceURI]?S.namespaceURI===jn?W.namespaceURI===je?J==="svg":W.namespaceURI===Un?J==="svg"&&(Mt==="annotation-xml"||Yn[Mt]):!!eh[J]:S.namespaceURI===Un?W.namespaceURI===je?J==="math":W.namespaceURI===jn?J==="math"&&Gn[Mt]:!!rh[J]:S.namespaceURI===je?W.namespaceURI===jn&&!Gn[Mt]||W.namespaceURI===Un&&!Yn[Mt]?!1:!rh[J]&&(ox[J]||!eh[J]):!!(Pi==="application/xhtml+xml"&&to[S.namespaceURI]):!1},$e=function(S){Ni(t.removed,{element:S});try{C(S).removeChild(S)}catch{y(S)}},br=function(S,W){try{Ni(t.removed,{attribute:W.getAttributeNode(S),from:W})}catch{Ni(t.removed,{attribute:null,from:W})}if(W.removeAttribute(S),S==="is")if(Ue||qn)try{$e(W)}catch{}else try{W.setAttribute(S,"")}catch{}},ih=function(S){let W=null,J=null;if(_e)S="<remove></remove>"+S;else{const $t=ao(S,/^[\r\n\t ]+/);J=$t&&$t[0]}Pi==="application/xhtml+xml"&&Zr===je&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const Mt=k?k.createHTML(S):S;if(Zr===je)try{W=new f().parseFromString(Mt,Pi)}catch{}if(!W||!W.documentElement){W=_.createDocument(Zr,"template",null);try{W.documentElement.innerHTML=Js?w:Mt}catch{}}const jt=W.body||W.documentElement;return S&&J&&jt.insertBefore(r.createTextNode(J),jt.childNodes[0]||null),Zr===je?I.call(W,Lt?"html":"body")[0]:Lt?W.documentElement:jt},nh=function(S){return v.call(S.ownerDocument||S,S,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ro=function(S){return S instanceof u&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof h)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function")},ah=function(S){return typeof s=="function"&&S instanceof s};function Ye(rt,S,W){Vn(rt,J=>{J.call(t,S,W,Kr)})}const sh=function(S){let W=null;if(Ye(T.beforeSanitizeElements,S,null),ro(S))return $e(S),!0;const J=Dt(S.nodeName);if(Ye(T.uponSanitizeElement,S,{tagName:J,allowedTags:U}),gt&&S.hasChildNodes()&&!ah(S.firstElementChild)&&re(/<[/\w!]/g,S.innerHTML)&&re(/<[/\w!]/g,S.textContent)||S.nodeType===Hi.progressingInstruction||gt&&S.nodeType===Hi.comment&&re(/<[/\w]/g,S.data))return $e(S),!0;if(!(xt.tagCheck instanceof Function&&xt.tagCheck(J))&&(!U[J]||ht[J])){if(!ht[J]&&lh(J)&&(ot.tagNameCheck instanceof RegExp&&re(ot.tagNameCheck,J)||ot.tagNameCheck instanceof Function&&ot.tagNameCheck(J)))return!1;if(Zs&&!Ee[J]){const Mt=C(S)||S.parentNode,jt=b(S)||S.childNodes;if(jt&&Mt){const $t=jt.length;for(let le=$t-1;le>=0;--le){const Ge=m(jt[le],!0);Ge.__removalCount=(S.__removalCount||0)+1,Mt.insertBefore(Ge,x(S))}}}return $e(S),!0}return S instanceof c&&!ux(S)||(J==="noscript"||J==="noembed"||J==="noframes")&&re(/<\/no(script|embed|frames)/i,S.innerHTML)?($e(S),!0):(St&&S.nodeType===Hi.text&&(W=S.textContent,Vn([P,E,M],Mt=>{W=zi(W,Mt," ")}),S.textContent!==W&&(Ni(t.removed,{element:S.cloneNode()}),S.textContent=W)),Ye(T.afterSanitizeElements,S,null),!1)},oh=function(S,W,J){if(Xc&&(W==="id"||W==="name")&&(J in r||J in hx))return!1;if(!(G&&!ut[W]&&re(B,W))){if(!(z&&re(L,W))){if(!(xt.attributeCheck instanceof Function&&xt.attributeCheck(W,S))){if(!st[W]||ut[W]){if(!(lh(S)&&(ot.tagNameCheck instanceof RegExp&&re(ot.tagNameCheck,S)||ot.tagNameCheck instanceof Function&&ot.tagNameCheck(S))&&(ot.attributeNameCheck instanceof RegExp&&re(ot.attributeNameCheck,W)||ot.attributeNameCheck instanceof Function&&ot.attributeNameCheck(W,S))||W==="is"&&ot.allowCustomizedBuiltInElements&&(ot.tagNameCheck instanceof RegExp&&re(ot.tagNameCheck,J)||ot.tagNameCheck instanceof Function&&ot.tagNameCheck(J))))return!1}else if(!Qs[W]){if(!re(Y,zi(J,$,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&S!=="script"&&wx(J,"data:")===0&&Kc[S])){if(!(et&&!re(F,zi(J,$,"")))){if(J)return!1}}}}}}}return!0},lh=function(S){return S!=="annotation-xml"&&ao(S,q)},ch=function(S){Ye(T.beforeSanitizeAttributes,S,null);const{attributes:W}=S;if(!W||ro(S))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:st,forceKeepAttr:void 0};let Mt=W.length;for(;Mt--;){const jt=W[Mt],{name:$t,namespaceURI:le,value:Ge}=jt,Qr=Dt($t),io=Ge;let qt=$t==="value"?io:kx(io);if(J.attrName=Qr,J.attrValue=qt,J.keepAttr=!0,J.forceKeepAttr=void 0,Ye(T.uponSanitizeAttribute,S,J),qt=J.attrValue,Zc&&(Qr==="id"||Qr==="name")&&(br($t,S),qt=ax+qt),gt&&re(/((--!?|])>)|<\/(style|title|textarea)/i,qt)){br($t,S);continue}if(Qr==="attributename"&&ao(qt,"href")){br($t,S);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){br($t,S);continue}if(!N&&re(/\/>/i,qt)){br($t,S);continue}St&&Vn([P,E,M],uh=>{qt=zi(qt,uh," ")});const hh=Dt(S.nodeName);if(!oh(hh,Qr,qt)){br($t,S);continue}if(k&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!le)switch(d.getAttributeType(hh,Qr)){case"TrustedHTML":{qt=k.createHTML(qt);break}case"TrustedScriptURL":{qt=k.createScriptURL(qt);break}}if(qt!==io)try{le?S.setAttributeNS(le,$t,qt):S.setAttribute($t,qt),ro(S)?$e(S):ph(t.removed)}catch{br($t,S)}}Ye(T.afterSanitizeAttributes,S,null)},fx=function rt(S){let W=null;const J=nh(S);for(Ye(T.beforeSanitizeShadowDOM,S,null);W=J.nextNode();)Ye(T.uponSanitizeShadowNode,W,null),sh(W),ch(W),W.content instanceof a&&rt(W.content);Ye(T.afterSanitizeShadowDOM,S,null)};return t.sanitize=function(rt){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,J=null,Mt=null,jt=null;if(Js=!rt,Js&&(rt="<!-->"),typeof rt!="string"&&!ah(rt))if(typeof rt.toString=="function"){if(rt=rt.toString(),typeof rt!="string")throw Wi("dirty is not a string, aborting")}else throw Wi("toString is not a function");if(!t.isSupported)return rt;if(Wt||eo(S),t.removed=[],typeof rt=="string"&&(Ii=!1),Ii){if(rt.nodeName){const Ge=Dt(rt.nodeName);if(!U[Ge]||ht[Ge])throw Wi("root node is forbidden and cannot be sanitized in-place")}}else if(rt instanceof s)W=ih("<!---->"),J=W.ownerDocument.importNode(rt,!0),J.nodeType===Hi.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?W=J:W.appendChild(J);else{if(!Ue&&!St&&!Lt&&rt.indexOf("<")===-1)return k&&Hn?k.createHTML(rt):rt;if(W=ih(rt),!W)return Ue?null:Hn?w:""}W&&_e&&$e(W.firstChild);const $t=nh(Ii?rt:W);for(;Mt=$t.nextNode();)sh(Mt),ch(Mt),Mt.content instanceof a&&fx(Mt.content);if(Ii)return rt;if(Ue){if(qn)for(jt=D.call(W.ownerDocument);W.firstChild;)jt.appendChild(W.firstChild);else jt=W;return(st.shadowroot||st.shadowrootmode)&&(jt=O.call(i,jt,!0)),jt}let le=Lt?W.outerHTML:W.innerHTML;return Lt&&U["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&re(mf,W.ownerDocument.doctype.name)&&(le="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
3
- `+le),St&&Vn([P,E,M],Ge=>{le=zi(le,Ge," ")}),k&&Hn?k.createHTML(le):le},t.setConfig=function(){let rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};eo(rt),Wt=!0},t.clearConfig=function(){Kr=null,Wt=!1},t.isValidAttribute=function(rt,S,W){Kr||eo({});const J=Dt(rt),Mt=Dt(S);return oh(J,Mt,W)},t.addHook=function(rt,S){typeof S=="function"&&Ni(T[rt],S)},t.removeHook=function(rt,S){if(S!==void 0){const W=_x(T[rt],S);return W===-1?void 0:Cx(T[rt],W,1)[0]}return ph(T[rt])},t.removeHooks=function(rt){T[rt]=[]},t.removeAllHooks=function(){T=_h()},t}var bi=yf();function ua(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Px(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wl(e){let t,r,i;e.length!==2?(t=ua,r=(s,c)=>ua(e(s),c),i=(s,c)=>e(s)-c):(t=e===ua||e===Px?e:Nx,r=e,i=e);function n(s,c,l=0,h=s.length){if(l<h){if(t(c,c)!==0)return h;do{const u=l+h>>>1;r(s[u],c)<0?l=u+1:h=u}while(l<h)}return l}function a(s,c,l=0,h=s.length){if(l<h){if(t(c,c)!==0)return h;do{const u=l+h>>>1;r(s[u],c)<=0?l=u+1:h=u}while(l<h)}return l}function o(s,c,l=0,h=s.length){const u=n(s,c,l,h-1);return u>l&&i(s[u-1],c)>-i(s[u],c)?u-1:u}return{left:n,center:o,right:a}}function Nx(){return 0}function zx(e){return e===null?NaN:+e}const Wx=Wl(ua),qx=Wx.right;Wl(zx).center;class Ch extends Map{constructor(t,r=jx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[i,n]of t)this.set(i,n)}get(t){return super.get(wh(this,t))}has(t){return super.has(wh(this,t))}set(t,r){return super.set(Hx(this,t),r)}delete(t){return super.delete(Ux(this,t))}}function wh({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function Hx({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function Ux({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function jx(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Yx=Math.sqrt(50),Gx=Math.sqrt(10),Vx=Math.sqrt(2);function Ma(e,t,r){const i=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(i)),a=i/Math.pow(10,n),o=a>=Yx?10:a>=Gx?5:a>=Vx?2:1;let s,c,l;return n<0?(l=Math.pow(10,-n)/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,n)*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=r&&r<2?Ma(e,t,r*2):[s,c,l]}function Xx(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const i=t<e,[n,a,o]=i?Ma(t,e,r):Ma(e,t,r);if(!(a>=n))return[];const s=a-n+1,c=new Array(s);if(i)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(n+l)/-o;else for(let l=0;l<s;++l)c[l]=(n+l)*o;return c}function zo(e,t,r){return t=+t,e=+e,r=+r,Ma(e,t,r)[2]}function Wo(e,t,r){t=+t,e=+e,r=+r;const i=t<e,n=i?zo(t,e,r):zo(e,t,r);return(i?-1:1)*(n<0?1/-n:n)}function c3(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function h3(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function Zx(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(n);++i<n;)a[i]=e+i*r;return a}function Kx(e){return e}var fa=1,ho=2,qo=3,Zn=4,kh=1e-6;function Qx(e){return"translate("+e+",0)"}function Jx(e){return"translate(0,"+e+")"}function t1(e){return t=>+e(t)}function e1(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function r1(){return!this.__axis}function xf(e,t){var r=[],i=null,n=null,a=6,o=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=e===fa||e===Zn?-1:1,h=e===Zn||e===ho?"x":"y",u=e===fa||e===qo?Qx:Jx;function f(d){var p=i??(t.ticks?t.ticks.apply(t,r):t.domain()),m=n??(t.tickFormat?t.tickFormat.apply(t,r):Kx),y=Math.max(a,0)+s,x=t.range(),b=+x[0]+c,C=+x[x.length-1]+c,k=(t.bandwidth?e1:t1)(t.copy(),c),w=d.selection?d.selection():d,_=w.selectAll(".domain").data([null]),v=w.selectAll(".tick").data(p,t).order(),D=v.exit(),I=v.enter().append("g").attr("class","tick"),O=v.select("line"),T=v.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),v=v.merge(I),O=O.merge(I.append("line").attr("stroke","currentColor").attr(h+"2",l*a)),T=T.merge(I.append("text").attr("fill","currentColor").attr(h,l*y).attr("dy",e===fa?"0em":e===qo?"0.71em":"0.32em")),d!==w&&(_=_.transition(d),v=v.transition(d),O=O.transition(d),T=T.transition(d),D=D.transition(d).attr("opacity",kh).attr("transform",function(P){return isFinite(P=k(P))?u(P+c):this.getAttribute("transform")}),I.attr("opacity",kh).attr("transform",function(P){var E=this.parentNode.__axis;return u((E&&isFinite(E=E(P))?E:k(P))+c)})),D.remove(),_.attr("d",e===Zn||e===ho?o?"M"+l*o+","+b+"H"+c+"V"+C+"H"+l*o:"M"+c+","+b+"V"+C:o?"M"+b+","+l*o+"V"+c+"H"+C+"V"+l*o:"M"+b+","+c+"H"+C),v.attr("opacity",1).attr("transform",function(P){return u(k(P)+c)}),O.attr(h+"2",l*a),T.attr(h,l*y).text(m),w.filter(r1).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ho?"start":e===Zn?"end":"middle"),w.each(function(){this.__axis=k})}return f.scale=function(d){return arguments.length?(t=d,f):t},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(d){return arguments.length?(r=d==null?[]:Array.from(d),f):r.slice()},f.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),f):i&&i.slice()},f.tickFormat=function(d){return arguments.length?(n=d,f):n},f.tickSize=function(d){return arguments.length?(a=o=+d,f):a},f.tickSizeInner=function(d){return arguments.length?(a=+d,f):a},f.tickSizeOuter=function(d){return arguments.length?(o=+d,f):o},f.tickPadding=function(d){return arguments.length?(s=+d,f):s},f.offset=function(d){return arguments.length?(c=+d,f):c},f}function u3(e){return xf(fa,e)}function f3(e){return xf(qo,e)}var i1={value:()=>{}};function bf(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new da(r)}function da(e){this._=e}function n1(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}da.prototype=bf.prototype={constructor:da,on:function(e,t){var r=this._,i=n1(e+"",r),n,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=a1(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=vh(r[n],e.name,t);else if(t==null)for(n in r)r[n]=vh(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new da(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function a1(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function vh(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=i1,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ho="http://www.w3.org/1999/xhtml";const Sh={svg:"http://www.w3.org/2000/svg",xhtml:Ho,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bs(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Sh.hasOwnProperty(t)?{space:Sh[t],local:e}:e}function s1(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Ho&&t.documentElement.namespaceURI===Ho?t.createElement(e):t.createElementNS(r,e)}}function o1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function _f(e){var t=bs(e);return(t.local?o1:s1)(t)}function l1(){}function ql(e){return e==null?l1:function(){return this.querySelector(e)}}function c1(e){typeof e!="function"&&(e=ql(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=new Array(o),c,l,h=0;h<o;++h)(c=a[h])&&(l=e.call(c,c.__data__,h,a))&&("__data__"in c&&(l.__data__=c.__data__),s[h]=l);return new pe(i,this._parents)}function h1(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function u1(){return[]}function Cf(e){return e==null?u1:function(){return this.querySelectorAll(e)}}function f1(e){return function(){return h1(e.apply(this,arguments))}}function d1(e){typeof e=="function"?e=f1(e):e=Cf(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(i.push(e.call(c,c.__data__,l,o)),n.push(c));return new pe(i,n)}function wf(e){return function(){return this.matches(e)}}function kf(e){return function(t){return t.matches(e)}}var p1=Array.prototype.find;function g1(e){return function(){return p1.call(this.children,e)}}function m1(){return this.firstElementChild}function y1(e){return this.select(e==null?m1:g1(typeof e=="function"?e:kf(e)))}var x1=Array.prototype.filter;function b1(){return Array.from(this.children)}function _1(e){return function(){return x1.call(this.children,e)}}function C1(e){return this.selectAll(e==null?b1:_1(typeof e=="function"?e:kf(e)))}function w1(e){typeof e!="function"&&(e=wf(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new pe(i,this._parents)}function vf(e){return new Array(e.length)}function k1(){return new pe(this._enter||this._groups.map(vf),this._parents)}function Aa(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Aa.prototype={constructor:Aa,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function v1(e){return function(){return e}}function S1(e,t,r,i,n,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],i[o]=s):r[o]=new Aa(e,a[o]);for(;o<c;++o)(s=t[o])&&(n[o]=s)}function T1(e,t,r,i,n,a,o){var s,c,l=new Map,h=t.length,u=a.length,f=new Array(h),d;for(s=0;s<h;++s)(c=t[s])&&(f[s]=d=o.call(c,c.__data__,s,t)+"",l.has(d)?n[s]=c:l.set(d,c));for(s=0;s<u;++s)d=o.call(e,a[s],s,a)+"",(c=l.get(d))?(i[s]=c,c.__data__=a[s],l.delete(d)):r[s]=new Aa(e,a[s]);for(s=0;s<h;++s)(c=t[s])&&l.get(f[s])===c&&(n[s]=c)}function M1(e){return e.__data__}function A1(e,t){if(!arguments.length)return Array.from(this,M1);var r=t?T1:S1,i=this._parents,n=this._groups;typeof e!="function"&&(e=v1(e));for(var a=n.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var h=i[l],u=n[l],f=u.length,d=L1(e.call(h,h&&h.__data__,l,i)),p=d.length,m=s[l]=new Array(p),y=o[l]=new Array(p),x=c[l]=new Array(f);r(h,u,m,y,x,d,t);for(var b=0,C=0,k,w;b<p;++b)if(k=m[b]){for(b>=C&&(C=b+1);!(w=y[C])&&++C<p;);k._next=w||null}}return o=new pe(o,i),o._enter=s,o._exit=c,o}function L1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function B1(){return new pe(this._exit||this._groups.map(vf),this._parents)}function E1(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function $1(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,o=Math.min(n,a),s=new Array(n),c=0;c<o;++c)for(var l=r[c],h=i[c],u=l.length,f=s[c]=new Array(u),d,p=0;p<u;++p)(d=l[p]||h[p])&&(f[p]=d);for(;c<n;++c)s[c]=r[c];return new pe(s,this._parents)}function F1(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],o;--n>=0;)(o=i[n])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function D1(e){e||(e=O1);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o=r[a],s=o.length,c=n[a]=new Array(s),l,h=0;h<s;++h)(l=o[h])&&(c[h]=l);c.sort(t)}return new pe(n,this._parents).order()}function O1(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function R1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function I1(){return Array.from(this)}function P1(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null}function N1(){let e=0;for(const t of this)++e;return e}function z1(){return!this.node()}function W1(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,o=n.length,s;a<o;++a)(s=n[a])&&e.call(s,s.__data__,a,n);return this}function q1(e){return function(){this.removeAttribute(e)}}function H1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function U1(e,t){return function(){this.setAttribute(e,t)}}function j1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Y1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function G1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function V1(e,t){var r=bs(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?H1:q1:typeof t=="function"?r.local?G1:Y1:r.local?j1:U1)(r,t))}function Sf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function X1(e){return function(){this.style.removeProperty(e)}}function Z1(e,t,r){return function(){this.style.setProperty(e,t,r)}}function K1(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function Q1(e,t,r){return arguments.length>1?this.each((t==null?X1:typeof t=="function"?K1:Z1)(e,t,r??"")):_i(this.node(),e)}function _i(e,t){return e.style.getPropertyValue(t)||Sf(e).getComputedStyle(e,null).getPropertyValue(t)}function J1(e){return function(){delete this[e]}}function tb(e,t){return function(){this[e]=t}}function eb(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function rb(e,t){return arguments.length>1?this.each((t==null?J1:typeof t=="function"?eb:tb)(e,t)):this.node()[e]}function Tf(e){return e.trim().split(/^|\s+/)}function Hl(e){return e.classList||new Mf(e)}function Mf(e){this._node=e,this._names=Tf(e.getAttribute("class")||"")}Mf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Af(e,t){for(var r=Hl(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function Lf(e,t){for(var r=Hl(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function ib(e){return function(){Af(this,e)}}function nb(e){return function(){Lf(this,e)}}function ab(e,t){return function(){(t.apply(this,arguments)?Af:Lf)(this,e)}}function sb(e,t){var r=Tf(e+"");if(arguments.length<2){for(var i=Hl(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?ab:t?ib:nb)(r,t))}function ob(){this.textContent=""}function lb(e){return function(){this.textContent=e}}function cb(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function hb(e){return arguments.length?this.each(e==null?ob:(typeof e=="function"?cb:lb)(e)):this.node().textContent}function ub(){this.innerHTML=""}function fb(e){return function(){this.innerHTML=e}}function db(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function pb(e){return arguments.length?this.each(e==null?ub:(typeof e=="function"?db:fb)(e)):this.node().innerHTML}function gb(){this.nextSibling&&this.parentNode.appendChild(this)}function mb(){return this.each(gb)}function yb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xb(){return this.each(yb)}function bb(e){var t=typeof e=="function"?e:_f(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _b(){return null}function Cb(e,t){var r=typeof e=="function"?e:_f(e),i=t==null?_b:typeof t=="function"?t:ql(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function wb(){var e=this.parentNode;e&&e.removeChild(this)}function kb(){return this.each(wb)}function vb(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Sb(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tb(e){return this.select(e?Sb:vb)}function Mb(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ab(e){return function(t){e.call(this,t,this.__data__)}}function Lb(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function Bb(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function Eb(e,t,r){return function(){var i=this.__on,n,a=Ab(t);if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function $b(e,t,r){var i=Lb(e+""),n,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,h;c<l;++c)for(n=0,h=s[c];n<a;++n)if((o=i[n]).type===h.type&&o.name===h.name)return h.value}return}for(s=t?Eb:Bb,n=0;n<a;++n)this.each(s(i[n],t,r));return this}function Bf(e,t,r){var i=Sf(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function Fb(e,t){return function(){return Bf(this,e,t)}}function Db(e,t){return function(){return Bf(this,e,t.apply(this,arguments))}}function Ob(e,t){return this.each((typeof t=="function"?Db:Fb)(e,t))}function*Rb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,o;n<a;++n)(o=i[n])&&(yield o)}var Ef=[null];function pe(e,t){this._groups=e,this._parents=t}function En(){return new pe([[document.documentElement]],Ef)}function Ib(){return this}pe.prototype=En.prototype={constructor:pe,select:c1,selectAll:d1,selectChild:y1,selectChildren:C1,filter:w1,data:A1,enter:k1,exit:B1,join:E1,merge:$1,selection:Ib,order:F1,sort:D1,call:R1,nodes:I1,node:P1,size:N1,empty:z1,each:W1,attr:V1,style:Q1,property:rb,classed:sb,text:hb,html:pb,raise:mb,lower:xb,append:bb,insert:Cb,remove:kb,clone:Tb,datum:Mb,on:$b,dispatch:Ob,[Symbol.iterator]:Rb};function yt(e){return typeof e=="string"?new pe([[document.querySelector(e)]],[document.documentElement]):new pe([[e]],Ef)}function $n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function _s(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Wr(){}var xn=.7,La=1/xn,oi="\\s*([+-]?\\d+)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pb=/^#([0-9a-f]{3,8})$/,Nb=new RegExp(`^rgb\\(${oi},${oi},${oi}\\)$`),zb=new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`),Wb=new RegExp(`^rgba\\(${oi},${oi},${oi},${bn}\\)$`),qb=new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${bn}\\)$`),Hb=new RegExp(`^hsl\\(${bn},${Ne},${Ne}\\)$`),Ub=new RegExp(`^hsla\\(${bn},${Ne},${Ne},${bn}\\)$`),Th={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};$n(Wr,$r,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Mh,formatHex:Mh,formatHex8:jb,formatHsl:Yb,formatRgb:Ah,toString:Ah});function Mh(){return this.rgb().formatHex()}function jb(){return this.rgb().formatHex8()}function Yb(){return Ff(this).formatHsl()}function Ah(){return this.rgb().formatRgb()}function $r(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Pb.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Lh(t):r===3?new Kt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Kn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Kn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Nb.exec(e))?new Kt(t[1],t[2],t[3],1):(t=zb.exec(e))?new Kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wb.exec(e))?Kn(t[1],t[2],t[3],t[4]):(t=qb.exec(e))?Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hb.exec(e))?$h(t[1],t[2]/100,t[3]/100,1):(t=Ub.exec(e))?$h(t[1],t[2]/100,t[3]/100,t[4]):Th.hasOwnProperty(e)?Lh(Th[e]):e==="transparent"?new Kt(NaN,NaN,NaN,0):null}function Lh(e){return new Kt(e>>16&255,e>>8&255,e&255,1)}function Kn(e,t,r,i){return i<=0&&(e=t=r=NaN),new Kt(e,t,r,i)}function $f(e){return e instanceof Wr||(e=$r(e)),e?(e=e.rgb(),new Kt(e.r,e.g,e.b,e.opacity)):new Kt}function Uo(e,t,r,i){return arguments.length===1?$f(e):new Kt(e,t,r,i??1)}function Kt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}$n(Kt,Uo,_s(Wr,{brighter(e){return e=e==null?La:Math.pow(La,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xn:Math.pow(xn,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kt(Br(this.r),Br(this.g),Br(this.b),Ba(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:Bh,formatHex:Bh,formatHex8:Gb,formatRgb:Eh,toString:Eh}));function Bh(){return`#${Sr(this.r)}${Sr(this.g)}${Sr(this.b)}`}function Gb(){return`#${Sr(this.r)}${Sr(this.g)}${Sr(this.b)}${Sr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Eh(){const e=Ba(this.opacity);return`${e===1?"rgb(":"rgba("}${Br(this.r)}, ${Br(this.g)}, ${Br(this.b)}${e===1?")":`, ${e})`}`}function Ba(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Br(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sr(e){return e=Br(e),(e<16?"0":"")+e.toString(16)}function $h(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Se(e,t,r,i)}function Ff(e){if(e instanceof Se)return new Se(e.h,e.s,e.l,e.opacity);if(e instanceof Wr||(e=$r(e)),!e)return new Se;if(e instanceof Se)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,c=(a+n)/2;return s?(t===a?o=(r-i)/s+(r<i)*6:r===a?o=(i-t)/s+2:o=(t-r)/s+4,s/=c<.5?a+n:2-a-n,o*=60):s=c>0&&c<1?0:o,new Se(o,s,c,e.opacity)}function Vb(e,t,r,i){return arguments.length===1?Ff(e):new Se(e,t,r,i??1)}function Se(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}$n(Se,Vb,_s(Wr,{brighter(e){return e=e==null?La:Math.pow(La,e),new Se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xn:Math.pow(xn,e),new Se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Kt(uo(e>=240?e-240:e+120,n,i),uo(e,n,i),uo(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new Se(Fh(this.h),Qn(this.s),Qn(this.l),Ba(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 e=Ba(this.opacity);return`${e===1?"hsl(":"hsla("}${Fh(this.h)}, ${Qn(this.s)*100}%, ${Qn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Fh(e){return e=(e||0)%360,e<0?e+360:e}function Qn(e){return Math.max(0,Math.min(1,e||0))}function uo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Xb=Math.PI/180,Zb=180/Math.PI,Ea=18,Df=.96422,Of=1,Rf=.82521,If=4/29,li=6/29,Pf=3*li*li,Kb=li*li*li;function Nf(e){if(e instanceof ze)return new ze(e.l,e.a,e.b,e.opacity);if(e instanceof Qe)return zf(e);e instanceof Kt||(e=$f(e));var t=mo(e.r),r=mo(e.g),i=mo(e.b),n=fo((.2225045*t+.7168786*r+.0606169*i)/Of),a,o;return t===r&&r===i?a=o=n:(a=fo((.4360747*t+.3850649*r+.1430804*i)/Df),o=fo((.0139322*t+.0971045*r+.7141733*i)/Rf)),new ze(116*n-16,500*(a-n),200*(n-o),e.opacity)}function Qb(e,t,r,i){return arguments.length===1?Nf(e):new ze(e,t,r,i??1)}function ze(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}$n(ze,Qb,_s(Wr,{brighter(e){return new ze(this.l+Ea*(e??1),this.a,this.b,this.opacity)},darker(e){return new ze(this.l-Ea*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=Df*po(t),e=Of*po(e),r=Rf*po(r),new Kt(go(3.1338561*t-1.6168667*e-.4906146*r),go(-.9787684*t+1.9161415*e+.033454*r),go(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function fo(e){return e>Kb?Math.pow(e,1/3):e/Pf+If}function po(e){return e>li?e*e*e:Pf*(e-If)}function go(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mo(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jb(e){if(e instanceof Qe)return new Qe(e.h,e.c,e.l,e.opacity);if(e instanceof ze||(e=Nf(e)),e.a===0&&e.b===0)return new Qe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zb;return new Qe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function jo(e,t,r,i){return arguments.length===1?Jb(e):new Qe(e,t,r,i??1)}function Qe(e,t,r,i){this.h=+e,this.c=+t,this.l=+r,this.opacity=+i}function zf(e){if(isNaN(e.h))return new ze(e.l,0,0,e.opacity);var t=e.h*Xb;return new ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}$n(Qe,jo,_s(Wr,{brighter(e){return new Qe(this.h,this.c,this.l+Ea*(e??1),this.opacity)},darker(e){return new Qe(this.h,this.c,this.l-Ea*(e??1),this.opacity)},rgb(){return zf(this).rgb()}}));const Cs=e=>()=>e;function Wf(e,t){return function(r){return e+r*t}}function t2(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function e2(e,t){var r=t-e;return r?Wf(e,r>180||r<-180?r-360*Math.round(r/360):r):Cs(isNaN(e)?t:e)}function r2(e){return(e=+e)==1?un:function(t,r){return r-t?t2(t,r,e):Cs(isNaN(t)?r:t)}}function un(e,t){var r=t-e;return r?Wf(e,r):Cs(isNaN(e)?t:e)}const $a=(function e(t){var r=r2(t);function i(n,a){var o=r((n=Uo(n)).r,(a=Uo(a)).r),s=r(n.g,a.g),c=r(n.b,a.b),l=un(n.opacity,a.opacity);return function(h){return n.r=o(h),n.g=s(h),n.b=c(h),n.opacity=l(h),n+""}}return i.gamma=e,i})(1);function i2(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}function n2(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function a2(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o<i;++o)n[o]=Ul(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<i;++o)a[o]=n[o](s);return a}}function s2(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}function we(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function o2(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=Ul(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var Yo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yo=new RegExp(Yo.source,"g");function l2(e){return function(){return e}}function c2(e){return function(t){return e(t)+""}}function qf(e,t){var r=Yo.lastIndex=yo.lastIndex=0,i,n,a,o=-1,s=[],c=[];for(e=e+"",t=t+"";(i=Yo.exec(e))&&(n=yo.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,c.push({i:o,x:we(i,n)})),r=yo.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?c2(c[0].x):l2(t):(t=c.length,function(l){for(var h=0,u;h<t;++h)s[(u=c[h]).i]=u.x(l);return s.join("")})}function Ul(e,t){var r=typeof t,i;return t==null||r==="boolean"?Cs(t):(r==="number"?we:r==="string"?(i=$r(t))?(t=i,$a):qf:t instanceof $r?$a:t instanceof Date?s2:n2(t)?i2:Array.isArray(t)?a2:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?o2:we)(e,t)}function h2(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Dh=180/Math.PI,Go={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Hf(e,t,r,i,n,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*r+t*i)&&(r-=e*c,i-=t*c),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,c/=s),e*i<t*r&&(e=-e,t=-t,c=-c,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*Dh,skewX:Math.atan(c)*Dh,scaleX:o,scaleY:s}}var Jn;function u2(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Go:Hf(t.a,t.b,t.c,t.d,t.e,t.f)}function f2(e){return e==null||(Jn||(Jn=document.createElementNS("http://www.w3.org/2000/svg","g")),Jn.setAttribute("transform",e),!(e=Jn.transform.baseVal.consolidate()))?Go:(e=e.matrix,Hf(e.a,e.b,e.c,e.d,e.e,e.f))}function Uf(e,t,r,i){function n(l){return l.length?l.pop()+" ":""}function a(l,h,u,f,d,p){if(l!==u||h!==f){var m=d.push("translate(",null,t,null,r);p.push({i:m-4,x:we(l,u)},{i:m-2,x:we(h,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function o(l,h,u,f){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:we(l,h)})):h&&u.push(n(u)+"rotate("+h+i)}function s(l,h,u,f){l!==h?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:we(l,h)}):h&&u.push(n(u)+"skewX("+h+i)}function c(l,h,u,f,d,p){if(l!==u||h!==f){var m=d.push(n(d)+"scale(",null,",",null,")");p.push({i:m-4,x:we(l,u)},{i:m-2,x:we(h,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(l,h){var u=[],f=[];return l=e(l),h=e(h),a(l.translateX,l.translateY,h.translateX,h.translateY,u,f),o(l.rotate,h.rotate,u,f),s(l.skewX,h.skewX,u,f),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,u,f),l=h=null,function(d){for(var p=-1,m=f.length,y;++p<m;)u[(y=f[p]).i]=y.x(d);return u.join("")}}}var d2=Uf(u2,"px, ","px)","deg)"),p2=Uf(f2,", ",")",")");function g2(e){return function(t,r){var i=e((t=jo(t)).h,(r=jo(r)).h),n=un(t.c,r.c),a=un(t.l,r.l),o=un(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}const d3=g2(e2);var Ci=0,en=0,Ui=0,jf=1e3,Fa,rn,Da=0,Fr=0,ws=0,_n=typeof performance=="object"&&performance.now?performance:Date,Yf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jl(){return Fr||(Yf(m2),Fr=_n.now()+ws)}function m2(){Fr=0}function Oa(){this._call=this._time=this._next=null}Oa.prototype=Gf.prototype={constructor:Oa,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?jl():+r)+(t==null?0:+t),!this._next&&rn!==this&&(rn?rn._next=this:Fa=this,rn=this),this._call=e,this._time=r,Vo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Vo())}};function Gf(e,t,r){var i=new Oa;return i.restart(e,t,r),i}function y2(){jl(),++Ci;for(var e=Fa,t;e;)(t=Fr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ci}function Oh(){Fr=(Da=_n.now())+ws,Ci=en=0;try{y2()}finally{Ci=0,b2(),Fr=0}}function x2(){var e=_n.now(),t=e-Da;t>jf&&(ws-=t,Da=e)}function b2(){for(var e,t=Fa,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Fa=r);rn=e,Vo(i)}function Vo(e){if(!Ci){en&&(en=clearTimeout(en));var t=e-Fr;t>24?(e<1/0&&(en=setTimeout(Oh,e-_n.now()-ws)),Ui&&(Ui=clearInterval(Ui))):(Ui||(Da=_n.now(),Ui=setInterval(x2,jf)),Ci=1,Yf(Oh))}}function Rh(e,t,r){var i=new Oa;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var _2=bf("start","end","cancel","interrupt"),C2=[],Vf=0,Ih=1,Xo=2,pa=3,Ph=4,Zo=5,ga=6;function ks(e,t,r,i,n,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;w2(e,r,{name:t,index:i,group:n,on:_2,tween:C2,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Vf})}function Yl(e,t){var r=Be(e,t);if(r.state>Vf)throw new Error("too late; already scheduled");return r}function qe(e,t){var r=Be(e,t);if(r.state>pa)throw new Error("too late; already running");return r}function Be(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function w2(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Gf(a,0,r.time);function a(l){r.state=Ih,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var h,u,f,d;if(r.state!==Ih)return c();for(h in i)if(d=i[h],d.name===r.name){if(d.state===pa)return Rh(o);d.state===Ph?(d.state=ga,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[h]):+h<t&&(d.state=ga,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[h])}if(Rh(function(){r.state===pa&&(r.state=Ph,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=Xo,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Xo){for(r.state=pa,n=new Array(f=r.tween.length),h=0,u=-1;h<f;++h)(d=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function s(l){for(var h=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(c),r.state=Zo,1),u=-1,f=n.length;++u<f;)n[u].call(e,h);r.state===Zo&&(r.on.call("end",e,e.__data__,r.index,r.group),c())}function c(){r.state=ga,r.timer.stop(),delete i[t];for(var l in i)return;delete e.__transition}}function k2(e,t){var r=e.__transition,i,n,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}n=i.state>Xo&&i.state<Zo,i.state=ga,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}function v2(e){return this.each(function(){k2(this,e)})}function S2(e,t){var r,i;return function(){var n=qe(this,e),a=n.tween;if(a!==r){i=r=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function T2(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=qe(this,e),o=a.tween;if(o!==i){n=(i=o).slice();for(var s={name:t,value:r},c=0,l=n.length;c<l;++c)if(n[c].name===t){n[c]=s;break}c===l&&n.push(s)}a.tween=n}}function M2(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Be(this.node(),r).tween,n=0,a=i.length,o;n<a;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?S2:T2)(r,e,t))}function Gl(e,t,r){var i=e._id;return e.each(function(){var n=qe(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Be(n,i).value[t]}}function Xf(e,t){var r;return(typeof t=="number"?we:t instanceof $r?$a:(r=$r(t))?(t=r,$a):qf)(e,t)}function A2(e){return function(){this.removeAttribute(e)}}function L2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function B2(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttribute(e);return o===n?null:o===i?a:a=t(i=o,r)}}function E2(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?a:a=t(i=o,r)}}function $2(e,t,r){var i,n,a;return function(){var o,s=r(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+"",o===c?null:o===i&&c===n?a:(n=c,a=t(i=o,s)))}}function F2(e,t,r){var i,n,a;return function(){var o,s=r(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+"",o===c?null:o===i&&c===n?a:(n=c,a=t(i=o,s)))}}function D2(e,t){var r=bs(e),i=r==="transform"?p2:Xf;return this.attrTween(e,typeof t=="function"?(r.local?F2:$2)(r,i,Gl(this,"attr."+e,t)):t==null?(r.local?L2:A2)(r):(r.local?E2:B2)(r,i,t))}function O2(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function R2(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function I2(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&R2(e,a)),r}return n._value=t,n}function P2(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&O2(e,a)),r}return n._value=t,n}function N2(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=bs(e);return this.tween(r,(i.local?I2:P2)(i,t))}function z2(e,t){return function(){Yl(this,e).delay=+t.apply(this,arguments)}}function W2(e,t){return t=+t,function(){Yl(this,e).delay=t}}function q2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?z2:W2)(t,e)):Be(this.node(),t).delay}function H2(e,t){return function(){qe(this,e).duration=+t.apply(this,arguments)}}function U2(e,t){return t=+t,function(){qe(this,e).duration=t}}function j2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?H2:U2)(t,e)):Be(this.node(),t).duration}function Y2(e,t){if(typeof t!="function")throw new Error;return function(){qe(this,e).ease=t}}function G2(e){var t=this._id;return arguments.length?this.each(Y2(t,e)):Be(this.node(),t).ease}function V2(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;qe(this,e).ease=r}}function X2(e){if(typeof e!="function")throw new Error;return this.each(V2(this._id,e))}function Z2(e){typeof e!="function"&&(e=wf(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new ir(i,this._parents,this._name,this._id)}function K2(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),o=new Array(i),s=0;s<a;++s)for(var c=t[s],l=r[s],h=c.length,u=o[s]=new Array(h),f,d=0;d<h;++d)(f=c[d]||l[d])&&(u[d]=f);for(;s<i;++s)o[s]=t[s];return new ir(o,this._parents,this._name,this._id)}function Q2(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function J2(e,t,r){var i,n,a=Q2(t)?Yl:qe;return function(){var o=a(this,e),s=o.on;s!==i&&(n=(i=s).copy()).on(t,r),o.on=n}}function t_(e,t){var r=this._id;return arguments.length<2?Be(this.node(),r).on.on(e):this.each(J2(r,e,t))}function e_(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function r_(){return this.on("end.remove",e_(this._id))}function i_(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ql(e));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var s=i[o],c=s.length,l=a[o]=new Array(c),h,u,f=0;f<c;++f)(h=s[f])&&(u=e.call(h,h.__data__,f,s))&&("__data__"in h&&(u.__data__=h.__data__),l[f]=u,ks(l[f],t,r,f,l,Be(h,r)));return new ir(a,this._parents,t,r)}function n_(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Cf(e));for(var i=this._groups,n=i.length,a=[],o=[],s=0;s<n;++s)for(var c=i[s],l=c.length,h,u=0;u<l;++u)if(h=c[u]){for(var f=e.call(h,h.__data__,u,c),d,p=Be(h,r),m=0,y=f.length;m<y;++m)(d=f[m])&&ks(d,t,r,m,f,p);a.push(f),o.push(h)}return new ir(a,o,t,r)}var a_=En.prototype.constructor;function s_(){return new a_(this._groups,this._parents)}function o_(e,t){var r,i,n;return function(){var a=_i(this,e),o=(this.style.removeProperty(e),_i(this,e));return a===o?null:a===r&&o===i?n:n=t(r=a,i=o)}}function Zf(e){return function(){this.style.removeProperty(e)}}function l_(e,t,r){var i,n=r+"",a;return function(){var o=_i(this,e);return o===n?null:o===i?a:a=t(i=o,r)}}function c_(e,t,r){var i,n,a;return function(){var o=_i(this,e),s=r(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),_i(this,e))),o===c?null:o===i&&c===n?a:(n=c,a=t(i=o,s))}}function h_(e,t){var r,i,n,a="style."+t,o="end."+a,s;return function(){var c=qe(this,e),l=c.on,h=c.value[a]==null?s||(s=Zf(t)):void 0;(l!==r||n!==h)&&(i=(r=l).copy()).on(o,n=h),c.on=i}}function u_(e,t,r){var i=(e+="")=="transform"?d2:Xf;return t==null?this.styleTween(e,o_(e,i)).on("end.style."+e,Zf(e)):typeof t=="function"?this.styleTween(e,c_(e,i,Gl(this,"style."+e,t))).each(h_(this._id,e)):this.styleTween(e,l_(e,i,t),r).on("end.style."+e,null)}function f_(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function d_(e,t,r){var i,n;function a(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&f_(e,o,r)),i}return a._value=t,a}function p_(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,d_(e,t,r??""))}function g_(e){return function(){this.textContent=e}}function m_(e){return function(){var t=e(this);this.textContent=t??""}}function y_(e){return this.tween("text",typeof e=="function"?m_(Gl(this,"text",e)):g_(e==null?"":e+""))}function x_(e){return function(t){this.textContent=e.call(this,t)}}function b_(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&x_(n)),t}return i._value=e,i}function __(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,b_(e))}function C_(){for(var e=this._name,t=this._id,r=Kf(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var h=Be(c,t);ks(c,e,r,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ir(i,this._parents,e,r)}function w_(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--n===0&&a()}};r.each(function(){var l=qe(this,i),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),l.on=t}),n===0&&a()})}var k_=0;function ir(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Kf(){return++k_}var Ve=En.prototype;ir.prototype={constructor:ir,select:i_,selectAll:n_,selectChild:Ve.selectChild,selectChildren:Ve.selectChildren,filter:Z2,merge:K2,selection:s_,transition:C_,call:Ve.call,nodes:Ve.nodes,node:Ve.node,size:Ve.size,empty:Ve.empty,each:Ve.each,on:t_,attr:D2,attrTween:N2,style:u_,styleTween:p_,text:y_,textTween:__,remove:r_,tween:M2,delay:q2,duration:j2,ease:G2,easeVarying:X2,end:w_,[Symbol.iterator]:Ve[Symbol.iterator]};function v_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var S_={time:null,delay:0,duration:250,ease:v_};function T_(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function M_(e){var t,r;e instanceof ir?(t=e._id,e=e._name):(t=Kf(),(r=S_).time=jl(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&ks(c,e,t,l,o,r||T_(c,t));return new ir(i,this._parents,e,t)}En.prototype.interrupt=v2;En.prototype.transition=M_;const Ko=Math.PI,Qo=2*Ko,wr=1e-6,A_=Qo-wr;function Qf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function L_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qf;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class B_{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qf:L_(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,c=i-t,l=n-r,h=o-t,u=s-r,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>wr)if(!(Math.abs(u*c-l*h)>wr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-o,p=n-s,m=c*c+l*l,y=d*d+p*p,x=Math.sqrt(m),b=Math.sqrt(f),C=a*Math.tan((Ko-Math.acos((m+f-y)/(2*x*b)))/2),k=C/b,w=C/x;Math.abs(k-1)>wr&&this._append`L${t+k*h},${r+k*u}`,this._append`A${a},${a},0,0,${+(u*d>h*p)},${this._x1=t+w*c},${this._y1=r+w*l}`}}arc(t,r,i,n,a,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(n),c=i*Math.sin(n),l=t+s,h=r+c,u=1^o,f=o?n-a:a-n;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>wr||Math.abs(this._y1-h)>wr)&&this._append`L${l},${h}`,i&&(f<0&&(f=f%Qo+Qo),f>A_?this._append`A${i},${i},0,1,${u},${t-s},${r-c}A${i},${i},0,1,${u},${this._x1=l},${this._y1=h}`:f>wr&&this._append`A${i},${i},0,${+(f>=Ko)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function E_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ra(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function wi(e){return e=Ra(Math.abs(e)),e?e[1]:NaN}function $_(e,t){return function(r,i){for(var n=r.length,a=[],o=0,s=e[0],c=0;n>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),a.push(r.substring(n-=s,n+s)),!((c+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function F_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var D_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ia(e){if(!(t=D_.exec(e)))throw new Error("invalid format: "+e);var t;return new Vl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ia.prototype=Vl.prototype;function Vl(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Vl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function O_(e){t:for(var t=e.length,r=1,i=-1,n;r<t;++r)switch(e[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+e[r])break t;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(n+1):e}var Jf;function R_(e,t){var r=Ra(e,t);if(!r)return e+"";var i=r[0],n=r[1],a=n-(Jf=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Ra(e,Math.max(0,t+a-1))[0]}function Nh(e,t){var r=Ra(e,t);if(!r)return e+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const zh={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:E_,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Nh(e*100,t),r:Nh,s:R_,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Wh(e){return e}var qh=Array.prototype.map,Hh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I_(e){var t=e.grouping===void 0||e.thousands===void 0?Wh:$_(qh.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Wh:F_(qh.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(u){u=Ia(u);var f=u.fill,d=u.align,p=u.sign,m=u.symbol,y=u.zero,x=u.width,b=u.comma,C=u.precision,k=u.trim,w=u.type;w==="n"?(b=!0,w="g"):zh[w]||(C===void 0&&(C=12),k=!0,w="g"),(y||f==="0"&&d==="=")&&(y=!0,f="0",d="=");var _=m==="$"?r:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",v=m==="$"?i:/[%p]/.test(w)?o:"",D=zh[w],I=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(T){var P=_,E=v,M,B,L;if(w==="c")E=D(T)+E,T="";else{T=+T;var F=T<0||1/T<0;if(T=isNaN(T)?c:D(Math.abs(T),C),k&&(T=O_(T)),F&&+T==0&&p!=="+"&&(F=!1),P=(F?p==="("?p:s:p==="-"||p==="("?"":p)+P,E=(w==="s"?Hh[8+Jf/3]:"")+E+(F&&p==="("?")":""),I){for(M=-1,B=T.length;++M<B;)if(L=T.charCodeAt(M),48>L||L>57){E=(L===46?n+T.slice(M+1):T.slice(M))+E,T=T.slice(0,M);break}}}b&&!y&&(T=t(T,1/0));var $=P.length+T.length+E.length,q=$<x?new Array(x-$+1).join(f):"";switch(b&&y&&(T=t(q+T,q.length?x-E.length:1/0),q=""),d){case"<":T=P+T+E+q;break;case"=":T=P+q+T+E;break;case"^":T=q.slice(0,$=q.length>>1)+P+T+E+q.slice($);break;default:T=q+P+T+E;break}return a(T)}return O.toString=function(){return u+""},O}function h(u,f){var d=l((u=Ia(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(wi(f)/3)))*3,m=Math.pow(10,-p),y=Hh[8+p/3];return function(x){return d(m*x)+y}}return{format:l,formatPrefix:h}}var ta,td,ed;P_({thousands:",",grouping:[3],currency:["$",""]});function P_(e){return ta=I_(e),td=ta.format,ed=ta.formatPrefix,ta}function N_(e){return Math.max(0,-wi(Math.abs(e)))}function z_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wi(t)/3)))*3-wi(Math.abs(e)))}function W_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wi(t)-wi(e))+1}function q_(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}function H_(){return this.eachAfter(q_)}function U_(e,t){let r=-1;for(const i of this)e.call(t,i,++r,this);return this}function j_(e,t){for(var r=this,i=[r],n,a,o=-1;r=i.pop();)if(e.call(t,r,++o,this),n=r.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function Y_(e,t){for(var r=this,i=[r],n=[],a,o,s,c=-1;r=i.pop();)if(n.push(r),a=r.children)for(o=0,s=a.length;o<s;++o)i.push(a[o]);for(;r=n.pop();)e.call(t,r,++c,this);return this}function G_(e,t){let r=-1;for(const i of this)if(e.call(t,i,++r,this))return i}function V_(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,i=t.children,n=i&&i.length;--n>=0;)r+=i[n].value;t.value=r})}function X_(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Z_(e){for(var t=this,r=K_(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var n=i.length;e!==r;)i.splice(n,0,e),e=e.parent;return i}function K_(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),n=null;for(e=r.pop(),t=i.pop();e===t;)n=e,e=r.pop(),t=i.pop();return n}function Q_(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function J_(){return Array.from(this)}function tC(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function eC(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*rC(){var e=this,t,r=[e],i,n,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,i=e.children)for(n=0,a=i.length;n<a;++n)r.push(i[n]);while(r.length)}function rd(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=aC)):t===void 0&&(t=nC);for(var r=new Pa(e),i,n=[r],a,o,s,c;i=n.pop();)if((o=t(i.data))&&(c=(o=Array.from(o)).length))for(i.children=o,s=c-1;s>=0;--s)n.push(a=o[s]=new Pa(o[s])),a.parent=i,a.depth=i.depth+1;return r.eachBefore(oC)}function iC(){return rd(this).eachBefore(sC)}function nC(e){return e.children}function aC(e){return Array.isArray(e)?e[1]:null}function sC(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function oC(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Pa(e){this.data=e,this.depth=this.height=0,this.parent=null}Pa.prototype=rd.prototype={constructor:Pa,count:H_,each:U_,eachAfter:Y_,eachBefore:j_,find:G_,sum:V_,sort:X_,path:Z_,ancestors:Q_,descendants:J_,leaves:tC,links:eC,copy:iC,[Symbol.iterator]:rC};function lC(e){if(typeof e!="function")throw new Error;return e}function ji(){return 0}function Yi(e){return function(){return e}}function cC(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function hC(e,t,r,i,n){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-t)/e.value;++s<c;)o=a[s],o.y0=r,o.y1=n,o.x0=t,o.x1=t+=o.value*l}function uC(e,t,r,i,n){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(n-r)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=i,o.y0=r,o.y1=r+=o.value*l}var fC=(1+Math.sqrt(5))/2;function dC(e,t,r,i,n,a){for(var o=[],s=t.children,c,l,h=0,u=0,f=s.length,d,p,m=t.value,y,x,b,C,k,w,_;h<f;){d=n-r,p=a-i;do y=s[u++].value;while(!y&&u<f);for(x=b=y,w=Math.max(p/d,d/p)/(m*e),_=y*y*w,k=Math.max(b/_,_/x);u<f;++u){if(y+=l=s[u].value,l<x&&(x=l),l>b&&(b=l),_=y*y*w,C=Math.max(b/_,_/x),C>k){y-=l;break}k=C}o.push(c={value:y,dice:d<p,children:s.slice(h,u)}),c.dice?hC(c,r,i,n,m?i+=p*y/m:a):uC(c,r,i,m?r+=d*y/m:n,a),m-=y,h=u}return o}const pC=(function e(t){function r(i,n,a,o,s){dC(t,i,n,a,o,s)}return r.ratio=function(i){return e((i=+i)>1?i:1)},r})(fC);function p3(){var e=pC,t=!1,r=1,i=1,n=[0],a=ji,o=ji,s=ji,c=ji,l=ji;function h(f){return f.x0=f.y0=0,f.x1=r,f.y1=i,f.eachBefore(u),n=[0],t&&f.eachBefore(cC),f}function u(f){var d=n[f.depth],p=f.x0+d,m=f.y0+d,y=f.x1-d,x=f.y1-d;y<p&&(p=y=(p+y)/2),x<m&&(m=x=(m+x)/2),f.x0=p,f.y0=m,f.x1=y,f.y1=x,f.children&&(d=n[f.depth+1]=a(f)/2,p+=l(f)-d,m+=o(f)-d,y-=s(f)-d,x-=c(f)-d,y<p&&(p=y=(p+y)/2),x<m&&(m=x=(m+x)/2),e(f,p,m,y,x))}return h.round=function(f){return arguments.length?(t=!!f,h):t},h.size=function(f){return arguments.length?(r=+f[0],i=+f[1],h):[r,i]},h.tile=function(f){return arguments.length?(e=lC(f),h):e},h.padding=function(f){return arguments.length?h.paddingInner(f).paddingOuter(f):h.paddingInner()},h.paddingInner=function(f){return arguments.length?(a=typeof f=="function"?f:Yi(+f),h):a},h.paddingOuter=function(f){return arguments.length?h.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):h.paddingTop()},h.paddingTop=function(f){return arguments.length?(o=typeof f=="function"?f:Yi(+f),h):o},h.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:Yi(+f),h):s},h.paddingBottom=function(f){return arguments.length?(c=typeof f=="function"?f:Yi(+f),h):c},h.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:Yi(+f),h):l},h}function vs(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const Uh=Symbol("implicit");function id(){var e=new Ch,t=[],r=[],i=Uh;function n(a){let o=e.get(a);if(o===void 0){if(i!==Uh)return i;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return n.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ch;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return n},n.range=function(a){return arguments.length?(r=Array.from(a),n):r.slice()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return id(t,r).unknown(i)},vs.apply(n,arguments),n}function gC(){var e=id().unknown(void 0),t=e.domain,r=e.range,i=0,n=1,a,o,s=!1,c=0,l=0,h=.5;delete e.unknown;function u(){var f=t().length,d=n<i,p=d?n:i,m=d?i:n;a=(m-p)/Math.max(1,f-c+l*2),s&&(a=Math.floor(a)),p+=(m-p-a*(f-c))*h,o=a*(1-c),s&&(p=Math.round(p),o=Math.round(o));var y=Zx(f).map(function(x){return p+a*x});return r(d?y.reverse():y)}return e.domain=function(f){return arguments.length?(t(f),u()):t()},e.range=function(f){return arguments.length?([i,n]=f,i=+i,n=+n,u()):[i,n]},e.rangeRound=function(f){return[i,n]=f,i=+i,n=+n,s=!0,u()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,u()):s},e.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),u()):c},e.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),u()):c},e.paddingOuter=function(f){return arguments.length?(l=+f,u()):l},e.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},e.copy=function(){return gC(t(),[i,n]).round(s).paddingInner(c).paddingOuter(l).align(h)},vs.apply(u(),arguments)}function mC(e){return function(){return e}}function yC(e){return+e}var jh=[0,1];function ii(e){return e}function Jo(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:mC(isNaN(t)?NaN:.5)}function xC(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function bC(e,t,r){var i=e[0],n=e[1],a=t[0],o=t[1];return n<i?(i=Jo(n,i),a=r(o,a)):(i=Jo(i,n),a=r(a,o)),function(s){return a(i(s))}}function _C(e,t,r){var i=Math.min(e.length,t.length)-1,n=new Array(i),a=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)n[o]=Jo(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var c=qx(e,s,1,i)-1;return a[c](n[c](s))}}function nd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function CC(){var e=jh,t=jh,r=Ul,i,n,a,o=ii,s,c,l;function h(){var f=Math.min(e.length,t.length);return o!==ii&&(o=xC(e[0],e[f-1])),s=f>2?_C:bC,c=l=null,u}function u(f){return f==null||isNaN(f=+f)?a:(c||(c=s(e.map(i),t,r)))(i(o(f)))}return u.invert=function(f){return o(n((l||(l=s(t,e.map(i),we)))(f)))},u.domain=function(f){return arguments.length?(e=Array.from(f,yC),h()):e.slice()},u.range=function(f){return arguments.length?(t=Array.from(f),h()):t.slice()},u.rangeRound=function(f){return t=Array.from(f),r=h2,h()},u.clamp=function(f){return arguments.length?(o=f?!0:ii,h()):o!==ii},u.interpolate=function(f){return arguments.length?(r=f,h()):r},u.unknown=function(f){return arguments.length?(a=f,u):a},function(f,d){return i=f,n=d,h()}}function ad(){return CC()(ii,ii)}function wC(e,t,r,i){var n=Wo(e,t,r),a;switch(i=Ia(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(a=z_(n,o))&&(i.precision=a),ed(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=W_(n,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=N_(n))&&(i.precision=a-(i.type==="%")*2);break}}return td(i)}function kC(e){var t=e.domain;return e.ticks=function(r){var i=t();return Xx(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var n=t();return wC(n[0],n[n.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),n=0,a=i.length-1,o=i[n],s=i[a],c,l,h=10;for(s<o&&(l=o,o=s,s=l,l=n,n=a,a=l);h-- >0;){if(l=zo(o,s,r),l===c)return i[n]=o,i[a]=s,t(i);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function vC(){var e=ad();return e.copy=function(){return nd(e,vC())},vs.apply(e,arguments),kC(e)}function SC(e,t){e=e.slice();var r=0,i=e.length-1,n=e[r],a=e[i],o;return a<n&&(o=r,r=i,i=o,o=n,n=a,a=o),e[r]=t.floor(n),e[i]=t.ceil(a),e}const xo=new Date,bo=new Date;function Pt(e,t,r,i){function n(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return n.floor=a=>(e(a=new Date(+a)),a),n.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),n.round=a=>{const o=n(a),s=n.ceil(a);return a-o<s-a?o:s},n.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),n.range=(a,o,s)=>{const c=[];if(a=n.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return c},n.filter=a=>Pt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(n.count=(a,o)=>(xo.setTime(+a),bo.setTime(+o),e(xo),e(bo),Math.floor(r(xo,bo))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(i?o=>i(o)%a===0:o=>n.count(0,o)%a===0):n)),n}const Na=Pt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Na.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Na);Na.range;const Je=1e3,me=Je*60,tr=me*60,nr=tr*24,Xl=nr*7,Yh=nr*30,_o=nr*365,ni=Pt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Je)},(e,t)=>(t-e)/Je,e=>e.getUTCSeconds());ni.range;const Zl=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Je)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getMinutes());Zl.range;const TC=Pt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCMinutes());TC.range;const Kl=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Je-e.getMinutes()*me)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getHours());Kl.range;const MC=Pt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCHours());MC.range;const Fn=Pt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*me)/nr,e=>e.getDate()-1);Fn.range;const Ql=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/nr,e=>e.getUTCDate()-1);Ql.range;const AC=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/nr,e=>Math.floor(e/nr));AC.range;function qr(e){return Pt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*me)/Xl)}const Ss=qr(0),za=qr(1),LC=qr(2),BC=qr(3),ki=qr(4),EC=qr(5),$C=qr(6);Ss.range;za.range;LC.range;BC.range;ki.range;EC.range;$C.range;function Hr(e){return Pt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Xl)}const sd=Hr(0),Wa=Hr(1),FC=Hr(2),DC=Hr(3),vi=Hr(4),OC=Hr(5),RC=Hr(6);sd.range;Wa.range;FC.range;DC.range;vi.range;OC.range;RC.range;const Jl=Pt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Jl.range;const IC=Pt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());IC.range;const ar=Pt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ar.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ar.range;const Dr=Pt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dr.range;function PC(e,t,r,i,n,a){const o=[[ni,1,Je],[ni,5,5*Je],[ni,15,15*Je],[ni,30,30*Je],[a,1,me],[a,5,5*me],[a,15,15*me],[a,30,30*me],[n,1,tr],[n,3,3*tr],[n,6,6*tr],[n,12,12*tr],[i,1,nr],[i,2,2*nr],[r,1,Xl],[t,1,Yh],[t,3,3*Yh],[e,1,_o]];function s(l,h,u){const f=h<l;f&&([l,h]=[h,l]);const d=u&&typeof u.range=="function"?u:c(l,h,u),p=d?d.range(l,+h+1):[];return f?p.reverse():p}function c(l,h,u){const f=Math.abs(h-l)/u,d=Wl(([,,y])=>y).right(o,f);if(d===o.length)return e.every(Wo(l/_o,h/_o,u));if(d===0)return Na.every(Math.max(Wo(l,h,u),1));const[p,m]=o[f/o[d-1][2]<o[d][2]/f?d-1:d];return p.every(m)}return[s,c]}const[NC,zC]=PC(ar,Jl,Ss,Fn,Kl,Zl);function Co(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function wo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Gi(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function WC(e){var t=e.dateTime,r=e.date,i=e.time,n=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Vi(n),h=Xi(n),u=Vi(a),f=Xi(a),d=Vi(o),p=Xi(o),m=Vi(s),y=Xi(s),x=Vi(c),b=Xi(c),C={a:F,A:$,b:q,B:Y,c:null,d:Qh,e:Qh,f:hw,g:_w,G:ww,H:ow,I:lw,j:cw,L:od,m:uw,M:fw,p:U,q:ft,Q:eu,s:ru,S:dw,u:pw,U:gw,V:mw,w:yw,W:xw,x:null,X:null,y:bw,Y:Cw,Z:kw,"%":tu},k={a:st,A:mt,b:ot,B:ht,c:null,d:Jh,e:Jh,f:Mw,g:Iw,G:Nw,H:vw,I:Sw,j:Tw,L:cd,m:Aw,M:Lw,p:ut,q:xt,Q:eu,s:ru,S:Bw,u:Ew,U:$w,V:Fw,w:Dw,W:Ow,x:null,X:null,y:Rw,Y:Pw,Z:zw,"%":tu},w={a:O,A:T,b:P,B:E,c:M,d:Zh,e:Zh,f:iw,g:Xh,G:Vh,H:Kh,I:Kh,j:JC,L:rw,m:QC,M:tw,p:I,q:KC,Q:aw,s:sw,S:ew,u:YC,U:GC,V:VC,w:jC,W:XC,x:B,X:L,y:Xh,Y:Vh,Z:ZC,"%":nw};C.x=_(r,C),C.X=_(i,C),C.c=_(t,C),k.x=_(r,k),k.X=_(i,k),k.c=_(t,k);function _(z,G){return function(et){var N=[],St=-1,gt=0,Lt=z.length,Wt,_e,Ue;for(et instanceof Date||(et=new Date(+et));++St<Lt;)z.charCodeAt(St)===37&&(N.push(z.slice(gt,St)),(_e=Gh[Wt=z.charAt(++St)])!=null?Wt=z.charAt(++St):_e=Wt==="e"?" ":"0",(Ue=G[Wt])&&(Wt=Ue(et,_e)),N.push(Wt),gt=St+1);return N.push(z.slice(gt,St)),N.join("")}}function v(z,G){return function(et){var N=Gi(1900,void 0,1),St=D(N,z,et+="",0),gt,Lt;if(St!=et.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(G&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(gt=wo(Gi(N.y,0,1)),Lt=gt.getUTCDay(),gt=Lt>4||Lt===0?Wa.ceil(gt):Wa(gt),gt=Ql.offset(gt,(N.V-1)*7),N.y=gt.getUTCFullYear(),N.m=gt.getUTCMonth(),N.d=gt.getUTCDate()+(N.w+6)%7):(gt=Co(Gi(N.y,0,1)),Lt=gt.getDay(),gt=Lt>4||Lt===0?za.ceil(gt):za(gt),gt=Fn.offset(gt,(N.V-1)*7),N.y=gt.getFullYear(),N.m=gt.getMonth(),N.d=gt.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),Lt="Z"in N?wo(Gi(N.y,0,1)).getUTCDay():Co(Gi(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(Lt+5)%7:N.w+N.U*7-(Lt+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,wo(N)):Co(N)}}function D(z,G,et,N){for(var St=0,gt=G.length,Lt=et.length,Wt,_e;St<gt;){if(N>=Lt)return-1;if(Wt=G.charCodeAt(St++),Wt===37){if(Wt=G.charAt(St++),_e=w[Wt in Gh?G.charAt(St++):Wt],!_e||(N=_e(z,et,N))<0)return-1}else if(Wt!=et.charCodeAt(N++))return-1}return N}function I(z,G,et){var N=l.exec(G.slice(et));return N?(z.p=h.get(N[0].toLowerCase()),et+N[0].length):-1}function O(z,G,et){var N=d.exec(G.slice(et));return N?(z.w=p.get(N[0].toLowerCase()),et+N[0].length):-1}function T(z,G,et){var N=u.exec(G.slice(et));return N?(z.w=f.get(N[0].toLowerCase()),et+N[0].length):-1}function P(z,G,et){var N=x.exec(G.slice(et));return N?(z.m=b.get(N[0].toLowerCase()),et+N[0].length):-1}function E(z,G,et){var N=m.exec(G.slice(et));return N?(z.m=y.get(N[0].toLowerCase()),et+N[0].length):-1}function M(z,G,et){return D(z,t,G,et)}function B(z,G,et){return D(z,r,G,et)}function L(z,G,et){return D(z,i,G,et)}function F(z){return o[z.getDay()]}function $(z){return a[z.getDay()]}function q(z){return c[z.getMonth()]}function Y(z){return s[z.getMonth()]}function U(z){return n[+(z.getHours()>=12)]}function ft(z){return 1+~~(z.getMonth()/3)}function st(z){return o[z.getUTCDay()]}function mt(z){return a[z.getUTCDay()]}function ot(z){return c[z.getUTCMonth()]}function ht(z){return s[z.getUTCMonth()]}function ut(z){return n[+(z.getUTCHours()>=12)]}function xt(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var G=_(z+="",C);return G.toString=function(){return z},G},parse:function(z){var G=v(z+="",!1);return G.toString=function(){return z},G},utcFormat:function(z){var G=_(z+="",k);return G.toString=function(){return z},G},utcParse:function(z){var G=v(z+="",!0);return G.toString=function(){return z},G}}}var Gh={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,qC=/^%/,HC=/[\\^$*+?|[\]().{}]/g;function bt(e,t,r){var i=e<0?"-":"",n=(i?-e:e)+"",a=n.length;return i+(a<r?new Array(r-a+1).join(t)+n:n)}function UC(e){return e.replace(HC,"\\$&")}function Vi(e){return new RegExp("^(?:"+e.map(UC).join("|")+")","i")}function Xi(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function jC(e,t,r){var i=zt.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function YC(e,t,r){var i=zt.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function GC(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function VC(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function XC(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function Vh(e,t,r){var i=zt.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function Xh(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function ZC(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function KC(e,t,r){var i=zt.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function QC(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function Zh(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function JC(e,t,r){var i=zt.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function Kh(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function tw(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function ew(e,t,r){var i=zt.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function rw(e,t,r){var i=zt.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function iw(e,t,r){var i=zt.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function nw(e,t,r){var i=qC.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function aw(e,t,r){var i=zt.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function sw(e,t,r){var i=zt.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function Qh(e,t){return bt(e.getDate(),t,2)}function ow(e,t){return bt(e.getHours(),t,2)}function lw(e,t){return bt(e.getHours()%12||12,t,2)}function cw(e,t){return bt(1+Fn.count(ar(e),e),t,3)}function od(e,t){return bt(e.getMilliseconds(),t,3)}function hw(e,t){return od(e,t)+"000"}function uw(e,t){return bt(e.getMonth()+1,t,2)}function fw(e,t){return bt(e.getMinutes(),t,2)}function dw(e,t){return bt(e.getSeconds(),t,2)}function pw(e){var t=e.getDay();return t===0?7:t}function gw(e,t){return bt(Ss.count(ar(e)-1,e),t,2)}function ld(e){var t=e.getDay();return t>=4||t===0?ki(e):ki.ceil(e)}function mw(e,t){return e=ld(e),bt(ki.count(ar(e),e)+(ar(e).getDay()===4),t,2)}function yw(e){return e.getDay()}function xw(e,t){return bt(za.count(ar(e)-1,e),t,2)}function bw(e,t){return bt(e.getFullYear()%100,t,2)}function _w(e,t){return e=ld(e),bt(e.getFullYear()%100,t,2)}function Cw(e,t){return bt(e.getFullYear()%1e4,t,4)}function ww(e,t){var r=e.getDay();return e=r>=4||r===0?ki(e):ki.ceil(e),bt(e.getFullYear()%1e4,t,4)}function kw(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+bt(t/60|0,"0",2)+bt(t%60,"0",2)}function Jh(e,t){return bt(e.getUTCDate(),t,2)}function vw(e,t){return bt(e.getUTCHours(),t,2)}function Sw(e,t){return bt(e.getUTCHours()%12||12,t,2)}function Tw(e,t){return bt(1+Ql.count(Dr(e),e),t,3)}function cd(e,t){return bt(e.getUTCMilliseconds(),t,3)}function Mw(e,t){return cd(e,t)+"000"}function Aw(e,t){return bt(e.getUTCMonth()+1,t,2)}function Lw(e,t){return bt(e.getUTCMinutes(),t,2)}function Bw(e,t){return bt(e.getUTCSeconds(),t,2)}function Ew(e){var t=e.getUTCDay();return t===0?7:t}function $w(e,t){return bt(sd.count(Dr(e)-1,e),t,2)}function hd(e){var t=e.getUTCDay();return t>=4||t===0?vi(e):vi.ceil(e)}function Fw(e,t){return e=hd(e),bt(vi.count(Dr(e),e)+(Dr(e).getUTCDay()===4),t,2)}function Dw(e){return e.getUTCDay()}function Ow(e,t){return bt(Wa.count(Dr(e)-1,e),t,2)}function Rw(e,t){return bt(e.getUTCFullYear()%100,t,2)}function Iw(e,t){return e=hd(e),bt(e.getUTCFullYear()%100,t,2)}function Pw(e,t){return bt(e.getUTCFullYear()%1e4,t,4)}function Nw(e,t){var r=e.getUTCDay();return e=r>=4||r===0?vi(e):vi.ceil(e),bt(e.getUTCFullYear()%1e4,t,4)}function zw(){return"+0000"}function tu(){return"%"}function eu(e){return+e}function ru(e){return Math.floor(+e/1e3)}var Jr,ud;Ww({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ww(e){return Jr=WC(e),ud=Jr.format,Jr.parse,Jr.utcFormat,Jr.utcParse,Jr}function qw(e){return new Date(e)}function Hw(e){return e instanceof Date?+e:+new Date(+e)}function fd(e,t,r,i,n,a,o,s,c,l){var h=ad(),u=h.invert,f=h.domain,d=l(".%L"),p=l(":%S"),m=l("%I:%M"),y=l("%I %p"),x=l("%a %d"),b=l("%b %d"),C=l("%B"),k=l("%Y");function w(_){return(c(_)<_?d:s(_)<_?p:o(_)<_?m:a(_)<_?y:i(_)<_?n(_)<_?x:b:r(_)<_?C:k)(_)}return h.invert=function(_){return new Date(u(_))},h.domain=function(_){return arguments.length?f(Array.from(_,Hw)):f().map(qw)},h.ticks=function(_){var v=f();return e(v[0],v[v.length-1],_??10)},h.tickFormat=function(_,v){return v==null?w:l(v)},h.nice=function(_){var v=f();return(!_||typeof _.range!="function")&&(_=t(v[0],v[v.length-1],_??10)),_?f(SC(v,_)):h},h.copy=function(){return nd(h,fd(e,t,r,i,n,a,o,s,c,l))},h}function g3(){return vs.apply(fd(NC,zC,ar,Jl,Ss,Fn,Kl,Zl,ni,ud).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Uw(e){for(var t=e.length/6|0,r=new Array(t),i=0;i<t;)r[i]="#"+e.slice(i*6,++i*6);return r}const m3=Uw("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Bt(e){return function(){return e}}const iu=Math.abs,Yt=Math.atan2,_r=Math.cos,jw=Math.max,ko=Math.min,Fe=Math.sin,ai=Math.sqrt,Gt=1e-12,Cn=Math.PI,qa=Cn/2,ma=2*Cn;function Yw(e){return e>1?0:e<-1?Cn:Math.acos(e)}function nu(e){return e>=1?qa:e<=-1?-qa:Math.asin(e)}function dd(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new B_(t)}function Gw(e){return e.innerRadius}function Vw(e){return e.outerRadius}function Xw(e){return e.startAngle}function Zw(e){return e.endAngle}function Kw(e){return e&&e.padAngle}function Qw(e,t,r,i,n,a,o,s){var c=r-e,l=i-t,h=o-n,u=s-a,f=u*c-h*l;if(!(f*f<Gt))return f=(h*(t-a)-u*(e-n))/f,[e+f*c,t+f*l]}function ea(e,t,r,i,n,a,o){var s=e-r,c=t-i,l=(o?a:-a)/ai(s*s+c*c),h=l*c,u=-l*s,f=e+h,d=t+u,p=r+h,m=i+u,y=(f+p)/2,x=(d+m)/2,b=p-f,C=m-d,k=b*b+C*C,w=n-a,_=f*m-p*d,v=(C<0?-1:1)*ai(jw(0,w*w*k-_*_)),D=(_*C-b*v)/k,I=(-_*b-C*v)/k,O=(_*C+b*v)/k,T=(-_*b+C*v)/k,P=D-y,E=I-x,M=O-y,B=T-x;return P*P+E*E>M*M+B*B&&(D=O,I=T),{cx:D,cy:I,x01:-h,y01:-u,x11:D*(n/w-1),y11:I*(n/w-1)}}function y3(){var e=Gw,t=Vw,r=Bt(0),i=null,n=Xw,a=Zw,o=Kw,s=null,c=dd(l);function l(){var h,u,f=+e.apply(this,arguments),d=+t.apply(this,arguments),p=n.apply(this,arguments)-qa,m=a.apply(this,arguments)-qa,y=iu(m-p),x=m>p;if(s||(s=h=c()),d<f&&(u=d,d=f,f=u),!(d>Gt))s.moveTo(0,0);else if(y>ma-Gt)s.moveTo(d*_r(p),d*Fe(p)),s.arc(0,0,d,p,m,!x),f>Gt&&(s.moveTo(f*_r(m),f*Fe(m)),s.arc(0,0,f,m,p,x));else{var b=p,C=m,k=p,w=m,_=y,v=y,D=o.apply(this,arguments)/2,I=D>Gt&&(i?+i.apply(this,arguments):ai(f*f+d*d)),O=ko(iu(d-f)/2,+r.apply(this,arguments)),T=O,P=O,E,M;if(I>Gt){var B=nu(I/f*Fe(D)),L=nu(I/d*Fe(D));(_-=B*2)>Gt?(B*=x?1:-1,k+=B,w-=B):(_=0,k=w=(p+m)/2),(v-=L*2)>Gt?(L*=x?1:-1,b+=L,C-=L):(v=0,b=C=(p+m)/2)}var F=d*_r(b),$=d*Fe(b),q=f*_r(w),Y=f*Fe(w);if(O>Gt){var U=d*_r(C),ft=d*Fe(C),st=f*_r(k),mt=f*Fe(k),ot;if(y<Cn)if(ot=Qw(F,$,st,mt,U,ft,q,Y)){var ht=F-ot[0],ut=$-ot[1],xt=U-ot[0],z=ft-ot[1],G=1/Fe(Yw((ht*xt+ut*z)/(ai(ht*ht+ut*ut)*ai(xt*xt+z*z)))/2),et=ai(ot[0]*ot[0]+ot[1]*ot[1]);T=ko(O,(f-et)/(G-1)),P=ko(O,(d-et)/(G+1))}else T=P=0}v>Gt?P>Gt?(E=ea(st,mt,F,$,d,P,x),M=ea(U,ft,q,Y,d,P,x),s.moveTo(E.cx+E.x01,E.cy+E.y01),P<O?s.arc(E.cx,E.cy,P,Yt(E.y01,E.x01),Yt(M.y01,M.x01),!x):(s.arc(E.cx,E.cy,P,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!x),s.arc(0,0,d,Yt(E.cy+E.y11,E.cx+E.x11),Yt(M.cy+M.y11,M.cx+M.x11),!x),s.arc(M.cx,M.cy,P,Yt(M.y11,M.x11),Yt(M.y01,M.x01),!x))):(s.moveTo(F,$),s.arc(0,0,d,b,C,!x)):s.moveTo(F,$),!(f>Gt)||!(_>Gt)?s.lineTo(q,Y):T>Gt?(E=ea(q,Y,U,ft,f,-T,x),M=ea(F,$,st,mt,f,-T,x),s.lineTo(E.cx+E.x01,E.cy+E.y01),T<O?s.arc(E.cx,E.cy,T,Yt(E.y01,E.x01),Yt(M.y01,M.x01),!x):(s.arc(E.cx,E.cy,T,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!x),s.arc(0,0,f,Yt(E.cy+E.y11,E.cx+E.x11),Yt(M.cy+M.y11,M.cx+M.x11),x),s.arc(M.cx,M.cy,T,Yt(M.y11,M.x11),Yt(M.y01,M.x01),!x))):s.arc(0,0,f,w,k,x)}if(s.closePath(),h)return s=null,h+""||null}return l.centroid=function(){var h=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2-Cn/2;return[_r(u)*h,Fe(u)*h]},l.innerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:Bt(+h),l):e},l.outerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:Bt(+h),l):t},l.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:Bt(+h),l):r},l.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:Bt(+h),l):i},l.startAngle=function(h){return arguments.length?(n=typeof h=="function"?h:Bt(+h),l):n},l.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:Bt(+h),l):a},l.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:Bt(+h),l):o},l.context=function(h){return arguments.length?(s=h??null,l):s},l}function pd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gd(e){this._context=e}gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ha(e){return new gd(e)}function Jw(e){return e[0]}function tk(e){return e[1]}function ek(e,t){var r=Bt(!0),i=null,n=Ha,a=null,o=dd(s);e=typeof e=="function"?e:e===void 0?Jw:Bt(e),t=typeof t=="function"?t:t===void 0?tk:Bt(t);function s(c){var l,h=(c=pd(c)).length,u,f=!1,d;for(i==null&&(a=n(d=o())),l=0;l<=h;++l)!(l<h&&r(u=c[l],l,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,l,c),+t(u,l,c));if(d)return a=null,d+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Bt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Bt(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Bt(!!c),s):r},s.curve=function(c){return arguments.length?(n=c,i!=null&&(a=n(i)),s):n},s.context=function(c){return arguments.length?(c==null?i=a=null:a=n(i=c),s):i},s}function rk(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ik(e){return e}function x3(){var e=ik,t=rk,r=null,i=Bt(0),n=Bt(ma),a=Bt(0);function o(s){var c,l=(s=pd(s)).length,h,u,f=0,d=new Array(l),p=new Array(l),m=+i.apply(this,arguments),y=Math.min(ma,Math.max(-ma,n.apply(this,arguments)-m)),x,b=Math.min(Math.abs(y)/l,a.apply(this,arguments)),C=b*(y<0?-1:1),k;for(c=0;c<l;++c)(k=p[d[c]=c]=+e(s[c],c,s))>0&&(f+=k);for(t!=null?d.sort(function(w,_){return t(p[w],p[_])}):r!=null&&d.sort(function(w,_){return r(s[w],s[_])}),c=0,u=f?(y-l*C)/f:0;c<l;++c,m=x)h=d[c],k=p[h],x=m+(k>0?k*u:0)+C,p[h]={data:s[h],index:c,value:k,startAngle:m,endAngle:x,padAngle:b};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Bt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,r=null,o):t},o.sort=function(s){return arguments.length?(r=s,t=null,o):r},o.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Bt(+s),o):i},o.endAngle=function(s){return arguments.length?(n=typeof s=="function"?s:Bt(+s),o):n},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Bt(+s),o):a},o}class md{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function yd(e){return new md(e,!0)}function xd(e){return new md(e,!1)}function ur(){}function Ua(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Ts(e){this._context=e}Ts.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:Ua(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Ua(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ya(e){return new Ts(e)}function bd(e){this._context=e}bd.prototype={areaStart:ur,areaEnd:ur,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ua(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nk(e){return new bd(e)}function _d(e){this._context=e}_d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Ua(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ak(e){return new _d(e)}function Cd(e,t){this._basis=new Ts(e),this._beta=t}Cd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,o=t[r]-n,s=-1,c;++s<=r;)c=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+c*a),this._beta*t[s]+(1-this._beta)*(n+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const sk=(function e(t){function r(i){return t===1?new Ts(i):new Cd(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function ja(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function tc(e,t){this._context=e,this._k=(1-t)/6}tc.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:ja(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ja(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wd=(function e(t){function r(i){return new tc(i,t)}return r.tension=function(i){return e(+i)},r})(0);function ec(e,t){this._context=e,this._k=(1-t)/6}ec.prototype={areaStart:ur,areaEnd:ur,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ja(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ok=(function e(t){function r(i){return new ec(i,t)}return r.tension=function(i){return e(+i)},r})(0);function rc(e,t){this._context=e,this._k=(1-t)/6}rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:ja(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lk=(function e(t){function r(i){return new rc(i,t)}return r.tension=function(i){return e(+i)},r})(0);function ic(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Gt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,n=(n*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Gt){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/h,o=(o*l+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,n,a,o,e._x2,e._y2)}function kd(e,t){this._context=e,this._alpha=t}kd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ic(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vd=(function e(t){function r(i){return t?new kd(i,t):new tc(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Sd(e,t){this._context=e,this._alpha=t}Sd.prototype={areaStart:ur,areaEnd:ur,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ic(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ck=(function e(t){function r(i){return t?new Sd(i,t):new ec(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Td(e,t){this._context=e,this._alpha=t}Td.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ic(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hk=(function e(t){function r(i){return t?new Td(i,t):new rc(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Md(e){this._context=e}Md.prototype={areaStart:ur,areaEnd:ur,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function uk(e){return new Md(e)}function au(e){return e<0?-1:1}function su(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),s=(a*n+o*i)/(i+n);return(au(a)+au(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ou(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function vo(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,n+s*t,a-s,o-s*r,a,o)}function Ya(e){this._context=e}Ya.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:vo(this,this._t0,ou(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,vo(this,ou(this,r=su(this,e,t)),r);break;default:vo(this,this._t0,r=su(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Ad(e){this._context=new Ld(e)}(Ad.prototype=Object.create(Ya.prototype)).point=function(e,t){Ya.prototype.point.call(this,t,e)};function Ld(e){this._context=e}Ld.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function Bd(e){return new Ya(e)}function Ed(e){return new Ad(e)}function $d(e){this._context=e}$d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=lu(e),n=lu(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function lu(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),o=new Array(r);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function Fd(e){return new $d(e)}function Ms(e,t){this._context=e,this._t=t}Ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Dd(e){return new Ms(e,.5)}function Od(e){return new Ms(e,0)}function Rd(e){return new Ms(e,1)}function nn(e,t,r){this.k=e,this.x=t,this.y=r}nn.prototype={constructor:nn,scale:function(e){return e===1?this:new nn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new nn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};nn.prototype;var fk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cu={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Id={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(fk,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",c="hour",l="day",h="week",u="month",f="quarter",d="year",p="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var B=["th","st","nd","rd"],L=M%100;return"["+M+(B[(L-20)%10]||B[L]||B[0])+"]"}},C=function(M,B,L){var F=String(M);return!F||F.length>=B?M:""+Array(B+1-F.length).join(L)+M},k={s:C,z:function(M){var B=-M.utcOffset(),L=Math.abs(B),F=Math.floor(L/60),$=L%60;return(B<=0?"+":"-")+C(F,2,"0")+":"+C($,2,"0")},m:function M(B,L){if(B.date()<L.date())return-M(L,B);var F=12*(L.year()-B.year())+(L.month()-B.month()),$=B.clone().add(F,u),q=L-$<0,Y=B.clone().add(F+(q?-1:1),u);return+(-(F+(L-$)/(q?$-Y:Y-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:u,y:d,w:h,d:l,D:p,h:c,m:s,s:o,ms:a,Q:f}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},w="en",_={};_[w]=b;var v="$isDayjsObject",D=function(M){return M instanceof P||!(!M||!M[v])},I=function M(B,L,F){var $;if(!B)return w;if(typeof B=="string"){var q=B.toLowerCase();_[q]&&($=q),L&&(_[q]=L,$=q);var Y=B.split("-");if(!$&&Y.length>1)return M(Y[0])}else{var U=B.name;_[U]=B,$=U}return!F&&$&&(w=$),$||!F&&w},O=function(M,B){if(D(M))return M.clone();var L=typeof B=="object"?B:{};return L.date=M,L.args=arguments,new P(L)},T=k;T.l=I,T.i=D,T.w=function(M,B){return O(M,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var P=(function(){function M(L){this.$L=I(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[v]=!0}var B=M.prototype;return B.parse=function(L){this.$d=(function(F){var $=F.date,q=F.utc;if($===null)return new Date(NaN);if(T.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Y=$.match(y);if(Y){var U=Y[2]-1||0,ft=(Y[7]||"0").substring(0,3);return q?new Date(Date.UTC(Y[1],U,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ft)):new Date(Y[1],U,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ft)}}return new Date($)})(L),this.init()},B.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},B.$utils=function(){return T},B.isValid=function(){return this.$d.toString()!==m},B.isSame=function(L,F){var $=O(L);return this.startOf(F)<=$&&$<=this.endOf(F)},B.isAfter=function(L,F){return O(L)<this.startOf(F)},B.isBefore=function(L,F){return this.endOf(F)<O(L)},B.$g=function(L,F,$){return T.u(L)?this[F]:this.set($,L)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(L,F){var $=this,q=!!T.u(F)||F,Y=T.p(L),U=function(z,G){var et=T.w($.$u?Date.UTC($.$y,G,z):new Date($.$y,G,z),$);return q?et:et.endOf(l)},ft=function(z,G){return T.w($.toDate()[z].apply($.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(G)),$)},st=this.$W,mt=this.$M,ot=this.$D,ht="set"+(this.$u?"UTC":"");switch(Y){case d:return q?U(1,0):U(31,11);case u:return q?U(1,mt):U(0,mt+1);case h:var ut=this.$locale().weekStart||0,xt=(st<ut?st+7:st)-ut;return U(q?ot-xt:ot+(6-xt),mt);case l:case p:return ft(ht+"Hours",0);case c:return ft(ht+"Minutes",1);case s:return ft(ht+"Seconds",2);case o:return ft(ht+"Milliseconds",3);default:return this.clone()}},B.endOf=function(L){return this.startOf(L,!1)},B.$set=function(L,F){var $,q=T.p(L),Y="set"+(this.$u?"UTC":""),U=($={},$[l]=Y+"Date",$[p]=Y+"Date",$[u]=Y+"Month",$[d]=Y+"FullYear",$[c]=Y+"Hours",$[s]=Y+"Minutes",$[o]=Y+"Seconds",$[a]=Y+"Milliseconds",$)[q],ft=q===l?this.$D+(F-this.$W):F;if(q===u||q===d){var st=this.clone().set(p,1);st.$d[U](ft),st.init(),this.$d=st.set(p,Math.min(this.$D,st.daysInMonth())).$d}else U&&this.$d[U](ft);return this.init(),this},B.set=function(L,F){return this.clone().$set(L,F)},B.get=function(L){return this[T.p(L)]()},B.add=function(L,F){var $,q=this;L=Number(L);var Y=T.p(F),U=function(mt){var ot=O(q);return T.w(ot.date(ot.date()+Math.round(mt*L)),q)};if(Y===u)return this.set(u,this.$M+L);if(Y===d)return this.set(d,this.$y+L);if(Y===l)return U(1);if(Y===h)return U(7);var ft=($={},$[s]=i,$[c]=n,$[o]=r,$)[Y]||1,st=this.$d.getTime()+L*ft;return T.w(st,this)},B.subtract=function(L,F){return this.add(-1*L,F)},B.format=function(L){var F=this,$=this.$locale();if(!this.isValid())return $.invalidDate||m;var q=L||"YYYY-MM-DDTHH:mm:ssZ",Y=T.z(this),U=this.$H,ft=this.$m,st=this.$M,mt=$.weekdays,ot=$.months,ht=$.meridiem,ut=function(G,et,N,St){return G&&(G[et]||G(F,q))||N[et].slice(0,St)},xt=function(G){return T.s(U%12||12,G,"0")},z=ht||function(G,et,N){var St=G<12?"AM":"PM";return N?St.toLowerCase():St};return q.replace(x,(function(G,et){return et||(function(N){switch(N){case"YY":return String(F.$y).slice(-2);case"YYYY":return T.s(F.$y,4,"0");case"M":return st+1;case"MM":return T.s(st+1,2,"0");case"MMM":return ut($.monthsShort,st,ot,3);case"MMMM":return ut(ot,st);case"D":return F.$D;case"DD":return T.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ut($.weekdaysMin,F.$W,mt,2);case"ddd":return ut($.weekdaysShort,F.$W,mt,3);case"dddd":return mt[F.$W];case"H":return String(U);case"HH":return T.s(U,2,"0");case"h":return xt(1);case"hh":return xt(2);case"a":return z(U,ft,!0);case"A":return z(U,ft,!1);case"m":return String(ft);case"mm":return T.s(ft,2,"0");case"s":return String(F.$s);case"ss":return T.s(F.$s,2,"0");case"SSS":return T.s(F.$ms,3,"0");case"Z":return Y}return null})(G)||Y.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(L,F,$){var q,Y=this,U=T.p(F),ft=O(L),st=(ft.utcOffset()-this.utcOffset())*i,mt=this-ft,ot=function(){return T.m(Y,ft)};switch(U){case d:q=ot()/12;break;case u:q=ot();break;case f:q=ot()/3;break;case h:q=(mt-st)/6048e5;break;case l:q=(mt-st)/864e5;break;case c:q=mt/n;break;case s:q=mt/i;break;case o:q=mt/r;break;default:q=mt}return $?q:T.a(q)},B.daysInMonth=function(){return this.endOf(u).$D},B.$locale=function(){return _[this.$L]},B.locale=function(L,F){if(!L)return this.$L;var $=this.clone(),q=I(L,F,!0);return q&&($.$L=q),$},B.clone=function(){return T.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},M})(),E=P.prototype;return O.prototype=E,[["$ms",a],["$s",o],["$m",s],["$H",c],["$W",l],["$M",u],["$y",d],["$D",p]].forEach((function(M){E[M[1]]=function(B){return this.$g(B,M[0],M[1])}})),O.extend=function(M,B){return M.$i||(M(B,P,O),M.$i=!0),O},O.locale=I,O.isDayjs=D,O.unix=function(M){return O(1e3*M)},O.en=_[w],O.Ls=_,O.p={},O}))})(Id);var pk=Id.exports;const gk=dk(pk);var Pd=Object.defineProperty,g=(e,t)=>Pd(e,"name",{value:t,configurable:!0}),mk=(e,t)=>{for(var r in t)Pd(e,r,{get:t[r],enumerable:!0})},Xe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},R={trace:g((...e)=>{},"trace"),debug:g((...e)=>{},"debug"),info:g((...e)=>{},"info"),warn:g((...e)=>{},"warn"),error:g((...e)=>{},"error"),fatal:g((...e)=>{},"fatal")},nc=g(function(e="fatal"){let t=Xe.fatal;typeof e=="string"?e.toLowerCase()in Xe&&(t=Xe[e]):typeof e=="number"&&(t=e),R.trace=()=>{},R.debug=()=>{},R.info=()=>{},R.warn=()=>{},R.error=()=>{},R.fatal=()=>{},t<=Xe.fatal&&(R.fatal=console.error?console.error.bind(console,ge("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ge("FATAL"))),t<=Xe.error&&(R.error=console.error?console.error.bind(console,ge("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ge("ERROR"))),t<=Xe.warn&&(R.warn=console.warn?console.warn.bind(console,ge("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ge("WARN"))),t<=Xe.info&&(R.info=console.info?console.info.bind(console,ge("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ge("INFO"))),t<=Xe.debug&&(R.debug=console.debug?console.debug.bind(console,ge("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ge("DEBUG"))),t<=Xe.trace&&(R.trace=console.debug?console.debug.bind(console,ge("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ge("TRACE")))},"setLogLevel"),ge=g(e=>`%c${gk().format("ss.SSS")} : ${e} : `,"format");const xa={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return xa.hue2rgb(a,n,e+1/3)*255;case"g":return xa.hue2rgb(a,n,e)*255;case"b":return xa.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,c=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return c*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},yk={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},xk={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},ct={channel:xa,lang:yk,unit:xk},lr={};for(let e=0;e<=255;e++)lr[e]=ct.unit.dec2hex(e);const Vt={ALL:0,RGB:1,HSL:2};class bk{constructor(){this.type=Vt.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=Vt.ALL}is(t){return this.type===t}}class _k{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new bk}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Vt.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=ct.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=ct.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=ct.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=ct.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=ct.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=ct.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),ct.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),ct.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),ct.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),ct.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),ct.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),ct.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Vt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Vt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Vt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Vt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Vt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Vt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const As=new _k({r:0,g:0,b:0,a:0},"transparent"),ci={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ci.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,s=o?1:17,c=o?8:4,l=a?0:-1,h=o?255:15;return As.set({r:(i>>c*(l+3)&h)*s,g:(i>>c*(l+2)&h)*s,b:(i>>c*(l+1)&h)*s,a:a?(i&h)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${lr[Math.round(t)]}${lr[Math.round(r)]}${lr[Math.round(i)]}${lr[Math.round(n*255)]}`:`#${lr[Math.round(t)]}${lr[Math.round(r)]}${lr[Math.round(i)]}`}},Tr={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:e=>{const t=e.match(Tr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return ct.channel.clamp.h(parseFloat(r)*.9);case"rad":return ct.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ct.channel.clamp.h(parseFloat(r)*360)}}return ct.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Tr.re);if(!r)return;const[,i,n,a,o,s]=r;return As.set({h:Tr._hue2deg(i),s:ct.channel.clamp.s(parseFloat(n)),l:ct.channel.clamp.l(parseFloat(a)),a:o?ct.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${ct.lang.round(t)}, ${ct.lang.round(r)}%, ${ct.lang.round(i)}%, ${n})`:`hsl(${ct.lang.round(t)}, ${ct.lang.round(r)}%, ${ct.lang.round(i)}%)`}},fn={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:e=>{e=e.toLowerCase();const t=fn.colors[e];if(t)return ci.parse(t)},stringify:e=>{const t=ci.stringify(e);for(const r in fn.colors)if(fn.colors[r]===t)return r}},an={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(an.re);if(!r)return;const[,i,n,a,o,s,c,l,h]=r;return As.set({r:ct.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:ct.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:ct.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:l?ct.channel.clamp.a(h?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${ct.lang.round(t)}, ${ct.lang.round(r)}, ${ct.lang.round(i)}, ${ct.lang.round(n)})`:`rgb(${ct.lang.round(t)}, ${ct.lang.round(r)}, ${ct.lang.round(i)})`}},Le={format:{keyword:fn,hex:ci,rgb:an,rgba:an,hsl:Tr,hsla:Tr},parse:e=>{if(typeof e!="string")return e;const t=ci.parse(e)||an.parse(e)||Tr.parse(e)||fn.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Vt.HSL)||e.data.r===void 0?Tr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?an.stringify(e):ci.stringify(e)},Nd=(e,t)=>{const r=Le.parse(e);for(const i in t)r[i]=ct.channel.clamp[i](t[i]);return Le.stringify(r)},dn=(e,t,r=0,i=1)=>{if(typeof e!="number")return Nd(e,{a:t});const n=As.set({r:ct.channel.clamp.r(e),g:ct.channel.clamp.g(t),b:ct.channel.clamp.b(r),a:ct.channel.clamp.a(i)});return Le.stringify(n)},b3=(e,t)=>ct.lang.round(Le.parse(e)[t]),Ck=e=>{const{r:t,g:r,b:i}=Le.parse(e),n=.2126*ct.channel.toLinear(t)+.7152*ct.channel.toLinear(r)+.0722*ct.channel.toLinear(i);return ct.lang.round(n)},wk=e=>Ck(e)>=.5,Dn=e=>!wk(e),zd=(e,t,r)=>{const i=Le.parse(e),n=i[t],a=ct.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Le.stringify(i)},V=(e,t)=>zd(e,"l",t),it=(e,t)=>zd(e,"l",-t),A=(e,t)=>{const r=Le.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return Nd(e,i)},kk=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=Le.parse(e),{r:s,g:c,b:l,a:h}=Le.parse(t),u=r/100,f=u*2-1,d=o-h,m=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,y=1-m,x=i*m+s*y,b=n*m+c*y,C=a*m+l*y,k=o*u+h*(1-u);return dn(x,b,C,k)},H=(e,t=100)=>{const r=Le.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,kk(r,e,t)};var Wd=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,pn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,vk=/\s*%%.*\n/gm,ui,qd=(ui=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},g(ui,"UnknownDiagramError"),ui),Or={},ac=g(function(e,t){e=e.replace(Wd,"").replace(pn,"").replace(vk,`
4
- `);for(const[r,{detector:i}]of Object.entries(Or))if(i(e,t))return r;throw new qd(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),tl=g((...e)=>{for(const{id:t,detector:r,loader:i}of e)Hd(t,r,i)},"registerLazyLoadedDiagrams"),Hd=g((e,t,r)=>{Or[e]&&R.warn(`Detector with key ${e} already exists. Overwriting.`),Or[e]={detector:t,loader:r},R.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Sk=g(e=>Or[e].loader,"getDiagramLoader"),el=g((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>el(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=el(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Ot=el,Ls="#ffffff",Bs="#f2f2f2",ie=g((e,t)=>t?A(e,{s:-40,l:10}):A(e,{s:-40,l:-10}),"mkBorder"),fi,Tk=(fi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,n,a,o,s,c,l,h,u,f,d,p,m,y,x,b,C,k,w,_;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ie(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ie(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ie(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ie(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||H(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||H(this.tertiaryColor),this.lineColor=this.lineColor||H(this.background),this.arrowheadColor=this.arrowheadColor||H(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||H(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||V(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.vertLineColor=this.vertLineColor||"navy",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.darkMode?(this.rowOdd=this.rowOdd||it(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,10)):(this.rowOdd=this.rowOdd||V(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||V(this.mainBkg,5)),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||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.darkMode)for(let v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScale"+v]=it(this["cScale"+v],75);else for(let v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScale"+v]=it(this["cScale"+v],25);for(let v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScaleInv"+v]=this["cScaleInv"+v]||H(this["cScale"+v]);for(let v=0;v<this.THEME_COLOR_LIMIT;v++)this.darkMode?this["cScalePeer"+v]=this["cScalePeer"+v]||V(this["cScale"+v],10):this["cScalePeer"+v]=this["cScalePeer"+v]||it(this["cScale"+v],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScaleLabel"+v]=this["cScaleLabel"+v]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let v=0;v<5;v++)this["surface"+v]=this["surface"+v]||A(this.mainBkg,{h:180,s:-15,l:t*(5+v*3)}),this["surfacePeer"+v]=this["surfacePeer"+v]||A(this.mainBkg,{h:180,s:-15,l:t*(8+v*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||A(this.primaryColor,{h:64}),this.fillType3=this.fillType3||A(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||A(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||A(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||A(this.primaryColor,{h:128}),this.fillType7=this.fillType7||A(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||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-10}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||A(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.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dn(this.quadrant1Fill)?V(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((C=this.xyChart)==null?void 0:C.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((k=this.xyChart)==null?void 0:k.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?it(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||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||H(this.git0),this.gitInv1=this.gitInv1||H(this.git1),this.gitInv2=this.gitInv2||H(this.git2),this.gitInv3=this.gitInv3||H(this.git3),this.gitInv4=this.gitInv4||H(this.git4),this.gitInv5=this.gitInv5||H(this.git5),this.gitInv6=this.gitInv6||H(this.git6),this.gitInv7=this.gitInv7||H(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||Ls,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Bs}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},g(fi,"Theme"),fi),Mk=g(e=>{const t=new Tk;return t.calculate(e),t},"getThemeVariables"),di,Ak=(di=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=V(this.primaryColor,16),this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=H(this.background),this.secondaryBorderColor=ie(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ie(this.tertiaryColor,this.darkMode),this.primaryTextColor=H(this.primaryColor),this.secondaryTextColor=H(this.secondaryColor),this.tertiaryTextColor=H(this.tertiaryColor),this.lineColor=H(this.background),this.textColor=H(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=V(H("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=dn(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=it("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=it(this.sectionBkgColor,10),this.taskBorderColor=dn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=dn(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.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||V(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,i,n,a,o,s,c,l,h,u,f,d,p,m,y,x,b,C,k,w;this.secondBkg=V(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=V(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=V(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(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||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||H(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScalePeer"+_]=this["cScalePeer"+_]||V(this["cScale"+_],10);for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||A(this.mainBkg,{h:30,s:-30,l:-(-10+_*4)}),this["surfacePeer"+_]=this["surfacePeer"+_]||A(this.mainBkg,{h:30,s:-30,l:-(-7+_*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dn(this.quadrant1Fill)?V(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((l=this.xyChart)==null?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((C=this.radar)==null?void 0:C.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((w=this.radar)==null?void 0:w.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=V(this.secondaryColor,20),this.git1=V(this.pie2||this.secondaryColor,20),this.git2=V(this.pie3||this.tertiaryColor,20),this.git3=V(this.pie4||A(this.primaryColor,{h:-30}),20),this.git4=V(this.pie5||A(this.primaryColor,{h:-60}),20),this.git5=V(this.pie6||A(this.primaryColor,{h:-90}),10),this.git6=V(this.pie7||A(this.primaryColor,{h:60}),10),this.git7=V(this.pie8||A(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||H(this.git0),this.gitInv1=this.gitInv1||H(this.git1),this.gitInv2=this.gitInv2||H(this.git2),this.gitInv3=this.gitInv3||H(this.git3),this.gitInv4=this.gitInv4||H(this.git4),this.gitInv5=this.gitInv5||H(this.git5),this.gitInv6=this.gitInv6||H(this.git6),this.gitInv7=this.gitInv7||H(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||H(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||H(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||V(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||V(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},g(di,"Theme"),di),Lk=g(e=>{const t=new Ak;return t.calculate(e),t},"getThemeVariables"),pi,Bk=(pi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=A(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=ie(this.primaryColor,this.darkMode),this.secondaryBorderColor=ie(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ie(this.tertiaryColor,this.darkMode),this.primaryTextColor=H(this.primaryColor),this.secondaryTextColor=H(this.secondaryColor),this.tertiaryTextColor=H(this.tertiaryColor),this.lineColor=H(this.background),this.textColor=H(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=dn(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.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,i,n,a,o,s,c,l,h,u,f,d,p,m,y,x,b,C,k,w;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=it(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||it(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||A(this["cScale"+_],{h:180});for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||A(this.mainBkg,{h:30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||A(this.mainBkg,{h:30,l:-(7+_*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||H(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||H(this.labelTextColor);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||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=V(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||V(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||V(this.primaryColor,1),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=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||A(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-30}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||A(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dn(this.quadrant1Fill)?V(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((l=this.radar)==null?void 0:l.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((C=this.xyChart)==null?void 0:C.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((w=this.xyChart)==null?void 0:w.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||it(H(this.git0),25),this.gitInv1=this.gitInv1||H(this.git1),this.gitInv2=this.gitInv2||H(this.git2),this.gitInv3=this.gitInv3||H(this.git3),this.gitInv4=this.gitInv4||H(this.git4),this.gitInv5=this.gitInv5||H(this.git5),this.gitInv6=this.gitInv6||H(this.git6),this.gitInv7=this.gitInv7||H(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||H(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||H(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||Ls,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Bs}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},g(pi,"Theme"),pi),Ek=g(e=>{const t=new Bk;return t.calculate(e),t},"getThemeVariables"),gi,$k=(gi=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=V("#cde498",10),this.primaryBorderColor=ie(this.primaryColor,this.darkMode),this.secondaryBorderColor=ie(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ie(this.tertiaryColor,this.darkMode),this.primaryTextColor=H(this.primaryColor),this.secondaryTextColor=H(this.secondaryColor),this.tertiaryTextColor=H(this.primaryColor),this.lineColor=H(this.background),this.textColor=H(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,c,l,h,u,f,d,p,m,y,x,b,C,k,w;this.actorBorder=it(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=it(this["cScale"+_],10),this["cScalePeer"+_]=this["cScalePeer"+_]||it(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||A(this["cScale"+_],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||A(this.mainBkg,{h:30,s:-30,l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||A(this.mainBkg,{h:30,s:-30,l:-(8+_*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||V(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||V(this.mainBkg,20),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=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(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||A(this.primaryColor,{l:-30}),this.pie5=this.pie5||A(this.secondaryColor,{l:-30}),this.pie6=this.pie6||A(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dn(this.quadrant1Fill)?V(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((l=this.radar)==null?void 0:l.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((C=this.xyChart)==null?void 0:C.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((w=this.xyChart)==null?void 0:w.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=V(this.git0,25),this.git1=V(this.git1,25),this.git2=V(this.git2,25),this.git3=V(this.git3,25),this.git4=V(this.git4,25),this.git5=V(this.git5,25),this.git6=V(this.git6,25),this.git7=V(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||H(this.git0),this.gitInv1=this.gitInv1||H(this.git1),this.gitInv2=this.gitInv2||H(this.git2),this.gitInv3=this.gitInv3||H(this.git3),this.gitInv4=this.gitInv4||H(this.git4),this.gitInv5=this.gitInv5||H(this.git5),this.gitInv6=this.gitInv6||H(this.git6),this.gitInv7=this.gitInv7||H(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||H(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||H(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||Ls,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Bs}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},g(gi,"Theme"),gi),Fk=g(e=>{const t=new $k;return t.calculate(e),t},"getThemeVariables"),mi,Dk=(mi=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=V(this.contrast,55),this.background="#ffffff",this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=ie(this.primaryColor,this.darkMode),this.secondaryBorderColor=ie(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ie(this.tertiaryColor,this.darkMode),this.primaryTextColor=H(this.primaryColor),this.secondaryTextColor=H(this.secondaryColor),this.tertiaryTextColor=H(this.tertiaryColor),this.lineColor=H(this.background),this.textColor=H(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||V(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,n,a,o,s,c,l,h,u,f,d,p,m,y,x,b,C,k,w;this.secondBkg=V(this.contrast,55),this.border2=this.contrast,this.actorBorder=V(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||H(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this.darkMode?this["cScalePeer"+_]=this["cScalePeer"+_]||V(this["cScale"+_],10):this["cScalePeer"+_]=this["cScalePeer"+_]||it(this["cScale"+_],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||A(this.mainBkg,{l:-(5+_*5)}),this["surfacePeer"+_]=this["surfacePeer"+_]||A(this.mainBkg,{l:-(8+_*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=V(this.contrast,30),this.sectionBkgColor2=V(this.contrast,30),this.taskBorderColor=it(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=V(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=it(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128});for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["pie"+_]=this["cScale"+_];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Dn(this.quadrant1Fill)?V(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((l=this.xyChart)==null?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((C=this.radar)==null?void 0:C.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((w=this.radar)==null?void 0:w.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=it(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||A(this.primaryColor,{h:-30}),this.git4=this.pie5||A(this.primaryColor,{h:-60}),this.git5=this.pie6||A(this.primaryColor,{h:-90}),this.git6=this.pie7||A(this.primaryColor,{h:60}),this.git7=this.pie8||A(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||H(this.git0),this.gitInv1=this.gitInv1||H(this.git1),this.gitInv2=this.gitInv2||H(this.git2),this.gitInv3=this.gitInv3||H(this.git3),this.gitInv4=this.gitInv4||H(this.git4),this.gitInv5=this.gitInv5||H(this.git5),this.gitInv6=this.gitInv6||H(this.git6),this.gitInv7=this.gitInv7||H(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||Ls,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Bs}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},g(mi,"Theme"),mi),Ok=g(e=>{const t=new Dk;return t.calculate(e),t},"getThemeVariables"),er={base:{getThemeVariables:Mk},dark:{getThemeVariables:Lk},default:{getThemeVariables:Ek},forest:{getThemeVariables:Fk},neutral:{getThemeVariables:Ok}},De={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Ud={...De,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:er.default.getThemeVariables(),sequence:{...De.sequence,messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:g(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:g(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...De.gantt,tickInterval:void 0,useWidth:void 0},c4:{...De.c4,useWidth:void 0,personFont:g(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...De.flowchart,inheritDir:!1},external_personFont:g(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:g(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:g(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:g(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:g(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:g(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:g(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:g(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:g(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:g(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:g(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:g(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:g(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:g(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:g(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:g(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:g(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:g(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:g(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:g(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:g(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...De.pie,useWidth:984},xyChart:{...De.xyChart,useWidth:void 0},requirement:{...De.requirement,useWidth:void 0},packet:{...De.packet},radar:{...De.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},jd=g((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...jd(e[i],"")]:[...r,t+i],[]),"keyify"),Rk=new Set(jd(Ud,"")),Yd=Ud,Ga=g(e=>{if(R.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ga(t));return}for(const t of Object.keys(e)){if(R.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Rk.has(t)||e[t]==null){R.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){R.debug("sanitizing object",t),Ga(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(R.debug("sanitizing css option",t),e[t]=Ik(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}R.debug("After sanitization",e)}},"sanitizeDirective"),Ik=g(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Si=Object.freeze(Yd),he=Ot({},Si),Va,Rr=[],gn=Ot({},Si),Es=g((e,t)=>{let r=Ot({},e),i={};for(const n of t)Xd(n),i=Ot(i,n);if(r=Ot(r,i),i.theme&&i.theme in er){const n=Ot({},Va),a=Ot(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in er&&(r.themeVariables=er[r.theme].getThemeVariables(a))}return gn=r,Zd(gn),gn},"updateCurrentConfig"),Pk=g(e=>(he=Ot({},Si),he=Ot(he,e),e.theme&&er[e.theme]&&(he.themeVariables=er[e.theme].getThemeVariables(e.themeVariables)),Es(he,Rr),he),"setSiteConfig"),Nk=g(e=>{Va=Ot({},e)},"saveConfigFromInitialize"),zk=g(e=>(he=Ot(he,e),Es(he,Rr),he),"updateSiteConfig"),Gd=g(()=>Ot({},he),"getSiteConfig"),Vd=g(e=>(Zd(e),Ot(gn,e),Qt()),"setConfig"),Qt=g(()=>Ot({},gn),"getConfig"),Xd=g(e=>{e&&(["secure",...he.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(R.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Xd(e[t])}))},"sanitize"),Wk=g(e=>{var t;Ga(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Rr.push(e),Es(he,Rr)},"addDirective"),Xa=g((e=he)=>{Rr=[],Es(e,Rr)},"reset"),qk={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},hu={},Hk=g(e=>{hu[e]||(R.warn(qk[e]),hu[e]=!0)},"issueWarning"),Zd=g(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Hk("LAZY_LOAD_DEPRECATED")},"checkConfig"),_3=g(()=>{let e={};Va&&(e=Ot(e,Va));for(const t of Rr)e=Ot(e,t);return e},"getUserDefinedConfig"),On=/<br\s*\/?>/gi,Uk=g(e=>e?Jd(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),jk=(()=>{let e=!1;return()=>{e||(Kd(),e=!0)}})();function Kd(){const e="data-temp-href-target";bi.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),bi.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}g(Kd,"setupDompurifyHooks");var Qd=g(e=>(jk(),bi.sanitize(e)),"removeScript"),uu=g((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=Qd(e):i!=="loose"&&(e=Jd(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=Xk(e))}return e},"sanitizeMore"),xe=g((e,t)=>e&&(t.dompurifyConfig?e=bi.sanitize(uu(e,t),t.dompurifyConfig).toString():e=bi.sanitize(uu(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Yk=g((e,t)=>typeof e=="string"?xe(e,t):e.flat().map(r=>xe(r,t)),"sanitizeTextOrArray"),Gk=g(e=>On.test(e),"hasBreaks"),Vk=g(e=>e.split(On),"splitBreaks"),Xk=g(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Jd=g(e=>e.replace(On,"#br#"),"breakToPlaceholder"),Zk=g(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),It=g(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Kk=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Qk=g(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),fu=g(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];Jk(a,o)&&(n=a+","+o,i++,r.pop())}r.push(tv(n))}return r.join("")},"parseGenericTypes"),rl=g((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Jk=g((e,t)=>{const r=rl(e,"~"),i=rl(t,"~");return r===1&&i===1},"shouldCombineSets"),tv=g(e=>{const t=rl(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),du=g(()=>window.MathMLElement!==void 0,"isMathMLSupported"),il=/\$\$(.*)\$\$/g,Ti=g(e=>{var t;return(((t=e.match(il))==null?void 0:t.length)??0)>0},"hasKatex"),C3=g(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await sc(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),ev=g(async(e,t)=>{if(!Ti(e))return e;if(!(du()||t.legacyMathML||t.forceLegacyMathML))return e.replace(il,"MathML is unsupported in this environment.");{const{default:r}=await kt(async()=>{const{default:n}=await import("./katex-ChWnQ-fc.js");return{default:n}},[],import.meta.url),i=t.forceLegacyMathML||!du()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(On).map(n=>Ti(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(il,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),sc=g(async(e,t)=>xe(await ev(e,t),t),"renderKatexSanitized"),Ei={getRows:Uk,sanitizeText:xe,sanitizeTextOrArray:Yk,hasBreaks:Gk,splitBreaks:Vk,lineBreakRegex:On,removeScript:Qd,getUrl:Zk,evaluate:It,getMax:Kk,getMin:Qk},rv=g(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),iv=g(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),tp=g(function(e,t,r,i){const n=iv(t,r,i);rv(e,n)},"configureSvgSize"),nv=g(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;R.info(`SVG bounds: ${a}x${o}`,n);let s=0,c=0;R.info(`Graph bounds: ${s}x${c}`,e),s=a+r*2,c=o+r*2,R.info(`Calculated bounds: ${s}x${c}`),tp(t,c,s,i);const l=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",l)},"setupGraphViewbox"),ba={},av=g((e,t,r)=>{let i="";return e in ba&&ba[e]?i=ba[e](r):R.warn(`No theme found for ${e}`),` & {
5
- font-family: ${r.fontFamily};
6
- font-size: ${r.fontSize};
7
- fill: ${r.textColor}
8
- }
9
- @keyframes edge-animation-frame {
10
- from {
11
- stroke-dashoffset: 0;
12
- }
13
- }
14
- @keyframes dash {
15
- to {
16
- stroke-dashoffset: 0;
17
- }
18
- }
19
- & .edge-animation-slow {
20
- stroke-dasharray: 9,5 !important;
21
- stroke-dashoffset: 900;
22
- animation: dash 50s linear infinite;
23
- stroke-linecap: round;
24
- }
25
- & .edge-animation-fast {
26
- stroke-dasharray: 9,5 !important;
27
- stroke-dashoffset: 900;
28
- animation: dash 20s linear infinite;
29
- stroke-linecap: round;
30
- }
31
- /* Classes common for multiple diagrams */
32
-
33
- & .error-icon {
34
- fill: ${r.errorBkgColor};
35
- }
36
- & .error-text {
37
- fill: ${r.errorTextColor};
38
- stroke: ${r.errorTextColor};
39
- }
40
-
41
- & .edge-thickness-normal {
42
- stroke-width: 1px;
43
- }
44
- & .edge-thickness-thick {
45
- stroke-width: 3.5px
46
- }
47
- & .edge-pattern-solid {
48
- stroke-dasharray: 0;
49
- }
50
- & .edge-thickness-invisible {
51
- stroke-width: 0;
52
- fill: none;
53
- }
54
- & .edge-pattern-dashed{
55
- stroke-dasharray: 3;
56
- }
57
- .edge-pattern-dotted {
58
- stroke-dasharray: 2;
59
- }
60
-
61
- & .marker {
62
- fill: ${r.lineColor};
63
- stroke: ${r.lineColor};
64
- }
65
- & .marker.cross {
66
- stroke: ${r.lineColor};
67
- }
68
-
69
- & svg {
70
- font-family: ${r.fontFamily};
71
- font-size: ${r.fontSize};
72
- }
73
- & p {
74
- margin: 0
75
- }
76
-
77
- ${i}
78
-
79
- ${t}
80
- `},"getStyles"),sv=g((e,t)=>{t!==void 0&&(ba[e]=t)},"addStylesForDiagram"),ov=av,ep={};mk(ep,{clear:()=>lv,getAccDescription:()=>fv,getAccTitle:()=>hv,getDiagramTitle:()=>pv,setAccDescription:()=>uv,setAccTitle:()=>cv,setDiagramTitle:()=>dv});var oc="",lc="",cc="",hc=g(e=>xe(e,Qt()),"sanitizeText"),lv=g(()=>{oc="",cc="",lc=""},"clear"),cv=g(e=>{oc=hc(e).replace(/^\s+/g,"")},"setAccTitle"),hv=g(()=>oc,"getAccTitle"),uv=g(e=>{cc=hc(e).replace(/\n\s+/g,`
81
- `)},"setAccDescription"),fv=g(()=>cc,"getAccDescription"),dv=g(e=>{lc=hc(e)},"setDiagramTitle"),pv=g(()=>lc,"getDiagramTitle"),pu=R,gv=nc,Ct=Qt,w3=Vd,k3=Si,uc=g(e=>xe(e,Ct()),"sanitizeText"),mv=nv,yv=g(()=>ep,"getCommonDb"),Za={},Ka=g((e,t,r)=>{var i;Za[e]&&pu.warn(`Diagram with id ${e} already registered. Overwriting.`),Za[e]=t,r&&Hd(e,r),sv(e,t.styles),(i=t.injectUtils)==null||i.call(t,pu,gv,Ct,uc,mv,yv(),()=>{})},"registerDiagram"),nl=g(e=>{if(e in Za)return Za[e];throw new xv(e)},"getDiagram"),yi,xv=(yi=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},g(yi,"DiagramNotFoundError"),yi),bv=g(e=>{var n;const{securityLevel:t}=Ct();let r=yt("body");if(t==="sandbox"){const o=((n=yt(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=yt(o.body)}return r.select(`#${e}`)},"selectSvgElement");function fc(e){return typeof e>"u"||e===null}g(fc,"isNothing");function rp(e){return typeof e=="object"&&e!==null}g(rp,"isObject");function ip(e){return Array.isArray(e)?e:fc(e)?[]:[e]}g(ip,"toArray");function np(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}g(np,"extend");function ap(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}g(ap,"repeat");function sp(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}g(sp,"isNegativeZero");var _v=fc,Cv=rp,wv=ip,kv=ap,vv=sp,Sv=np,Rt={isNothing:_v,isObject:Cv,toArray:wv,repeat:kv,isNegativeZero:vv,extend:Sv};function dc(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
82
-
83
- `+e.mark.snippet),i+" "+r):i}g(dc,"formatError");function Mi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}g(Mi,"YAMLException$1");Mi.prototype=Object.create(Error.prototype);Mi.prototype.constructor=Mi;Mi.prototype.toString=g(function(t){return this.name+": "+dc(this,t)},"toString");var ue=Mi;function _a(e,t,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-t>s&&(a=" ... ",t=i-s+a.length),r-i>s&&(o=" ...",r=i+s-o.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+a.length}}g(_a,"getLine");function Ca(e,t){return Rt.repeat(" ",t-e.length)+e}g(Ca,"padStart");function op(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,o=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s="",c,l,h=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+h+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=_a(e.buffer,i[o-c],n[o-c],e.position-(i[o]-i[o-c]),u),s=Rt.repeat(" ",t.indent)+Ca((e.line-c+1).toString(),h)+" | "+l.str+`
84
- `+s;for(l=_a(e.buffer,i[o],n[o],e.position,u),s+=Rt.repeat(" ",t.indent)+Ca((e.line+1).toString(),h)+" | "+l.str+`
85
- `,s+=Rt.repeat("-",t.indent+h+3+l.pos)+`^
86
- `,c=1;c<=t.linesAfter&&!(o+c>=n.length);c++)l=_a(e.buffer,i[o+c],n[o+c],e.position-(i[o]-i[o+c]),u),s+=Rt.repeat(" ",t.indent)+Ca((e.line+c+1).toString(),h)+" | "+l.str+`
87
- `;return s.replace(/\n$/,"")}g(op,"makeSnippet");var Tv=op,Mv=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Av=["scalar","sequence","mapping"];function lp(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}g(lp,"compileStyleAliases");function cp(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Mv.indexOf(r)===-1)throw new ue('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=lp(t.styleAliases||null),Av.indexOf(this.kind)===-1)throw new ue('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}g(cp,"Type$1");var Jt=cp;function al(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,o){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=o)}),r[n]=i}),r}g(al,"compileList");function hp(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(g(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}g(hp,"compileMap");function Qa(e){return this.extend(e)}g(Qa,"Schema$1");Qa.prototype.extend=g(function(t){var r=[],i=[];if(t instanceof Jt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new ue("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Jt))throw new ue("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new ue("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new ue("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof Jt))throw new ue("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Qa.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=al(n,"implicit"),n.compiledExplicit=al(n,"explicit"),n.compiledTypeMap=hp(n.compiledImplicit,n.compiledExplicit),n},"extend");var Lv=Qa,Bv=new Jt("tag:yaml.org,2002:str",{kind:"scalar",construct:g(function(e){return e!==null?e:""},"construct")}),Ev=new Jt("tag:yaml.org,2002:seq",{kind:"sequence",construct:g(function(e){return e!==null?e:[]},"construct")}),$v=new Jt("tag:yaml.org,2002:map",{kind:"mapping",construct:g(function(e){return e!==null?e:{}},"construct")}),Fv=new Lv({explicit:[Bv,Ev,$v]});function up(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}g(up,"resolveYamlNull");function fp(){return null}g(fp,"constructYamlNull");function dp(e){return e===null}g(dp,"isNull");var Dv=new Jt("tag:yaml.org,2002:null",{kind:"scalar",resolve:up,construct:fp,predicate:dp,represent:{canonical:g(function(){return"~"},"canonical"),lowercase:g(function(){return"null"},"lowercase"),uppercase:g(function(){return"NULL"},"uppercase"),camelcase:g(function(){return"Null"},"camelcase"),empty:g(function(){return""},"empty")},defaultStyle:"lowercase"});function pp(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}g(pp,"resolveYamlBoolean");function gp(e){return e==="true"||e==="True"||e==="TRUE"}g(gp,"constructYamlBoolean");function mp(e){return Object.prototype.toString.call(e)==="[object Boolean]"}g(mp,"isBoolean");var Ov=new Jt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pp,construct:gp,predicate:mp,represent:{lowercase:g(function(e){return e?"true":"false"},"lowercase"),uppercase:g(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:g(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function yp(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}g(yp,"isHexCode");function xp(e){return 48<=e&&e<=55}g(xp,"isOctCode");function bp(e){return 48<=e&&e<=57}g(bp,"isDecCode");function _p(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!yp(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!xp(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!bp(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}g(_p,"resolveYamlInteger");function Cp(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}g(Cp,"constructYamlInteger");function wp(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Rt.isNegativeZero(e)}g(wp,"isInteger");var Rv=new Jt("tag:yaml.org,2002:int",{kind:"scalar",resolve:_p,construct:Cp,predicate:wp,represent:{binary:g(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:g(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:g(function(e){return e.toString(10)},"decimal"),hexadecimal:g(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Iv=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function kp(e){return!(e===null||!Iv.test(e)||e[e.length-1]==="_")}g(kp,"resolveYamlFloat");function vp(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}g(vp,"constructYamlFloat");var Pv=/^[-+]?[0-9]+e/;function Sp(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Rt.isNegativeZero(e))return"-0.0";return r=e.toString(10),Pv.test(r)?r.replace("e",".e"):r}g(Sp,"representYamlFloat");function Tp(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Rt.isNegativeZero(e))}g(Tp,"isFloat");var Nv=new Jt("tag:yaml.org,2002:float",{kind:"scalar",resolve:kp,construct:vp,predicate:Tp,represent:Sp,defaultStyle:"lowercase"}),Mp=Fv.extend({implicit:[Dv,Ov,Rv,Nv]}),zv=Mp,Ap=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Lp=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Bp(e){return e===null?!1:Ap.exec(e)!==null||Lp.exec(e)!==null}g(Bp,"resolveYamlTimestamp");function Ep(e){var t,r,i,n,a,o,s,c=0,l=null,h,u,f;if(t=Ap.exec(e),t===null&&(t=Lp.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(h=+t[10],u=+(t[11]||0),l=(h*60+u)*6e4,t[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}g(Ep,"constructYamlTimestamp");function $p(e){return e.toISOString()}g($p,"representYamlTimestamp");var Wv=new Jt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bp,construct:Ep,instanceOf:Date,represent:$p});function Fp(e){return e==="<<"||e===null}g(Fp,"resolveYamlMerge");var qv=new Jt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Fp}),pc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
88
- \r`;function Dp(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=pc;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}g(Dp,"resolveYamlBinary");function Op(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=pc,o=0,s=[];for(t=0;t<n;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):r===18?(s.push(o>>10&255),s.push(o>>2&255)):r===12&&s.push(o>>4&255),new Uint8Array(s)}g(Op,"constructYamlBinary");function Rp(e){var t="",r=0,i,n,a=e.length,o=pc;for(i=0;i<a;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}g(Rp,"representYamlBinary");function Ip(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}g(Ip,"isBinary");var Hv=new Jt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dp,construct:Op,predicate:Ip,represent:Rp}),Uv=Object.prototype.hasOwnProperty,jv=Object.prototype.toString;function Pp(e){if(e===null)return!0;var t=[],r,i,n,a,o,s=e;for(r=0,i=s.length;r<i;r+=1){if(n=s[r],o=!1,jv.call(n)!=="[object Object]")return!1;for(a in n)if(Uv.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}g(Pp,"resolveYamlOmap");function Np(e){return e!==null?e:[]}g(Np,"constructYamlOmap");var Yv=new Jt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pp,construct:Np}),Gv=Object.prototype.toString;function zp(e){if(e===null)return!0;var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],Gv.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}g(zp,"resolveYamlPairs");function Wp(e){if(e===null)return[];var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}g(Wp,"constructYamlPairs");var Vv=new Jt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:zp,construct:Wp}),Xv=Object.prototype.hasOwnProperty;function qp(e){if(e===null)return!0;var t,r=e;for(t in r)if(Xv.call(r,t)&&r[t]!==null)return!1;return!0}g(qp,"resolveYamlSet");function Hp(e){return e!==null?e:{}}g(Hp,"constructYamlSet");var Zv=new Jt("tag:yaml.org,2002:set",{kind:"mapping",resolve:qp,construct:Hp}),Up=zv.extend({implicit:[Wv,qv],explicit:[Hv,Yv,Vv,Zv]}),fr=Object.prototype.hasOwnProperty,Ja=1,jp=2,Yp=3,ts=4,So=1,Kv=2,gu=3,Qv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Jv=/[\x85\u2028\u2029]/,tS=/[,\[\]\{\}]/,Gp=/^(?:!|!!|![a-z\-]+!)$/i,Vp=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sl(e){return Object.prototype.toString.call(e)}g(sl,"_class");function Me(e){return e===10||e===13}g(Me,"is_EOL");function hr(e){return e===9||e===32}g(hr,"is_WHITE_SPACE");function ne(e){return e===9||e===32||e===10||e===13}g(ne,"is_WS_OR_EOL");function Mr(e){return e===44||e===91||e===93||e===123||e===125}g(Mr,"is_FLOW_INDICATOR");function Xp(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}g(Xp,"fromHexCode");function Zp(e){return e===120?2:e===117?4:e===85?8:0}g(Zp,"escapedHexLen");function Kp(e){return 48<=e&&e<=57?e-48:-1}g(Kp,"fromDecimalCode");function ol(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
89
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}g(ol,"simpleEscapeSequence");function Qp(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}g(Qp,"charFromCodepoint");var Jp=new Array(256),tg=new Array(256);for(Cr=0;Cr<256;Cr++)Jp[Cr]=ol(Cr)?1:0,tg[Cr]=ol(Cr);var Cr;function eg(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Up,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}g(eg,"State$1");function gc(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Tv(r),new ue(t,r)}g(gc,"generateError");function tt(e,t){throw gc(e,t)}g(tt,"throwError");function wn(e,t){e.onWarning&&e.onWarning.call(null,gc(e,t))}g(wn,"throwWarning");var mu={YAML:g(function(t,r,i){var n,a,o;t.version!==null&&tt(t,"duplication of %YAML directive"),i.length!==1&&tt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&tt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&tt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&wn(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:g(function(t,r,i){var n,a;i.length!==2&&tt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Gp.test(n)||tt(t,"ill-formed tag handle (first argument) of the TAG directive"),fr.call(t.tagMap,n)&&tt(t,'there is a previously declared suffix for "'+n+'" tag handle'),Vp.test(a)||tt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{tt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function rr(e,t,r,i){var n,a,o,s;if(t<r){if(s=e.input.slice(t,r),i)for(n=0,a=s.length;n<a;n+=1)o=s.charCodeAt(n),o===9||32<=o&&o<=1114111||tt(e,"expected valid JSON character");else Qv.test(s)&&tt(e,"the stream contains non-printable characters");e.result+=s}}g(rr,"captureSegment");function ll(e,t,r,i){var n,a,o,s;for(Rt.isObject(r)||tt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,s=n.length;o<s;o+=1)a=n[o],fr.call(t,a)||(t[a]=r[a],i[a]=!0)}g(ll,"mergeMappings");function Ar(e,t,r,i,n,a,o,s,c){var l,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,h=n.length;l<h;l+=1)Array.isArray(n[l])&&tt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&sl(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&sl(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(l=0,h=a.length;l<h;l+=1)ll(e,t,a[l],r);else ll(e,t,a,r);else!e.json&&!fr.call(r,n)&&fr.call(t,n)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,tt(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,delete r[n];return t}g(Ar,"storeMappingPair");function $s(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):tt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}g($s,"readLineBreak");function Et(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;hr(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Me(n))for($s(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&wn(e,"deficient indentation"),i}g(Et,"skipSeparationSpace");function Rn(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ne(r)))}g(Rn,"testDocumentSeparator");function Fs(e,t){t===1?e.result+=" ":t>1&&(e.result+=Rt.repeat(`
90
- `,t-1))}g(Fs,"writeFoldedLines");function rg(e,t,r){var i,n,a,o,s,c,l,h,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),ne(d)||Mr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),ne(n)||r&&Mr(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),ne(n)||r&&Mr(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),ne(i))break}else{if(e.position===e.lineStart&&Rn(e)||r&&Mr(d))break;if(Me(d))if(c=e.line,l=e.lineStart,h=e.lineIndent,Et(e,!1,-1),e.lineIndent>=t){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=h;break}}s&&(rr(e,a,o,!1),Fs(e,e.line-c),a=o=e.position,s=!1),hr(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return rr(e,a,o,!1),e.result?!0:(e.kind=u,e.result=f,!1)}g(rg,"readPlainScalar");function ig(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(rr(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Me(r)?(rr(e,i,n,!0),Fs(e,Et(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Rn(e)?tt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);tt(e,"unexpected end of the stream within a single quoted scalar")}g(ig,"readSingleQuotedScalar");function ng(e,t){var r,i,n,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return rr(e,r,e.position,!0),e.position++,!0;if(s===92){if(rr(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),Me(s))Et(e,!1,t);else if(s<256&&Jp[s])e.result+=tg[s],e.position++;else if((o=Zp(s))>0){for(n=o,a=0;n>0;n--)s=e.input.charCodeAt(++e.position),(o=Xp(s))>=0?a=(a<<4)+o:tt(e,"expected hexadecimal character");e.result+=Qp(a),e.position++}else tt(e,"unknown escape sequence");r=i=e.position}else Me(s)?(rr(e,r,i,!0),Fs(e,Et(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Rn(e)?tt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}tt(e,"unexpected end of the stream within a double quoted scalar")}g(ng,"readDoubleQuotedScalar");function ag(e,t){var r=!0,i,n,a,o=e.tag,s,c=e.anchor,l,h,u,f,d,p=Object.create(null),m,y,x,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,d=!1,s=[];else if(b===123)h=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(Et(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=o,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=s,!0;r?b===44&&tt(e,"expected the node content, but found ','"):tt(e,"missed comma between flow collection entries"),y=m=x=null,u=f=!1,b===63&&(l=e.input.charCodeAt(e.position+1),ne(l)&&(u=f=!0,e.position++,Et(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,Ir(e,t,Ja,!1,!0),y=e.tag,m=e.result,Et(e,!0,t),b=e.input.charCodeAt(e.position),(f||e.line===i)&&b===58&&(u=!0,b=e.input.charCodeAt(++e.position),Et(e,!0,t),Ir(e,t,Ja,!1,!0),x=e.result),d?Ar(e,s,p,y,m,x,i,n,a):u?s.push(Ar(e,null,p,y,m,x,i,n,a)):s.push(m),Et(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}tt(e,"unexpected end of the stream within a flow collection")}g(ag,"readFlowCollection");function sg(e,t){var r,i,n=So,a=!1,o=!1,s=t,c=0,l=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)So===n?n=u===43?gu:Kv:tt(e,"repeat of a chomping mode identifier");else if((h=Kp(u))>=0)h===0?tt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?tt(e,"repeat of an indentation width identifier"):(s=t+h-1,o=!0);else break;if(hr(u)){do u=e.input.charCodeAt(++e.position);while(hr(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Me(u)&&u!==0)}for(;u!==0;){for($s(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),Me(u)){c++;continue}if(e.lineIndent<s){n===gu?e.result+=Rt.repeat(`
91
- `,a?1+c:c):n===So&&a&&(e.result+=`
92
- `);break}for(i?hr(u)?(l=!0,e.result+=Rt.repeat(`
93
- `,a?1+c:c)):l?(l=!1,e.result+=Rt.repeat(`
94
- `,c+1)):c===0?a&&(e.result+=" "):e.result+=Rt.repeat(`
95
- `,c):e.result+=Rt.repeat(`
96
- `,a?1+c:c),a=!0,o=!0,c=0,r=e.position;!Me(u)&&u!==0;)u=e.input.charCodeAt(++e.position);rr(e,r,e.position,!1)}return!0}g(sg,"readBlockScalar");function cl(e,t){var r,i=e.tag,n=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,tt(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!ne(o))));){if(s=!0,e.position++,Et(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Ir(e,t,Yp,!1,!0),a.push(e.result),Et(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)tt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}g(cl,"readBlockSequence");function og(e,t,r){var i,n,a,o,s,c,l=e.tag,h=e.anchor,u={},f=Object.create(null),d=null,p=null,m=null,y=!1,x=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,tt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(b===63||b===58)&&ne(i))b===63?(y&&(Ar(e,u,f,d,p,null,o,s,c),d=p=m=null),x=!0,y=!0,n=!0):y?(y=!1,n=!0):tt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(o=e.line,s=e.lineStart,c=e.position,!Ir(e,r,jp,!1,!0))break;if(e.line===a){for(b=e.input.charCodeAt(e.position);hr(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),ne(b)||tt(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Ar(e,u,f,d,p,null,o,s,c),d=p=m=null),x=!0,y=!1,n=!1,d=e.tag,p=e.result;else if(x)tt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=h,!0}else if(x)tt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(y&&(o=e.line,s=e.lineStart,c=e.position),Ir(e,t,ts,!0,n)&&(y?p=e.result:m=e.result),y||(Ar(e,u,f,d,p,m,o,s,c),d=p=m=null),Et(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)tt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Ar(e,u,f,d,p,null,o,s,c),x&&(e.tag=l,e.anchor=h,e.kind="mapping",e.result=u),x}g(og,"readBlockMapping");function lg(e){var t,r=!1,i=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&tt(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):tt(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ne(o);)o===33&&(i?tt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Gp.test(n)||tt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),tS.test(a)&&tt(e,"tag suffix cannot contain flow indicator characters")}a&&!Vp.test(a)&&tt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{tt(e,"tag name is malformed: "+a)}return r?e.tag=a:fr.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:tt(e,'undeclared tag handle "'+n+'"'),!0}g(lg,"readTagProperty");function cg(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&tt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ne(r)&&!Mr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&tt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}g(cg,"readAnchorProperty");function hg(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!ne(i)&&!Mr(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&tt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),fr.call(e.anchorMap,r)||tt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Et(e,!0,-1),!0}g(hg,"readAlias");function Ir(e,t,r,i,n){var a,o,s,c=1,l=!1,h=!1,u,f,d,p,m,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=ts===r||Yp===r,i&&Et(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;lg(e)||cg(e);)Et(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&(s=l||n),(c===1||ts===r)&&(Ja===r||jp===r?m=t:m=t+1,y=e.position-e.lineStart,c===1?s&&(cl(e,y)||og(e,y,m))||ag(e,m)?h=!0:(o&&sg(e,m)||ig(e,m)||ng(e,m)?h=!0:hg(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&tt(e,"alias node should not have any properties")):rg(e,m,Ja===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(h=s&&cl(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&tt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(p=e.implicitTypes[u],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(fr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){p=d[u];break}p||tt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&tt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):tt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}g(Ir,"composeNode");function ug(e){var t=e.position,r,i,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Et(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&tt(e,"directive name must not be less than one character in length");o!==0;){for(;hr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Me(o));break}if(Me(o))break;for(r=e.position;o!==0&&!ne(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&$s(e),fr.call(mu,i)?mu[i](e,i,n):wn(e,'unknown document directive "'+i+'"')}if(Et(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Et(e,!0,-1)):a&&tt(e,"directives end mark is expected"),Ir(e,e.lineIndent-1,ts,!1,!0),Et(e,!0,-1),e.checkLineBreaks&&Jv.test(e.input.slice(t,e.position))&&wn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Rn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Et(e,!0,-1));return}if(e.position<e.length-1)tt(e,"end of the stream or a document separator is expected");else return}g(ug,"readDocument");function mc(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
97
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new eg(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,tt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ug(r);return r.documents}g(mc,"loadDocuments");function fg(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=mc(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}g(fg,"loadAll$1");function dg(e,t){var r=mc(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ue("expected a single document in the stream, but found more")}}g(dg,"load$1");var eS=fg,rS=dg,iS={loadAll:eS,load:rS},pg=Object.prototype.toString,gg=Object.prototype.hasOwnProperty,yc=65279,nS=9,kn=10,aS=13,sS=32,oS=33,lS=34,hl=35,cS=37,hS=38,uS=39,fS=42,mg=44,dS=45,es=58,pS=61,gS=62,mS=63,yS=64,yg=91,xg=93,xS=96,bg=123,bS=124,_g=125,ee={};ee[0]="\\0";ee[7]="\\a";ee[8]="\\b";ee[9]="\\t";ee[10]="\\n";ee[11]="\\v";ee[12]="\\f";ee[13]="\\r";ee[27]="\\e";ee[34]='\\"';ee[92]="\\\\";ee[133]="\\N";ee[160]="\\_";ee[8232]="\\L";ee[8233]="\\P";var _S=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CS=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Cg(e,t){var r,i,n,a,o,s,c;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)o=i[n],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&gg.call(c.styleAliases,s)&&(s=c.styleAliases[s]),r[o]=s;return r}g(Cg,"compileStyleMap");function wg(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new ue("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Rt.repeat("0",i-t.length)+t}g(wg,"encodeHex");var wS=1,vn=2;function kg(e){this.schema=e.schema||Up,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Rt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Cg(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?vn:wS,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}g(kg,"State");function ul(e,t){for(var r=Rt.repeat(" ",t),i=0,n=-1,a="",o,s=e.length;i<s;)n=e.indexOf(`
98
- `,i),n===-1?(o=e.slice(i),i=s):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
99
- `&&(a+=r),a+=o;return a}g(ul,"indentString");function rs(e,t){return`
100
- `+Rt.repeat(" ",e.indent*t)}g(rs,"generateNextLine");function vg(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}g(vg,"testImplicitResolving");function Sn(e){return e===sS||e===nS}g(Sn,"isWhitespace");function Ai(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yc||65536<=e&&e<=1114111}g(Ai,"isPrintable");function fl(e){return Ai(e)&&e!==yc&&e!==aS&&e!==kn}g(fl,"isNsCharOrWhitespace");function dl(e,t,r){var i=fl(e),n=i&&!Sn(e);return(r?i:i&&e!==mg&&e!==yg&&e!==xg&&e!==bg&&e!==_g)&&e!==hl&&!(t===es&&!n)||fl(t)&&!Sn(t)&&e===hl||t===es&&n}g(dl,"isPlainSafe");function Sg(e){return Ai(e)&&e!==yc&&!Sn(e)&&e!==dS&&e!==mS&&e!==es&&e!==mg&&e!==yg&&e!==xg&&e!==bg&&e!==_g&&e!==hl&&e!==hS&&e!==fS&&e!==oS&&e!==bS&&e!==pS&&e!==gS&&e!==uS&&e!==lS&&e!==cS&&e!==yS&&e!==xS}g(Sg,"isPlainSafeFirst");function Tg(e){return!Sn(e)&&e!==es}g(Tg,"isPlainSafeLast");function si(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}g(si,"codePointAt");function xc(e){var t=/^\n* /;return t.test(e)}g(xc,"needIndentIndicator");var Mg=1,pl=2,Ag=3,Lg=4,ei=5;function Bg(e,t,r,i,n,a,o,s){var c,l=0,h=null,u=!1,f=!1,d=i!==-1,p=-1,m=Sg(si(e,0))&&Tg(si(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=si(e,c),!Ai(l))return ei;m=m&&dl(l,h,s),h=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=si(e,c),l===kn)u=!0,d&&(f=f||c-p-1>i&&e[p+1]!==" ",p=c);else if(!Ai(l))return ei;m=m&&dl(l,h,s),h=l}f=f||d&&c-p-1>i&&e[p+1]!==" "}return!u&&!f?m&&!o&&!n(e)?Mg:a===vn?ei:pl:r>9&&xc(e)?ei:o?a===vn?ei:pl:f?Lg:Ag}g(Bg,"chooseScalarStyle");function Eg(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===vn?'""':"''";if(!e.noCompatMode&&(_S.indexOf(t)!==-1||CS.test(t)))return e.quotingType===vn?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=i||e.flowLevel>-1&&r>=e.flowLevel;function c(l){return vg(e,l)}switch(g(c,"testAmbiguity"),Bg(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!i,n)){case Mg:return t;case pl:return"'"+t.replace(/'/g,"''")+"'";case Ag:return"|"+gl(t,e.indent)+ml(ul(t,a));case Lg:return">"+gl(t,e.indent)+ml(ul($g(t,o),a));case ei:return'"'+Fg(t)+'"';default:throw new ue("impossible error: invalid scalar style")}})()}g(Eg,"writeScalar");function gl(e,t){var r=xc(e)?String(t):"",i=e[e.length-1]===`
101
- `,n=i&&(e[e.length-2]===`
102
- `||e===`
103
- `),a=n?"+":i?"":"-";return r+a+`
104
- `}g(gl,"blockHeader");function ml(e){return e[e.length-1]===`
105
- `?e.slice(0,-1):e}g(ml,"dropEndingNewline");function $g(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var l=e.indexOf(`
106
- `);return l=l!==-1?l:e.length,r.lastIndex=l,yl(e.slice(0,l),t)})(),n=e[0]===`
107
- `||e[0]===" ",a,o;o=r.exec(e);){var s=o[1],c=o[2];a=c[0]===" ",i+=s+(!n&&!a&&c!==""?`
108
- `:"")+yl(c,t),n=a}return i}g($g,"foldString");function yl(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,o=0,s=0,c="";i=r.exec(e);)s=i.index,s-n>t&&(a=o>n?o:s,c+=`
109
- `+e.slice(n,a),n=a+1),o=s;return c+=`
110
- `,e.length-n>t&&o>n?c+=e.slice(n,o)+`
111
- `+e.slice(o+1):c+=e.slice(n),c.slice(1)}g(yl,"foldLine");function Fg(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=si(e,n),i=ee[r],!i&&Ai(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||wg(r);return t}g(Fg,"escapeString");function Dg(e,t,r){var i="",n=e.tag,a,o,s;for(a=0,o=r.length;a<o;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(We(e,t,s,!1,!1)||typeof s>"u"&&We(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}g(Dg,"writeFlowSequence");function xl(e,t,r,i){var n="",a=e.tag,o,s,c;for(o=0,s=r.length;o<s;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(We(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&We(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=rs(e,t)),e.dump&&kn===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}g(xl,"writeBlockSequence");function Og(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,s,c,l,h;for(o=0,s=a.length;o<s;o+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),We(e,t,c,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),We(e,t,l,!1,!1)&&(h+=e.dump,i+=h));e.tag=n,e.dump="{"+i+"}"}g(Og,"writeFlowMapping");function Rg(e,t,r,i){var n="",a=e.tag,o=Object.keys(r),s,c,l,h,u,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ue("sortKeys must be a boolean or a function");for(s=0,c=o.length;s<c;s+=1)f="",(!i||n!=="")&&(f+=rs(e,t)),l=o[s],h=r[l],e.replacer&&(h=e.replacer.call(r,l,h)),We(e,t+1,l,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&kn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=rs(e,t)),We(e,t+1,h,!0,u)&&(e.dump&&kn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}g(Rg,"writeBlockMapping");function bl(e,t,r){var i,n,a,o,s,c;for(n=r?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(s=n[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,pg.call(s.represent)==="[object Function]")i=s.represent(t,c);else if(gg.call(s.represent,c))i=s.represent[c](t,c);else throw new ue("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');e.dump=i}return!0}return!1}g(bl,"detectType");function We(e,t,r,i,n,a,o){e.tag=null,e.dump=r,bl(e,r,!1)||bl(e,r,!0);var s=pg.call(e.dump),c=i,l;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=s==="[object Object]"||s==="[object Array]",u,f;if(h&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")i&&Object.keys(e.dump).length!==0?(Rg(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Og(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?xl(e,t-1,e.dump,n):xl(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Dg(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Eg(e,e.dump,t,a,c);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ue("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}g(We,"writeNode");function Ig(e,t){var r=[],i=[],n,a;for(is(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}g(Ig,"getDuplicateReferences");function is(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)is(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)is(e[i[n]],t,r)}g(is,"inspectNode");function kS(e,t){t=t||{};var r=new kg(t);r.noRefs||Ig(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),We(r,0,i,!0,!0)?r.dump+`
112
- `:""}g(kS,"dump$1");function vS(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}g(vS,"renamed");var SS=Mp,TS=iS.load;/*! Bundled license information:
113
-
114
- js-yaml/dist/js-yaml.mjs:
115
- (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
116
- */var Zt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},yu={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function sn(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=At(e),t=At(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}g(sn,"calculateDeltaAndAngle");var At=g(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),MS=g(e=>({x:g(function(t,r,i){let n=0;const a=At(i[0]).x<At(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Zt,e.arrowTypeStart)){const{angle:d,deltaX:p}=sn(i[0],i[1]);n=Zt[e.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Zt,e.arrowTypeEnd)){const{angle:d,deltaX:p}=sn(i[i.length-1],i[i.length-2]);n=Zt[e.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const o=Math.abs(At(t).x-At(i[i.length-1]).x),s=Math.abs(At(t).y-At(i[i.length-1]).y),c=Math.abs(At(t).x-At(i[0]).x),l=Math.abs(At(t).y-At(i[0]).y),h=Zt[e.arrowTypeStart],u=Zt[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let d=u+f-o;d*=a==="right"?-1:1,n-=d}if(c<h&&c>0&&l<h){let d=h+f-c;d*=a==="right"?-1:1,n+=d}return At(t).x+n},"x"),y:g(function(t,r,i){let n=0;const a=At(i[0]).y<At(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Zt,e.arrowTypeStart)){const{angle:d,deltaY:p}=sn(i[0],i[1]);n=Zt[e.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Zt,e.arrowTypeEnd)){const{angle:d,deltaY:p}=sn(i[i.length-1],i[i.length-2]);n=Zt[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const o=Math.abs(At(t).y-At(i[i.length-1]).y),s=Math.abs(At(t).x-At(i[i.length-1]).x),c=Math.abs(At(t).y-At(i[0]).y),l=Math.abs(At(t).x-At(i[0]).x),h=Zt[e.arrowTypeStart],u=Zt[e.arrowTypeEnd],f=1;if(o<u&&o>0&&s<u){let d=u+f-o;d*=a==="up"?-1:1,n-=d}if(c<h&&c>0&&l<h){let d=h+f-c;d*=a==="up"?-1:1,n+=d}return At(t).y+n},"y")}),"getLineFunctionsWithOffset"),bc=g(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),AS=g(e=>{const{handDrawnSeed:t}=Ct();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),$i=g(e=>{const t=LS([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),LS=g(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),Pg=g(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),K=g(e=>{const{stylesArray:t}=$i(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{const s=o[0];Pg(s)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),s.includes("stroke")&&n.push(o.join(":")+" !important"),s==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),Z=g((e,t)=>{var c;const{themeVariables:r,handDrawnSeed:i}=Ct(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=$i(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((c=o.get("stroke-width"))==null?void 0:c.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:BS(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),BS=g(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),_c={},Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.BLANK_URL=Nt.relativeFirstCharacters=Nt.whitespaceEscapeCharsRegex=Nt.urlSchemeRegex=Nt.ctrlCharactersRegex=Nt.htmlCtrlEntityRegex=Nt.htmlEntitiesRegex=Nt.invalidProtocolRegex=void 0;Nt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Nt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Nt.htmlCtrlEntityRegex=/&(newline|tab);/gi;Nt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Nt.urlSchemeRegex=/^.+(:|&colon;)/gim;Nt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Nt.relativeFirstCharacters=[".","/"];Nt.BLANK_URL="about:blank";Object.defineProperty(_c,"__esModule",{value:!0});var Ng=_c.sanitizeUrl=void 0,Xt=Nt;function ES(e){return Xt.relativeFirstCharacters.indexOf(e[0])>-1}function $S(e){var t=e.replace(Xt.ctrlCharactersRegex,"");return t.replace(Xt.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function FS(e){return URL.canParse(e)}function xu(e){try{return decodeURIComponent(e)}catch{return e}}function DS(e){if(!e)return Xt.BLANK_URL;var t,r=xu(e.trim());do r=$S(r).replace(Xt.htmlCtrlEntityRegex,"").replace(Xt.ctrlCharactersRegex,"").replace(Xt.whitespaceEscapeCharsRegex,"").trim(),r=xu(r),t=r.match(Xt.ctrlCharactersRegex)||r.match(Xt.htmlEntitiesRegex)||r.match(Xt.htmlCtrlEntityRegex)||r.match(Xt.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return Xt.BLANK_URL;if(ES(i))return i;var n=i.trimStart(),a=n.match(Xt.urlSchemeRegex);if(!a)return i;var o=a[0].toLowerCase().trim();if(Xt.invalidProtocolRegex.test(o))return Xt.BLANK_URL;var s=n.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return s;if(o==="http:"||o==="https:"){if(!FS(s))return Xt.BLANK_URL;var c=new URL(s);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return s}Ng=_c.sanitizeUrl=DS;var zg=typeof global=="object"&&global&&global.Object===Object&&global,OS=typeof self=="object"&&self&&self.Object===Object&&self,He=zg||OS||Function("return this")(),ns=He.Symbol,Wg=Object.prototype,RS=Wg.hasOwnProperty,IS=Wg.toString,Zi=ns?ns.toStringTag:void 0;function PS(e){var t=RS.call(e,Zi),r=e[Zi];try{e[Zi]=void 0;var i=!0}catch{}var n=IS.call(e);return i&&(t?e[Zi]=r:delete e[Zi]),n}var NS=Object.prototype,zS=NS.toString;function WS(e){return zS.call(e)}var qS="[object Null]",HS="[object Undefined]",bu=ns?ns.toStringTag:void 0;function Fi(e){return e==null?e===void 0?HS:qS:bu&&bu in Object(e)?PS(e):WS(e)}function Ur(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var US="[object AsyncFunction]",jS="[object Function]",YS="[object GeneratorFunction]",GS="[object Proxy]";function Cc(e){if(!Ur(e))return!1;var t=Fi(e);return t==jS||t==YS||t==US||t==GS}var To=He["__core-js_shared__"],_u=(function(){var e=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function VS(e){return!!_u&&_u in e}var XS=Function.prototype,ZS=XS.toString;function jr(e){if(e!=null){try{return ZS.call(e)}catch{}try{return e+""}catch{}}return""}var KS=/[\\^$.*+?()[\]{}|]/g,QS=/^\[object .+?Constructor\]$/,JS=Function.prototype,tT=Object.prototype,eT=JS.toString,rT=tT.hasOwnProperty,iT=RegExp("^"+eT.call(rT).replace(KS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nT(e){if(!Ur(e)||VS(e))return!1;var t=Cc(e)?iT:QS;return t.test(jr(e))}function aT(e,t){return e==null?void 0:e[t]}function Yr(e,t){var r=aT(e,t);return nT(r)?r:void 0}var Tn=Yr(Object,"create");function sT(){this.__data__=Tn?Tn(null):{},this.size=0}function oT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var lT="__lodash_hash_undefined__",cT=Object.prototype,hT=cT.hasOwnProperty;function uT(e){var t=this.__data__;if(Tn){var r=t[e];return r===lT?void 0:r}return hT.call(t,e)?t[e]:void 0}var fT=Object.prototype,dT=fT.hasOwnProperty;function pT(e){var t=this.__data__;return Tn?t[e]!==void 0:dT.call(t,e)}var gT="__lodash_hash_undefined__";function mT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===void 0?gT:t,this}function Pr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Pr.prototype.clear=sT;Pr.prototype.delete=oT;Pr.prototype.get=uT;Pr.prototype.has=pT;Pr.prototype.set=mT;function yT(){this.__data__=[],this.size=0}function Ds(e,t){return e===t||e!==e&&t!==t}function Os(e,t){for(var r=e.length;r--;)if(Ds(e[r][0],t))return r;return-1}var xT=Array.prototype,bT=xT.splice;function _T(e){var t=this.__data__,r=Os(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():bT.call(t,r,1),--this.size,!0}function CT(e){var t=this.__data__,r=Os(t,e);return r<0?void 0:t[r][1]}function wT(e){return Os(this.__data__,e)>-1}function kT(e,t){var r=this.__data__,i=Os(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}or.prototype.clear=yT;or.prototype.delete=_T;or.prototype.get=CT;or.prototype.has=wT;or.prototype.set=kT;var Mn=Yr(He,"Map");function vT(){this.size=0,this.__data__={hash:new Pr,map:new(Mn||or),string:new Pr}}function ST(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rs(e,t){var r=e.__data__;return ST(t)?r[typeof t=="string"?"string":"hash"]:r.map}function TT(e){var t=Rs(this,e).delete(e);return this.size-=t?1:0,t}function MT(e){return Rs(this,e).get(e)}function AT(e){return Rs(this,e).has(e)}function LT(e,t){var r=Rs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}gr.prototype.clear=vT;gr.prototype.delete=TT;gr.prototype.get=MT;gr.prototype.has=AT;gr.prototype.set=LT;var BT="Expected a function";function In(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(BT);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(In.Cache||gr),r}In.Cache=gr;function ET(){this.__data__=new or,this.size=0}function $T(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function FT(e){return this.__data__.get(e)}function DT(e){return this.__data__.has(e)}var OT=200;function RT(e,t){var r=this.__data__;if(r instanceof or){var i=r.__data__;if(!Mn||i.length<OT-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new gr(i)}return r.set(e,t),this.size=r.size,this}function Di(e){var t=this.__data__=new or(e);this.size=t.size}Di.prototype.clear=ET;Di.prototype.delete=$T;Di.prototype.get=FT;Di.prototype.has=DT;Di.prototype.set=RT;var as=(function(){try{var e=Yr(Object,"defineProperty");return e({},"",{}),e}catch{}})();function wc(e,t,r){t=="__proto__"&&as?as(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function _l(e,t,r){(r!==void 0&&!Ds(e[t],r)||r===void 0&&!(t in e))&&wc(e,t,r)}function IT(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),s=o.length;s--;){var c=o[++n];if(r(a[c],c,a)===!1)break}return t}}var PT=IT(),qg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cu=qg&&typeof module=="object"&&module&&!module.nodeType&&module,NT=Cu&&Cu.exports===qg,wu=NT?He.Buffer:void 0,ku=wu?wu.allocUnsafe:void 0;function zT(e,t){if(t)return e.slice();var r=e.length,i=ku?ku(r):new e.constructor(r);return e.copy(i),i}var vu=He.Uint8Array;function WT(e){var t=new e.constructor(e.byteLength);return new vu(t).set(new vu(e)),t}function qT(e,t){var r=t?WT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function HT(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var Su=Object.create,UT=(function(){function e(){}return function(t){if(!Ur(t))return{};if(Su)return Su(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Hg(e,t){return function(r){return e(t(r))}}var Ug=Hg(Object.getPrototypeOf,Object),jT=Object.prototype;function Is(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||jT;return e===r}function YT(e){return typeof e.constructor=="function"&&!Is(e)?UT(Ug(e)):{}}function Pn(e){return e!=null&&typeof e=="object"}var GT="[object Arguments]";function Tu(e){return Pn(e)&&Fi(e)==GT}var jg=Object.prototype,VT=jg.hasOwnProperty,XT=jg.propertyIsEnumerable,ss=Tu((function(){return arguments})())?Tu:function(e){return Pn(e)&&VT.call(e,"callee")&&!XT.call(e,"callee")},os=Array.isArray,ZT=9007199254740991;function Yg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZT}function Ps(e){return e!=null&&Yg(e.length)&&!Cc(e)}function KT(e){return Pn(e)&&Ps(e)}function QT(){return!1}var Gg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mu=Gg&&typeof module=="object"&&module&&!module.nodeType&&module,JT=Mu&&Mu.exports===Gg,Au=JT?He.Buffer:void 0,tM=Au?Au.isBuffer:void 0,kc=tM||QT,eM="[object Object]",rM=Function.prototype,iM=Object.prototype,Vg=rM.toString,nM=iM.hasOwnProperty,aM=Vg.call(Object);function sM(e){if(!Pn(e)||Fi(e)!=eM)return!1;var t=Ug(e);if(t===null)return!0;var r=nM.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Vg.call(r)==aM}var oM="[object Arguments]",lM="[object Array]",cM="[object Boolean]",hM="[object Date]",uM="[object Error]",fM="[object Function]",dM="[object Map]",pM="[object Number]",gM="[object Object]",mM="[object RegExp]",yM="[object Set]",xM="[object String]",bM="[object WeakMap]",_M="[object ArrayBuffer]",CM="[object DataView]",wM="[object Float32Array]",kM="[object Float64Array]",vM="[object Int8Array]",SM="[object Int16Array]",TM="[object Int32Array]",MM="[object Uint8Array]",AM="[object Uint8ClampedArray]",LM="[object Uint16Array]",BM="[object Uint32Array]",Tt={};Tt[wM]=Tt[kM]=Tt[vM]=Tt[SM]=Tt[TM]=Tt[MM]=Tt[AM]=Tt[LM]=Tt[BM]=!0;Tt[oM]=Tt[lM]=Tt[_M]=Tt[cM]=Tt[CM]=Tt[hM]=Tt[uM]=Tt[fM]=Tt[dM]=Tt[pM]=Tt[gM]=Tt[mM]=Tt[yM]=Tt[xM]=Tt[bM]=!1;function EM(e){return Pn(e)&&Yg(e.length)&&!!Tt[Fi(e)]}function $M(e){return function(t){return e(t)}}var Xg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mn=Xg&&typeof module=="object"&&module&&!module.nodeType&&module,FM=mn&&mn.exports===Xg,Mo=FM&&zg.process,Lu=(function(){try{var e=mn&&mn.require&&mn.require("util").types;return e||Mo&&Mo.binding&&Mo.binding("util")}catch{}})(),Bu=Lu&&Lu.isTypedArray,vc=Bu?$M(Bu):EM;function Cl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var DM=Object.prototype,OM=DM.hasOwnProperty;function RM(e,t,r){var i=e[t];(!(OM.call(e,t)&&Ds(i,r))||r===void 0&&!(t in e))&&wc(e,t,r)}function IM(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=void 0;c===void 0&&(c=e[s]),n?wc(r,s,c):RM(r,s,c)}return r}function PM(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var NM=9007199254740991,zM=/^(?:0|[1-9]\d*)$/;function Zg(e,t){var r=typeof e;return t=t??NM,!!t&&(r=="number"||r!="symbol"&&zM.test(e))&&e>-1&&e%1==0&&e<t}var WM=Object.prototype,qM=WM.hasOwnProperty;function HM(e,t){var r=os(e),i=!r&&ss(e),n=!r&&!i&&kc(e),a=!r&&!i&&!n&&vc(e),o=r||i||n||a,s=o?PM(e.length,String):[],c=s.length;for(var l in e)(t||qM.call(e,l))&&!(o&&(l=="length"||n&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zg(l,c)))&&s.push(l);return s}function UM(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var jM=Object.prototype,YM=jM.hasOwnProperty;function GM(e){if(!Ur(e))return UM(e);var t=Is(e),r=[];for(var i in e)i=="constructor"&&(t||!YM.call(e,i))||r.push(i);return r}function Kg(e){return Ps(e)?HM(e,!0):GM(e)}function VM(e){return IM(e,Kg(e))}function XM(e,t,r,i,n,a,o){var s=Cl(e,r),c=Cl(t,r),l=o.get(c);if(l){_l(e,r,l);return}var h=a?a(s,c,r+"",e,t,o):void 0,u=h===void 0;if(u){var f=os(c),d=!f&&kc(c),p=!f&&!d&&vc(c);h=c,f||d||p?os(s)?h=s:KT(s)?h=HT(s):d?(u=!1,h=zT(c,!0)):p?(u=!1,h=qT(c,!0)):h=[]:sM(c)||ss(c)?(h=s,ss(s)?h=VM(s):(!Ur(s)||Cc(s))&&(h=YT(c))):u=!1}u&&(o.set(c,h),n(h,c,i,a,o),o.delete(c)),_l(e,r,h)}function Qg(e,t,r,i,n){e!==t&&PT(t,function(a,o){if(n||(n=new Di),Ur(a))XM(e,t,o,r,Qg,i,n);else{var s=i?i(Cl(e,o),a,o+"",e,t,n):void 0;s===void 0&&(s=a),_l(e,o,s)}},Kg)}function Jg(e){return e}function ZM(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Eu=Math.max;function KM(e,t,r){return t=Eu(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=Eu(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=r(o),ZM(e,this,s)}}function QM(e){return function(){return e}}var JM=as?function(e,t){return as(e,"toString",{configurable:!0,enumerable:!1,value:QM(t),writable:!0})}:Jg,tA=800,eA=16,rA=Date.now;function iA(e){var t=0,r=0;return function(){var i=rA(),n=eA-(i-r);if(r=i,n>0){if(++t>=tA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nA=iA(JM);function aA(e,t){return nA(KM(e,t,Jg),e+"")}function sA(e,t,r){if(!Ur(r))return!1;var i=typeof t;return(i=="number"?Ps(r)&&Zg(t,r.length):i=="string"&&t in r)?Ds(r[t],e):!1}function oA(e){return aA(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,o&&sA(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var s=r[i];s&&e(t,s,i,a)}return t})}var lA=oA(function(e,t,r){Qg(e,t,r)}),cA="​",hA={curveBasis:ya,curveBasisClosed:nk,curveBasisOpen:ak,curveBumpX:yd,curveBumpY:xd,curveBundle:sk,curveCardinalClosed:ok,curveCardinalOpen:lk,curveCardinal:wd,curveCatmullRomClosed:ck,curveCatmullRomOpen:hk,curveCatmullRom:vd,curveLinear:Ha,curveLinearClosed:uk,curveMonotoneX:Bd,curveMonotoneY:Ed,curveNatural:Fd,curveStep:Dd,curveStepAfter:Rd,curveStepBefore:Od},uA=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fA=g(function(e,t){const r=tm(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(s=>s.args);Ga(o),i=Ot(i,[...o])}else i=r.args;if(!i)return;let n=ac(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),tm=g(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${uA.source})(?=[}][%]{2}).*
117
- `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),R.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=pn.exec(e))!==null;)if(a.index===pn.lastIndex&&pn.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const s=a[1]?a[1]:a[2],c=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:s,args:c})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return R.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),dA=g(function(e){return e.replace(pn,"")},"removeDirectives"),pA=g(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Sc(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return hA[r]??t}g(Sc,"interpolateToCurve");function em(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?Ng(r):r}g(em,"formatUrl");var gA=g((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let o=0;o<i;o++)if(a=a[r[o]],!a){R.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function Tc(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}g(Tc,"distance");function rm(e){let t,r=0;e.forEach(n=>{r+=Tc(n,t),t=n});const i=r/2;return Mc(e,i)}g(rm,"traverseEdge");function im(e){return e.length===1?e[0]:rm(e)}g(im,"calcLabelPosition");var $u=g((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Mc=g((e,t)=>{let r,i=t;for(const n of e){if(r){const a=Tc(n,r);if(a===0)return r;if(a<i)i-=a;else{const o=i/a;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:$u((1-o)*r.x+o*n.x,5),y:$u((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),mA=g((e,t,r)=>{R.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Mc(t,25),a=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+n.x)/2,s.y=-Math.cos(o)*a+(t[0].y+n.y)/2,s},"calcCardinalityPosition");function nm(e,t,r){const i=structuredClone(r);R.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=Mc(i,n),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return t==="start_left"?(c.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(c.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(c.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(c.x=Math.sin(s)*o+(i[0].x+a.x)/2,c.y=-Math.cos(s)*o+(i[0].y+a.y)/2),c}g(nm,"calcTerminalLabelPosition");function am(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}g(am,"getStylesFromArray");var Fu=0,yA=g(()=>(Fu++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Fu),"generateId");function sm(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}g(sm,"makeRandomHex");var xA=g(e=>sm(e.length),"random"),bA=g(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),_A=g(function(e,t){const r=t.text.replace(Ei.lineBreakRegex," "),[,i]=Ns(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),CA=In((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ei.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((o,s)=>{const c=sr(`${o} `,r),l=sr(a,r);if(c>t){const{hyphenatedStrings:f,remainingWord:d}=wA(o,t,"-",r);n.push(a,...f),a=d}else l+c>=t?(n.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===i.length&&n.push(a)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),wA=In((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let o="";return n.forEach((s,c)=>{const l=`${o}${s}`;if(sr(l,i)>=t){const u=c+1,f=n.length===u,d=`${l}${r}`;a.push(f?l:d),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function om(e,t){return Ac(e,t).height}g(om,"calculateTextHeight");function sr(e,t){return Ac(e,t).width}g(sr,"calculateTextWidth");var Ac=In((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=Ns(r),o=["sans-serif",i],s=e.split(Ei.lineBreakRegex),c=[],l=yt("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const h=l.append("svg");for(const f of o){let d=0;const p={width:0,height:0,lineHeight:0};for(const m of s){const y=bA();y.text=m||cA;const x=_A(h,y).style("font-size",a).style("font-weight",n).style("font-family",f),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,b.width)),d=Math.round(b.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}c.push(p)}h.remove();const u=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),xi,kA=(xi=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},g(xi,"InitIDGenerator"),xi),ra,vA=g(function(e){return ra=ra||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ra.innerHTML=e,unescape(ra.textContent)},"entityDecode");function Lc(e){return"str"in e}g(Lc,"isDetailedError");var SA=g((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Ns=g(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Bc(e,t){return lA({},e,t)}g(Bc,"cleanAndMerge");var Te={assignWithDepth:Ot,wrapLabel:CA,calculateTextHeight:om,calculateTextWidth:sr,calculateTextDimensions:Ac,cleanAndMerge:Bc,detectInit:fA,detectDirective:tm,isSubstringInArray:pA,interpolateToCurve:Sc,calcLabelPosition:im,calcCardinalityPosition:mA,calcTerminalLabelPosition:nm,formatUrl:em,getStylesFromArray:am,generateId:yA,random:xA,runFunc:gA,entityDecode:vA,insertTitle:SA,isLabelCoordinateInPath:lm,parseFontSize:Ns,InitIDGenerator:kA},TA=g(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Gr=g(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),v3=g((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function te(e){return e??null}g(te,"handleUndefinedAttr");function lm(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}g(lm,"isLabelCoordinateInPath");const MA=Object.freeze({left:0,top:0,width:16,height:16}),ls=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),cm=Object.freeze({...MA,...ls}),AA=Object.freeze({...cm,body:"",hidden:!1}),LA=Object.freeze({width:null,height:null}),BA=Object.freeze({...LA,...ls}),EA=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const s=n.pop(),c=n.pop(),l={provider:n.length>0?n[0]:i,prefix:c,name:s};return Ao(l)?l:null}const a=n[0],o=a.split("-");if(o.length>1){const s={provider:i,prefix:o.shift(),name:o.join("-")};return Ao(s)?s:null}if(r&&i===""){const s={provider:i,prefix:"",name:a};return Ao(s,r)?s:null}return null},Ao=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function $A(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function Du(e,t){const r=$A(e,t);for(const i in AA)i in ls?i in e&&!(i in r)&&(r[i]=ls[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function FA(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const s=i[o]&&i[o].parent,c=s&&a(s);c&&(n[o]=[s].concat(c))}return n[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function Ou(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function o(s){a=Du(i[s]||n[s],a)}return o(t),r.forEach(o),Du(e,a)}function DA(e,t){if(e.icons[t])return Ou(e,t,[]);const r=FA(e,[t])[t];return r?Ou(e,t,r):null}const OA=/(-?[0-9.]*[0-9]+[0-9.]*)/g,RA=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ru(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(OA);if(i===null||!i.length)return e;const n=[];let a=i.shift(),o=RA.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?n.push(a):n.push(Math.ceil(s*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");o=!o}}function IA(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function PA(e,t){return e?"<defs>"+e+"</defs>"+t:t}function NA(e,t,r){const i=IA(e);return PA(i.defs,t+i.content+r)}const zA=e=>e==="unset"||e==="undefined"||e==="none";function WA(e,t){const r={...cm,...e},i={...BA,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(m=>{const y=[],x=m.hFlip,b=m.vFlip;let C=m.rotate;x?b?C+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):b&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let k;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:k=n.height/2+n.top,y.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:k=n.width/2+n.left,y.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}C%2===1&&(n.left!==n.top&&(k=n.left,n.left=n.top,n.top=k),n.width!==n.height&&(k=n.width,n.width=n.height,n.height=k)),y.length&&(a=NA(a,'<g transform="'+y.join(" ")+'">',"</g>"))});const o=i.width,s=i.height,c=n.width,l=n.height;let h,u;o===null?(u=s===null?"1em":s==="auto"?l:s,h=Ru(u,c/l)):(h=o==="auto"?c:o,u=s===null?Ru(h,l/c):s==="auto"?l:s);const f={},d=(m,y)=>{zA(y)||(f[m]=y.toString())};d("width",h),d("height",u);const p=[n.left,n.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:a}}const qA=/\sid="(\S+)"/g,Iu=new Map;function HA(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Iu.get(e)||0;return Iu.set(e,t+1),t?`${e}${t}`:e}function UA(e){const t=[];let r;for(;r=qA.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=HA(n),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function jA(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Ec(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Vr=Ec();function hm(e){Vr=e}var yn={exec:()=>null};function _t(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(ae.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}var YA=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},GA=/^(?:[ \t]*(?:\n|$))+/,VA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,XA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Nn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ZA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,$c=/(?:[*+-]|\d{1,9}[.)])/,um=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fm=_t(um).replace(/bull/g,$c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),KA=_t(um).replace(/bull/g,$c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,QA=/^[^\n]+/,Dc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,JA=_t(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Dc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tL=_t(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$c).getRegex(),zs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Oc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eL=_t("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Oc).replace("tag",zs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dm=_t(Fc).replace("hr",Nn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),rL=_t(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dm).getRegex(),Rc={blockquote:rL,code:VA,def:JA,fences:XA,heading:ZA,hr:Nn,html:eL,lheading:fm,list:tL,newline:GA,paragraph:dm,table:yn,text:QA},Pu=_t("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Nn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex(),iL={...Rc,lheading:KA,table:Pu,paragraph:_t(Fc).replace("hr",Nn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pu).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zs).getRegex()},nL={...Rc,html:_t(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Oc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_t(Fc).replace("hr",Nn).replace("heading",` *#{1,6} *[^
118
- ]`).replace("lheading",fm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},aL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pm=/^( {2,}|\\)\n(?!\s*$)/,oL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ws=/[\p{P}\p{S}]/u,Ic=/[\s\p{P}\p{S}]/u,gm=/[^\s\p{P}\p{S}]/u,lL=_t(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ic).getRegex(),mm=/(?!~)[\p{P}\p{S}]/u,cL=/(?!~)[\s\p{P}\p{S}]/u,hL=/(?:[^\s\p{P}\p{S}]|~)/u,uL=_t(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",YA?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ym=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fL=_t(ym,"u").replace(/punct/g,Ws).getRegex(),dL=_t(ym,"u").replace(/punct/g,mm).getRegex(),xm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pL=_t(xm,"gu").replace(/notPunctSpace/g,gm).replace(/punctSpace/g,Ic).replace(/punct/g,Ws).getRegex(),gL=_t(xm,"gu").replace(/notPunctSpace/g,hL).replace(/punctSpace/g,cL).replace(/punct/g,mm).getRegex(),mL=_t("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gm).replace(/punctSpace/g,Ic).replace(/punct/g,Ws).getRegex(),yL=_t(/\\(punct)/,"gu").replace(/punct/g,Ws).getRegex(),xL=_t(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bL=_t(Oc).replace("(?:-->|$)","-->").getRegex(),_L=_t("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),cs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,CL=_t(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",cs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bm=_t(/^!?\[(label)\]\[(ref)\]/).replace("label",cs).replace("ref",Dc).getRegex(),_m=_t(/^!?\[(ref)\](?:\[\])?/).replace("ref",Dc).getRegex(),wL=_t("reflink|nolink(?!\\()","g").replace("reflink",bm).replace("nolink",_m).getRegex(),Nu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Pc={_backpedal:yn,anyPunctuation:yL,autolink:xL,blockSkip:uL,br:pm,code:sL,del:yn,emStrongLDelim:fL,emStrongRDelimAst:pL,emStrongRDelimUnd:mL,escape:aL,link:CL,nolink:_m,punctuation:lL,reflink:bm,reflinkSearch:wL,tag:_L,text:oL,url:yn},kL={...Pc,link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",cs).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",cs).getRegex()},wl={...Pc,emStrongRDelimAst:gL,emStrongLDelim:dL,url:_t(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Nu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_t(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Nu).getRegex()},vL={...wl,br:_t(pm).replace("{2,}","*").getRegex(),text:_t(wl.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ia={normal:Rc,gfm:iL,pedantic:nL},Ki={normal:Pc,gfm:wl,breaks:vL,pedantic:kL},SL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zu=e=>SL[e];function Re(e,t){if(t){if(ae.escapeTest.test(e))return e.replace(ae.escapeReplace,zu)}else if(ae.escapeTestNoEncode.test(e))return e.replace(ae.escapeReplaceNoEncode,zu);return e}function Wu(e){try{e=encodeURI(e).replace(ae.percentDecode,"%")}catch{return null}return e}function qu(e,t){var a;let r=e.replace(ae.findPipe,(o,s,c)=>{let l=!1,h=s;for(;--h>=0&&c[h]==="\\";)l=!l;return l?"|":" |"}),i=r.split(ae.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(ae.slashPipe,"|");return i}function Qi(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i;){let a=e.charAt(i-n-1);if(a===t&&!r)n++;else if(a!==t&&r)n++;else break}return e.slice(0,i-n)}function TL(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function Hu(e,t,r,i,n){let a=t.href,o=t.title||null,s=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,c}function ML(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
119
- `).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[s]=o;return s.length>=n.length?a.slice(n.length):a}).join(`
120
- `)}var hs=class{constructor(t){vt(this,"options");vt(this,"rules");vt(this,"lexer");this.options=t||Vr}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Qi(i,`
121
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=ML(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=Qi(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Qi(r[0],`
122
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Qi(r[0],`
123
- `).split(`
124
- `),n="",a="",o=[];for(;i.length>0;){let s=!1,c=[],l;for(l=0;l<i.length;l++)if(this.rules.other.blockquoteStart.test(i[l]))c.push(i[l]),s=!0;else if(!s)c.push(i[l]);else break;i=i.slice(l);let h=c.join(`
125
- `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
126
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
127
- ${h}`:h,a=a?`${a}
128
- ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=f,i.length===0)break;let d=o.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let p=d,m=p.raw+`
129
- `+i.join(`
130
- `),y=this.blockquote(m);o[o.length-1]=y,n=n.substring(0,n.length-p.raw.length)+y.raw,a=a.substring(0,a.length-p.text.length)+y.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,m=p.raw+`
131
- `+i.join(`
132
- `),y=this.list(m);o[o.length-1]=y,n=n.substring(0,n.length-d.raw.length)+y.raw,a=a.substring(0,a.length-p.raw.length)+y.raw,i=m.substring(o.at(-1).raw.length).split(`
133
- `);continue}}return{type:"blockquote",raw:n,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),s=!1;for(;t;){let l=!1,h="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let f=r[2].split(`
134
- `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),d=t.split(`
135
- `,1)[0],p=!f.trim(),m=0;if(this.options.pedantic?(m=2,u=f.trimStart()):p?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=f.slice(m),m+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(h+=d+`
136
- `,t=t.substring(d.length+1),l=!0),!l){let b=this.rules.other.nextBulletRegex(m),C=this.rules.other.hrRegex(m),k=this.rules.other.fencesBeginRegex(m),w=this.rules.other.headingBeginRegex(m),_=this.rules.other.htmlBeginRegex(m);for(;t;){let v=t.split(`
137
- `,1)[0],D;if(d=v,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),D=d):D=d.replace(this.rules.other.tabCharGlobal," "),k.test(d)||w.test(d)||_.test(d)||b.test(d)||C.test(d))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!d.trim())u+=`
138
- `+D.slice(m);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||w.test(f)||C.test(f))break;u+=`
139
- `+d}!p&&!d.trim()&&(p=!0),h+=v+`
140
- `,t=t.substring(v.length+1),f=D.slice(m)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let y=null,x;this.options.gfm&&(y=this.rules.other.listIsTask.exec(u),y&&(x=y[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:x,loose:!1,text:u,tokens:[]}),a.raw+=h}let c=a.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){let h=a.items[l].tokens.filter(f=>f.type==="space"),u=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=u}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){var s;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=qu(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(s=r[3])!=null&&s.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
141
- `):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?o.align.push("right"):this.rules.other.tableAlignCenter.test(c)?o.align.push("center"):this.rules.other.tableAlignLeft.test(c)?o.align.push("left"):o.align.push(null);for(let c=0;c<i.length;c++)o.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:o.align[c]});for(let c of a)o.rows.push(qu(c,o.header.length).map((l,h)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[h]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
142
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=Qi(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=TL(r[2],"()");if(o===-2)return;if(o>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),Hu(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Hu(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,o,s,c=a,l=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(n=h.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=[...o].length,n[3]||n[4]){c+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){l+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c+l);let u=[...n[0]][0].length,f=t.slice(0,a+n.index+u+s);if(Math.min(a,s)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},ke=class kl{constructor(t){vt(this,"tokens");vt(this,"options");vt(this,"state");vt(this,"tokenizer");vt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Vr,this.options.tokenizer=this.options.tokenizer||new hs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ae,block:ia.normal,inline:Ki.normal};this.options.pedantic?(r.block=ia.pedantic,r.inline=Ki.pedantic):this.options.gfm&&(r.block=ia.gfm,this.options.breaks?r.inline=Ki.breaks:r.inline=Ki.gfm),this.tokenizer.rules=r}static get rules(){return{block:ia,inline:Ki}}static lex(t,r){return new kl(r).lex(t)}static lexInline(t,r){return new kl(r).inlineTokens(t)}lex(t){t=t.replace(ae.carriageReturn,`
143
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,a,o;for(this.options.pedantic&&(t=t.replace(ae.tabCharGlobal," ").replace(ae.spaceLine,""));t;){let s;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(l=>(s=l.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let l=r.at(-1);s.raw.length===1&&l!==void 0?l.raw+=`
144
- `:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
145
- `)?"":`
146
- `)+s.raw,l.text+=`
147
- `+s.text,this.inlineQueue.at(-1).src=l.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
148
- `)?"":`
149
- `)+s.raw,l.text+=`
150
- `+s.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let c=t;if((o=this.options.extensions)!=null&&o.startBlock){let l=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(c=t.substring(0,l+1))}if(this.state.top&&(s=this.tokenizer.paragraph(c))){let l=r.at(-1);i&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=(l.raw.endsWith(`
151
- `)?"":`
152
- `)+s.raw,l.text+=`
153
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(s),i=c.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
154
- `)?"":`
155
- `)+s.raw,l.text+=`
156
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(s);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,l,h,u,f;let i=t,n=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((l=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:l.call({lexer:this},i))??i;let o=!1,s="";for(;t;){o||(s=""),o=!1;let d;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(m=>(d=m.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let m=r.at(-1);d.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,s)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let p=t;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0,y=t.slice(1),x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},y),typeof x=="number"&&x>=0&&(m=Math.min(m,x))}),m<1/0&&m>=0&&(p=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(s=d.raw.slice(-1)),o=!0;let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return r}},us=class{constructor(t){vt(this,"options");vt(this,"parser");this.options=t||Vr}space(t){return""}code({text:t,lang:r,escaped:i}){var o;let n=(o=(r||"").match(ae.notSpaceStart))==null?void 0:o[0],a=t.replace(ae.endingNewline,"")+`
157
- `;return n?'<pre><code class="language-'+Re(n)+'">'+(i?a:Re(a,!0))+`</code></pre>
158
- `:"<pre><code>"+(i?a:Re(a,!0))+`</code></pre>
159
- `}blockquote({tokens:t}){return`<blockquote>
160
- ${this.parser.parse(t)}</blockquote>
161
- `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
162
- `}hr(t){return`<hr>
163
- `}list(t){let r=t.ordered,i=t.start,n="";for(let s=0;s<t.items.length;s++){let c=t.items[s];n+=this.listitem(c)}let a=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+a+o+`>
164
- `+n+"</"+a+`>
165
- `}listitem(t){var i;let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+Re(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
166
- `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
167
- `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let o=t.rows[a];i="";for(let s=0;s<o.length;s++)i+=this.tablecell(o[s]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
168
- <thead>
169
- `+r+`</thead>
170
- `+n+`</table>
171
- `}tablerow({text:t}){return`<tr>
172
- ${t}</tr>
173
- `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
174
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Re(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=Wu(t);if(a===null)return n;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+Re(r)+'"'),o+=">"+n+"</a>",o}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=Wu(t);if(a===null)return Re(i);t=a;let o=`<img src="${t}" alt="${i}"`;return r&&(o+=` title="${Re(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Re(t.text)}},Nc=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ve=class vl{constructor(t){vt(this,"options");vt(this,"renderer");vt(this,"textRenderer");this.options=t||Vr,this.options.renderer=this.options.renderer||new us,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Nc}static parse(t,r){return new vl(r).parse(t)}static parseInline(t,r){return new vl(r).parseInline(t)}parse(t,r=!0){var n,a;let i="";for(let o=0;o<t.length;o++){let s=t[o];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let l=s,h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=h||"";continue}}let c=s;switch(c.type){case"space":{i+=this.renderer.space(c);continue}case"hr":{i+=this.renderer.hr(c);continue}case"heading":{i+=this.renderer.heading(c);continue}case"code":{i+=this.renderer.code(c);continue}case"table":{i+=this.renderer.table(c);continue}case"blockquote":{i+=this.renderer.blockquote(c);continue}case"list":{i+=this.renderer.list(c);continue}case"html":{i+=this.renderer.html(c);continue}case"def":{i+=this.renderer.def(c);continue}case"paragraph":{i+=this.renderer.paragraph(c);continue}case"text":{let l=c,h=this.renderer.text(l);for(;o+1<t.length&&t[o+1].type==="text";)l=t[++o],h+=`
175
- `+this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,r=this.renderer){var n,a;let i="";for(let o=0;o<t.length;o++){let s=t[o];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}let c=s;switch(c.type){case"escape":{i+=r.text(c);break}case"html":{i+=r.html(c);break}case"link":{i+=r.link(c);break}case"image":{i+=r.image(c);break}case"strong":{i+=r.strong(c);break}case"em":{i+=r.em(c);break}case"codespan":{i+=r.codespan(c);break}case"br":{i+=r.br(c);break}case"del":{i+=r.del(c);break}case"text":{i+=r.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},ca,on=(ca=class{constructor(t){vt(this,"options");vt(this,"block");this.options=t||Vr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ke.lex:ke.lexInline}provideParser(){return this.block?ve.parse:ve.parseInline}},vt(ca,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),vt(ca,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ca),AL=class{constructor(...t){vt(this,"defaults",Ec());vt(this,"options",this.setOptions);vt(this,"parse",this.parseMarkdown(!0));vt(this,"parseInline",this.parseMarkdown(!1));vt(this,"Parser",ve);vt(this,"Renderer",us);vt(this,"TextRenderer",Nc);vt(this,"Lexer",ke);vt(this,"Tokenizer",hs);vt(this,"Hooks",on);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let s=o;for(let c of s.header)i=i.concat(this.walkTokens(c.tokens,r));for(let c of s.rows)for(let l of c)i=i.concat(this.walkTokens(l.tokens,r));break}case"list":{let s=o;i=i.concat(this.walkTokens(s.items,r));break}default:{let s=o;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[s.type]?this.defaults.extensions.childTokens[s.type].forEach(c=>{let l=s[c].flat(1/0);i=i.concat(this.walkTokens(l,r))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...s){let c=a.renderer.apply(this,s);return c===!1&&(c=o.apply(this,s)),c}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new us(this.defaults);for(let o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,c=i.renderer[s],l=a[s];a[s]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new hs(this.defaults);for(let o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,c=i.tokenizer[s],l=a[s];a[s]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new on;for(let o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,c=i.hooks[s],l=a[s];on.passThroughHooks.has(o)?a[s]=h=>{if(this.defaults.async&&on.passThroughHooksRespectAsync.has(o))return(async()=>{let f=await c.call(a,h);return l.call(a,f)})();let u=c.call(a,h);return l.call(a,u)}:a[s]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await c.apply(a,h);return f===!1&&(f=await l.apply(a,h)),f})();let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(s){let c=[];return c.push(o.call(this,s)),a&&(c=c.concat(a.call(this,s))),c}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return ke.lex(t,r??this.defaults)}parser(t,r){return ve.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(r):r,c=await(a.hooks?await a.hooks.provideLexer():t?ke.lex:ke.lexInline)(s,a),l=a.hooks?await a.hooks.processAllTokens(c):c;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?ve.parse:ve.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let s=(a.hooks?a.hooks.provideLexer():t?ke.lex:ke.lexInline)(r,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let c=(a.hooks?a.hooks.provideParser():t?ve.parse:ve.parseInline)(s,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(s){return o(s)}}}onError(t,r){return i=>{if(i.message+=`
176
- Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Re(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},Nr=new AL;function wt(e,t){return Nr.parse(e,t)}wt.options=wt.setOptions=function(e){return Nr.setOptions(e),wt.defaults=Nr.defaults,hm(wt.defaults),wt};wt.getDefaults=Ec;wt.defaults=Vr;wt.use=function(...e){return Nr.use(...e),wt.defaults=Nr.defaults,hm(wt.defaults),wt};wt.walkTokens=function(e,t){return Nr.walkTokens(e,t)};wt.parseInline=Nr.parseInline;wt.Parser=ve;wt.parser=ve.parse;wt.Renderer=us;wt.TextRenderer=Nc;wt.Lexer=ke;wt.lexer=ke.lex;wt.Tokenizer=hs;wt.Hooks=on;wt.parse=wt;wt.options;wt.setOptions;wt.use;wt.walkTokens;wt.parseInline;ve.parse;ke.lex;function Cm(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(s,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(h){var u,f;return(f=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):s},[]);if(n.length){var a=new RegExp(`
177
- [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(s){return s.replace(a,`
178
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(s,c){var l=o.match(/(?:^|\n)( *)$/),h=l?l[1]:"",u=s;typeof s=="string"&&s.includes(`
179
- `)&&(u=String(s).split(`
180
- `).map(function(f,d){return d===0?f:""+h+f}).join(`
181
- `)),o+=u+i[c+1]}),o}var LL={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Sl=new Map,wm=new Map,BL=g(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(R.debug("Registering icon pack:",t.name),"loader"in t)wm.set(t.name,t.loader);else if("icons"in t)Sl.set(t.name,t.icons);else throw R.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),km=g(async(e,t)=>{const r=EA(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=Sl.get(i);if(!n){const o=wm.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},Sl.set(i,n)}catch(s){throw R.error(s),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=DA(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),EL=g(async e=>{try{return await km(e),!0}catch{return!1}},"isIconAvailable"),zn=g(async(e,t,r)=>{let i;try{i=await km(e,t==null?void 0:t.fallbackPrefix)}catch(o){R.error(o),i=LL}const n=WA(i,t),a=jA(UA(n.body),{...n.attributes,...r});return xe(a,Qt())},"getIconSVG");function vm(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
182
- `).replace(/\n{2,}/g,`
183
- `),n=Cm(i);return t===!1?n.replace(/ /g,"&nbsp;"):n}g(vm,"preprocessMarkdown");function Sm(e,t={}){const r=vm(e,t),i=wt.lexer(r),n=[[]];let a=0;function o(s,c="normal"){s.type==="text"?s.text.split(`
184
- `).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&n[a].push({content:f,type:c})})}):s.type==="strong"||s.type==="em"?s.tokens.forEach(l=>{o(l,s.type)}):s.type==="html"&&n[a].push({content:s.text,type:"normal"})}return g(o,"processNode"),i.forEach(s=>{var c;s.type==="paragraph"?(c=s.tokens)==null||c.forEach(l=>{o(l)}):s.type==="html"?n[a].push({content:s.text,type:"normal"}):n[a].push({content:s.raw,type:"normal"})}),n}g(Sm,"markdownToLines");function Tm(e,{markdownAutoWrap:t}={}){const r=wt.lexer(e);function i(n){var a,o,s;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(s=n.tokens)==null?void 0:s.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(R.warn(`Unsupported markdown: ${n.type}`),n.raw)}return g(i,"output"),r.map(i).join("")}g(Tm,"markdownToHTML");function Mm(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}g(Mm,"splitTextToChars");function Am(e,t){const r=Mm(t.content);return zc(e,[],r,t.type)}g(Am,"splitWordToFitWidth");function zc(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?zc(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}g(zc,"splitWordToFitWidthRecursion");function Lm(e,t){if(e.some(({content:r})=>r.includes(`
185
- `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return fs(e,t)}g(Lm,"splitLineToFitWidth");function fs(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(a),t(o))return fs(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[s,c]=Am(t,a);r.push([s]),c.content&&e.unshift(c)}return fs(e,t,r)}g(fs,"splitLineToFitWidthRecursion");function Tl(e,t){t&&e.attr("style",t)}g(Tl,"applyStyle");async function Bm(e,t,r,i,n=!1,a=Qt()){const o=e.append("foreignObject");o.attr("width",`${10*r}px`),o.attr("height",`${10*r}px`);const s=o.append("xhtml:div"),c=Ti(t.label)?await sc(t.label.replace(Ei.lineBreakRegex,`
186
- `),a):xe(t.label,a),l=t.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(c),Tl(h,t.labelStyle),h.attr("class",`${l} ${i}`),Tl(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),o.node()}g(Bm,"addHtmlSpan");function qs(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}g(qs,"createTspan");function Em(e,t,r){const i=e.append("text"),n=qs(i,1,t);Hs(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}g(Em,"computeWidthOfText");function $L(e,t,r){var o;const i=e.append("text"),n=qs(i,1,t);Hs(n,[{content:r,type:"normal"}]);const a=(o=n.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}g($L,"computeDimensionOfText");function $m(e,t,r,i=!1){const a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");let c=0;for(const l of r){const h=g(f=>Em(a,1.1,f)<=e,"checkWidth"),u=h(l)?[l]:Lm(l,h);for(const f of u){const d=qs(s,c,1.1);Hs(d,f),c++}}if(i){const l=s.node().getBBox(),h=2;return o.attr("x",l.x-h).attr("y",l.y-h).attr("width",l.width+2*h).attr("height",l.height+2*h),a.node()}else return s.node()}g($m,"createFormattedText");function Hs(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(r.content):n.text(" "+r.content)})}g(Hs,"updateTextContentAndStyles");async function Fm(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,o)=>(r.push((async()=>{const s=`${a}:${o}`;return await EL(s)?await zn(s,void 0,{class:"label-icon"}):`<i class='${xe(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}g(Fm,"replaceIconSubstring");var mr=g(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:c=!1}={},l)=>{if(R.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",c),a){const h=Tm(t,l),u=await Fm(Gr(h),l),f=t.replace(/\\\\/g,"\\"),d={isNode:o,label:Ti(t)?f:u,labelStyle:r.replace("fill:","color:")};return await Bm(e,d,s,n,c,l)}else{const h=t.replace(/<br\s*\/?>/g,"<br/>"),u=Sm(h.replace("<br>","<br/>"),l),f=$m(s,e,u,t?c:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");yt(f).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");yt(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");yt(f).select("text").attr("style",p)}return f}},"createText");function Lo(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const c of e){const[l,h]=c;c[0]=(l-i)*o-(h-n)*s+i,c[1]=(l-i)*s+(h-n)*o+n}}}function FL(e,t){return e[0]===t[0]&&e[1]===t[1]}function DL(e,t,r,i=1){const n=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,s=[0,0];if(n)for(const l of o)Lo(l,s,n);const c=(function(l,h,u){const f=[];for(const b of l){const C=[...b];FL(C[0],C[C.length-1])||C.push([C[0][0],C[0][1]]),C.length>2&&f.push(C)}const d=[];h=Math.max(h,.1);const p=[];for(const b of f)for(let C=0;C<b.length-1;C++){const k=b[C],w=b[C+1];if(k[1]!==w[1]){const _=Math.min(k[1],w[1]);p.push({ymin:_,ymax:Math.max(k[1],w[1]),x:_===k[1]?k[0]:w[0],islope:(w[0]-k[0])/(w[1]-k[1])})}}if(p.sort(((b,C)=>b.ymin<C.ymin?-1:b.ymin>C.ymin?1:b.x<C.x?-1:b.x>C.x?1:b.ymax===C.ymax?0:(b.ymax-C.ymax)/Math.abs(b.ymax-C.ymax))),!p.length)return d;let m=[],y=p[0].ymin,x=0;for(;m.length||p.length;){if(p.length){let b=-1;for(let C=0;C<p.length&&!(p[C].ymin>y);C++)b=C;p.splice(0,b+1).forEach((C=>{m.push({s:y,edge:C})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,C)=>b.edge.x===C.edge.x?0:(b.edge.x-C.edge.x)/Math.abs(b.edge.x-C.edge.x))),(u!==1||x%h==0)&&m.length>1)for(let b=0;b<m.length;b+=2){const C=b+1;if(C>=m.length)break;const k=m[b].edge,w=m[C].edge;d.push([[Math.round(k.x),y],[Math.round(w.x),y]])}y+=u,m.forEach((b=>{b.edge.x=b.edge.x+u*b.edge.islope})),x++}return d})(o,a,i);if(n){for(const l of o)Lo(l,s,-n);(function(l,h,u){const f=[];l.forEach((d=>f.push(...d))),Lo(f,h,u)})(c,s,-n)}return c}function Wn(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),DL(e,n,i,a||1)}class Wc{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Wn(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function Us(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class OL extends Wc{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Wn(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,o=[],s=.5*i*Math.cos(a),c=.5*i*Math.sin(a);for(const[l,h]of n)Us([l,h])&&o.push([[l[0]-s,l[1]+c],[...h]],[[l[0]+s,l[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class RL extends Wc{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class IL{constructor(t){this.helper=t}fillPolygons(t,r){const i=Wn(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=n/4;for(const s of t){const c=Us(s),l=c/n,h=Math.ceil(l)-1,u=c-h*n,f=(s[0][0]+s[1][0])/2-n/4,d=Math.min(s[0][1],s[1][1]);for(let p=0;p<h;p++){const m=d+u+p*n,y=f-o+2*Math.random()*o,x=m-o+2*Math.random()*o,b=this.helper.ellipse(y,x,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class PL{constructor(t){this.helper=t}fillPolygons(t,r){const i=Wn(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach((o=>{const s=Us(o),c=Math.floor(s/(i+n)),l=(s+n-c*(i+n))/2;let h=o[0],u=o[1];h[0]>u[0]&&(h=o[1],u=o[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let d=0;d<c;d++){const p=d*(i+n),m=p+i,y=[h[0]+p*Math.cos(f)+l*Math.cos(f),h[1]+p*Math.sin(f)+l*Math.sin(f)],x=[h[0]+m*Math.cos(f)+l*Math.cos(f),h[1]+m*Math.sin(f)+l*Math.sin(f)];a.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r))}})),a}}class NL{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=Wn(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((a=>{const o=Us(a),s=Math.round(o/(2*r));let c=a[0],l=a[1];c[0]>l[0]&&(c=a[1],l=a[0]);const h=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let u=0;u<s;u++){const f=2*u*r,d=2*(u+1)*r,p=Math.sqrt(2*Math.pow(r,2)),m=[c[0]+f*Math.cos(h),c[1]+f*Math.sin(h)],y=[c[0]+d*Math.cos(h),c[1]+d*Math.sin(h)],x=[m[0]+p*Math.cos(h+Math.PI/4),m[1]+p*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],i))}})),n}}const ce={};class zL{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const WL=0,Bo=1,Uu=2,na={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Eo(e,t){return e.type===t}function qc(e){const t=[],r=(function(o){const s=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))s[s.length]={type:WL,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];s[s.length]={type:Bo,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:Uu,text:""},s})(e);let i="BOD",n=0,a=r[n];for(;!Eo(a,Uu);){let o=0;const s=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return qc("M0,0"+e);n++,o=na[a.text],i=a.text}else Eo(a,Bo)?o=na[i]:(n++,o=na[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let c=n;c<n+o;c++){const l=r[c];if(!Eo(l,Bo))throw new Error("Param not a number: "+i+","+l.text);s[s.length]=+l.text}if(typeof na[i]!="number")throw new Error("Bad segment: "+i);{const c={key:i,data:s};t.push(c),n+=o,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Dm(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,r]=s,[i,n]=s;break;case"m":t+=s[0],r+=s[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...s]}),[t,r]=s;break;case"l":t+=s[0],r+=s[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],r=s[5];break;case"c":{const c=s.map(((l,h)=>h%2?l+r:l+t));a.push({key:"C",data:c}),t=c[4],r=c[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],r=s[3];break;case"q":{const c=s.map(((l,h)=>h%2?l+r:l+t));a.push({key:"Q",data:c}),t=c[2],r=c[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],r=s[6];break;case"a":t+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,r]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],r=s[3];break;case"s":{const c=s.map(((l,h)=>h%2?l+r:l+t));a.push({key:"S",data:c}),t=c[2],r=c[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],r=s[1];break;case"t":t+=s[0],r+=s[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function Om(e){const t=[];let r="",i=0,n=0,a=0,o=0,s=0,c=0;for(const{key:l,data:h}of e){switch(l){case"M":t.push({key:"M",data:[...h]}),[i,n]=h,[a,o]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],n=h[5],s=h[2],c=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,n]});break;case"V":n=h[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-s),f=n+(n-c)):(u=i,f=n),t.push({key:"C",data:[u,f,...h]}),s=h[0],c=h[1],i=h[2],n=h[3];break}case"T":{const[u,f]=h;let d=0,p=0;r==="Q"||r==="T"?(d=i+(i-s),p=n+(n-c)):(d=i,p=n);const m=i+2*(d-i)/3,y=n+2*(p-n)/3,x=u+2*(d-u)/3,b=f+2*(p-f)/3;t.push({key:"C",data:[m,y,x,b,u,f]}),s=d,c=p,i=u,n=f;break}case"Q":{const[u,f,d,p]=h,m=i+2*(u-i)/3,y=n+2*(f-n)/3,x=d+2*(u-d)/3,b=p+2*(f-p)/3;t.push({key:"C",data:[m,y,x,b,d,p]}),s=u,c=f,i=d,n=p;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),d=h[2],p=h[3],m=h[4],y=h[5],x=h[6];u===0||f===0?(t.push({key:"C",data:[i,n,y,x,y,x]}),i=y,n=x):(i!==y||n!==x)&&(Rm(i,n,y,x,u,f,d,p,m).forEach((function(b){t.push({key:"C",data:b})})),i=y,n=x);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=l}return t}function Ji(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Rm(e,t,r,i,n,a,o,s,c,l){const h=(u=o,Math.PI*u/180);var u;let f=[],d=0,p=0,m=0,y=0;if(l)[d,p,m,y]=l;else{[e,t]=Ji(e,t,-h),[r,i]=Ji(r,i,-h);const E=(e-r)/2,M=(t-i)/2;let B=E*E/(n*n)+M*M/(a*a);B>1&&(B=Math.sqrt(B),n*=B,a*=B);const L=n*n,F=a*a,$=L*F-L*M*M-F*E*E,q=L*M*M+F*E*E,Y=(s===c?-1:1)*Math.sqrt(Math.abs($/q));m=Y*n*M/a+(e+r)/2,y=Y*-a*E/n+(t+i)/2,d=Math.asin(parseFloat(((t-y)/a).toFixed(9))),p=Math.asin(parseFloat(((i-y)/a).toFixed(9))),e<m&&(d=Math.PI-d),r<m&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),c&&d>p&&(d-=2*Math.PI),!c&&p>d&&(p-=2*Math.PI)}let x=p-d;if(Math.abs(x)>120*Math.PI/180){const E=p,M=r,B=i;p=c&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=Rm(r=m+n*Math.cos(p),i=y+a*Math.sin(p),M,B,n,a,o,0,c,[p,E,m,y])}x=p-d;const b=Math.cos(d),C=Math.sin(d),k=Math.cos(p),w=Math.sin(p),_=Math.tan(x/4),v=4/3*n*_,D=4/3*a*_,I=[e,t],O=[e+v*C,t-D*b],T=[r+v*w,i-D*k],P=[r,i];if(O[0]=2*I[0]-O[0],O[1]=2*I[1]-O[1],l)return[O,T,P].concat(f);{f=[O,T,P].concat(f);const E=[];for(let M=0;M<f.length;M+=3){const B=Ji(f[M][0],f[M][1],h),L=Ji(f[M+1][0],f[M+1][1],h),F=Ji(f[M+2][0],f[M+2][1],h);E.push([B[0],B[1],L[0],L[1],F[0],F[1]])}return E}}const qL={randOffset:function(e,t){return lt(e,t)},randOffsetWithRange:function(e,t,r){return ds(e,t,r)},ellipse:function(e,t,r,i,n){const a=Pm(r,i,n);return Ml(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return dr(e,t,r,i,n,!0)}};function Im(e,t,r,i,n){return{type:"path",ops:dr(e,t,r,i,n)}}function wa(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...dr(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...dr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?Im(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function HL(e,t,r,i,n){return(function(a,o){return wa(a,!0,o)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function ju(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=aa(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:aa(r[0],1.5*(1+.22*t.roughness),Vu(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const s=aa(o,1*(1+.2*t.roughness),t),c=t.disableMultiStroke?[]:aa(o,1.5*(1+.22*t.roughness),Vu(t));for(const l of s)l.op!=="move"&&i.push(l);for(const l of c)l.op!=="move"&&n.push(l)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function Pm(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let o=Math.abs(e/2),s=Math.abs(t/2);const c=1-r.curveFitting;return o+=lt(o*c,r),s+=lt(s*c,r),{increment:a,rx:o,ry:s}}function Ml(e,t,r,i){const[n,a]=Xu(i.increment,e,t,i.rx,i.ry,1,i.increment*ds(.1,ds(.4,1,r),r),r);let o=ps(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[s]=Xu(i.increment,e,t,i.rx,i.ry,1.5,0,r),c=ps(s,null,r);o=o.concat(c)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function Yu(e,t,r,i,n,a,o,s,c){const l=e,h=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=lt(.01*u,c),f+=lt(.01*f,c);let d=n,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const m=2*Math.PI/c.curveStepCount,y=Math.min(m/2,(p-d)/2),x=Zu(y,l,h,u,f,d,p,1,c);if(!c.disableMultiStroke){const b=Zu(y,l,h,u,f,d,p,1.5,c);x.push(...b)}return o&&(s?x.push(...dr(l,h,l+u*Math.cos(d),h+f*Math.sin(d),c),...dr(l,h,l+u*Math.cos(p),h+f*Math.sin(p),c)):x.push({op:"lineTo",data:[l,h]},{op:"lineTo",data:[l+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:x}}function Gu(e,t){const r=Om(Dm(qc(e))),i=[];let n=[0,0],a=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":a=[s[0],s[1]],n=[s[0],s[1]];break;case"L":i.push(...dr(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{const[c,l,h,u,f,d]=s;i.push(...UL(c,l,h,u,f,d,a,t)),a=[f,d];break}case"Z":i.push(...dr(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function $o(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+lt(n,t),i[0][1]+lt(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+lt(n,t),i[o][1]+lt(n,t)]})}}return{type:"fillPath",ops:r}}function ti(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!ce[n])switch(n){case"zigzag":ce[n]||(ce[n]=new OL(i));break;case"cross-hatch":ce[n]||(ce[n]=new RL(i));break;case"dots":ce[n]||(ce[n]=new IL(i));break;case"dashed":ce[n]||(ce[n]=new PL(i));break;case"zigzag-line":ce[n]||(ce[n]=new NL(i));break;default:n="hachure",ce[n]||(ce[n]=new Wc(i))}return ce[n]})(t,qL).fillPolygons(e,t)}function Vu(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Nm(e){return e.randomizer||(e.randomizer=new zL(e.seed||0)),e.randomizer.next()}function ds(e,t,r,i=1){return r.roughness*i*(Nm(r)*(t-e)+e)}function lt(e,t,r=1){return ds(-e,e,t,r)}function dr(e,t,r,i,n,a=!1){const o=a?n.disableMultiStrokeFill:n.disableMultiStroke,s=Al(e,t,r,i,n,!0,!1);if(o)return s;const c=Al(e,t,r,i,n,!0,!0);return s.concat(c)}function Al(e,t,r,i,n,a,o){const s=Math.pow(e-r,2)+Math.pow(t-i,2),c=Math.sqrt(s);let l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>s&&(h=c/10);const u=h/2,f=.2+.2*Nm(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,p=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=lt(d,n,l),p=lt(p,n,l);const m=[],y=()=>lt(u,n,l),x=()=>lt(h,n,l),b=n.preserveVertices;return o?m.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):m.push({op:"move",data:[e+(b?0:lt(h,n,l)),t+(b?0:lt(h,n,l))]}),o?m.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),p+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),p+t+2*(i-t)*f+y(),r+(b?0:y()),i+(b?0:y())]}):m.push({op:"bcurveTo",data:[d+e+(r-e)*f+x(),p+t+(i-t)*f+x(),d+e+2*(r-e)*f+x(),p+t+2*(i-t)*f+x(),r+(b?0:x()),i+(b?0:x())]}),m}function aa(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+lt(t,r),e[0][1]+lt(t,r)]),i.push([e[0][0]+lt(t,r),e[0][1]+lt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+lt(t,r),e[n][1]+lt(t,r)]),n===e.length-1&&i.push([e[n][0]+lt(t,r),e[n][1]+lt(t,r)]);return ps(i,null,r)}function ps(e,t,r){const i=e.length,n=[];if(i>3){const a=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let s=1;s+2<i;s++){const c=e[s];a[0]=[c[0],c[1]],a[1]=[c[0]+(o*e[s+1][0]-o*e[s-1][0])/6,c[1]+(o*e[s+1][1]-o*e[s-1][1])/6],a[2]=[e[s+1][0]+(o*e[s][0]-o*e[s+2][0])/6,e[s+1][1]+(o*e[s][1]-o*e[s+2][1])/6],a[3]=[e[s+1][0],e[s+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...Al(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function Xu(e,t,r,i,n,a,o,s){const c=[],l=[];if(s.roughness===0){e/=4,l.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+n*Math.sin(h)];c.push(u),l.push(u)}l.push([t+i*Math.cos(0),r+n*Math.sin(0)]),l.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const h=lt(.5,s)-Math.PI/2;l.push([lt(a,s)+t+.9*i*Math.cos(h-e),lt(a,s)+r+.9*n*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=e){const d=[lt(a,s)+t+i*Math.cos(f),lt(a,s)+r+n*Math.sin(f)];c.push(d),l.push(d)}l.push([lt(a,s)+t+i*Math.cos(h+2*Math.PI+.5*o),lt(a,s)+r+n*Math.sin(h+2*Math.PI+.5*o)]),l.push([lt(a,s)+t+.98*i*Math.cos(h+o),lt(a,s)+r+.98*n*Math.sin(h+o)]),l.push([lt(a,s)+t+.9*i*Math.cos(h+.5*o),lt(a,s)+r+.9*n*Math.sin(h+.5*o)])}return[l,c]}function Zu(e,t,r,i,n,a,o,s,c){const l=a+lt(.1,c),h=[];h.push([lt(s,c)+t+.9*i*Math.cos(l-e),lt(s,c)+r+.9*n*Math.sin(l-e)]);for(let u=l;u<=o;u+=e)h.push([lt(s,c)+t+i*Math.cos(u),lt(s,c)+r+n*Math.sin(u)]);return h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),ps(h,null,c)}function UL(e,t,r,i,n,a,o,s){const c=[],l=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let h=[0,0];const u=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let d=0;d<u;d++)d===0?c.push({op:"move",data:[o[0],o[1]]}):c.push({op:"move",data:[o[0]+(f?0:lt(l[0],s)),o[1]+(f?0:lt(l[0],s))]}),h=f?[n,a]:[n+lt(l[d],s),a+lt(l[d],s)],c.push({op:"bcurveTo",data:[e+lt(l[d],s),t+lt(l[d],s),r+lt(l[d],s),i+lt(l[d],s),h[0],h[1]]});return c}function tn(e){return[...e]}function Ku(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(tn(e[0]),tn(e[1]),tn(e[2]),tn(e[2]));else{const n=[];n.push(e[0],e[0]);for(let s=1;s<e.length;s++)n.push(e[s]),s===e.length-1&&n.push(e[s]);const a=[],o=1-t;i.push(tn(n[0]));for(let s=1;s+2<n.length;s++){const c=n[s];a[0]=[c[0],c[1]],a[1]=[c[0]+(o*n[s+1][0]-o*n[s-1][0])/6,c[1]+(o*n[s+1][1]-o*n[s-1][1])/6],a[2]=[n[s+1][0]+(o*n[s][0]-o*n[s+2][0])/6,n[s+1][1]+(o*n[s][1]-o*n[s+2][1])/6],a[3]=[n[s+1][0],n[s+1][1]],i.push(a[1],a[2],a[3])}}return i}function ka(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function jL(e,t,r){const i=ka(t,r);if(i===0)return ka(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),ka(e,kr(t,r,n))}function kr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Ll(e,t,r,i){const n=i||[];if((function(s,c){const l=s[c+0],h=s[c+1],u=s[c+2],f=s[c+3];let d=3*h[0]-2*l[0]-f[0];d*=d;let p=3*h[1]-2*l[1]-f[1];p*=p;let m=3*u[0]-2*f[0]-l[0];m*=m;let y=3*u[1]-2*f[1]-l[1];return y*=y,d<m&&(d=m),p<y&&(p=y),d+p})(e,t)<r){const s=e[t+0];n.length?(a=n[n.length-1],o=s,Math.sqrt(ka(a,o))>1&&n.push(s)):n.push(s),n.push(e[t+3])}else{const c=e[t+0],l=e[t+1],h=e[t+2],u=e[t+3],f=kr(c,l,.5),d=kr(l,h,.5),p=kr(h,u,.5),m=kr(f,d,.5),y=kr(d,p,.5),x=kr(m,y,.5);Ll([c,f,m,x],0,r,n),Ll([x,y,p,u],0,r,n)}var a,o;return n}function YL(e,t){return gs(e,0,e.length,t)}function gs(e,t,r,i,n){const a=n||[],o=e[t],s=e[r-1];let c=0,l=1;for(let h=t+1;h<r-1;++h){const u=jL(e[h],o,s);u>c&&(c=u,l=h)}return Math.sqrt(c)>i?(gs(e,t,l+1,i,a),gs(e,l,r,i,a)):(a.length||a.push(o),a.push(s)),a}function Fo(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)Ll(e,3*a,t,i);return r&&r>0?gs(i,0,i.length,r):i}const fe="none";class ms{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const o=this._o(a);return this._d("line",[Im(t,r,i,n,o)],o)}rectangle(t,r,i,n,a){const o=this._o(a),s=[],c=HL(t,r,i,n,o);if(o.fill){const l=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?s.push($o([l],o)):s.push(ti([l],o))}return o.stroke!==fe&&s.push(c),this._d("rectangle",s,o)}ellipse(t,r,i,n,a){const o=this._o(a),s=[],c=Pm(i,n,o),l=Ml(t,r,o,c);if(o.fill)if(o.fillStyle==="solid"){const h=Ml(t,r,o,c).opset;h.type="fillPath",s.push(h)}else s.push(ti([l.estimatedPoints],o));return o.stroke!==fe&&s.push(l.opset),this._d("ellipse",s,o)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[wa(t,!1,i)],i)}arc(t,r,i,n,a,o,s=!1,c){const l=this._o(c),h=[],u=Yu(t,r,i,n,a,o,s,!0,l);if(s&&l.fill)if(l.fillStyle==="solid"){const f=Object.assign({},l);f.disableMultiStroke=!0;const d=Yu(t,r,i,n,a,o,!0,!1,f);d.type="fillPath",h.push(d)}else h.push((function(f,d,p,m,y,x,b){const C=f,k=d;let w=Math.abs(p/2),_=Math.abs(m/2);w+=lt(.01*w,b),_+=lt(.01*_,b);let v=y,D=x;for(;v<0;)v+=2*Math.PI,D+=2*Math.PI;D-v>2*Math.PI&&(v=0,D=2*Math.PI);const I=(D-v)/b.curveStepCount,O=[];for(let T=v;T<=D;T+=I)O.push([C+w*Math.cos(T),k+_*Math.sin(T)]);return O.push([C+w*Math.cos(D),k+_*Math.sin(D)]),O.push([C,k]),ti([O],b)})(t,r,i,n,a,o,l));return l.stroke!==fe&&h.push(u),this._d("arc",h,l)}curve(t,r){const i=this._o(r),n=[],a=ju(t,i);if(i.fill&&i.fill!==fe)if(i.fillStyle==="solid"){const o=ju(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],s=t;if(s.length){const c=typeof s[0][0]=="number"?[s]:s;for(const l of c)l.length<3?o.push(...l):l.length===3?o.push(...Fo(Ku([l[0],l[0],l[1],l[2]]),10,(1+i.roughness)/2)):o.push(...Fo(Ku(l),10,(1+i.roughness)/2))}o.length&&n.push(ti([o],i))}return i.stroke!==fe&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=wa(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push($o([t],i)):n.push(ti([t],i))),i.stroke!==fe&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==fe,o=i.stroke!==fe,s=!!(i.simplification&&i.simplification<1),c=(function(h,u,f){const d=Om(Dm(qc(h))),p=[];let m=[],y=[0,0],x=[];const b=()=>{x.length>=4&&m.push(...Fo(x,u)),x=[]},C=()=>{b(),m.length&&(p.push(m),m=[])};for(const{key:w,data:_}of d)switch(w){case"M":C(),y=[_[0],_[1]],m.push(y);break;case"L":b(),m.push([_[0],_[1]]);break;case"C":if(!x.length){const v=m.length?m[m.length-1]:y;x.push([v[0],v[1]])}x.push([_[0],_[1]]),x.push([_[2],_[3]]),x.push([_[4],_[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(C(),!f)return p;const k=[];for(const w of p){const _=YL(w,f);_.length&&k.push(_)}return k})(t,1,s?4-4*(i.simplification||1):(1+i.roughness)/2),l=Gu(t,i);if(a)if(i.fillStyle==="solid")if(c.length===1){const h=Gu(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push($o(c,i));else n.push(ti(c,i));return o&&(s?c.forEach((h=>{n.push(wa(h,!1,i))})):n.push(l)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map((o=>+o.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:fe};break;case"fillPath":o={d:this.opsToPath(a),stroke:fe,strokeWidth:0,fill:i.fill||fe};break;case"fillSketch":o=this.fillSketch(a,i)}o&&n.push(o)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||fe,strokeWidth:i,fill:fe}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class GL{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new ms(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const s=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,a,s),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof i=="number"&&i>=0?a.data.map((s=>+s.toFixed(i))):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o),o}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o),o}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o),o}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,o,s=!1,c){const l=this.gen.arc(t,r,i,n,a,o,s,c);return this.draw(l),l}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const sa="http://www.w3.org/2000/svg";class VL{constructor(t,r){this.svg=t,this.gen=new ms(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(sa,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of r){let c=null;switch(s.type){case"path":c=n.createElementNS(sa,"path"),c.setAttribute("d",this.opsToPath(s,o)),c.setAttribute("stroke",i.stroke),c.setAttribute("stroke-width",i.strokeWidth+""),c.setAttribute("fill","none"),i.strokeLineDash&&c.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&c.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":c=n.createElementNS(sa,"path"),c.setAttribute("d",this.opsToPath(s,o)),c.setAttribute("stroke","none"),c.setAttribute("stroke-width","0"),c.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||c.setAttribute("fill-rule","evenodd");break;case"fillSketch":c=this.fillSketch(n,s,i)}c&&a.appendChild(c)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(sa,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o)}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o)}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,o,s=!1,c){const l=this.gen.arc(t,r,i,n,a,o,s,c);return this.draw(l)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var X={canvas:(e,t)=>new GL(e,t),svg:(e,t)=>new VL(e,t),generator:e=>new ms(e),newSeed:()=>ms.newSeed()},at=g(async(e,t,r)=>{var u,f;let i;const n=t.useHtmlLabels||It((u=Ct())==null?void 0:u.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",te(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const c=await mr(o,xe(Gr(s),Ct()),{useHtmlLabels:n,width:t.width||((f=Ct().flowchart)==null?void 0:f.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let l=c.getBBox();const h=((t==null?void 0:t.padding)??0)/2;if(n){const d=c.children[0],p=yt(c),m=d.getElementsByTagName("img");if(m){const y=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(x=>new Promise(b=>{function C(){if(x.style.display="flex",x.style.flexDirection="column",y){const k=Ct().fontSize?Ct().fontSize:window.getComputedStyle(document.body).fontSize,w=5,[_=Yd.fontSize]=Ns(k),v=_*w+"px";x.style.minWidth=v,x.style.maxWidth=v}else x.style.width="100%";b(x)}g(C,"setupImage"),setTimeout(()=>{x.complete&&C()}),x.addEventListener("error",C),x.addEventListener("load",C)})))}l=d.getBoundingClientRect(),p.attr("width",l.width),p.attr("height",l.height)}return n?o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):o.attr("transform","translate(0, "+-l.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:l,halfPadding:h,label:o}},"labelHelper"),Do=g(async(e,t,r)=>{var c,l,h,u,f,d;const i=r.useHtmlLabels||It((l=(c=Ct())==null?void 0:c.flowchart)==null?void 0:l.htmlLabels),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await mr(n,xe(Gr(t),Ct()),{useHtmlLabels:i,width:r.width||((u=(h=Ct())==null?void 0:h.flowchart)==null?void 0:u.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=a.getBBox();const s=r.padding/2;if(It((d=(f=Ct())==null?void 0:f.flowchart)==null?void 0:d.htmlLabels)){const p=a.children[0],m=yt(a);o=p.getBoundingClientRect(),m.attr("width",o.width),m.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:s,label:n}},"insertLabel"),Q=g((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),nt=g((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function pt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}g(pt,"createPathFromPoints");function pr(e,t,r,i,n,a){const o=[],c=r-e,l=i-t,h=c/a,u=2*Math.PI/h,f=t+l/2;for(let d=0;d<=50;d++){const p=d/50,m=e+p*c,y=f+n*Math.sin(u*(m-e));o.push({x:m,y})}return o}g(pr,"generateFullSineWavePoints");function An(e,t,r,i,n,a){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}g(An,"generateCirclePoints");var XL=g((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(n)*s?(a<0&&(s=-s),c=a===0?0:s*n/a,l=s):(n<0&&(o=-o),c=o,l=n===0?0:o*a/n),{x:r+c,y:i+l}},"intersectRect"),Oi=XL;function zm(e,t){t&&e.attr("style",t)}g(zm,"applyStyle");async function Wm(e){const t=yt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=Ct();let n=e.label;e.label&&Ti(e.label)&&(n=await sc(e.label.replace(Ei.lineBreakRegex,`
187
- `),i));const o='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>";return r.html(xe(o,i)),zm(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}g(Wm,"addHtmlLabel");var ZL=g(async(e,t,r,i)=>{let n=e||"";if(typeof n=="object"&&(n=n[0]),It(Ct().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),R.info("vertexText"+n);const a={isNode:i,label:Gr(n).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await Wm(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof n=="string"?o=n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?o=n:o=[];for(const s of o){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=s.trim(),a.appendChild(c)}return a}},"createLabel"),Lr=ZL,yr=g((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),qm=g(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=Ct(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:c,borderStyles:l,backgroundStyles:h}=K(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=It(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),p=await mr(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0});let m=p.getBBox();if(It(r.flowchart.htmlLabels)){const v=p.children[0],D=yt(p);m=v.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,C=t.y-x/2;R.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const v=X.svg(u),D=Z(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),I=v.path(yr(b,C,y,x,0),D);k=u.insert(()=>(R.debug("Rough node insert CXC",I),I),":first-child"),k.select("path:nth-child(2)").attr("style",l.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",c).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",C).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:w}=bc(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+w})`),s){const v=d.select("span");v&&v.attr("style",s)}const _=k.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=m.height-t.padding/2,t.intersect=function(v){return Oi(t,v)},{cluster:u,labelBBox:m}},"rect"),KL=g((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(s){return Oi(t,s)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),QL=g(async(e,t)=>{const r=Ct(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:c}=i,l=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),h=l.insert("g",":first-child"),u=l.insert("g").attr("class","cluster-label");let f=l.append("rect");const d=u.node().appendChild(await Lr(t.label,t.labelStyle,void 0,!0));let p=d.getBBox();if(It(r.flowchart.htmlLabels)){const I=d.children[0],O=yt(d);p=I.getBoundingClientRect(),O.attr("width",p.width),O.attr("height",p.height)}const m=0*t.padding,y=m/2,x=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+m;t.width<=p.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+m,C=t.height+m-p.height-6,k=t.x-x/2,w=t.y-b/2;t.width=x;const _=t.y-t.height/2-y+p.height+2;let v;if(t.look==="handDrawn"){const I=t.cssClasses.includes("statediagram-cluster-alt"),O=X.svg(l),T=t.rx||t.ry?O.path(yr(k,w,x,b,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:c,seed:n}):O.rectangle(k,w,x,b,{seed:n});v=l.insert(()=>T,":first-child");const P=O.rectangle(k,_,x,C,{fill:I?a:o,fillStyle:I?"hachure":"solid",stroke:c,seed:n});v=l.insert(()=>T,":first-child"),f=l.insert(()=>P)}else v=h.insert("rect",":first-child"),v.attr("class","outer").attr("x",k).attr("y",w).attr("width",x).attr("height",b).attr("data-look",t.look),f.attr("class","inner").attr("x",k).attr("y",_).attr("width",x).attr("height",C);u.attr("transform",`translate(${t.x-p.width/2}, ${w+1-(It(r.flowchart.htmlLabels)?0:3)})`);const D=v.node().getBBox();return t.height=D.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(I){return Oi(t,I)},{cluster:l,labelBBox:p}},"roundedWithTitle"),JL=g(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=Ct(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:c,borderStyles:l,backgroundStyles:h}=K(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=It(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),p=await mr(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let m=p.getBBox();if(It(r.flowchart.htmlLabels)){const v=p.children[0],D=yt(p);m=v.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,C=t.y-x/2;R.trace("Data ",t,JSON.stringify(t));let k;if(t.look==="handDrawn"){const v=X.svg(u),D=Z(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),I=v.path(yr(b,C,y,x,t.rx),D);k=u.insert(()=>(R.debug("Rough node insert CXC",I),I),":first-child"),k.select("path:nth-child(2)").attr("style",l.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",c).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",C).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:w}=bc(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+w})`),s){const v=d.select("span");v&&v.attr("style",s)}const _=k.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=m.height-t.padding/2,t.intersect=function(v){return Oi(t,v)},{cluster:u,labelBBox:m}},"kanbanSection"),tB=g((e,t)=>{const r=Ct(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),s=o.insert("g",":first-child"),c=0*t.padding,l=t.width+c;t.diff=-t.padding;const h=t.height+c,u=t.x-l/2,f=t.y-h/2;t.width=l;let d;if(t.look==="handDrawn"){const y=X.svg(o).rectangle(u,f,l,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=o.insert(()=>y,":first-child")}else d=s.insert("rect",":first-child"),d.attr("class","divider").attr("x",u).attr("y",f).attr("width",l).attr("height",h).attr("data-look",t.look);const p=d.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return Oi(t,m)},{cluster:o,labelBBox:{}}},"divider"),eB=qm,rB={rect:qm,squareRect:eB,roundedWithTitle:QL,noteGroup:KL,divider:tB,kanbanSection:JL},Hm=new Map,iB=g(async(e,t)=>{const r=t.shape||"rect",i=await rB[r](e,t);return Hm.set(t.id,i),i},"insertCluster"),B3=g(()=>{Hm=new Map},"clear");function Um(e,t){return e.intersect(t)}g(Um,"intersectNode");var nB=Um;function jm(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,s=a-i.y,c=Math.sqrt(t*t*s*s+r*r*o*o),l=Math.abs(t*r*o/c);i.x<n&&(l=-l);var h=Math.abs(t*r*s/c);return i.y<a&&(h=-h),{x:n+l,y:a+h}}g(jm,"intersectEllipse");var Ym=jm;function Gm(e,t,r){return Ym(e,t,t,r)}g(Gm,"intersectCircle");var aB=Gm;function Vm(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=n*r.x+a*r.y+o,c=n*i.x+a*i.y+o,l=1e-6;if(s!==0&&c!==0&&Bl(s,c))return;const h=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=h*e.x+u*e.y+f,p=h*t.x+u*t.y+f;if(Math.abs(d)<l&&Math.abs(p)<l&&Bl(d,p))return;const m=n*u-h*a;if(m===0)return;const y=Math.abs(m/2);let x=a*f-u*o;const b=x<0?(x-y)/m:(x+y)/m;x=h*o-n*f;const C=x<0?(x-y)/m:(x+y)/m;return{x:b,y:C}}}g(Vm,"intersectLine");function Bl(e,t){return e*t>0}g(Bl,"sameSign");var sB=Vm;function Xm(e,t,r){let i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){o=Math.min(o,h.x),s=Math.min(s,h.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=i-e.width/2-o,l=n-e.height/2-s;for(let h=0;h<t.length;h++){let u=t[h],f=t[h<t.length-1?h+1:0],d=sB(e,r,{x:c+u.x,y:l+u.y},{x:c+f.x,y:l+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,d=h.y-r.y,p=Math.sqrt(f*f+d*d),m=u.x-r.x,y=u.y-r.y,x=Math.sqrt(m*m+y*y);return p<x?-1:p===x?0:1}),a[0]):e}g(Xm,"intersectPolygon");var oB=Xm,j={node:nB,circle:aB,ellipse:Ym,polygon:oB,rect:Oi};function Zm(e,t){const{labelStyles:r}=K(t);t.labelStyle=r;const i=nt(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:s}=t,c=X.svg(a),l=Z(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(l.roughness=0);const h=c.circle(0,0,o*2,l),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",te(s)),Q(t,u),t.intersect=function(f){return R.info("Circle intersect",t,o,f),j.circle(t,o,f)},a}g(Zm,"anchor");function El(e,t,r,i,n,a,o){const c=(e+r)/2,l=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,p=f/a,m=Math.sqrt(d**2+p**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=c+y*a*Math.sin(h)*(o?-1:1),b=l-y*n*Math.cos(h)*(o?-1:1),C=Math.atan2((t-b)/a,(e-x)/n);let w=Math.atan2((i-b)/a,(r-x)/n)-C;o&&w<0&&(w+=2*Math.PI),!o&&w>0&&(w-=2*Math.PI);const _=[];for(let v=0;v<20;v++){const D=v/19,I=C+D*w,O=x+n*Math.cos(I),T=b+a*Math.sin(I);_.push({x:O,y:T})}return _}g(El,"generateArcPoints");async function Km(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.width+t.padding+20,s=a.height+t.padding,c=s/2,l=c/(2.5+s/50),{cssStyles:h}=t,u=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...El(-o/2,-s/2,-o/2,s/2,l,c,!1),{x:o/2,y:s/2},...El(o/2,s/2,o/2,-s/2,l,c,!0)],f=X.svg(n),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=pt(u),m=f.path(p,d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${l/2}, 0)`),Q(t,y),t.intersect=function(x){return j.polygon(t,u,x)},n}g(Km,"bowTieRect");function xr(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}g(xr,"insertPolygonShape");async function Qm(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.height+t.padding,s=12,c=a.width+t.padding+s,l=0,h=c,u=-o,f=0,d=[{x:l+s,y:u},{x:h,y:u},{x:h,y:f},{x:l,y:f},{x:l,y:u+s},{x:l+s,y:u}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=X.svg(n),x=Z(t,{}),b=pt(d),C=y.path(b,x);p=n.insert(()=>C,":first-child").attr("transform",`translate(${-c/2}, ${o/2})`),m&&p.attr("style",m)}else p=xr(n,c,o,d);return i&&p.attr("style",i),Q(t,p),t.intersect=function(y){return j.polygon(t,d,y)},n}g(Qm,"card");function Jm(e,t){const{nodeStyles:r}=K(t);t.label="";const i=e.insert("g").attr("class",nt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=X.svg(i),c=Z(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const l=pt(o),h=s.path(l,c),u=i.insert(()=>h,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return j.polygon(t,o,f)},i}g(Jm,"choice");async function Hc(e,t,r){const{labelStyles:i,nodeStyles:n}=K(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:s}=await at(e,t,nt(t)),c=(r==null?void 0:r.padding)??s,l=o.width/2+c;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const f=X.svg(a),d=Z(t,{}),p=f.circle(0,0,l*2,d);h=a.insert(()=>p,":first-child"),h.attr("class","basic label-container").attr("style",te(u))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return Q(t,h),t.calcIntersect=function(f,d){const p=f.width/2;return j.circle(f,p,d)},t.intersect=function(f){return R.info("Circle intersect",t,l,f),j.circle(t,l,f)},a}g(Hc,"circle");function t0(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},s={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y}
188
- M ${n.x},${n.y} L ${o.x},${o.y}`}g(t0,"createLine");function e0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",nt(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,s=X.svg(n),c=Z(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const l=s.circle(0,0,a*2,c),h=t0(a),u=s.path(h,c),f=n.insert(()=>l,":first-child");return f.insert(()=>u),o&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),Q(t,f),t.intersect=function(d){return R.info("crossedCircle intersect",t,{radius:a,point:d}),j.circle(t,a,d)},n}g(e0,"crossedCircle");function Ze(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}g(Ze,"generateCirclePoints");async function r0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=t,u=[...Ze(s/2,-c/2,l,30,-90,0),{x:-s/2-l,y:l},...Ze(s/2+l*2,-l,l,20,-180,-270),...Ze(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:-c/2},...Ze(s/2,c/2,l,20,0,90)],f=[{x:s/2,y:-c/2-l},{x:-s/2,y:-c/2-l},...Ze(s/2,-c/2,l,20,-90,0),{x:-s/2-l,y:-l},...Ze(s/2+s*.1,-l,l,20,-180,-270),...Ze(s/2+s*.1,l,l,20,-90,-180),{x:-s/2-l,y:c/2},...Ze(s/2,c/2,l,20,0,90),{x:-s/2,y:c/2+l},{x:s/2,y:c/2+l}],d=X.svg(n),p=Z(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=pt(u).replace("Z",""),x=d.path(y,p),b=pt(f),C=d.path(b,{...p}),k=n.insert("g",":first-child");return k.insert(()=>C,":first-child").attr("stroke-opacity",0),k.insert(()=>x,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${l}, 0)`),o.attr("transform",`translate(${-s/2+l-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(w){return j.polygon(t,f,w)},n}g(r0,"curlyBraceLeft");function Ke(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:d,y:p})}return o}g(Ke,"generateCirclePoints");async function i0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=t,u=[...Ke(s/2,-c/2,l,20,-90,0),{x:s/2+l,y:-l},...Ke(s/2+l*2,-l,l,20,-180,-270),...Ke(s/2+l*2,l,l,20,-90,-180),{x:s/2+l,y:c/2},...Ke(s/2,c/2,l,20,0,90)],f=[{x:-s/2,y:-c/2-l},{x:s/2,y:-c/2-l},...Ke(s/2,-c/2,l,20,-90,0),{x:s/2+l,y:-l},...Ke(s/2+l*2,-l,l,20,-180,-270),...Ke(s/2+l*2,l,l,20,-90,-180),{x:s/2+l,y:c/2},...Ke(s/2,c/2,l,20,0,90),{x:s/2,y:c/2+l},{x:-s/2,y:c/2+l}],d=X.svg(n),p=Z(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=pt(u).replace("Z",""),x=d.path(y,p),b=pt(f),C=d.path(b,{...p}),k=n.insert("g",":first-child");return k.insert(()=>C,":first-child").attr("stroke-opacity",0),k.insert(()=>x,":first-child"),k.attr("class","text"),h&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-l}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(w){return j.polygon(t,f,w)},n}g(i0,"curlyBraceRight");function Ht(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const f=s+u*h,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}g(Ht,"generateCirclePoints");async function n0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=t,u=[...Ht(s/2,-c/2,l,30,-90,0),{x:-s/2-l,y:l},...Ht(s/2+l*2,-l,l,20,-180,-270),...Ht(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:-c/2},...Ht(s/2,c/2,l,20,0,90)],f=[...Ht(-s/2+l+l/2,-c/2,l,20,-90,-180),{x:s/2-l/2,y:l},...Ht(-s/2-l/2,-l,l,20,0,90),...Ht(-s/2-l/2,l,l,20,-90,0),{x:s/2-l/2,y:-l},...Ht(-s/2+l+l/2,c/2,l,30,-180,-270)],d=[{x:s/2,y:-c/2-l},{x:-s/2,y:-c/2-l},...Ht(s/2,-c/2,l,20,-90,0),{x:-s/2-l,y:-l},...Ht(s/2+l*2,-l,l,20,-180,-270),...Ht(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:c/2},...Ht(s/2,c/2,l,20,0,90),{x:-s/2,y:c/2+l},{x:s/2-l-l/2,y:c/2+l},...Ht(-s/2+l+l/2,-c/2,l,20,-90,-180),{x:s/2-l/2,y:l},...Ht(-s/2-l/2,-l,l,20,0,90),...Ht(-s/2-l/2,l,l,20,-90,0),{x:s/2-l/2,y:-l},...Ht(-s/2+l+l/2,c/2,l,30,-180,-270)],p=X.svg(n),m=Z(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=pt(u).replace("Z",""),b=p.path(x,m),k=pt(f).replace("Z",""),w=p.path(k,m),_=pt(d),v=p.path(_,{...m}),D=n.insert("g",":first-child");return D.insert(()=>v,":first-child").attr("stroke-opacity",0),D.insert(()=>b,":first-child"),D.insert(()=>w,":first-child"),D.attr("class","text"),h&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(${l-l/4}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,D),t.intersect=function(I){return j.polygon(t,d,I)},n}g(n0,"curlyBraces");async function a0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=80,s=20,c=Math.max(o,(a.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),l=Math.max(s,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=l/2,{cssStyles:u}=t,f=X.svg(n),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=c,m=l,y=p-h,x=m/4,b=[{x:y,y:0},{x,y:0},{x:0,y:m/2},{x,y:m},{x:y,y:m},...An(-y,-m/2,h,50,270,90)],C=pt(b),k=f.path(C,d),w=n.insert(()=>k,":first-child");return w.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),w.attr("transform",`translate(${-c/2}, ${-l/2})`),Q(t,w),t.intersect=function(_){return j.polygon(t,b,_)},n}g(a0,"curvedTrapezoid");var lB=g((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),cB=g((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),hB=g((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function s0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+t.padding,t.width??0),c=s/2,l=c/(2.5+s/50),h=Math.max(a.height+l+t.padding,t.height??0);let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=X.svg(n),p=cB(0,0,s,h,c,l),m=hB(0,l,s,h,c,l),y=d.path(p,Z(t,{})),x=d.path(m,Z(t,{fill:"none"}));u=n.insert(()=>x,":first-child"),u=n.insert(()=>y,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{const d=lB(0,0,s,h,c,l);u=n.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",te(f)).attr("style",i)}return u.attr("label-offset-y",l),u.attr("transform",`translate(${-s/2}, ${-(h/2+l)})`),Q(t,u),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(d){const p=j.rect(t,d),m=p.x-(t.x??0);if(c!=0&&(Math.abs(m)<(t.width??0)/2||Math.abs(m)==(t.width??0)/2&&Math.abs(p.y-(t.y??0))>(t.height??0)/2-l)){let y=l*l*(1-m*m/(c*c));y>0&&(y=Math.sqrt(y)),y=l-y,d.y-(t.y??0)>0&&(y=-y),p.y+=y}return p},n}g(s0,"cylinder");async function o0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=a.width+t.padding,c=a.height+t.padding,l=c*.2,h=-s/2,u=-c/2-l/2,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:h,y:u+l},{x:-h,y:u+l},{x:-h,y:-u},{x:h,y:-u},{x:h,y:u},{x:-h,y:u},{x:-h,y:u+l}],y=d.polygon(m.map(b=>[b.x,b.y]),p),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),o.attr("transform",`translate(${h+(t.padding??0)/2-(a.x-(a.left??0))}, ${u+l+(t.padding??0)/2-(a.y-(a.top??0))})`),Q(t,x),t.intersect=function(b){return j.rect(t,b)},n}g(o0,"dividedRectangle");async function l0(e,t){var f,d;const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o}=await at(e,t,nt(t)),c=a.width/2+o+5,l=a.width/2+o;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const p=X.svg(n),m=Z(t,{roughness:.2,strokeWidth:2.5}),y=Z(t,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,c*2,m),b=p.circle(0,0,l*2,y);h=n.insert("g",":first-child"),h.attr("class",te(t.cssClasses)).attr("style",te(u)),(f=h.node())==null||f.appendChild(x),(d=h.node())==null||d.appendChild(b)}else{h=n.insert("g",":first-child");const p=h.insert("circle",":first-child"),m=h.insert("circle");h.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0)}return Q(t,h),t.intersect=function(p){return R.info("DoubleCircle intersect",t,c,p),j.circle(t,c,p)},n}g(l0,"doublecircle");function c0(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=K(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",nt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,c=X.svg(a),{nodeBorder:l}=r,h=Z(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=c.circle(0,0,o*2,h),f=a.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${l} !important;`),s&&s.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Q(t,f),t.intersect=function(d){return R.info("filledCircle intersect",t,{radius:o,point:d}),j.circle(t,o,d)},a}g(c0,"filledCircle");async function h0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=a.width+(t.padding??0),c=s+a.height,l=s+a.height,h=[{x:0,y:-c},{x:l,y:-c},{x:l/2,y:0}],{cssStyles:u}=t,f=X.svg(n),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=pt(h),m=f.path(p,d),y=n.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),t.width=s,t.height=c,Q(t,y),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-c/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(x){return R.info("Triangle intersect",t,h,x),j.polygon(t,h,x)},n}g(h0,"flippedTriangle");function u0(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=K(t);t.label="";const o=e.insert("g").attr("class",nt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let c=Math.max(70,(t==null?void 0:t.width)??0),l=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(c=Math.max(10,(t==null?void 0:t.width)??0),l=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*c/2,u=-1*l/2,f=X.svg(o),d=Z(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=f.rectangle(h,u,c,l,d),m=o.insert(()=>p,":first-child");s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),a&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",a),Q(t,m);const y=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(x){return j.rect(t,x)},o}g(u0,"forkJoin");async function f0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const n=80,a=50,{shapeSvg:o,bbox:s}=await at(e,t,nt(t)),c=Math.max(n,s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a,s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=l/2,{cssStyles:u}=t,f=X.svg(o),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-c/2,y:-l/2},{x:c/2-h,y:-l/2},...An(-c/2+h,0,h,50,90,270),{x:c/2-h,y:l/2},{x:-c/2,y:l/2}],m=pt(p),y=f.path(m,d),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),Q(t,x),t.intersect=function(b){return R.info("Pill intersect",t,{radius:h,point:b}),j.polygon(t,p,b)},o}g(f0,"halfRoundedRectangle");async function d0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.height+(t.padding??0),s=a.width+(t.padding??0)*2.5,{cssStyles:c}=t,l=X.svg(n),h=Z(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=s/2;const f=u/6;u=u+f;const d=o/2,p=d/2,m=u-p,y=[{x:-m,y:-d},{x:0,y:-d},{x:m,y:-d},{x:u,y:0},{x:m,y:d},{x:0,y:d},{x:-m,y:d},{x:-u,y:0}],x=pt(y),b=l.path(x,h),C=n.insert(()=>b,":first-child");return C.attr("class","basic label-container"),c&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),t.width=s,t.height=o,Q(t,C),t.intersect=function(k){return j.polygon(t,y,k)},n}g(d0,"hexagon");async function p0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await at(e,t,nt(t)),a=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:s}=t,c=X.svg(n),l=Z(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],u=pt(h),f=c.path(u,l),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",s),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-o/2})`),Q(t,d),t.intersect=function(p){return R.info("Pill intersect",t,{points:h}),j.polygon(t,h,p)},n}g(p0,"hourglass");async function g0(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),c=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,c??0);const{shapeSvg:l,bbox:h,label:u}=await at(e,t,"icon-shape default"),f=t.pos==="t",d=s,p=s,{nodeBorder:m}=r,{stylesMap:y}=$i(t),x=-p/2,b=-d/2,C=t.label?8:0,k=X.svg(l),w=Z(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=k.rectangle(x,b,p,d,w),v=Math.max(p,h.width),D=d+h.height+C,I=k.rectangle(-v/2,-D/2,v,D,{...w,fill:"transparent",stroke:"none"}),O=l.insert(()=>_,":first-child"),T=l.insert(()=>I);if(t.icon){const P=l.append("g");P.html(`<g>${await zn(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const E=P.node().getBBox(),M=E.width,B=E.height,L=E.x,F=E.y;P.attr("transform",`translate(${-M/2-L},${f?h.height/2+C/2-B/2-F:-h.height/2-C/2-B/2-F})`),P.attr("style",`color: ${y.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-D/2:D/2-h.height})`),O.attr("transform",`translate(0,${f?h.height/2+C/2:-h.height/2-C/2})`),Q(t,T),t.intersect=function(P){if(R.info("iconSquare intersect",t,P),!t.label)return j.rect(t,P);const E=t.x??0,M=t.y??0,B=t.height??0;let L=[];return f?L=[{x:E-h.width/2,y:M-B/2},{x:E+h.width/2,y:M-B/2},{x:E+h.width/2,y:M-B/2+h.height+C},{x:E+p/2,y:M-B/2+h.height+C},{x:E+p/2,y:M+B/2},{x:E-p/2,y:M+B/2},{x:E-p/2,y:M-B/2+h.height+C},{x:E-h.width/2,y:M-B/2+h.height+C}]:L=[{x:E-p/2,y:M-B/2},{x:E+p/2,y:M-B/2},{x:E+p/2,y:M-B/2+d},{x:E+h.width/2,y:M-B/2+d},{x:E+h.width/2/2,y:M+B/2},{x:E-h.width/2,y:M+B/2},{x:E-h.width/2,y:M-B/2+d},{x:E-p/2,y:M-B/2+d}],j.polygon(t,L,P)},l}g(g0,"icon");async function m0(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),c=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,c??0);const{shapeSvg:l,bbox:h,label:u}=await at(e,t,"icon-shape default"),f=20,d=t.label?8:0,p=t.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=$i(t),b=X.svg(l),C=Z(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=x.get("fill");C.stroke=k??y;const w=l.append("g");t.icon&&w.html(`<g>${await zn(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const _=w.node().getBBox(),v=_.width,D=_.height,I=_.x,O=_.y,T=Math.max(v,D)*Math.SQRT2+f*2,P=b.circle(0,0,T,C),E=Math.max(T,h.width),M=T+h.height+d,B=b.rectangle(-E/2,-M/2,E,M,{...C,fill:"transparent",stroke:"none"}),L=l.insert(()=>P,":first-child"),F=l.insert(()=>B);return w.attr("transform",`translate(${-v/2-I},${p?h.height/2+d/2-D/2-O:-h.height/2-d/2-D/2-O})`),w.attr("style",`color: ${x.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-M/2:M/2-h.height})`),L.attr("transform",`translate(0,${p?h.height/2+d/2:-h.height/2-d/2})`),Q(t,F),t.intersect=function($){return R.info("iconSquare intersect",t,$),j.rect(t,$)},l}g(m0,"iconCircle");async function y0(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),c=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,c??0);const{shapeSvg:l,bbox:h,halfPadding:u,label:f}=await at(e,t,"icon-shape default"),d=t.pos==="t",p=s+u*2,m=s+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=$i(t),C=-m/2,k=-p/2,w=t.label?8:0,_=X.svg(l),v=Z(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const D=b.get("fill");v.stroke=D??x;const I=_.path(yr(C,k,m,p,5),v),O=Math.max(m,h.width),T=p+h.height+w,P=_.rectangle(-O/2,-T/2,O,T,{...v,fill:"transparent",stroke:"none"}),E=l.insert(()=>I,":first-child").attr("class","icon-shape2"),M=l.insert(()=>P);if(t.icon){const B=l.append("g");B.html(`<g>${await zn(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const L=B.node().getBBox(),F=L.width,$=L.height,q=L.x,Y=L.y;B.attr("transform",`translate(${-F/2-q},${d?h.height/2+w/2-$/2-Y:-h.height/2-w/2-$/2-Y})`),B.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-T/2:T/2-h.height})`),E.attr("transform",`translate(0,${d?h.height/2+w/2:-h.height/2-w/2})`),Q(t,M),t.intersect=function(B){if(R.info("iconSquare intersect",t,B),!t.label)return j.rect(t,B);const L=t.x??0,F=t.y??0,$=t.height??0;let q=[];return d?q=[{x:L-h.width/2,y:F-$/2},{x:L+h.width/2,y:F-$/2},{x:L+h.width/2,y:F-$/2+h.height+w},{x:L+m/2,y:F-$/2+h.height+w},{x:L+m/2,y:F+$/2},{x:L-m/2,y:F+$/2},{x:L-m/2,y:F-$/2+h.height+w},{x:L-h.width/2,y:F-$/2+h.height+w}]:q=[{x:L-m/2,y:F-$/2},{x:L+m/2,y:F-$/2},{x:L+m/2,y:F-$/2+p},{x:L+h.width/2,y:F-$/2+p},{x:L+h.width/2/2,y:F+$/2},{x:L-h.width/2,y:F+$/2},{x:L-h.width/2,y:F-$/2+p},{x:L-m/2,y:F-$/2+p}],j.polygon(t,q,B)},l}g(y0,"iconRounded");async function x0(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),c=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,c??0);const{shapeSvg:l,bbox:h,halfPadding:u,label:f}=await at(e,t,"icon-shape default"),d=t.pos==="t",p=s+u*2,m=s+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=$i(t),C=-m/2,k=-p/2,w=t.label?8:0,_=X.svg(l),v=Z(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const D=b.get("fill");v.stroke=D??x;const I=_.path(yr(C,k,m,p,.1),v),O=Math.max(m,h.width),T=p+h.height+w,P=_.rectangle(-O/2,-T/2,O,T,{...v,fill:"transparent",stroke:"none"}),E=l.insert(()=>I,":first-child"),M=l.insert(()=>P);if(t.icon){const B=l.append("g");B.html(`<g>${await zn(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const L=B.node().getBBox(),F=L.width,$=L.height,q=L.x,Y=L.y;B.attr("transform",`translate(${-F/2-q},${d?h.height/2+w/2-$/2-Y:-h.height/2-w/2-$/2-Y})`),B.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-T/2:T/2-h.height})`),E.attr("transform",`translate(0,${d?h.height/2+w/2:-h.height/2-w/2})`),Q(t,M),t.intersect=function(B){if(R.info("iconSquare intersect",t,B),!t.label)return j.rect(t,B);const L=t.x??0,F=t.y??0,$=t.height??0;let q=[];return d?q=[{x:L-h.width/2,y:F-$/2},{x:L+h.width/2,y:F-$/2},{x:L+h.width/2,y:F-$/2+h.height+w},{x:L+m/2,y:F-$/2+h.height+w},{x:L+m/2,y:F+$/2},{x:L-m/2,y:F+$/2},{x:L-m/2,y:F-$/2+h.height+w},{x:L-h.width/2,y:F-$/2+h.height+w}]:q=[{x:L-m/2,y:F-$/2},{x:L+m/2,y:F-$/2},{x:L+m/2,y:F-$/2+p},{x:L+h.width/2,y:F-$/2+p},{x:L+h.width/2/2,y:F+$/2},{x:L-h.width/2,y:F+$/2},{x:L-h.width/2,y:F-$/2+p},{x:L-m/2,y:F-$/2+p}],j.polygon(t,q,B)},l}g(x0,"iconSquare");async function b0(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:o}=K(t);t.labelStyle=o;const s=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const c=Math.max(t.label?s??0:0,(t==null?void 0:t.assetWidth)??n),l=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:c,h=t.constraint==="on"?l/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(l,s??0);const{shapeSvg:u,bbox:f,label:d}=await at(e,t,"image-shape default"),p=t.pos==="t",m=-l/2,y=-h/2,x=t.label?8:0,b=X.svg(u),C=Z(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=b.rectangle(m,y,l,h,C),w=Math.max(l,f.width),_=h+f.height+x,v=b.rectangle(-w/2,-_/2,w,_,{...C,fill:"none",stroke:"none"}),D=u.insert(()=>k,":first-child"),I=u.insert(()=>v);if(t.img){const O=u.append("image");O.attr("href",t.img),O.attr("width",l),O.attr("height",h),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-l/2},${p?_/2-h:-_/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-h/2-f.height/2-x/2:h/2-f.height/2+x/2})`),D.attr("transform",`translate(0,${p?f.height/2+x/2:-f.height/2-x/2})`),Q(t,I),t.intersect=function(O){if(R.info("iconSquare intersect",t,O),!t.label)return j.rect(t,O);const T=t.x??0,P=t.y??0,E=t.height??0;let M=[];return p?M=[{x:T-f.width/2,y:P-E/2},{x:T+f.width/2,y:P-E/2},{x:T+f.width/2,y:P-E/2+f.height+x},{x:T+l/2,y:P-E/2+f.height+x},{x:T+l/2,y:P+E/2},{x:T-l/2,y:P+E/2},{x:T-l/2,y:P-E/2+f.height+x},{x:T-f.width/2,y:P-E/2+f.height+x}]:M=[{x:T-l/2,y:P-E/2},{x:T+l/2,y:P-E/2},{x:T+l/2,y:P-E/2+h},{x:T+f.width/2,y:P-E/2+h},{x:T+f.width/2/2,y:P+E/2},{x:T-f.width/2,y:P+E/2},{x:T-f.width/2,y:P-E/2+h},{x:T-l/2,y:P-E/2+h}],j.polygon(t,M,O)},u}g(b0,"imageSquare");async function _0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let l;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=X.svg(n),f=Z(t,{}),d=pt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&l.attr("style",h)}else l=xr(n,o,s,c);return i&&l.attr("style",i),t.width=o,t.height=s,Q(t,l),t.intersect=function(u){return j.polygon(t,c,u)},n}g(_0,"inv_trapezoid");async function js(e,t,r){const{labelStyles:i,nodeStyles:n}=K(t);t.labelStyle=i;const{shapeSvg:a,bbox:o}=await at(e,t,nt(t)),s=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),c=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),l=-s/2,h=-c/2;let u,{rx:f,ry:d}=t;const{cssStyles:p}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const m=X.svg(a),y=Z(t,{}),x=f||d?m.path(yr(l,h,s,c,f||0),y):m.rectangle(l,h,s,c,y);u=a.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",te(p))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",te(f)).attr("ry",te(d)).attr("x",l).attr("y",h).attr("width",s).attr("height",c);return Q(t,u),t.calcIntersect=function(m,y){return j.rect(m,y)},t.intersect=function(m){return j.rect(t,m)},a}g(js,"drawRect");async function C0(e,t){const{shapeSvg:r,bbox:i,label:n}=await at(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Q(t,a),t.intersect=function(c){return j.rect(t,c)},r}g(C0,"labelRect");async function w0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),c=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}];let l;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=X.svg(n),f=Z(t,{}),d=pt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&l.attr("style",h)}else l=xr(n,o,s,c);return i&&l.attr("style",i),t.width=o,t.height=s,Q(t,l),t.intersect=function(u){return j.polygon(t,c,u)},n}g(w0,"lean_left");async function k0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),c=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let l;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=X.svg(n),f=Z(t,{}),d=pt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&l.attr("style",h)}else l=xr(n,o,s,c);return i&&l.attr("style",i),t.width=o,t.height=s,Q(t,l),t.intersect=function(u){return j.polygon(t,c,u)},n}g(k0,"lean_right");function v0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",nt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,(t==null?void 0:t.width)??0),s=Math.max(35,(t==null?void 0:t.height)??0),c=7,l=[{x:o,y:0},{x:0,y:s+c/2},{x:o-2*c,y:s+c/2},{x:0,y:2*s},{x:o,y:s-c/2},{x:2*c,y:s-c/2}],h=X.svg(n),u=Z(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=pt(l),d=h.path(f,u),p=n.insert(()=>d,":first-child");return a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${o/2},${-s})`),Q(t,p),t.intersect=function(m){return R.info("lightningBolt intersect",t,m),j.polygon(t,l,m)},n}g(v0,"lightningBolt");var uB=g((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),fB=g((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),dB=g((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function S0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0),t.width??0),c=s/2,l=c/(2.5+s/50),h=Math.max(a.height+l+(t.padding??0),t.height??0),u=h*.1;let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=X.svg(n),m=fB(0,0,s,h,c,l,u),y=dB(0,l,s,h,c,l),x=Z(t,{}),b=p.path(m,x),C=p.path(y,x);n.insert(()=>C,":first-child").attr("class","line"),f=n.insert(()=>b,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{const p=uB(0,0,s,h,c,l,u);f=n.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",te(d)).attr("style",i)}return f.attr("label-offset-y",l),f.attr("transform",`translate(${-s/2}, ${-(h/2+l)})`),Q(t,f),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+l-(a.y-(a.top??0))})`),t.intersect=function(p){const m=j.rect(t,p),y=m.x-(t.x??0);if(c!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-l)){let x=l*l*(1-y*y/(c*c));x>0&&(x=Math.sqrt(x)),x=l-x,p.y-(t.y??0)>0&&(x=-x),m.y+=x}return m},n}g(S0,"linedCylinder");async function T0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=c/4,h=c+l,{cssStyles:u}=t,f=X.svg(n),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-s/2-s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:h/2},...pr(-s/2-s/2*.1,h/2,s/2+s/2*.1,h/2,l,.8),{x:s/2+s/2*.1,y:-h/2},{x:-s/2-s/2*.1,y:-h/2},{x:-s/2,y:-h/2},{x:-s/2,y:h/2*1.1},{x:-s/2,y:-h/2}],m=f.polygon(p.map(x=>[x.x,x.y]),d),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(0,${-l/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),Q(t,y),t.intersect=function(x){return j.polygon(t,p,x)},n}g(T0,"linedWaveEdgedRect");async function M0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=5,h=-s/2,u=-c/2,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{}),m=[{x:h-l,y:u+l},{x:h-l,y:u+c+l},{x:h+s-l,y:u+c+l},{x:h+s-l,y:u+c},{x:h+s,y:u+c},{x:h+s,y:u+c-l},{x:h+s+l,y:u+c-l},{x:h+s+l,y:u-l},{x:h+l,y:u-l},{x:h+l,y:u},{x:h,y:u},{x:h,y:u+l}],y=[{x:h,y:u+l},{x:h+s-l,y:u+l},{x:h+s-l,y:u+c},{x:h+s,y:u+c},{x:h+s,y:u},{x:h,y:u}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=pt(m),b=d.path(x,p),C=pt(y),k=d.path(C,{...p,fill:"none"}),w=n.insert(()=>k,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)-l-(a.x-(a.left??0))}, ${-(a.height/2)+l-(a.y-(a.top??0))})`),Q(t,w),t.intersect=function(_){return j.polygon(t,m,_)},n}g(M0,"multiRect");async function A0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=c/4,h=c+l,u=-s/2,f=-h/2,d=5,{cssStyles:p}=t,m=pr(u-d,f+h+d,u+s-d,f+h+d,l,.8),y=m==null?void 0:m[m.length-1],x=[{x:u-d,y:f+d},{x:u-d,y:f+h+d},...m,{x:u+s-d,y:y.y-d},{x:u+s,y:y.y-d},{x:u+s,y:y.y-2*d},{x:u+s+d,y:y.y-2*d},{x:u+s+d,y:f-d},{x:u+d,y:f-d},{x:u+d,y:f},{x:u,y:f},{x:u,y:f+d}],b=[{x:u,y:f+d},{x:u+s-d,y:f+d},{x:u+s-d,y:y.y-d},{x:u+s,y:y.y-d},{x:u+s,y:f},{x:u,y:f}],C=X.svg(n),k=Z(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=pt(x),_=C.path(w,k),v=pt(b),D=C.path(v,k),I=n.insert(()=>_,":first-child");return I.insert(()=>D),I.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-l/2})`),o.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-l/2-(a.y-(a.top??0))})`),Q(t,I),t.intersect=function(O){return j.polygon(t,x,O)},n}g(A0,"multiWaveEdgedRectangle");async function L0(e,t,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:n}=K(t);t.labelStyle=i,t.useHtmlLabels||((b=Qt().flowchart)==null?void 0:b.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:s,label:c}=await at(e,t,nt(t)),l=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-l/2,f=-h/2,{cssStyles:d}=t,p=X.svg(o),m=Z(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=p.rectangle(u,f,l,h,m),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),c.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Q(t,x),t.intersect=function(C){return j.rect(t,C)},o}g(L0,"note");var pB=g((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function B0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.width+t.padding,s=a.height+t.padding,c=o+s,l=.5,h=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=X.svg(n),p=Z(t,{}),m=pB(0,0,c),y=d.path(m,p);u=n.insert(()=>y,":first-child").attr("transform",`translate(${-c/2+l}, ${c/2})`),f&&u.attr("style",f)}else u=xr(n,c,c,h),u.attr("transform",`translate(${-c/2+l}, ${c/2})`);return i&&u.attr("style",i),Q(t,u),t.calcIntersect=function(d,p){const m=d.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],x=j.polygon(d,y,p);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}g(B0,"question");async function E0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)??0),l=-s/2,h=-c/2,u=h/2,f=[{x:l+u,y:h},{x:l,y:0},{x:l+u,y:-h},{x:-l,y:-h},{x:-l,y:h}],{cssStyles:d}=t,p=X.svg(n),m=Z(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=pt(f),x=p.path(y,m),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-u/2},0)`),o.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(t,b),t.intersect=function(C){return j.polygon(t,f,C)},n}g(E0,"rect_left_inv_arrow");async function $0(e,t){var D,I;const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g"),s=a.insert("g").attr("class","label").attr("style",i),c=t.description,l=t.label,h=s.node().appendChild(await Lr(l,t.labelStyle,!0,!0));let u={width:0,height:0};if(It((I=(D=Ct())==null?void 0:D.flowchart)==null?void 0:I.htmlLabels)){const O=h.children[0],T=yt(h);u=O.getBoundingClientRect(),T.attr("width",u.width),T.attr("height",u.height)}R.info("Text 2",c);const f=c||[],d=h.getBBox(),p=s.node().appendChild(await Lr(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0)),m=p.children[0],y=yt(p);u=m.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height);const x=(t.padding||0)/2;yt(p).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+x+5)+")"),yt(h).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=s.node().getBBox(),s.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const b=u.width+(t.padding||0),C=u.height+(t.padding||0),k=-u.width/2-x,w=-u.height/2-x;let _,v;if(t.look==="handDrawn"){const O=X.svg(a),T=Z(t,{}),P=O.path(yr(k,w,b,C,t.rx||0),T),E=O.line(-u.width/2-x,-u.height/2-x+d.height+x,u.width/2+x,-u.height/2-x+d.height+x,T);v=a.insert(()=>(R.debug("Rough node insert CXC",P),E),":first-child"),_=a.insert(()=>(R.debug("Rough node insert CXC",P),P),":first-child")}else _=o.insert("rect",":first-child"),v=o.insert("line"),_.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),v.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+d.height+x).attr("y2",-u.height/2-x+d.height+x);return Q(t,_),t.intersect=function(O){return j.rect(t,O)},a}g($0,"rectWithTitle");function ln(e,t,r,i,n,a,o){const c=(e+r)/2,l=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,p=f/a,m=Math.sqrt(d**2+p**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=c+y*a*Math.sin(h)*(o?-1:1),b=l-y*n*Math.cos(h)*(o?-1:1),C=Math.atan2((t-b)/a,(e-x)/n);let w=Math.atan2((i-b)/a,(r-x)/n)-C;o&&w<0&&(w+=2*Math.PI),!o&&w>0&&(w-=2*Math.PI);const _=[];for(let v=0;v<20;v++){const D=v/19,I=C+D*w,O=x+n*Math.cos(I),T=b+a*Math.sin(I);_.push({x:O,y:T})}return _}g(ln,"generateArcPoints");async function F0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=(t==null?void 0:t.padding)??0,s=(t==null?void 0:t.padding)??0,c=(t!=null&&t.width?t==null?void 0:t.width:a.width)+o*2,l=(t!=null&&t.height?t==null?void 0:t.height:a.height)+s*2,h=t.radius||5,u=t.taper||5,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{});t.stroke&&(p.stroke=t.stroke),t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-c/2+u,y:-l/2},{x:c/2-u,y:-l/2},...ln(c/2-u,-l/2,c/2,-l/2+u,h,h,!0),{x:c/2,y:-l/2+u},{x:c/2,y:l/2-u},...ln(c/2,l/2-u,c/2-u,l/2,h,h,!0),{x:c/2-u,y:l/2},{x:-c/2+u,y:l/2},...ln(-c/2+u,l/2,-c/2,l/2-u,h,h,!0),{x:-c/2,y:l/2-u},{x:-c/2,y:-l/2+u},...ln(-c/2,-l/2+u,-c/2+u,-l/2,h,h,!0)],y=pt(m),x=d.path(y,p),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),Q(t,b),t.intersect=function(C){return j.polygon(t,m,C)},n}g(F0,"roundedRect");async function D0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=(t==null?void 0:t.padding)??0,c=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-a.width/2-s,u=-a.height/2-s,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:h,y:u},{x:h+c+8,y:u},{x:h+c+8,y:u+l},{x:h-8,y:u+l},{x:h-8,y:u},{x:h,y:u},{x:h,y:u+l}],y=d.polygon(m.map(b=>[b.x,b.y]),p),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container").attr("style",te(f)),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),o.attr("transform",`translate(${-c/2+4+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-(a.y-(a.top??0))})`),Q(t,x),t.intersect=function(b){return j.rect(t,b)},n}g(D0,"shadedProcess");async function O0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=-s/2,h=-c/2,{cssStyles:u}=t,f=X.svg(n),d=Z(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:l,y:h},{x:l,y:h+c},{x:l+s,y:h+c},{x:l+s,y:h-c/2}],m=pt(p),y=f.path(m,d),x=n.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),x.attr("transform",`translate(0, ${c/4})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))}, ${-c/4+(t.padding??0)-(a.y-(a.top??0))})`),Q(t,x),t.intersect=function(b){return j.polygon(t,p,b)},n}g(O0,"slopedRect");async function R0(e,t){const r={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return js(e,t,r)}g(R0,"squareRect");async function I0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.height+t.padding,s=a.width+o/4+t.padding,c=o/2,{cssStyles:l}=t,h=X.svg(n),u=Z(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=[{x:-s/2+c,y:-o/2},{x:s/2-c,y:-o/2},...An(-s/2+c,0,c,50,90,270),{x:s/2-c,y:o/2},...An(s/2-c,0,c,50,270,450)],d=pt(f),p=h.path(d,u),m=n.insert(()=>p,":first-child");return m.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),Q(t,m),t.intersect=function(y){return j.polygon(t,f,y)},n}g(I0,"stadium");async function P0(e,t){return js(e,t,{rx:5,ry:5,classes:"flowchart-node"})}g(P0,"state");function N0(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=K(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:c}=r,l=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),h=X.svg(l),u=Z(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=h.circle(0,0,14,{...u,stroke:o,strokeWidth:2}),d=s??c,p=h.circle(0,0,5,{...u,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),m=l.insert(()=>f,":first-child");return m.insert(()=>p),a&&m.selectAll("path").attr("style",a),n&&m.selectAll("path").attr("style",n),Q(t,m),t.intersect=function(y){return j.circle(t,7,y)},l}g(N0,"stateEnd");function z0(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const s=X.svg(n).circle(0,0,14,AS(i));a=n.insert(()=>s),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Q(t,a),t.intersect=function(o){return j.circle(t,7,o)},n}g(z0,"stateStart");async function W0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=((t==null?void 0:t.padding)||0)/2,s=a.width+t.padding,c=a.height+t.padding,l=-a.width/2-o,h=-a.height/2-o,u=[{x:0,y:0},{x:s,y:0},{x:s,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-c},{x:-8,y:-c},{x:-8,y:0}];if(t.look==="handDrawn"){const f=X.svg(n),d=Z(t,{}),p=f.rectangle(l-8,h,s+16,c,d),m=f.line(l,h,l,h+c,d),y=f.line(l+s,h,l+s,h+c,d);n.insert(()=>m,":first-child"),n.insert(()=>y,":first-child");const x=n.insert(()=>p,":first-child"),{cssStyles:b}=t;x.attr("class","basic label-container").attr("style",te(b)),Q(t,x)}else{const f=xr(n,s,c,u);i&&f.attr("style",i),Q(t,f)}return t.intersect=function(f){return j.polygon(t,u,f)},n}g(W0,"subroutine");async function q0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),s=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=-o/2,l=-s/2,h=.2*s,u=.2*s,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{}),m=[{x:c-h/2,y:l},{x:c+o+h/2,y:l},{x:c+o+h/2,y:l+s},{x:c-h/2,y:l+s}],y=[{x:c+o-h/2,y:l+s},{x:c+o+h/2,y:l+s},{x:c+o+h/2,y:l+s-u}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=pt(m),b=d.path(x,p),C=pt(y),k=d.path(C,{...p,fillStyle:"solid"}),w=n.insert(()=>k,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),Q(t,w),t.intersect=function(_){return j.polygon(t,m,_)},n}g(q0,"taggedRect");async function H0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=c/4,h=.2*s,u=.2*c,f=c+l,{cssStyles:d}=t,p=X.svg(n),m=Z(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-s/2-s/2*.1,y:f/2},...pr(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,l,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2}],x=-s/2+s/2*.1,b=-f/2-u*.4,C=[{x:x+s-h,y:(b+c)*1.4},{x:x+s,y:b+c-u},{x:x+s,y:(b+c)*.9},...pr(x+s,(b+c)*1.3,x+s-h,(b+c)*1.5,-c*.03,.5)],k=pt(y),w=p.path(k,m),_=pt(C),v=p.path(_,{...m,fillStyle:"solid"}),D=n.insert(()=>v,":first-child");return D.insert(()=>w,":first-child"),D.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-l/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),Q(t,D),t.intersect=function(I){return j.polygon(t,y,I)},n}g(H0,"taggedWaveEdgedRectangle");async function U0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=Math.max(a.width+t.padding,(t==null?void 0:t.width)||0),s=Math.max(a.height+t.padding,(t==null?void 0:t.height)||0),c=-o/2,l=-s/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",c).attr("y",l).attr("width",o).attr("height",s),Q(t,h),t.intersect=function(u){return j.rect(t,u)},n}g(U0,"text");var gB=g((e,t,r,i,n,a)=>`M${e},${t}
189
- a${n},${a} 0,0,1 0,${-i}
190
- l${r},0
191
- a${n},${a} 0,0,1 0,${i}
192
- M${r},${-i}
193
- a${n},${a} 0,0,0 0,${i}
194
- l${-r},0`,"createCylinderPathD"),mB=g((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),yB=g((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function j0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o,halfPadding:s}=await at(e,t,nt(t)),c=t.look==="neo"?s*2:s,l=a.height+c,h=l/2,u=h/(2.5+l/50),f=a.width+u+c,{cssStyles:d}=t;let p;if(t.look==="handDrawn"){const m=X.svg(n),y=mB(0,0,f,l,u,h),x=yB(0,0,f,l,u,h),b=m.path(y,Z(t,{})),C=m.path(x,Z(t,{fill:"none"}));p=n.insert(()=>C,":first-child"),p=n.insert(()=>b,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const m=gB(0,0,f,l,u,h);p=n.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",te(d)).attr("style",i),p.attr("class","basic label-container"),d&&p.selectAll("path").attr("style",d),i&&p.selectAll("path").attr("style",i)}return p.attr("label-offset-x",u),p.attr("transform",`translate(${-f/2}, ${l/2} )`),o.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(t,p),t.intersect=function(m){const y=j.rect(t,m),x=y.y-(t.y??0);if(h!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-u)){let b=u*u*(1-x*x/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=u-b,m.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},n}g(j0,"tiltedCylinder");async function Y0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=a.width+t.padding,s=a.height+t.padding,c=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let l;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=X.svg(n),f=Z(t,{}),d=pt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),h&&l.attr("style",h)}else l=xr(n,o,s,c);return i&&l.attr("style",i),t.width=o,t.height=s,Q(t,l),t.intersect=function(u){return j.polygon(t,c,u)},n}g(Y0,"trapezoid");async function G0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=60,s=20,c=Math.max(o,a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(s,a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:h}=t,u=X.svg(n),f=Z(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{x:-c/2*.8,y:-l/2},{x:c/2*.8,y:-l/2},{x:c/2,y:-l/2*.6},{x:c/2,y:l/2},{x:-c/2,y:l/2},{x:-c/2,y:-l/2*.6}],p=pt(d),m=u.path(p,f),y=n.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),Q(t,y),t.intersect=function(x){return j.polygon(t,d,x)},n}g(G0,"trapezoidalPentagon");async function V0(e,t){var b;const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=It((b=Ct().flowchart)==null?void 0:b.htmlLabels),c=a.width+(t.padding??0),l=c+a.height,h=c+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-l}],{cssStyles:f}=t,d=X.svg(n),p=Z(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=pt(u),y=d.path(m,p),x=n.insert(()=>y,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=c,t.height=l,Q(t,x),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${l/2-(a.height+(t.padding??0)/(s?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(C){return R.info("Triangle intersect",t,u,C),j.polygon(t,u,C)},n}g(V0,"triangle");async function X0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=c/8,h=c+l,{cssStyles:u}=t,d=70-s,p=d>0?d/2:0,m=X.svg(n),y=Z(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:-s/2-p,y:h/2},...pr(-s/2-p,h/2,s/2+p,h/2,l,.8),{x:s/2+p,y:-h/2},{x:-s/2-p,y:-h/2}],b=pt(x),C=m.path(b,y),k=n.insert(()=>C,":first-child");return k.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-l/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l-(a.y-(a.top??0))})`),Q(t,k),t.intersect=function(w){return j.polygon(t,x,w)},n}g(X0,"waveEdgedRectangle");async function Z0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await at(e,t,nt(t)),o=100,s=50,c=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=c/l;let u=c,f=l;u>f*h?f=u/h:u=f*h,u=Math.max(u,o),f=Math.max(f,s);const d=Math.min(f*.2,f/4),p=f+d*2,{cssStyles:m}=t,y=X.svg(n),x=Z(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-u/2,y:p/2},...pr(-u/2,p/2,u/2,p/2,d,1),{x:u/2,y:-p/2},...pr(u/2,-p/2,-u/2,-p/2,d,-1)],C=pt(b),k=y.path(C,x),w=n.insert(()=>k,":first-child");return w.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),Q(t,w),t.intersect=function(_){return j.polygon(t,b,_)},n}g(Z0,"waveRectangle");async function K0(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await at(e,t,nt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),l=5,h=-s/2,u=-c/2,{cssStyles:f}=t,d=X.svg(n),p=Z(t,{}),m=[{x:h-l,y:u-l},{x:h-l,y:u+c},{x:h+s,y:u+c},{x:h+s,y:u-l}],y=`M${h-l},${u-l} L${h+s},${u-l} L${h+s},${u+c} L${h-l},${u+c} L${h-l},${u-l}
195
- M${h-l},${u} L${h+s},${u}
196
- M${h},${u-l} L${h},${u+c}`;t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=d.path(y,p),b=n.insert(()=>x,":first-child");return b.attr("transform",`translate(${l/2}, ${l/2})`),b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)+l/2-(a.x-(a.left??0))}, ${-(a.height/2)+l/2-(a.y-(a.top??0))})`),Q(t,b),t.intersect=function(C){return j.polygon(t,m,C)},n}g(K0,"windowPane");async function Uc(e,t){var ft,st,mt,ot;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:ht}=Qt(),{background:ut}=ht,xt={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ut}`]};await Uc(e,xt)}const i=Qt();t.useHtmlLabels=i.htmlLabels;let n=((ft=i.er)==null?void 0:ft.diagramPadding)??10,a=((st=i.er)==null?void 0:st.entityPadding)??6;const{cssStyles:o}=t,{labelStyles:s,nodeStyles:c}=K(t);if(r.attributes.length===0&&t.label){const ht={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5,classes:""};sr(t.label,i)+ht.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const ut=await js(e,t,ht);if(!It(i.htmlLabels)){const xt=ut.select("text"),z=(mt=xt.node())==null?void 0:mt.getBBox();xt.attr("transform",`translate(${-z.width/2}, 0)`)}return ut}i.htmlLabels||(n*=1.25,a*=1.25);let l=nt(t);l||(l="node default");const h=e.insert("g").attr("class",l).attr("id",t.domId||t.id),u=await ri(h,t.label??"",i,0,0,["name"],s);u.height+=a;let f=0;const d=[],p=[];let m=0,y=0,x=0,b=0,C=!0,k=!0;for(const ht of r.attributes){const ut=await ri(h,ht.type,i,0,f,["attribute-type"],s);m=Math.max(m,ut.width+n);const xt=await ri(h,ht.name,i,0,f,["attribute-name"],s);y=Math.max(y,xt.width+n);const z=await ri(h,ht.keys.join(),i,0,f,["attribute-keys"],s);x=Math.max(x,z.width+n);const G=await ri(h,ht.comment,i,0,f,["attribute-comment"],s);b=Math.max(b,G.width+n);const et=Math.max(ut.height,xt.height,z.height,G.height)+a;p.push({yOffset:f,rowHeight:et}),f+=et}let w=4;x<=n&&(C=!1,x=0,w--),b<=n&&(k=!1,b=0,w--);const _=h.node().getBBox();if(u.width+n*2-(m+y+x+b)>0){const ht=u.width+n*2-(m+y+x+b);m+=ht/w,y+=ht/w,x>0&&(x+=ht/w),b>0&&(b+=ht/w)}const v=m+y+x+b,D=X.svg(h),I=Z(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let O=0;p.length>0&&(O=p.reduce((ht,ut)=>ht+((ut==null?void 0:ut.rowHeight)??0),0));const T=Math.max(_.width+n*2,(t==null?void 0:t.width)||0,v),P=Math.max((O??0)+u.height,(t==null?void 0:t.height)||0),E=-T/2,M=-P/2;h.selectAll("g:not(:first-child)").each((ht,ut,xt)=>{const z=yt(xt[ut]),G=z.attr("transform");let et=0,N=0;if(G){const gt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(G);gt&&(et=parseFloat(gt[1]),N=parseFloat(gt[2]),z.attr("class").includes("attribute-name")?et+=m:z.attr("class").includes("attribute-keys")?et+=m+y:z.attr("class").includes("attribute-comment")&&(et+=m+y+x))}z.attr("transform",`translate(${E+n/2+et}, ${N+M+u.height+a/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(M+a/2)+")");const B=D.rectangle(E,M,T,P,I),L=h.insert(()=>B,":first-child").attr("style",o.join("")),{themeVariables:F}=Qt(),{rowEven:$,rowOdd:q,nodeBorder:Y}=F;d.push(0);for(const[ht,ut]of p.entries()){const z=(ht+1)%2===0&&ut.yOffset!==0,G=D.rectangle(E,u.height+M+(ut==null?void 0:ut.yOffset),T,ut==null?void 0:ut.rowHeight,{...I,fill:z?$:q,stroke:Y});h.insert(()=>G,"g.label").attr("style",o.join("")).attr("class",`row-rect-${z?"even":"odd"}`)}let U=D.line(E,u.height+M,T+E,u.height+M,I);h.insert(()=>U).attr("class","divider"),U=D.line(m+E,u.height+M,m+E,P+M,I),h.insert(()=>U).attr("class","divider"),C&&(U=D.line(m+y+E,u.height+M,m+y+E,P+M,I),h.insert(()=>U).attr("class","divider")),k&&(U=D.line(m+y+x+E,u.height+M,m+y+x+E,P+M,I),h.insert(()=>U).attr("class","divider"));for(const ht of d)U=D.line(E,u.height+M+ht,T+E,u.height+M+ht,I),h.insert(()=>U).attr("class","divider");if(Q(t,L),c&&t.look!=="handDrawn"){const ht=c.split(";"),ut=(ot=ht==null?void 0:ht.filter(xt=>xt.includes("stroke")))==null?void 0:ot.map(xt=>`${xt}`).join("; ");h.selectAll("path").attr("style",ut??""),h.selectAll(".row-rect-even path").attr("style",c)}return t.intersect=function(ht){return j.rect(t,ht)},h}g(Uc,"erBox");async function ri(e,t,r,i=0,n=0,a=[],o=""){const s=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==fu(t)&&(t=fu(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const c=s.node().appendChild(await mr(s,t,{width:sr(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=c.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let l=c.getBBox();if(It(r.htmlLabels)){const h=c.children[0];h.style.textAlign="start";const u=yt(c);l=h.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}return l}g(ri,"addText");async function Q0(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",nt(t)).attr("id",t.domId||t.id);let s=null,c=null,l=null,h=null,u=0,f=0,d=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await cn(s,{text:`«${b}»`},0),u=s.node().getBBox().height}c=o.insert("g").attr("class","label-group text"),await cn(c,t,0,["font-weight: bolder"]);const p=c.node().getBBox();f=p.height,l=o.insert("g").attr("class","members-group text");let m=0;for(const b of t.members){const C=await cn(l,b,m,[b.parseClassifier()]);m+=C+a}d=l.node().getBBox().height,d<=0&&(d=n/2),h=o.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const C=await cn(h,b,y,[b.parseClassifier()]);y+=C+a}let x=o.node().getBBox();if(s!==null){const b=s.node().getBBox();s.attr("transform",`translate(${-b.width/2})`)}return c.attr("transform",`translate(${-p.width/2}, ${u})`),x=o.node().getBBox(),l.attr("transform",`translate(0, ${u+f+n*2})`),x=o.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}g(Q0,"textHelper");async function cn(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Qt();let o="useHtmlLabels"in t?t.useHtmlLabels:It(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),Ti(s)&&(o=!0);const c=await mr(n,uc(Gr(s)),{width:sr(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let l,h=1;if(o){const u=c.children[0],f=yt(c);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const p=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(m=>new Promise(y=>{function x(){var b;if(m.style.display="flex",m.style.flexDirection="column",p){const C=((b=a.fontSize)==null?void 0:b.toString())??window.getComputedStyle(document.body).fontSize,w=parseInt(C,10)*5+"px";m.style.minWidth=w,m.style.maxWidth=w}else m.style.width="100%";y(m)}g(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}l=u.getBoundingClientRect(),f.attr("width",l.width),f.attr("height",l.height)}else{i.includes("font-weight: bolder")&&yt(c).selectAll("tspan").attr("font-weight",""),h=c.children.length;const u=c.children[0];(c.textContent===""||c.textContent.includes("&gt"))&&(u.textContent=s[0]+s.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),s[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),l=c.getBBox()}return n.attr("transform","translate(0,"+(-l.height/(2*h)+r)+")"),l.height}g(cn,"addText");async function J0(e,t){var I,O;const r=Ct(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??It(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:c}=await Q0(e,t,r,a,n),{labelStyles:l,nodeStyles:h}=K(t);t.labelStyle=l,t.cssStyles=o.styles||"";const u=((I=o.styles)==null?void 0:I.join(";"))||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const f=o.members.length===0&&o.methods.length===0&&!((O=r.class)!=null&&O.hideEmptyMembersBox),d=X.svg(s),p=Z(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=c.width;let y=c.height;o.members.length===0&&o.methods.length===0?y+=n:o.members.length>0&&o.methods.length===0&&(y+=n*2);const x=-m/2,b=-y/2,C=d.rectangle(x-i,b-i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0),m+2*i,y+2*i+(f?i*2:o.members.length===0&&o.methods.length===0?-i:0),p),k=s.insert(()=>C,":first-child");k.attr("class","basic label-container");const w=k.node().getBBox();s.selectAll(".text").each((T,P,E)=>{var q;const M=yt(E[P]),B=M.attr("transform");let L=0;if(B){const U=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(B);U&&(L=parseFloat(U[2]))}let F=L+b+i-(f?i:o.members.length===0&&o.methods.length===0?-i/2:0);a||(F-=4);let $=x;(M.attr("class").includes("label-group")||M.attr("class").includes("annotation-group"))&&($=-((q=M.node())==null?void 0:q.getBBox().width)/2||0,s.selectAll("text").each(function(Y,U,ft){window.getComputedStyle(ft[U]).textAnchor==="middle"&&($=0)})),M.attr("transform",`translate(${$}, ${F})`)});const _=s.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,v=s.select(".label-group").node().getBBox().height-(f?i/2:0)||0,D=s.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(o.members.length>0||o.methods.length>0||f){const T=d.line(w.x,_+v+b+i,w.x+w.width,_+v+b+i,p);s.insert(()=>T).attr("class","divider").attr("style",u)}if(f||o.members.length>0||o.methods.length>0){const T=d.line(w.x,_+v+D+b+n*2+i,w.x+w.width,_+v+D+b+i+n*2,p);s.insert(()=>T).attr("class","divider").attr("style",u)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",u),k.select(":nth-child(2)").attr("style",u),s.selectAll(".divider").select("path").attr("style",u),t.labelStyle?s.selectAll("span").attr("style",t.labelStyle):s.selectAll("span").attr("style",u),!a){const T=RegExp(/color\s*:\s*([^;]*)/),P=T.exec(u);if(P){const E=P[0].replace("color","fill");s.selectAll("tspan").attr("style",E)}else if(l){const E=T.exec(l);if(E){const M=E[0].replace("color","fill");s.selectAll("tspan").attr("style",M)}}}return Q(t,k),t.intersect=function(T){return j.rect(t,T)},s}g(J0,"classBox");async function ty(e,t){var _,v;const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const n=t,a=t,o=20,s=20,c="verifyMethod"in t,l=nt(t),h=e.insert("g").attr("class",l).attr("id",t.domId??t.id);let u;c?u=await Ie(h,`&lt;&lt;${n.type}&gt;&gt;`,0,t.labelStyle):u=await Ie(h,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let f=u;const d=await Ie(h,n.name,f,t.labelStyle+"; font-weight: bold;");if(f+=d+s,c){const D=await Ie(h,`${n.requirementId?`ID: ${n.requirementId}`:""}`,f,t.labelStyle);f+=D;const I=await Ie(h,`${n.text?`Text: ${n.text}`:""}`,f,t.labelStyle);f+=I;const O=await Ie(h,`${n.risk?`Risk: ${n.risk}`:""}`,f,t.labelStyle);f+=O,await Ie(h,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,f,t.labelStyle)}else{const D=await Ie(h,`${a.type?`Type: ${a.type}`:""}`,f,t.labelStyle);f+=D,await Ie(h,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,f,t.labelStyle)}const p=(((_=h.node())==null?void 0:_.getBBox().width)??200)+o,m=(((v=h.node())==null?void 0:v.getBBox().height)??200)+o,y=-p/2,x=-m/2,b=X.svg(h),C=Z(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=b.rectangle(y,x,p,m,C),w=h.insert(()=>k,":first-child");if(w.attr("class","basic label-container").attr("style",i),h.selectAll(".label").each((D,I,O)=>{const T=yt(O[I]),P=T.attr("transform");let E=0,M=0;if(P){const $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(P);$&&(E=parseFloat($[1]),M=parseFloat($[2]))}const B=M-m/2;let L=y+o/2;(I===0||I===1)&&(L=E),T.attr("transform",`translate(${L}, ${B+o})`)}),f>u+d+s){const D=b.line(y,x+u+d+s,y+p,x+u+d+s,C);h.insert(()=>D).attr("style",i)}return Q(t,w),t.intersect=function(D){return j.rect(t,D)},h}g(ty,"requirementBox");async function Ie(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=Ct(),o=a.htmlLabels??!0,s=await mr(n,uc(Gr(t)),{width:sr(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a);let c;if(o){const l=s.children[0],h=yt(s);c=l.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}else{const l=s.children[0];for(const h of l.children)h.textContent=h.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&h.setAttribute("style",i);c=s.getBBox(),c.height+=6}return n.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}g(Ie,"addText");var xB=g(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ey(e,t,{config:r}){var P,E;const{labelStyles:i,nodeStyles:n}=K(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:c,label:l}=await at(e,t,nt(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((P=r==null?void 0:r.kanban)!=null&&P.ticketBaseUrl)&&(u=(E=r==null?void 0:r.kanban)==null?void 0:E.ticketBaseUrl.replace("#TICKET#",t.ticket),f=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,m;f?{label:p,bbox:m}=await Do(f,"ticket"in t&&t.ticket||"",d):{label:p,bbox:m}=await Do(s,"ticket"in t&&t.ticket||"",d);const{label:y,bbox:x}=await Do(s,"assigned"in t&&t.assigned||"",d);t.width=o;const b=10,C=(t==null?void 0:t.width)||0,k=Math.max(m.height,x.height)/2,w=Math.max(c.height+b*2,(t==null?void 0:t.height)||0)+k,_=-C/2,v=-w/2;l.attr("transform","translate("+(h-C/2)+", "+(-k-c.height/2)+")"),p.attr("transform","translate("+(h-C/2)+", "+(-k+c.height/2)+")"),y.attr("transform","translate("+(h+C/2-x.width-2*a)+", "+(-k+c.height/2)+")");let D;const{rx:I,ry:O}=t,{cssStyles:T}=t;if(t.look==="handDrawn"){const M=X.svg(s),B=Z(t,{}),L=I||O?M.path(yr(_,v,C,w,I||0),B):M.rectangle(_,v,C,w,B);D=s.insert(()=>L,":first-child"),D.attr("class","basic label-container").attr("style",T||null)}else{D=s.insert("rect",":first-child"),D.attr("class","basic label-container __APA__").attr("style",n).attr("rx",I??5).attr("ry",O??5).attr("x",_).attr("y",v).attr("width",C).attr("height",w);const M="priority"in t&&t.priority;if(M){const B=s.append("line"),L=_+2,F=v+Math.floor((I??0)/2),$=v+w-Math.floor((I??0)/2);B.attr("x1",L).attr("y1",F).attr("x2",L).attr("y2",$).attr("stroke-width","4").attr("stroke",xB(M))}}return Q(t,D),t.height=w,t.intersect=function(M){return j.rect(t,M)},s}g(ey,"kanbanItem");async function ry(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await at(e,t,nt(t)),c=a.width+10*o,l=a.height+8*o,h=.15*c,{cssStyles:u}=t,f=a.width+20,d=a.height+20,p=Math.max(c,f),m=Math.max(l,d);s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y;const x=`M0 0
197
- a${h},${h} 1 0,0 ${p*.25},${-1*m*.1}
198
- a${h},${h} 1 0,0 ${p*.25},0
199
- a${h},${h} 1 0,0 ${p*.25},0
200
- a${h},${h} 1 0,0 ${p*.25},${m*.1}
201
-
202
- a${h},${h} 1 0,0 ${p*.15},${m*.33}
203
- a${h*.8},${h*.8} 1 0,0 0,${m*.34}
204
- a${h},${h} 1 0,0 ${-1*p*.15},${m*.33}
205
-
206
- a${h},${h} 1 0,0 ${-1*p*.25},${m*.15}
207
- a${h},${h} 1 0,0 ${-1*p*.25},0
208
- a${h},${h} 1 0,0 ${-1*p*.25},0
209
- a${h},${h} 1 0,0 ${-1*p*.25},${-1*m*.15}
210
-
211
- a${h},${h} 1 0,0 ${-1*p*.1},${-1*m*.33}
212
- a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
213
- a${h},${h} 1 0,0 ${p*.1},${-1*m*.33}
214
- H0 V0 Z`;if(t.look==="handDrawn"){const b=X.svg(n),C=Z(t,{}),k=b.path(x,C);y=n.insert(()=>k,":first-child"),y.attr("class","basic label-container").attr("style",te(u))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return y.attr("transform",`translate(${-p/2}, ${-m/2})`),Q(t,y),t.calcIntersect=function(b,C){return j.rect(b,C)},t.intersect=function(b){return R.info("Bang intersect",t,b),j.rect(t,b)},n}g(ry,"bang");async function iy(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await at(e,t,nt(t)),c=a.width+2*o,l=a.height+2*o,h=.15*c,u=.25*c,f=.35*c,d=.2*c,{cssStyles:p}=t;let m;const y=`M0 0
215
- a${h},${h} 0 0,1 ${c*.25},${-1*c*.1}
216
- a${f},${f} 1 0,1 ${c*.4},${-1*c*.1}
217
- a${u},${u} 1 0,1 ${c*.35},${c*.2}
218
-
219
- a${h},${h} 1 0,1 ${c*.15},${l*.35}
220
- a${d},${d} 1 0,1 ${-1*c*.15},${l*.65}
221
-
222
- a${u},${h} 1 0,1 ${-1*c*.25},${c*.15}
223
- a${f},${f} 1 0,1 ${-1*c*.5},0
224
- a${h},${h} 1 0,1 ${-1*c*.25},${-1*c*.15}
225
-
226
- a${h},${h} 1 0,1 ${-1*c*.1},${-1*l*.35}
227
- a${d},${d} 1 0,1 ${c*.1},${-1*l*.65}
228
- H0 V0 Z`;if(t.look==="handDrawn"){const x=X.svg(n),b=Z(t,{}),C=x.path(y,b);m=n.insert(()=>C,":first-child"),m.attr("class","basic label-container").attr("style",te(p))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-c/2}, ${-l/2})`),Q(t,m),t.calcIntersect=function(x,b){return j.rect(x,b)},t.intersect=function(x){return R.info("Cloud intersect",t,x),j.rect(t,x)},n}g(iy,"cloud");async function ny(e,t){const{labelStyles:r,nodeStyles:i}=K(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await at(e,t,nt(t)),c=a.width+8*o,l=a.height+2*o,h=5,u=`
229
- M${-c/2} ${l/2-h}
230
- v${-l+2*h}
231
- q0,-${h} ${h},-${h}
232
- h${c-2*h}
233
- q${h},0 ${h},${h}
234
- v${l-2*h}
235
- q0,${h} -${h},${h}
236
- h${-c+2*h}
237
- q-${h},0 -${h},-${h}
238
- Z
239
- `,f=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-c/2).attr("y1",l/2).attr("x2",c/2).attr("y2",l/2),s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>s.node()),Q(t,f),t.calcIntersect=function(d,p){return j.rect(d,p)},t.intersect=function(d){return j.rect(t,d)},n}g(ny,"defaultMindmapNode");async function ay(e,t){const r={padding:t.padding??0};return Hc(e,t,r)}g(ay,"mindmapCircle");var bB=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:R0},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:F0},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:I0},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:W0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:s0},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Hc},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ry},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:iy},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:B0},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:d0},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:k0},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:w0},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Y0},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:_0},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:l0},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:U0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Qm},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:D0},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:z0},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:N0},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:u0},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:p0},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:r0},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:i0},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:n0},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:v0},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:X0},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:f0},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:j0},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:S0},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:a0},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:o0},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:V0},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:K0},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:c0},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:G0},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:h0},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:O0},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:A0},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:M0},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Km},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:e0},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:H0},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:q0},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Z0},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:E0},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:T0}],_B=g(()=>{const t=[...Object.entries({state:P0,choice:Jm,note:L0,rectWithTitle:$0,labelRect:C0,iconSquare:x0,iconCircle:m0,icon:g0,iconRounded:y0,imageSquare:b0,anchor:Zm,kanbanItem:ey,mindmapCircle:ay,defaultMindmapNode:ny,classBox:J0,erBox:Uc,requirementBox:ty}),...bB.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),sy=_B();function CB(e){return e in sy}g(CB,"isValidShape");var Ys=new Map;async function oy(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?sy[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),Ys.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}g(oy,"insertNode");var E3=g((e,t)=>{Ys.set(t.id,e)},"setNodeElem"),$3=g(()=>{Ys.clear()},"clear"),F3=g(e=>{const t=Ys.get(e.id);R.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),wB=g((e,t,r,i,n,a)=>{t.arrowTypeStart&&Qu(e,"start",t.arrowTypeStart,r,i,n,a),t.arrowTypeEnd&&Qu(e,"end",t.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),kB={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Qu=g((e,t,r,i,n,a,o)=>{var u;const s=kB[r];if(!s){R.warn(`Unknown arrow type: ${r}`);return}const c=s.type,h=`${n}_${a}-${c}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const f=o.replace(/[^\dA-Za-z]/g,"_"),d=`${h}_${f}`;if(!document.getElementById(d)){const p=document.getElementById(h);if(p){const m=p.cloneNode(!0);m.id=d,m.querySelectorAll("path, circle, line").forEach(x=>{x.setAttribute("stroke",o),s.fill&&x.setAttribute("fill",o)}),(u=p.parentNode)==null||u.appendChild(m)}}e.attr(`marker-${t}`,`url(${i}#${d})`)}else e.attr(`marker-${t}`,`url(${i}#${h})`)},"addEdgeMarker"),ys=new Map,Ut=new Map,D3=g(()=>{ys.clear(),Ut.clear()},"clear"),oa=g(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),vB=g(async(e,t)=>{let r=It(Ct().flowchart.htmlLabels);const{labelStyles:i}=K(t);t.labelStyle=i;const n=await mr(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});R.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id);o.node().appendChild(n);let s=n.getBBox();if(r){const l=n.children[0],h=yt(n);s=l.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),ys.set(t.id,a),t.width=s.width,t.height=s.height;let c;if(t.startLabelLeft){const l=await Lr(t.startLabelLeft,oa(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Ut.get(t.id)||Ut.set(t.id,{}),Ut.get(t.id).startLeft=h,hn(c,t.startLabelLeft)}if(t.startLabelRight){const l=await Lr(t.startLabelRight,oa(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=h.node().appendChild(l),u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Ut.get(t.id)||Ut.set(t.id,{}),Ut.get(t.id).startRight=h,hn(c,t.startLabelRight)}if(t.endLabelLeft){const l=await Lr(t.endLabelLeft,oa(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(l),Ut.get(t.id)||Ut.set(t.id,{}),Ut.get(t.id).endLeft=h,hn(c,t.endLabelLeft)}if(t.endLabelRight){const l=await Lr(t.endLabelRight,oa(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(l),Ut.get(t.id)||Ut.set(t.id,{}),Ut.get(t.id).endRight=h,hn(c,t.endLabelRight)}return n},"insertEdgeLabel");function hn(e,t){Ct().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}g(hn,"setTerminalWidth");var SB=g((e,t)=>{R.debug("Moving label abc88 ",e.id,e.label,ys.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Ct(),{subGraphTitleTotalMargin:n}=bc(i);if(e.label){const a=ys.get(e.id);let o=e.x,s=e.y;if(r){const c=Te.calcLabelPosition(r);R.debug("Moving label "+e.label+" from (",o,",",s,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(o=c.x,s=c.y)}a.attr("transform",`translate(${o}, ${s+n/2})`)}if(e.startLabelLeft){const a=Ut.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const c=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=c.x,s=c.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const a=Ut.get(e.id).startRight;let o=e.x,s=e.y;if(r){const c=Te.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=c.x,s=c.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const a=Ut.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const c=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=c.x,s=c.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const a=Ut.get(e.id).endRight;let o=e.x,s=e.y;if(r){const c=Te.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=c.x,s=c.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),TB=g((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,s=e.height/2;return n>=o||a>=s},"outsideNode"),MB=g((e,t,r)=>{R.debug(`intersection calc abc89:
240
- outsidePoint: ${JSON.stringify(t)}
241
- insidePoint : ${JSON.stringify(r)}
242
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const c=e.height/2,l=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*c){let u=r.y<t.y?t.y-c-n:n-c-t.y;s=h*u/l;const f={x:r.x<t.x?r.x+s:r.x-h+s,y:r.y<t.y?r.y+l-u:r.y-l+u};return s===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),l===0&&(f.y=t.y),R.debug(`abc89 top/bottom calc, Q ${l}, q ${u}, R ${h}, r ${s}`,f),f}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let u=l*s/h,f=r.x<t.x?r.x+h-s:r.x-h+s,d=r.y<t.y?r.y+u:r.y-u;return R.debug(`sides calc abc89, Q ${l}, q ${u}, R ${h}, r ${s}`,{_x:f,_y:d}),s===0&&(f=t.x,d=t.y),h===0&&(f=t.x),l===0&&(d=t.y),{x:f,y:d}}},"intersection"),Ju=g((e,t)=>{R.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(R.info("abc88 checking point",a,t),!TB(t,a)&&!n){const o=MB(t,i,a);R.debug("abc88 inside",a,i,o),R.debug("abc88 intersection",o,t);let s=!1;r.forEach(c=>{s=s||c.x===o.x&&c.y===o.y}),r.some(c=>c.x===o.x&&c.y===o.y)?R.warn("abc88 no intersect",o,r):r.push(o),n=!0}else R.warn("abc88 outside",a,i),i=a,n||r.push(a)}),R.debug("returning points",r),r},"cutPathAtIntersect");function ly(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}g(ly,"extractCornerPoints");var tf=g(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),AB=g(function(e){const{cornerPointPositions:t}=ly(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=tf(n,o,5),c=tf(a,o,5),l=c.x-s.x,h=c.y-s.y;r.push(s);const u=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){R.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;o.x===s.x?f={x:l<0?s.x-d+u:s.x+d-u,y:h<0?s.y-u:s.y+u}:f={x:l<0?s.x-u:s.x+u,y:h<0?s.y-d+u:s.y+d-u}}else R.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,c)}else r.push(e[i]);return r},"fixCorners"),LB=g((e,t,r)=>{const i=e-t-r,n=2,a=2,o=n+a,s=Math.floor(i/o),c=Array(s).fill(`${n} ${a}`).join(" ");return`0 ${t} ${c} ${r}`},"generateDashArray"),BB=g(function(e,t,r,i,n,a,o,s=!1){var M;const{handDrawnSeed:c}=Ct();let l=t.points,h=!1;const u=n;var f=a;const d=[];for(const B in t.cssCompiledStyles)Pg(B)||d.push(t.cssCompiledStyles[B]);R.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!s&&(l=l.slice(1,t.points.length-1),l.unshift(u.intersect(l[0])),R.debug("Last point UIO",t.start,"-->",t.end,l[l.length-1],f,f.intersect(l[l.length-1])),l.push(f.intersect(l[l.length-1])));const p=btoa(JSON.stringify(l));t.toCluster&&(R.info("to cluster abc88",r.get(t.toCluster)),l=Ju(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(R.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(l,null,2)),l=Ju(l.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=l.filter(B=>!Number.isNaN(B.y));m=AB(m);let y=ya;switch(y=Ha,t.curve){case"linear":y=Ha;break;case"basis":y=ya;break;case"cardinal":y=wd;break;case"bumpX":y=yd;break;case"bumpY":y=xd;break;case"catmullRom":y=vd;break;case"monotoneX":y=Bd;break;case"monotoneY":y=Ed;break;case"natural":y=Fd;break;case"step":y=Dd;break;case"stepAfter":y=Rd;break;case"stepBefore":y=Od;break;default:y=ya}const{x,y:b}=MS(t),C=ek().x(x).y(b).curve(y);let k;switch(t.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(t.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let w,_=t.curve==="rounded"?cy(hy(m,t),5):C(m);const v=Array.isArray(t.style)?t.style:[t.style];let D=v.find(B=>B==null?void 0:B.startsWith("stroke:")),I=!1;if(t.look==="handDrawn"){const B=X.svg(e);Object.assign([],m);const L=B.path(_,{roughness:.3,seed:c});k+=" transition",w=yt(L).select("path").attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")).attr("style",v?v.reduce(($,q)=>$+";"+q,""):"");let F=w.attr("d");w.attr("d",F),e.node().appendChild(w.node())}else{const B=d.join(";"),L=v?v.reduce((st,mt)=>st+mt+";",""):"";let F="";t.animate&&(F=" edge-animation-fast"),t.animation&&(F=" edge-animation-"+t.animation);const $=(B?B+";"+L+";":L)+";"+(v?v.reduce((st,mt)=>st+";"+mt,""):"");w=e.append("path").attr("d",_).attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")+(F??"")).attr("style",$),D=(M=$.match(/stroke:([^;]+)/))==null?void 0:M[1],I=t.animate===!0||!!t.animation||B.includes("animation");const q=w.node(),Y=typeof q.getTotalLength=="function"?q.getTotalLength():0,U=yu[t.arrowTypeStart]||0,ft=yu[t.arrowTypeEnd]||0;if(t.look==="neo"&&!I){const mt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?LB(Y,U,ft):`0 ${U} ${Y-U-ft} ${ft}`}; stroke-dashoffset: 0;`;w.attr("style",mt+w.attr("style"))}}w.attr("data-edge",!0),w.attr("data-et","edge"),w.attr("data-id",t.id),w.attr("data-points",p),t.showPoints&&m.forEach(B=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",B.x).attr("cy",B.y)});let O="";(Ct().flowchart.arrowMarkerAbsolute||Ct().state.arrowMarkerAbsolute)&&(O=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,O=O.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),R.info("arrowTypeStart",t.arrowTypeStart),R.info("arrowTypeEnd",t.arrowTypeEnd),wB(w,t,O,o,i,D);const T=Math.floor(l.length/2),P=l[T];Te.isLabelCoordinateInPath(P,w.attr("d"))||(h=!0);let E={};return h&&(E.updatedPath=l),E.originalPath=t.points,E},"insertEdge");function cy(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const o=e[a],s=e[a-1],c=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const l=o.x-s.x,h=o.y-s.y,u=c.x-o.x,f=c.y-o.y,d=Math.hypot(l,h),p=Math.hypot(u,f);if(d<n||p<n){r+=`L${o.x},${o.y}`;continue}const m=l/d,y=h/d,x=u/p,b=f/p,C=m*x+y*b,k=Math.max(-1,Math.min(1,C)),w=Math.acos(k);if(w<n||Math.abs(Math.PI-w)<n){r+=`L${o.x},${o.y}`;continue}const _=Math.min(t/Math.sin(w/2),d/2,p/2),v=o.x-m*_,D=o.y-y*_,I=o.x+x*_,O=o.y+b*_;r+=`L${v},${D}`,r+=`Q${o.x},${o.y} ${I},${O}`}}return r}g(cy,"generateRoundedPath");function $l(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}g($l,"calculateDeltaAndAngle");function hy(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&Zt[t.arrowTypeStart]){const n=Zt[t.arrowTypeStart],a=e[0],o=e[1],{angle:s}=$l(a,o),c=n*Math.cos(s),l=n*Math.sin(s);r[0].x=a.x+c,r[0].y=a.y+l}const i=e.length;if(i>=2&&Zt[t.arrowTypeEnd]){const n=Zt[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:s}=$l(o,a),c=n*Math.cos(s),l=n*Math.sin(s);r[i-1].x=a.x-c,r[i-1].y=a.y-l}return r}g(hy,"applyMarkerOffsetsToPoints");var EB=g((e,t,r,i)=>{t.forEach(n=>{GB[n](e,r,i)})},"insertMarkers"),$B=g((e,t,r)=>{R.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),FB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),DB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),OB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),RB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),IB=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),PB=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),NB=g((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),zB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),WB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),qB=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),HB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),UB=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),jB=g((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
243
- L20,10
244
- M20,10
245
- L0,20`)},"requirement_arrow"),YB=g((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),GB={extension:$B,composition:FB,aggregation:DB,dependency:OB,lollipop:RB,point:IB,circle:PB,cross:NB,barb:zB,only_one:WB,zero_or_one:qB,one_or_more:HB,zero_or_more:UB,requirement_arrow:jB,requirement_contains:YB},VB=EB,XB={common:Ei,getConfig:Qt,insertCluster:iB,insertEdge:BB,insertEdgeLabel:vB,insertMarkers:VB,insertNode:oy,interpolateToCurve:Sc,labelHelper:at,log:R,positionEdgeLabel:SB},Ln={},uy=g(e=>{for(const t of e)Ln[t.name]=t},"registerLayoutLoaders"),ZB=g(()=>{uy([{name:"dagre",loader:g(async()=>await kt(()=>import("./dagre-6UL2VRFP-BUmOTBjK.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:g(async()=>await kt(()=>import("./cose-bilkent-S5V4N54A-DLVc0vYA.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");ZB();var O3=g(async(e,t)=>{if(!(e.layoutAlgorithm in Ln))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ln[e.layoutAlgorithm];return(await r.loader()).render(e,t,XB,{algorithm:r.algorithm})},"render"),R3=g((e="",{fallback:t="dagre"}={})=>{if(e in Ln)return e;if(t in Ln)return R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),fy="comm",dy="rule",py="decl",KB="@import",QB="@namespace",JB="@keyframes",tE="@layer",gy=Math.abs,jc=String.fromCharCode;function my(e){return e.trim()}function va(e,t,r){return e.replace(t,r)}function eE(e,t,r){return e.indexOf(t,r)}function hi(e,t){return e.charCodeAt(t)|0}function Li(e,t,r){return e.slice(t,r)}function Pe(e){return e.length}function rE(e){return e.length}function la(e,t){return t.push(e),e}var Gs=1,Bi=1,yy=0,be=0,Ft=0,Ri="";function Yc(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Gs,column:Bi,length:o,return:"",siblings:s}}function iE(){return Ft}function nE(){return Ft=be>0?hi(Ri,--be):0,Bi--,Ft===10&&(Bi=1,Gs--),Ft}function Ae(){return Ft=be<yy?hi(Ri,be++):0,Bi++,Ft===10&&(Bi=1,Gs++),Ft}function cr(){return hi(Ri,be)}function Sa(){return be}function Vs(e,t){return Li(Ri,e,t)}function Bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function aE(e){return Gs=Bi=1,yy=Pe(Ri=e),be=0,[]}function sE(e){return Ri="",e}function Oo(e){return my(Vs(be-1,Fl(e===91?e+2:e===40?e+1:e)))}function oE(e){for(;(Ft=cr())&&Ft<33;)Ae();return Bn(e)>2||Bn(Ft)>3?"":" "}function lE(e,t){for(;--t&&Ae()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Vs(e,Sa()+(t<6&&cr()==32&&Ae()==32))}function Fl(e){for(;Ae();)switch(Ft){case e:return be;case 34:case 39:e!==34&&e!==39&&Fl(Ft);break;case 40:e===41&&Fl(e);break;case 92:Ae();break}return be}function cE(e,t){for(;Ae()&&e+Ft!==57;)if(e+Ft===84&&cr()===47)break;return"/*"+Vs(t,be-1)+"*"+jc(e===47?e:Ae())}function hE(e){for(;!Bn(cr());)Ae();return Vs(e,be)}function uE(e){return sE(Ta("",null,null,null,[""],e=aE(e),0,[0],e))}function Ta(e,t,r,i,n,a,o,s,c){for(var l=0,h=0,u=o,f=0,d=0,p=0,m=1,y=1,x=1,b=0,C="",k=n,w=a,_=i,v=C;y;)switch(p=b,b=Ae()){case 40:if(p!=108&&hi(v,u-1)==58){eE(v+=va(Oo(b),"&","&\f"),"&\f",gy(l?s[l-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:v+=Oo(b);break;case 9:case 10:case 13:case 32:v+=oE(p);break;case 92:v+=lE(Sa()-1,7);continue;case 47:switch(cr()){case 42:case 47:la(fE(cE(Ae(),Sa()),t,r,c),c),(Bn(p||1)==5||Bn(cr()||1)==5)&&Pe(v)&&Li(v,-1,void 0)!==" "&&(v+=" ");break;default:v+="/"}break;case 123*m:s[l++]=Pe(v)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(v=va(v,/\f/g,"")),d>0&&(Pe(v)-u||m===0&&p===47)&&la(d>32?rf(v+";",i,r,u-1,c):rf(va(v," ","")+";",i,r,u-2,c),c);break;case 59:v+=";";default:if(la(_=ef(v,t,r,l,h,n,s,C,k=[],w=[],u,a),a),b===123)if(h===0)Ta(v,t,_,_,k,a,u,s,w);else{switch(f){case 99:if(hi(v,3)===110)break;case 108:if(hi(v,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Ta(e,_,_,i&&la(ef(e,_,_,0,0,n,s,C,n,k=[],u,w),w),n,w,u,s,i?k:w):Ta(v,_,_,_,[""],w,0,s,w)}}l=h=d=0,m=x=1,C=v="",u=o;break;case 58:u=1+Pe(v),d=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&nE()==125)continue}switch(v+=jc(b),b*m){case 38:x=h>0?1:(v+="\f",-1);break;case 44:s[l++]=(Pe(v)-1)*x,x=1;break;case 64:cr()===45&&(v+=Oo(Ae())),f=cr(),h=u=Pe(C=v+=hE(Sa())),b++;break;case 45:p===45&&Pe(v)==2&&(m=0)}}return a}function ef(e,t,r,i,n,a,o,s,c,l,h,u){for(var f=n-1,d=n===0?a:[""],p=rE(d),m=0,y=0,x=0;m<i;++m)for(var b=0,C=Li(e,f+1,f=gy(y=o[m])),k=e;b<p;++b)(k=my(y>0?d[b]+" "+C:va(C,/&\f/g,d[b])))&&(c[x++]=k);return Yc(e,t,r,n===0?dy:s,c,l,h,u)}function fE(e,t,r,i){return Yc(e,t,r,fy,jc(iE()),Li(e,2,-2),0,i)}function rf(e,t,r,i,n){return Yc(e,t,r,py,Li(e,0,i),Li(e,i+1,-1),i,n)}function Dl(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function dE(e,t,r,i){switch(e.type){case tE:if(e.children.length)break;case KB:case QB:case py:return e.return=e.return||e.value;case fy:return"";case JB:return e.return=e.value+"{"+Dl(e.children,i)+"}";case dy:if(!Pe(e.value=e.props.join(",")))return""}return Pe(r=Dl(e.children,i))?e.return=e.value+"{"+r+"}":""}var pE=Hg(Object.keys,Object),gE=Object.prototype,mE=gE.hasOwnProperty;function yE(e){if(!Is(e))return pE(e);var t=[];for(var r in Object(e))mE.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ol=Yr(He,"DataView"),Rl=Yr(He,"Promise"),Il=Yr(He,"Set"),Pl=Yr(He,"WeakMap"),nf="[object Map]",xE="[object Object]",af="[object Promise]",sf="[object Set]",of="[object WeakMap]",lf="[object DataView]",bE=jr(Ol),_E=jr(Mn),CE=jr(Rl),wE=jr(Il),kE=jr(Pl),vr=Fi;(Ol&&vr(new Ol(new ArrayBuffer(1)))!=lf||Mn&&vr(new Mn)!=nf||Rl&&vr(Rl.resolve())!=af||Il&&vr(new Il)!=sf||Pl&&vr(new Pl)!=of)&&(vr=function(e){var t=Fi(e),r=t==xE?e.constructor:void 0,i=r?jr(r):"";if(i)switch(i){case bE:return lf;case _E:return nf;case CE:return af;case wE:return sf;case kE:return of}return t});var vE="[object Map]",SE="[object Set]",TE=Object.prototype,ME=TE.hasOwnProperty;function cf(e){if(e==null)return!0;if(Ps(e)&&(os(e)||typeof e=="string"||typeof e.splice=="function"||kc(e)||vc(e)||ss(e)))return!e.length;var t=vr(e);if(t==vE||t==SE)return!e.size;if(Is(e))return!yE(e).length;for(var r in e)if(ME.call(e,r))return!1;return!0}var xy="c4",AE=g(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),LE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-CxvH_CnU.js");return{diagram:t}},__vite__mapDeps([8,9]),import.meta.url);return{id:xy,diagram:e}},"loader"),BE={id:xy,detector:AE,loader:LE},EE=BE,by="flowchart",$E=g((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),FE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-C5THihSS.js");return{diagram:t}},__vite__mapDeps([10,11,12,13]),import.meta.url);return{id:by,diagram:e}},"loader"),DE={id:by,detector:$E,loader:FE},OE=DE,_y="flowchart-v2",RE=g((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),IE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-C5THihSS.js");return{diagram:t}},__vite__mapDeps([10,11,12,13]),import.meta.url);return{id:_y,diagram:e}},"loader"),PE={id:_y,detector:RE,loader:IE},NE=PE,Cy="er",zE=g(e=>/^\s*erDiagram/.test(e),"detector"),WE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-Bt9WYEVl.js");return{diagram:t}},__vite__mapDeps([14,12,13]),import.meta.url);return{id:Cy,diagram:e}},"loader"),qE={id:Cy,detector:zE,loader:WE},HE=qE,wy="gitGraph",UE=g(e=>/^\s*gitGraph/.test(e),"detector"),jE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-CHv2T5DP.js");return{diagram:t}},__vite__mapDeps([15,16,17,18,2,4,5]),import.meta.url);return{id:wy,diagram:e}},"loader"),YE={id:wy,detector:UE,loader:jE},GE=YE,ky="gantt",VE=g(e=>/^\s*gantt/.test(e),"detector"),XE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-DAkh2oA5.js");return{diagram:t}},[],import.meta.url);return{id:ky,diagram:e}},"loader"),ZE={id:ky,detector:VE,loader:XE},KE=ZE,vy="info",QE=g(e=>/^\s*info/.test(e),"detector"),JE=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./infoDiagram-WHAUD3N6-D3Iff__M.js");return{diagram:t}},__vite__mapDeps([19,18,2,4,5]),import.meta.url);return{id:vy,diagram:e}},"loader"),t$={id:vy,detector:QE,loader:JE},Sy="pie",e$=g(e=>/^\s*pie/.test(e),"detector"),r$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-CS__cEty.js");return{diagram:t}},__vite__mapDeps([20,16,18,2,4,5]),import.meta.url);return{id:Sy,diagram:e}},"loader"),i$={id:Sy,detector:e$,loader:r$},Ty="quadrantChart",n$=g(e=>/^\s*quadrantChart/.test(e),"detector"),a$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-Cq8EFFXy.js");return{diagram:t}},[],import.meta.url);return{id:Ty,diagram:e}},"loader"),s$={id:Ty,detector:n$,loader:a$},o$=s$,My="xychart",l$=g(e=>/^\s*xychart(-beta)?/.test(e),"detector"),c$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-HntCx39-.js");return{diagram:t}},[],import.meta.url);return{id:My,diagram:e}},"loader"),h$={id:My,detector:l$,loader:c$},u$=h$,Ay="requirement",f$=g(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),d$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-DJ7dPR9-.js");return{diagram:t}},__vite__mapDeps([21,12,13]),import.meta.url);return{id:Ay,diagram:e}},"loader"),p$={id:Ay,detector:f$,loader:d$},g$=p$,Ly="sequence",m$=g(e=>/^\s*sequenceDiagram/.test(e),"detector"),y$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-CNC5hfHr.js");return{diagram:t}},__vite__mapDeps([22,9,17]),import.meta.url);return{id:Ly,diagram:e}},"loader"),x$={id:Ly,detector:m$,loader:y$},b$=x$,By="class",_$=g((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),C$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-Cxnli4ed.js");return{diagram:t}},__vite__mapDeps([23,24,11,12,13]),import.meta.url);return{id:By,diagram:e}},"loader"),w$={id:By,detector:_$,loader:C$},k$=w$,Ey="classDiagram",v$=g((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),S$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-Cxnli4ed.js");return{diagram:t}},__vite__mapDeps([25,24,11,12,13]),import.meta.url);return{id:Ey,diagram:e}},"loader"),T$={id:Ey,detector:v$,loader:S$},M$=T$,$y="state",A$=g((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),L$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-DPogLVYr.js");return{diagram:t}},__vite__mapDeps([26,27,12,13,1,2,3,4]),import.meta.url);return{id:$y,diagram:e}},"loader"),B$={id:$y,detector:A$,loader:L$},E$=B$,Fy="stateDiagram",$$=g((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),F$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-DYEZ0q8X.js");return{diagram:t}},__vite__mapDeps([28,27,12,13]),import.meta.url);return{id:Fy,diagram:e}},"loader"),D$={id:Fy,detector:$$,loader:F$},O$=D$,Dy="journey",R$=g(e=>/^\s*journey/.test(e),"detector"),I$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-Dma7uvIP.js");return{diagram:t}},__vite__mapDeps([29,9,11]),import.meta.url);return{id:Dy,diagram:e}},"loader"),P$={id:Dy,detector:R$,loader:I$},N$=P$,z$=g((e,t,r)=>{R.debug(`rendering svg for syntax error
246
- `);const i=bv(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),tp(i,100,512,!0),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 ${r}`)},"draw"),Oy={draw:z$},W$=Oy,q$={db:{},renderer:Oy,parser:{parse:g(()=>{},"parse")}},H$=q$,Ry="flowchart-elk",U$=g((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),j$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-C5THihSS.js");return{diagram:t}},__vite__mapDeps([10,11,12,13]),import.meta.url);return{id:Ry,diagram:e}},"loader"),Y$={id:Ry,detector:U$,loader:j$},G$=Y$,Iy="timeline",V$=g(e=>/^\s*timeline/.test(e),"detector"),X$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-DtZbKxJ6.js");return{diagram:t}},[],import.meta.url);return{id:Iy,diagram:e}},"loader"),Z$={id:Iy,detector:V$,loader:X$},K$=Z$,Py="mindmap",Q$=g(e=>/^\s*mindmap/.test(e),"detector"),J$=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-M2wzuJex.js");return{diagram:t}},__vite__mapDeps([30,12,13]),import.meta.url);return{id:Py,diagram:e}},"loader"),tF={id:Py,detector:Q$,loader:J$},eF=tF,Ny="kanban",rF=g(e=>/^\s*kanban/.test(e),"detector"),iF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-D56zGc6I.js");return{diagram:t}},__vite__mapDeps([31,11]),import.meta.url);return{id:Ny,diagram:e}},"loader"),nF={id:Ny,detector:rF,loader:iF},aF=nF,zy="sankey",sF=g(e=>/^\s*sankey(-beta)?/.test(e),"detector"),oF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-Bv2bFVOF.js");return{diagram:t}},[],import.meta.url);return{id:zy,diagram:e}},"loader"),lF={id:zy,detector:sF,loader:oF},cF=lF,Wy="packet",hF=g(e=>/^\s*packet(-beta)?/.test(e),"detector"),uF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-CGFyLHgt.js");return{diagram:t}},__vite__mapDeps([32,16,18,2,4,5]),import.meta.url);return{id:Wy,diagram:e}},"loader"),fF={id:Wy,detector:hF,loader:uF},qy="radar",dF=g(e=>/^\s*radar-beta/.test(e),"detector"),pF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-p3AlQ66r.js");return{diagram:t}},__vite__mapDeps([33,16,18,2,4,5]),import.meta.url);return{id:qy,diagram:e}},"loader"),gF={id:qy,detector:dF,loader:pF},Hy="block",mF=g(e=>/^\s*block(-beta)?/.test(e),"detector"),yF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-CKJM_wgX.js");return{diagram:t}},__vite__mapDeps([34,11,5,2,1]),import.meta.url);return{id:Hy,diagram:e}},"loader"),xF={id:Hy,detector:mF,loader:yF},bF=xF,Uy="architecture",_F=g(e=>/^\s*architecture/.test(e),"detector"),CF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-jAqyWwtR.js");return{diagram:t}},__vite__mapDeps([35,16,18,2,4,5,7]),import.meta.url);return{id:Uy,diagram:e}},"loader"),wF={id:Uy,detector:_F,loader:CF},kF=wF,jy="treemap",vF=g(e=>/^\s*treemap/.test(e),"detector"),SF=g(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-DDqf8b18.js");return{diagram:t}},__vite__mapDeps([36,13,16,18,2,4,5]),import.meta.url);return{id:jy,diagram:e}},"loader"),TF={id:jy,detector:vF,loader:SF},hf=!1,Xs=g(()=>{hf||(hf=!0,Ka("error",H$,e=>e.toLowerCase().trim()==="error"),Ka("---",{db:{clear:g(()=>{},"clear")},styles:{},renderer:{draw:g(()=>{},"draw")},parser:{parse:g(()=>{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")},"parse")},init:g(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),tl(G$,eF,kF),tl(EE,aF,M$,k$,HE,KE,t$,i$,g$,b$,NE,OE,K$,GE,O$,E$,N$,o$,cF,fF,u$,bF,gF,TF))},"addDiagrams"),MF=g(async()=>{R.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Or).map(async([r,{detector:i,loader:n}])=>{if(n)try{nl(r)}catch{try{const{diagram:a,id:o}=await n();Ka(o,a,i)}catch(a){throw R.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Or[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){R.error(`Failed to load ${t.length} external diagrams`);for(const r of t)R.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),AF="graphics-document document";function Yy(e,t){e.attr("role",AF),t!==""&&e.attr("aria-roledescription",t)}g(Yy,"setA11yDiagramInfo");function Gy(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}g(Gy,"addSVGa11yTitleDescription");var Er,Nl=(Er=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var l,h;const i=Qt(),n=ac(t,i);t=TA(t)+`
247
- `;try{nl(n)}catch{const u=Sk(n);if(!u)throw new qd(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();Ka(f,d)}const{db:a,parser:o,renderer:s,init:c}=nl(n);return o.parser&&(o.parser.yy=a),(l=a.clear)==null||l.call(a),c==null||c(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(t),new Er(n,t,a,o,s)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},g(Er,"Diagram"),Er),uf=[],LF=g(()=>{uf.forEach(e=>{e()}),uf=[]},"attachFunctions"),BF=g(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Vy(e){const t=e.match(Wd);if(!t)return{text:e,metadata:{}};let r=TS(t[1],{schema:SS})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}g(Vy,"extractFrontMatter");var EF=g(e=>e.replace(/\r\n?/g,`
248
- `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),$F=g(e=>{const{text:t,metadata:r}=Vy(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),FF=g(e=>{const t=Te.detectInit(e)??{},r=Te.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:dA(e),directive:t}},"processDirectives");function Gc(e){const t=EF(e),r=$F(t),i=FF(r.text),n=Bc(r.config,i.directive);return e=BF(i.text),{code:e,title:r.title,config:n}}g(Gc,"preprocessDiagram");function Xy(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}g(Xy,"toBase64");var DF=5e4,OF="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",RF="sandbox",IF="loose",PF="http://www.w3.org/2000/svg",NF="http://www.w3.org/1999/xlink",zF="http://www.w3.org/1999/xhtml",WF="100%",qF="100%",HF="border:0;margin:0;",UF="margin:0",jF="allow-top-navigation-by-user-activation allow-popups",YF='The "iframe" tag is not supported by your browser.',GF=["foreignobject"],VF=["dominant-baseline"];function Vc(e){const t=Gc(e);return Xa(),Wk(t.config??{}),t}g(Vc,"processAndSetConfigs");async function Zy(e,t){Xs();try{const{code:r,config:i}=Vc(e);return{diagramType:(await Qy(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}g(Zy,"parse");var ff=g((e,t,r=[])=>`
249
- .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),XF=g((e,t=new Map)=>{var i;let r="";if(e.themeCSS!==void 0&&(r+=`
250
- ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
251
- :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
252
- :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=e.htmlLabels??((i=e.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(c=>{cf(c.styles)||s.forEach(l=>{r+=ff(c.id,l,c.styles)}),cf(c.textStyles)||(r+=ff(c.id,"tspan",((c==null?void 0:c.textStyles)||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),ZF=g((e,t,r,i)=>{const n=XF(e,r),a=ov(t,n,e.themeVariables);return Dl(uE(`${i}{${a}}`),dE)},"createUserStyles"),KF=g((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Gr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),QF=g((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":qF,i=Xy(`<body style="${UF}">${e}</body>`);return`<iframe style="width:${WF};height:${r};${HF}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${jF}">
253
- ${YF}
254
- </iframe>`},"putIntoIFrame"),df=g((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",PF);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function zl(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}g(zl,"sandboxedIframe");var JF=g((e,t,r,i)=>{var n,a,o;(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),t3=g(async function(e,t,r){var P,E,M,B,L,F;Xs();const i=Vc(t);t=i.code;const n=Qt();R.debug(n),t.length>((n==null?void 0:n.maxTextSize)??DF)&&(t=OF);const a="#"+e,o="i"+e,s="#"+o,c="d"+e,l="#"+c,h=g(()=>{const q=yt(f?s:l).node();q&&"remove"in q&&q.remove()},"removeTempElements");let u=yt("body");const f=n.securityLevel===RF,d=n.securityLevel===IF,p=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const $=zl(yt(r),o);u=yt($.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=yt(r);df(u,e,c,`font-family: ${p}`,NF)}else{if(JF(document,e,c,o),f){const $=zl(yt("body"),o);u=yt($.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=yt("body");df(u,e,c)}let m,y;try{m=await Nl.fromText(t,{title:i.title})}catch($){if(n.suppressErrorRendering)throw h(),$;m=await Nl.fromText("error"),y=$}const x=u.select(l).node(),b=m.type,C=x.firstChild,k=C.firstChild,w=(E=(P=m.renderer).getClasses)==null?void 0:E.call(P,t,m),_=ZF(n,b,w,a),v=document.createElement("style");v.innerHTML=_,C.insertBefore(v,k);try{await m.renderer.draw(t,e,cu.version,m)}catch($){throw n.suppressErrorRendering?h():W$.draw(t,e,cu.version),$}const D=u.select(`${l} svg`),I=(B=(M=m.db).getAccTitle)==null?void 0:B.call(M),O=(F=(L=m.db).getAccDescription)==null?void 0:F.call(L);Jy(b,D,I,O),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",zF);let T=u.select(l).node().innerHTML;if(R.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),T=KF(T,f,It(n.arrowMarkerAbsolute)),f){const $=u.select(l+" svg").node();T=QF(T,$)}else d||(T=bi.sanitize(T,{ADD_TAGS:GF,ADD_ATTR:VF,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(LF(),y)throw y;return h(),{diagramType:b,svg:T,bindFunctions:m.db.bindFunctions}},"render");function Ky(e={}){var i;const t=Ot({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Nk(t),t!=null&&t.theme&&t.theme in er?t.themeVariables=er[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=er.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Pk(t):Gd();nc(r.logLevel),Xs()}g(Ky,"initialize");var Qy=g((e,t={})=>{const{code:r}=Gc(e);return Nl.fromText(r,t)},"getDiagramFromText");function Jy(e,t,r,i){Yy(t,e),Gy(t,r,i,t.attr("id"))}g(Jy,"addA11yInfo");var zr=Object.freeze({render:t3,parse:Zy,getDiagramFromText:Qy,initialize:Ky,getConfig:Qt,setConfig:Vd,getSiteConfig:Gd,updateSiteConfig:zk,reset:g(()=>{Xa()},"reset"),globalReset:g(()=>{Xa(Si)},"globalReset"),defaultConfig:Si});nc(Qt().logLevel);Xa(Qt());var e3=g((e,t,r)=>{R.warn(e),Lc(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),tx=g(async function(e={querySelector:".mermaid"}){try{await r3(e)}catch(t){if(Lc(t)&&R.error(t.str),de.parseError&&de.parseError(t),!e.suppressErrors)throw R.error("Use the suppressErrors option to suppress these errors"),t}},"run"),r3=g(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=zr.getConfig();R.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");R.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(R.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),zr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Te.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const c of Array.from(n)){if(R.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const l=`mermaid-${a.next()}`;o=c.innerHTML,o=Cm(Te.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Te.detectInit(o);h&&R.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await nx(l,o,c);c.innerHTML=u,e&&await e(l),f&&f(c)}catch(u){e3(u,s,de.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),ex=g(function(e){zr.initialize(e)},"initialize"),i3=g(async function(e,t,r){R.warn("mermaid.init is deprecated. Please use run instead."),e&&ex(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await tx(i)},"init"),n3=g(async(e,{lazyLoad:t=!0}={})=>{Xs(),tl(...e),t===!1&&await MF()},"registerExternalDiagrams"),rx=g(function(){if(de.startOnLoad){const{startOnLoad:e}=zr.getConfig();e&&de.run().catch(t=>R.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",rx,!1);var a3=g(function(e){de.parseError=e},"setParseErrorHandler"),xs=[],Ro=!1,ix=g(async()=>{if(!Ro){for(Ro=!0;xs.length>0;){const e=xs.shift();if(e)try{await e()}catch(t){R.error("Error executing queue",t)}}Ro=!1}},"executeQueue"),s3=g(async(e,t)=>new Promise((r,i)=>{const n=g(()=>new Promise((a,o)=>{zr.parse(e,t).then(s=>{a(s),r(s)},s=>{var c;R.error("Error parsing",s),(c=de.parseError)==null||c.call(de,s),o(s),i(s)})}),"performCall");xs.push(n),ix().catch(i)}),"parse"),nx=g((e,t,r)=>new Promise((i,n)=>{const a=g(()=>new Promise((o,s)=>{zr.render(e,t,r).then(c=>{o(c),i(c)},c=>{var l;R.error("Error parsing",c),(l=de.parseError)==null||l.call(de,c),s(c),n(c)})}),"performCall");xs.push(a),ix().catch(n)}),"render"),o3=g(()=>Object.keys(Or).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),de={startOnLoad:!0,mermaidAPI:zr,parse:s3,render:nx,init:i3,run:tx,registerExternalDiagrams:n3,registerLayoutLoaders:uy,initialize:ex,parseError:void 0,contentLoaded:rx,setParseErrorHandler:a3,detectType:ac,registerIconPacks:BL,getRegisteredDiagramsMetadata:o3},I3=de;/*! Check if previously processed *//*!
255
- * Wait for document loaded before starting the execution
256
- */export{ya as $,dn as A,b3 as B,mk as C,Yd as D,Bc as E,Qt as F,xA as G,mv as H,bv as I,SS as J,cu as K,Ns as L,y3 as M,id as N,x3 as O,Ek as P,vC as Q,$L as R,gC as S,ek as T,Ti as U,C3 as V,Zk as W,sc as X,fu as Y,cA as Z,g as _,Ot as a,m3 as a$,yA as a0,On as a1,ep as a2,nv as a3,Dn as a4,V as a5,it as a6,iB as a7,oy as a8,F3 as a9,_3 as aA,fk as aB,dk as aC,LL as aD,BL as aE,zn as aF,gk as aG,g3 as aH,h3 as aI,c3 as aJ,d3 as aK,f3 as aL,ud as aM,Jl as aN,Fn as aO,Kl as aP,Zl as aQ,ni as aR,Na as aS,u3 as aT,za as aU,LC as aV,BC as aW,ki as aX,EC as aY,$C as aZ,Ss as a_,am as aa,It as ab,mr as ac,bc as ad,MS as ae,Fm as af,Gr as ag,Pg as ah,td as ai,rd as aj,p3 as ak,K as al,VB as am,$3 as an,D3 as ao,B3 as ap,Q as aq,E3 as ar,BB as as,SB as at,vB as au,aA as av,KT as aw,QM as ax,Cc as ay,cf as az,fv as b,Ur as b0,sA as b1,Kg as b2,Ds as b3,Ps as b4,os as b5,Jg as b6,Zg as b7,RM as b8,nA as b9,Yg as bA,Il as bB,kt as bC,bi as bD,Ul as bE,I3 as bF,oA as bG,Is as bH,KM as ba,PT as bb,wc as bc,$M as bd,lA as be,Pn as bf,Fi as bg,ns as bh,HM as bi,yE as bj,In as bk,ss as bl,IM as bm,Ug as bn,WT as bo,qT as bp,vr as bq,Lu as br,HT as bs,kc as bt,zT as bu,YT as bv,Di as bw,gr as bx,vu as by,vc as bz,uv as c,Ct as d,Ei as e,om as f,hv as g,sr as h,xe as i,yt as j,tp as k,R as l,Ng as m,dv as n,pv as o,TS as p,CB as q,v3 as r,cv as s,lv as t,Te as u,k3 as v,CA as w,w3 as x,R3 as y,O3 as z};