@layers-app/editor 0.5.5-optimization → 0.5.5
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +10 -12
- package/dist/layers.0w5S-QQA.js +40 -0
- package/dist/layers.0wI6yvx5.js +39 -0
- package/dist/layers.2923K-vc.js +10 -0
- package/dist/layers.3hYFOwvv.js +8 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.5N13frHH.js +6 -0
- package/dist/layers.6IBx-qi5.js +10 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.7QozyVZs.js +35 -0
- package/dist/layers.8jNiUB6g.js +1 -0
- package/dist/layers.9THUd_df.js +6 -0
- package/dist/layers.9cmmyava.js +1089 -0
- package/dist/layers.9dEXo7_C.js +13 -0
- package/dist/layers.9o_U5jfj.js +39 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.AjDHx6UP.js +37 -0
- package/dist/layers.B-p6VlwR.js +9 -0
- package/dist/layers.B18ZgT9v.js +202 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B1wHHvE6.js +295 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B7K7JjK6.js +1510 -0
- package/dist/layers.B7dzLgTm.js +9 -0
- package/dist/layers.B8OtSObh.js +5 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BFcGp_Gv.js +220 -0
- package/dist/layers.BGyOsjNd.js +139 -0
- package/dist/layers.BHlsvftZ.js +9 -0
- package/dist/layers.BIWARpmB.js +41 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/layers.BKqtCWWZ.js +40 -0
- package/dist/layers.BLTdG0Mr.js +1619 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BLuog6Kb.js +1034 -0
- package/dist/layers.BNDDJ_2_.js +9 -0
- package/dist/layers.BOz1yBau.js +2 -0
- package/dist/layers.BPDfSLMf.js +10 -0
- package/dist/layers.BQLM3liS.js +437 -0
- package/dist/layers.BRwzEFNo.js +40 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BTOiiuLQ.js +116 -0
- package/dist/layers.BXh8X6qB.js +10 -0
- package/dist/layers.BYHU1eYE.js +9 -0
- package/dist/layers.BZvD_ufq.js +10 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.Bc-lInMK.js +793 -0
- package/dist/layers.BcrGngrS.js +1 -0
- package/dist/layers.BcvHk4_r.js +38 -0
- package/dist/layers.BdQk3Yld.js +802 -0
- package/dist/layers.BgJWoaX0.js +4 -0
- package/dist/layers.BldbIWu1.js +8 -0
- package/dist/layers.BmRLb_KH.js +70 -0
- package/dist/layers.BmXMWXPz.js +189 -0
- package/dist/layers.Bp5rrf5G.js +10 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.Bq14VT1U.js +40 -0
- package/dist/layers.BqdpPAoB.js +10 -0
- package/dist/layers.BqtKL1Vm.js +1283 -0
- package/dist/layers.BrFrT4aC.js +9 -0
- package/dist/layers.BrJ_0UsE.js +9 -0
- package/dist/layers.Bs0j4fBT.js +1 -0
- package/dist/layers.Bt-00ZMW.js +7 -0
- package/dist/layers.BufenkCO.js +39 -0
- package/dist/layers.BvQnydnN.js +39 -0
- package/dist/layers.Bvgecag6.js +1 -0
- package/dist/layers.Bw1mFZXl.js +11 -0
- package/dist/layers.BwKKYwFD.js +11 -0
- package/dist/layers.BwiupTbi.js +1359 -0
- package/dist/layers.BxDjh9NF.js +1 -0
- package/dist/layers.ByQyHVoi.js +1 -0
- package/dist/layers.BymfnWMg.js +39 -0
- package/dist/layers.ByxHbusl.js +230 -0
- package/dist/layers.BzNb_e9O.js +96 -0
- package/dist/layers.C-wRhDxe.js +6 -0
- package/dist/layers.C09RI0Hd.js +769 -0
- package/dist/layers.C0Lgw_Sx.js +11688 -0
- package/dist/layers.C1-YETKR.js +35 -0
- package/dist/layers.C1KOVN1R.js +268 -0
- package/dist/layers.C3269RRe.js +48146 -0
- package/dist/layers.C5JuEsOS.js +2479 -0
- package/dist/layers.C5PbzZgC.js +8 -0
- package/dist/layers.C7JUGsGr.js +791 -0
- package/dist/layers.C8QG97nQ.js +40 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.C9Xny9c1.js +7 -0
- package/dist/layers.C9vKJCjt.js +122 -0
- package/dist/layers.CA0K1Ecr.js +39 -0
- package/dist/layers.CAYtCPJ-.js +3 -0
- package/dist/layers.CBMcoJVX.js +207 -0
- package/dist/layers.CGLureRh.js +282 -0
- package/dist/layers.CGUTAZ4d.js +1 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CIN0toZS.js +41 -0
- package/dist/layers.CJW9IXO2.js +5 -0
- package/dist/layers.CLzT5cMn.js +8 -0
- package/dist/layers.COAN95H3.js +6 -0
- package/dist/layers.CQWT2Mii.js +51 -0
- package/dist/layers.CRgvTT9V.js +40 -0
- package/dist/layers.CSwGb7jy.js +373 -0
- package/dist/layers.CTXOKanI.js +37 -0
- package/dist/layers.CUvrvILv.js +257 -0
- package/dist/layers.CVoblPs8.js +38 -0
- package/dist/layers.CYLKHgxd.js +11 -0
- package/dist/layers.CYVid0EG.js +1 -0
- package/dist/layers.CZUjXb0C.js +2235 -0
- package/dist/layers.CZZTB1Zf.js +1 -0
- package/dist/layers.CZfSnJsL.js +40 -0
- package/dist/layers.C_IvrzZ3.js +7 -0
- package/dist/layers.C_yNmq9N.js +42 -0
- package/dist/layers.CcITvqlZ.js +8 -0
- package/dist/layers.CcOERYl9.js +41 -0
- package/dist/layers.Cedtkbht.js +1 -0
- package/dist/layers.CfOIPoIP.js +960 -0
- package/dist/layers.Cfc57ihF.js +1 -0
- package/dist/layers.Cm_DIS6r.js +1 -0
- package/dist/layers.CnT6veDF.js +6 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.Crx6In_3.js +320 -0
- package/dist/layers.CsAIsRSb.js +1126 -0
- package/dist/layers.Ct32pzvN.js +8 -0
- package/dist/layers.CuGuJloE.js +37 -0
- package/dist/layers.CvSFem62.js +1265 -0
- package/dist/layers.Cwlheu8b.js +8 -0
- package/dist/layers.Cxv0DB_2.js +32 -0
- package/dist/layers.CyWzLA6t.js +6 -0
- package/dist/layers.Cy_HIaDA.js +36 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.CzhdqFIN.js +7 -0
- package/dist/layers.D-4serHw.js +7 -0
- package/dist/layers.D-b32wWh.js +40 -0
- package/dist/layers.D0MPYC0b.js +41 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D10hg7vI.js +11 -0
- package/dist/layers.D1hV7KX6.js +10 -0
- package/dist/layers.D2ErdcjU.js +38 -0
- package/dist/layers.D3WNiVgt.js +32 -0
- package/dist/layers.D3t8YKFv.js +1 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D7sSY6DB.js +803 -0
- package/dist/layers.D9BJhiZI.js +42 -0
- package/dist/layers.DAoIveAz.js +186 -0
- package/dist/layers.DB9dq9br.js +1 -0
- package/dist/layers.DFb_R5xT.js +59 -0
- package/dist/layers.DFun-dAk.js +501 -0
- package/dist/layers.DGxdKpV_.js +2 -0
- package/dist/layers.DHHxFvMb.js +5 -0
- package/dist/layers.DIbNVZML.js +8 -0
- package/dist/layers.DIn3k5ZL.js +8 -0
- package/dist/layers.DKcXlOsV.js +9 -0
- package/dist/layers.DL8jwGhD.js +39 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMOxf396.js +21763 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DNciL9-y.js +1 -0
- package/dist/layers.DNrSuXGz.js +36 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DQSP86ib.js +84 -0
- package/dist/layers.DSCF8EF6.js +33 -0
- package/dist/layers.DSjAbsiI.js +61 -0
- package/dist/layers.DT4LICiJ.js +2 -0
- package/dist/layers.DUD9gnsf.js +1 -0
- package/dist/layers.DUoRCKF0.js +904 -0
- package/dist/layers.DVl3Vhqz.js +1580 -0
- package/dist/layers.DY8pSuUr.js +10 -0
- package/dist/layers.D_d_ismX.js +423 -0
- package/dist/layers.Day8795K.js +931 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DcbHyTt0.js +425 -0
- package/dist/layers.DdET72Yw.js +42 -0
- package/dist/layers.Ddvc5nMM.js +5 -0
- package/dist/layers.De-QCmxS.js +84 -0
- package/dist/layers.DfaNM_-P.js +1 -0
- package/dist/layers.DiArSMcJ.js +41 -0
- package/dist/layers.Did2Ok8I.js +9 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.Dm2vTHWN.js +10 -0
- package/dist/layers.Dnnqwk-X.js +42 -0
- package/dist/layers.DoXnyJKj.js +39 -0
- package/dist/layers.DtaYwVxW.js +2966 -0
- package/dist/layers.DtiGznGH.js +1 -0
- package/dist/layers.DubbxAyz.js +35 -0
- package/dist/layers.DvSvsOmi.js +19 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.DyGbCQD1.js +1 -0
- package/dist/layers.Dz51Anc0.js +32 -0
- package/dist/layers.E9yWRmfi.js +4 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.JrQOR4SH.js +33 -0
- package/dist/layers.MCj3WEVm.js +36 -0
- package/dist/layers.NMJzuWfA.js +9 -0
- package/dist/layers.O2J31sgD.js +46859 -0
- package/dist/layers.OGt-lv_l.js +1088 -0
- package/dist/layers.OuVKSFg8.js +41 -0
- package/dist/layers.PfvZQj0b.js +52 -0
- package/dist/layers.S9rhoDh3.js +21938 -0
- package/dist/layers.SV9c-xJ4.js +7 -0
- package/dist/layers.TxMpB1Hi.js +9166 -0
- package/dist/layers.UFIAgb9q.js +1 -0
- package/dist/layers.UT_N-vRk.js +1 -0
- package/dist/layers.VBl-Oztn.js +40 -0
- package/dist/layers.VMY9os8P.js +160 -0
- package/dist/layers.VwL8osbr.js +304 -0
- package/dist/layers.WP57UvSl.js +4 -0
- package/dist/layers.Y8QuC6mk.js +1 -0
- package/dist/layers.ZY7cShzc.js +7 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.c3O_eVw7.js +40 -0
- package/dist/layers.ceGsXYNa.js +41 -0
- package/dist/layers.dpXRC-w3.js +34 -0
- package/dist/layers.eJBQATnQ.js +1 -0
- package/dist/layers.ft1FusK9.js +118 -0
- package/dist/layers.gU8QcMnC.js +32 -0
- package/dist/layers.hSbpOWP5.js +42 -0
- package/dist/layers.hweLqW3I.js +261 -0
- package/dist/layers.i3ws09Iv.js +8 -0
- package/dist/layers.i7sPHczK.js +36 -0
- package/dist/layers.iCIkc7_N.js +41 -0
- package/dist/layers.kOvRCr2f.js +7 -0
- package/dist/layers.lA1sY3Ml.js +32 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lK-yASGE.js +139 -0
- package/dist/layers.mOFjA605.js +37 -0
- package/dist/layers.mSTd6mKy.js +5 -0
- package/dist/layers.pK4ABsGq.js +14 -0
- package/dist/layers.ps4Hq2c-.js +65 -0
- package/dist/layers.rt6zsYSf.js +44 -0
- package/dist/layers.sZjUuIto.js +11 -0
- package/dist/layers.tAiRbzBD.js +4 -0
- package/dist/layers.u25KgIS2.js +7 -0
- package/dist/layers.weqd2nEj.js +32 -0
- package/dist/layers.ykNftii-.js +39 -0
- package/dist/layers.zGHylA_8.js +1 -0
- package/package.json +18 -77
- package/dist/layers.B10sB-Vy.js +0 -1
- package/dist/layers.BDsvvINb.js +0 -6774
- package/dist/layers.BFJ7oQiY.js +0 -7723
- package/dist/layers.BwyONivc.js +0 -864
- package/dist/layers.C2lacXcg.js +0 -2511
- package/dist/layers.C69TrYD7.js +0 -7
- package/dist/layers.CEMW9z_P.js +0 -4
- package/dist/layers.Cwao1pOZ.js +0 -6
- package/dist/layers.CzNz0Zya.js +0 -1
- package/dist/layers.D0Z-zLAV.js +0 -530
- package/dist/layers.DNCgFYS7.js +0 -27
- package/dist/layers.EKDSoJm1.js +0 -2227
- package/dist/layers.QjAkD17S.js +0 -3677
- package/dist/layers.ahDFHQXD.js +0 -341
- package/dist/layers.eLiGm-eZ.js +0 -3
- package/dist/layers.hgliNTDV.js +0 -2
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";const zt=require("./layers.ByxHbusl.js"),Mh=require("./layers.BmXMWXPz.js"),Mr=20,$h={rect:"rectangle",circle:"ellipse"},ls={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Mr*1.25}px`},maxEdges:500,maxTextSize:5e4};class $r{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Mr}),this.converter=e}}var ye;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(ye||(ye={}));var In;(function(t){t.COLOR="color"})(In||(In={}));var De;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(De||(De={}));var hi={},cs;function Dh(){if(cs)return hi;cs=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
|
|
2
|
+
`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,i.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
|
|
3
|
+
|
|
4
|
+
`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
|
|
5
|
+
|
|
6
|
+
`)}catch(n){return console.error(n),e}return r};return hi.removeMarkdown=t,hi}var Nh=Dh();const Ph={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},Rh=t=>Ph[t],Vi=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Nh.removeMarkdown(t.text)),qh(e)},qh=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},zh=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case De.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case De.STROKE:{e.strokeColor=t[i];break}case De.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case De.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},Wh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case In.COLOR:{e.strokeColor=t[i];break}}}),e},Hh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const o=[];for(n.isLeaf||o.push(`subgraph_group_${n.id}`);n.parent;)o.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=o}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},Yh=new $r({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:o}=Hh(t);return t.subGraphs.reverse().forEach(s=>{const a=n(s.id),l={id:s.id,type:"rectangle",groupIds:a,x:s.x,y:s.y,width:s.width,height:s.height,label:{groupIds:a,text:Vi(s),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(s=>{if(!s)return;const a=n(s.id),l=zh(s.containerStyle),c=Wh(s.labelStyle);let h={id:s.id,type:"rectangle",groupIds:a,x:s.x,y:s.y,width:s.width,height:s.height,strokeWidth:2,label:{groupIds:a,text:Vi(s),fontSize:r,...c},link:s.link||null,...l};switch(s.type){case ye.STADIUM:{h={...h,roundness:{type:3}};break}case ye.ROUND:{h={...h,roundness:{type:3}};break}case ye.DOUBLECIRCLE:{a.push(`doublecircle_${s.id}}`);const u={type:"ellipse",groupIds:a,x:s.x+5,y:s.y+5,width:s.width-10,height:s.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Vi(s),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(u);break}case ye.CIRCLE:{h.type="ellipse";break}case ye.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(s=>{let a=[];const l=o(s.start),c=o(s.end);l&&l===c&&(a=n(l));const{startX:h,startY:d,reflectionPoints:u}=s,f=u.map(P=>[P.x-u[0].x,P.y-u[0].y]),m=Rh(s.type),C={id:`${s.start}_${s.end}`,type:"arrow",groupIds:a,x:h,y:d,strokeWidth:s.stroke==="thick"?4:2,strokeStyle:s.stroke==="dotted"?"dashed":void 0,points:f,...s.text?{label:{text:Vi(s),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},L=i.find(P=>P.id===s.start),b=i.find(P=>P.id===s.end);!L||!b||(C.start={id:L.id||""},C.end={id:b.id||""},i.push(C))}),{elements:i}}}),jh=new $r({converter:t=>{const e=zt.nanoid(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),lo=t=>t.replace(/\\n/g,`
|
|
7
|
+
`),vi=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},pr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:lo(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},_i=t=>{var r,n,o,s;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:lo(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((o=t.label)==null?void 0:o.verticalAlign)||"middle",strokeColor:((s=t.label)==null?void 0:s.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},ka=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:lo(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},Uh=new $r({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let o;switch(n.type){case"line":o=vi(n);break;case"rectangle":case"ellipse":o=_i(n);break;case"text":o=pr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?i.push(o):e.push(o)})}),Object.values(t.lines).forEach(r=>{r&&e.push(vi(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(ka(r)),r.sequenceNumber&&e.push(_i(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:o}=t.loops;r.forEach(s=>{e.push(vi(s))}),n.forEach(s=>{e.push(pr(s))}),o.forEach(s=>{e.push(_i(s))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:o}=r;let s=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(S=>{if(S.id){const U=S.id.indexOf("-"),N=S.id.substring(0,U);return n.includes(N)}}).forEach(S=>{if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Actor attributes missing ${S}`);s=Math.min(s,S.x),a=Math.min(a,S.y),l=Math.max(l,S.x+S.width),c=Math.max(c,S.y+S.height)});const d=10,u=s-d,f=a-d,m=l-s+d*2,y=c-a+d*2,C=zt.nanoid(),L=_i({type:"rectangle",x:u,y:f,width:m,height:y,bgColor:r.fill,id:C});e.unshift(L);const b=zt.nanoid(),P=[C];e.forEach(S=>{if(S.type!=="frame"){if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Element attributes missing ${S}`);if(S.x>=s&&S.x+S.width<=l&&S.y>=a&&S.y+S.height<=c){const U=S.id||zt.nanoid();S.id||Object.assign(S,{id:U}),P.push(U)}}});const x={type:"frame",id:b,name:o,children:P};e.push(x)}),{elements:e}}}),Xh=new $r({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=vi(r);break;case"rectangle":case"ellipse":n=_i(r);break;case"text":n=pr(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(vi(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=ka(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=pr(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],o=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=o.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const s={type:"frame",id:zt.nanoid(),name:i.id,children:n};e.push(s)}),{elements:e}}}),Gh=(t,e={})=>{switch(t.type){case"graphImage":return jh.convert(t,e);case"flowchart":return Yh.convert(t,e);case"sequence":return Uh.convert(t,e);case"class":return Xh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function wa(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var d,u;return(u=(d=h.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&u!==void 0?u:0})):a},[]);if(n.length){var o=new RegExp(`
|
|
8
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
|
|
9
|
+
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
|
|
10
|
+
`)&&(d=String(a).split(`
|
|
11
|
+
`).map(function(u,f){return f===0?u:""+h+u}).join(`
|
|
12
|
+
`)),s+=d+r[l+1]}),s}var nr={exports:{}},Vh=nr.exports,hs;function Kh(){return hs||(hs=1,(function(t,e){(function(i,r){t.exports=r()})(Vh,(function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",m="date",y="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|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(R){var w=["th","st","nd","rd"],T=R%100;return"["+R+(w[(T-20)%10]||w[T]||w[0])+"]"}},P=function(R,w,T){var F=String(R);return!F||F.length>=w?R:""+Array(w+1-F.length).join(T)+R},x={s:P,z:function(R){var w=-R.utcOffset(),T=Math.abs(w),F=Math.floor(T/60),k=T%60;return(w<=0?"+":"-")+P(F,2,"0")+":"+P(k,2,"0")},m:function R(w,T){if(w.date()<T.date())return-R(T,w);var F=12*(T.year()-w.year())+(T.month()-w.month()),k=w.clone().add(F,d),$=T-k<0,W=w.clone().add(F+($?-1:1),d);return+(-(F+(T-k)/($?k-W:W-k))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:f,w:h,d:c,D:m,h:l,m:a,s,ms:o,Q:u}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},S="en",U={};U[S]=b;var N="$isDayjsObject",tt=function(R){return R instanceof et||!(!R||!R[N])},ot=function R(w,T,F){var k;if(!w)return S;if(typeof w=="string"){var $=w.toLowerCase();U[$]&&(k=$),T&&(U[$]=T,k=$);var W=w.split("-");if(!k&&W.length>1)return R(W[0])}else{var z=w.name;U[z]=w,k=z}return!F&&k&&(S=k),k||!F&&S},H=function(R,w){if(tt(R))return R.clone();var T=typeof w=="object"?w:{};return T.date=R,T.args=arguments,new et(T)},A=x;A.l=ot,A.i=tt,A.w=function(R,w){return H(R,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var et=(function(){function R(T){this.$L=ot(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[N]=!0}var w=R.prototype;return w.parse=function(T){this.$d=(function(F){var k=F.date,$=F.utc;if(k===null)return new Date(NaN);if(A.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(C);if(W){var z=W[2]-1||0,V=(W[7]||"0").substring(0,3);return $?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)}}return new Date(k)})(T),this.init()},w.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(T,F){var k=H(T);return this.startOf(F)<=k&&k<=this.endOf(F)},w.isAfter=function(T,F){return H(T)<this.startOf(F)},w.isBefore=function(T,F){return this.endOf(F)<H(T)},w.$g=function(T,F,k){return A.u(T)?this[F]:this.set(k,T)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(T,F){var k=this,$=!!A.u(F)||F,W=A.p(T),z=function(Nt,rt){var Et=A.w(k.$u?Date.UTC(k.$y,rt,Nt):new Date(k.$y,rt,Nt),k);return $?Et:Et.endOf(c)},V=function(Nt,rt){return A.w(k.toDate()[Nt].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(rt)),k)},j=this.$W,it=this.$M,X=this.$D,vt="set"+(this.$u?"UTC":"");switch(W){case f:return $?z(1,0):z(31,11);case d:return $?z(1,it):z(0,it+1);case h:var Bt=this.$locale().weekStart||0,St=(j<Bt?j+7:j)-Bt;return z($?X-St:X+(6-St),it);case c:case m:return V(vt+"Hours",0);case l:return V(vt+"Minutes",1);case a:return V(vt+"Seconds",2);case s:return V(vt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(T){return this.startOf(T,!1)},w.$set=function(T,F){var k,$=A.p(T),W="set"+(this.$u?"UTC":""),z=(k={},k[c]=W+"Date",k[m]=W+"Date",k[d]=W+"Month",k[f]=W+"FullYear",k[l]=W+"Hours",k[a]=W+"Minutes",k[s]=W+"Seconds",k[o]=W+"Milliseconds",k)[$],V=$===c?this.$D+(F-this.$W):F;if($===d||$===f){var j=this.clone().set(m,1);j.$d[z](V),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else z&&this.$d[z](V);return this.init(),this},w.set=function(T,F){return this.clone().$set(T,F)},w.get=function(T){return this[A.p(T)]()},w.add=function(T,F){var k,$=this;T=Number(T);var W=A.p(F),z=function(it){var X=H($);return A.w(X.date(X.date()+Math.round(it*T)),$)};if(W===d)return this.set(d,this.$M+T);if(W===f)return this.set(f,this.$y+T);if(W===c)return z(1);if(W===h)return z(7);var V=(k={},k[a]=r,k[l]=n,k[s]=i,k)[W]||1,j=this.$d.getTime()+T*V;return A.w(j,this)},w.subtract=function(T,F){return this.add(-1*T,F)},w.format=function(T){var F=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var $=T||"YYYY-MM-DDTHH:mm:ssZ",W=A.z(this),z=this.$H,V=this.$m,j=this.$M,it=k.weekdays,X=k.months,vt=k.meridiem,Bt=function(rt,Et,se,Lt){return rt&&(rt[Et]||rt(F,$))||se[Et].slice(0,Lt)},St=function(rt){return A.s(z%12||12,rt,"0")},Nt=vt||function(rt,Et,se){var Lt=rt<12?"AM":"PM";return se?Lt.toLowerCase():Lt};return $.replace(L,(function(rt,Et){return Et||(function(se){switch(se){case"YY":return String(F.$y).slice(-2);case"YYYY":return A.s(F.$y,4,"0");case"M":return j+1;case"MM":return A.s(j+1,2,"0");case"MMM":return Bt(k.monthsShort,j,X,3);case"MMMM":return Bt(X,j);case"D":return F.$D;case"DD":return A.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Bt(k.weekdaysMin,F.$W,it,2);case"ddd":return Bt(k.weekdaysShort,F.$W,it,3);case"dddd":return it[F.$W];case"H":return String(z);case"HH":return A.s(z,2,"0");case"h":return St(1);case"hh":return St(2);case"a":return Nt(z,V,!0);case"A":return Nt(z,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(F.$s);case"ss":return A.s(F.$s,2,"0");case"SSS":return A.s(F.$ms,3,"0");case"Z":return W}return null})(rt)||W.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(T,F,k){var $,W=this,z=A.p(F),V=H(T),j=(V.utcOffset()-this.utcOffset())*r,it=this-V,X=function(){return A.m(W,V)};switch(z){case f:$=X()/12;break;case d:$=X();break;case u:$=X()/3;break;case h:$=(it-j)/6048e5;break;case c:$=(it-j)/864e5;break;case l:$=it/n;break;case a:$=it/r;break;case s:$=it/i;break;default:$=it}return k?$:A.a($)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return U[this.$L]},w.locale=function(T,F){if(!T)return this.$L;var k=this.clone(),$=ot(T,F,!0);return $&&(k.$L=$),k},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},R})(),oe=et.prototype;return H.prototype=oe,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach((function(R){oe[R[1]]=function(w){return this.$g(w,R[0],R[1])}})),H.extend=function(R,w){return R.$i||(R(w,et,H),R.$i=!0),H},H.locale=ot,H.isDayjs=tt,H.unix=function(R){return H(1e3*R)},H.en=U[S],H.Ls=U,H.p={},H}))})(nr)),nr.exports}var Zh=Kh();const Aa=Mh.getDefaultExportFromCjs(Zh);var Jh={value:()=>{}};function Ba(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new or(i)}function or(t){this._=t}function Qh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}or.prototype=Ba.prototype={constructor:or,on:function(t,e){var i=this._,r=Qh(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=tu(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=us(i[n],t.name,e);else if(e==null)for(n in i)i[n]=us(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new or(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function tu(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function us(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Jh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var Mn="http://www.w3.org/1999/xhtml";const ds={svg:"http://www.w3.org/2000/svg",xhtml:Mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Dr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),ds.hasOwnProperty(e)?{space:ds[e],local:t}:t}function eu(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Mn&&e.documentElement.namespaceURI===Mn?e.createElement(t):e.createElementNS(i,t)}}function iu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ea(t){var e=Dr(t);return(e.local?iu:eu)(e)}function ru(){}function co(t){return t==null?ru:function(){return this.querySelector(t)}}function nu(t){typeof t!="function"&&(t=co(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new xt(r,this._parents)}function La(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ou(){return[]}function Fa(t){return t==null?ou:function(){return this.querySelectorAll(t)}}function su(t){return function(){return La(t.apply(this,arguments))}}function au(t){typeof t=="function"?t=su(t):t=Fa(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new xt(r,n)}function Oa(t){return function(){return this.matches(t)}}function Ia(t){return function(e){return e.matches(t)}}var lu=Array.prototype.find;function cu(t){return function(){return lu.call(this.children,t)}}function hu(){return this.firstElementChild}function uu(t){return this.select(t==null?hu:cu(typeof t=="function"?t:Ia(t)))}var du=Array.prototype.filter;function fu(){return Array.from(this.children)}function pu(t){return function(){return du.call(this.children,t)}}function gu(t){return this.selectAll(t==null?fu:pu(typeof t=="function"?t:Ia(t)))}function mu(t){typeof t!="function"&&(t=Oa(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new xt(r,this._parents)}function Ma(t){return new Array(t.length)}function yu(){return new xt(this._enter||this._groups.map(Ma),this._parents)}function gr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}gr.prototype={constructor:gr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function _u(t){return function(){return t}}function Cu(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new gr(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function xu(t,e,i,r,n,o,s){var a,l,c=new Map,h=e.length,d=o.length,u=new Array(h),f;for(a=0;a<h;++a)(l=e[a])&&(u[a]=f=s.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=s.call(t,o[a],a,o)+"",(l=c.get(f))?(r[a]=l,l.__data__=o[a],c.delete(f)):i[a]=new gr(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(u[a])===l&&(n[a]=l)}function bu(t){return t.__data__}function Tu(t,e){if(!arguments.length)return Array.from(this,bu);var i=e?xu:Cu,r=this._parents,n=this._groups;typeof t!="function"&&(t=_u(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],d=n[c],u=d.length,f=vu(t.call(h,h&&h.__data__,c,r)),m=f.length,y=a[c]=new Array(m),C=s[c]=new Array(m),L=l[c]=new Array(u);i(h,d,y,C,L,f,e);for(var b=0,P=0,x,S;b<m;++b)if(x=y[b]){for(b>=P&&(P=b+1);!(S=C[P])&&++P<m;);x._next=S||null}}return s=new xt(s,r),s._enter=a,s._exit=l,s}function vu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Su(){return new xt(this._exit||this._groups.map(Ma),this._parents)}function ku(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function wu(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],h=r[l],d=c.length,u=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||h[m])&&(u[m]=f);for(;l<n;++l)a[l]=i[l];return new xt(a,this._parents)}function Au(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Bu(t){t||(t=Eu);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new xt(n,this._parents).order()}function Eu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Lu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Fu(){return Array.from(this)}function Ou(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Iu(){let t=0;for(const e of this)++t;return t}function Mu(){return!this.node()}function $u(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function Du(t){return function(){this.removeAttribute(t)}}function Nu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pu(t,e){return function(){this.setAttribute(t,e)}}function Ru(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function qu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function zu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Wu(t,e){var i=Dr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Nu:Du:typeof e=="function"?i.local?zu:qu:i.local?Ru:Pu)(i,e))}function $a(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Hu(t){return function(){this.style.removeProperty(t)}}function Yu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function ju(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Uu(t,e,i){return arguments.length>1?this.each((e==null?Hu:typeof e=="function"?ju:Yu)(t,e,i??"")):je(this.node(),t)}function je(t,e){return t.style.getPropertyValue(e)||$a(t).getComputedStyle(t,null).getPropertyValue(e)}function Xu(t){return function(){delete this[t]}}function Gu(t,e){return function(){this[t]=e}}function Vu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Ku(t,e){return arguments.length>1?this.each((e==null?Xu:typeof e=="function"?Vu:Gu)(t,e)):this.node()[t]}function Da(t){return t.trim().split(/^|\s+/)}function ho(t){return t.classList||new Na(t)}function Na(t){this._node=t,this._names=Da(t.getAttribute("class")||"")}Na.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Pa(t,e){for(var i=ho(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Ra(t,e){for(var i=ho(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Zu(t){return function(){Pa(this,t)}}function Ju(t){return function(){Ra(this,t)}}function Qu(t,e){return function(){(e.apply(this,arguments)?Pa:Ra)(this,t)}}function td(t,e){var i=Da(t+"");if(arguments.length<2){for(var r=ho(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Qu:e?Zu:Ju)(i,e))}function ed(){this.textContent=""}function id(t){return function(){this.textContent=t}}function rd(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function nd(t){return arguments.length?this.each(t==null?ed:(typeof t=="function"?rd:id)(t)):this.node().textContent}function od(){this.innerHTML=""}function sd(t){return function(){this.innerHTML=t}}function ad(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ld(t){return arguments.length?this.each(t==null?od:(typeof t=="function"?ad:sd)(t)):this.node().innerHTML}function cd(){this.nextSibling&&this.parentNode.appendChild(this)}function hd(){return this.each(cd)}function ud(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dd(){return this.each(ud)}function fd(t){var e=typeof t=="function"?t:Ea(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function pd(){return null}function gd(t,e){var i=typeof t=="function"?t:Ea(t),r=e==null?pd:typeof e=="function"?e:co(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function md(){var t=this.parentNode;t&&t.removeChild(this)}function yd(){return this.each(md)}function _d(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cd(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xd(t){return this.select(t?Cd:_d)}function bd(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Td(t){return function(e){t.call(this,e,this.__data__)}}function vd(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Sd(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function kd(t,e,i){return function(){var r=this.__on,n,o=Td(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function wd(t,e,i){var r=vd(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<o;++n)if((s=r[n]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?kd:Sd,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function qa(t,e,i){var r=$a(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function Ad(t,e){return function(){return qa(this,t,e)}}function Bd(t,e){return function(){return qa(this,t,e.apply(this,arguments))}}function Ed(t,e){return this.each((typeof e=="function"?Bd:Ad)(t,e))}function*Ld(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var uo=[null];function xt(t,e){this._groups=t,this._parents=e}function Ri(){return new xt([[document.documentElement]],uo)}function Fd(){return this}xt.prototype=Ri.prototype={constructor:xt,select:nu,selectAll:au,selectChild:uu,selectChildren:gu,filter:mu,data:Tu,enter:yu,exit:Su,join:ku,merge:wu,selection:Fd,order:Au,sort:Bu,call:Lu,nodes:Fu,node:Ou,size:Iu,empty:Mu,each:$u,attr:Wu,style:Uu,property:Ku,classed:td,text:nd,html:ld,raise:hd,lower:dd,append:fd,insert:gd,remove:yd,clone:xd,datum:bd,on:wd,dispatch:Ed,[Symbol.iterator]:Ld};function bt(t){return typeof t=="string"?new xt([[document.querySelector(t)]],[document.documentElement]):new xt([[t]],uo)}function Nr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function fo(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function ei(){}var Bi=.7,mr=1/Bi,Re="\\s*([+-]?\\d+)\\s*",Ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Od=/^#([0-9a-f]{3,8})$/,Id=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Md=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),$d=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ei}\\)$`),Dd=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Ei}\\)$`),Nd=new RegExp(`^hsl\\(${Ei},${Wt},${Wt}\\)$`),Pd=new RegExp(`^hsla\\(${Ei},${Wt},${Wt},${Ei}\\)$`),fs={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};Nr(ei,Ue,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ps,formatHex:ps,formatHex8:Rd,formatHsl:qd,formatRgb:gs,toString:gs});function ps(){return this.rgb().formatHex()}function Rd(){return this.rgb().formatHex8()}function qd(){return Wa(this).formatHsl()}function gs(){return this.rgb().formatRgb()}function Ue(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Od.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?ms(e):i===3?new ft(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Ki(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Ki(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Id.exec(t))?new ft(e[1],e[2],e[3],1):(e=Md.exec(t))?new ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$d.exec(t))?Ki(e[1],e[2],e[3],e[4]):(e=Dd.exec(t))?Ki(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Nd.exec(t))?Cs(e[1],e[2]/100,e[3]/100,1):(e=Pd.exec(t))?Cs(e[1],e[2]/100,e[3]/100,e[4]):fs.hasOwnProperty(t)?ms(fs[t]):t==="transparent"?new ft(NaN,NaN,NaN,0):null}function ms(t){return new ft(t>>16&255,t>>8&255,t&255,1)}function Ki(t,e,i,r){return r<=0&&(t=e=i=NaN),new ft(t,e,i,r)}function za(t){return t instanceof ei||(t=Ue(t)),t?(t=t.rgb(),new ft(t.r,t.g,t.b,t.opacity)):new ft}function $n(t,e,i,r){return arguments.length===1?za(t):new ft(t,e,i,r??1)}function ft(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Nr(ft,$n,fo(ei,{brighter(t){return t=t==null?mr:Math.pow(mr,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ft(xe(this.r),xe(this.g),xe(this.b),yr(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:ys,formatHex:ys,formatHex8:zd,formatRgb:_s,toString:_s}));function ys(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function zd(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e((isNaN(this.opacity)?1:this.opacity)*255)}`}function _s(){const t=yr(this.opacity);return`${t===1?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${t===1?")":`, ${t})`}`}function yr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _e(t){return t=xe(t),(t<16?"0":"")+t.toString(16)}function Cs(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,i,r)}function Wa(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof ei||(t=Ue(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new Ot(s,a,l,t.opacity)}function Wd(t,e,i,r){return arguments.length===1?Wa(t):new Ot(t,e,i,r??1)}function Ot(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Nr(Ot,Wd,fo(ei,{brighter(t){return t=t==null?mr:Math.pow(mr,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new ft(mn(t>=240?t-240:t+120,n,r),mn(t,n,r),mn(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ot(xs(this.h),Zi(this.s),Zi(this.l),yr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=yr(this.opacity);return`${t===1?"hsl(":"hsla("}${xs(this.h)}, ${Zi(this.s)*100}%, ${Zi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function xs(t){return t=(t||0)%360,t<0?t+360:t}function Zi(t){return Math.max(0,Math.min(1,t||0))}function mn(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Pr=t=>()=>t;function Ha(t,e){return function(i){return t+i*e}}function Hd(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Yd(t,e){var i=e-t;return i?Ha(t,i>180||i<-180?i-360*Math.round(i/360):i):Pr(isNaN(t)?e:t)}function jd(t){return(t=+t)==1?po:function(e,i){return i-e?Hd(e,i,t):Pr(isNaN(e)?i:e)}}function po(t,e){var i=e-t;return i?Ha(t,i):Pr(isNaN(t)?e:t)}const Dn=(function t(e){var i=jd(e);function r(n,o){var s=i((n=$n(n)).r,(o=$n(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=po(n.opacity,o.opacity);return function(h){return n.r=s(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r})(1);function te(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Nn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yn=new RegExp(Nn.source,"g");function Ud(t){return function(){return t}}function Xd(t){return function(e){return t(e)+""}}function Ya(t,e){var i=Nn.lastIndex=yn.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Nn.exec(t))&&(n=yn.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:te(r,n)})),i=yn.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Xd(l[0].x):Ud(e):(e=l.length,function(c){for(var h=0,d;h<e;++h)a[(d=l[h]).i]=d.x(c);return a.join("")})}var bs=180/Math.PI,Pn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ja(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*bs,skewX:Math.atan(l)*bs,scaleX:s,scaleY:a}}var Ji;function Gd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Pn:ja(e.a,e.b,e.c,e.d,e.e,e.f)}function Vd(t){return t==null||(Ji||(Ji=document.createElementNS("http://www.w3.org/2000/svg","g")),Ji.setAttribute("transform",t),!(t=Ji.transform.baseVal.consolidate()))?Pn:(t=t.matrix,ja(t.a,t.b,t.c,t.d,t.e,t.f))}function Ua(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push("translate(",null,e,null,i);m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d||u)&&f.push("translate("+d+e+u+i)}function s(c,h,d,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:d.push(n(d)+"rotate(",null,r)-2,x:te(c,h)})):h&&d.push(n(d)+"rotate("+h+r)}function a(c,h,d,u){c!==h?u.push({i:d.push(n(d)+"skewX(",null,r)-2,x:te(c,h)}):h&&d.push(n(d)+"skewX("+h+r)}function l(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push(n(f)+"scale(",null,",",null,")");m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d!==1||u!==1)&&f.push(n(f)+"scale("+d+","+u+")")}return function(c,h){var d=[],u=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,d,u),s(c.rotate,h.rotate,d,u),a(c.skewX,h.skewX,d,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,d,u),c=h=null,function(f){for(var m=-1,y=u.length,C;++m<y;)d[(C=u[m]).i]=C.x(f);return d.join("")}}}var Kd=Ua(Gd,"px, ","px)","deg)"),Zd=Ua(Vd,", ",")",")"),Xe=0,Ci=0,ui=0,Xa=1e3,_r,xi,Cr=0,Te=0,Rr=0,Li=typeof performance=="object"&&performance.now?performance:Date,Ga=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function go(){return Te||(Ga(Jd),Te=Li.now()+Rr)}function Jd(){Te=0}function xr(){this._call=this._time=this._next=null}xr.prototype=Va.prototype={constructor:xr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?go():+i)+(e==null?0:+e),!this._next&&xi!==this&&(xi?xi._next=this:_r=this,xi=this),this._call=t,this._time=i,Rn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rn())}};function Va(t,e,i){var r=new xr;return r.restart(t,e,i),r}function Qd(){go(),++Xe;for(var t=_r,e;t;)(e=Te-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Xe}function Ts(){Te=(Cr=Li.now())+Rr,Xe=Ci=0;try{Qd()}finally{Xe=0,ef(),Te=0}}function tf(){var t=Li.now(),e=t-Cr;e>Xa&&(Rr-=e,Cr=t)}function ef(){for(var t,e=_r,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:_r=i);xi=t,Rn(r)}function Rn(t){if(!Xe){Ci&&(Ci=clearTimeout(Ci));var e=t-Te;e>24?(t<1/0&&(Ci=setTimeout(Ts,t-Li.now()-Rr)),ui&&(ui=clearInterval(ui))):(ui||(Cr=Li.now(),ui=setInterval(tf,Xa)),Xe=1,Ga(Ts))}}function vs(t,e,i){var r=new xr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var rf=Ba("start","end","cancel","interrupt"),nf=[],Ka=0,Ss=1,qn=2,sr=3,ks=4,zn=5,ar=6;function qr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;of(t,i,{name:e,index:r,group:n,on:rf,tween:nf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ka})}function mo(t,e){var i=Dt(t,e);if(i.state>Ka)throw new Error("too late; already scheduled");return i}function jt(t,e){var i=Dt(t,e);if(i.state>sr)throw new Error("too late; already running");return i}function Dt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function of(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Va(o,0,i.time);function o(c){i.state=Ss,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var h,d,u,f;if(i.state!==Ss)return l();for(h in r)if(f=r[h],f.name===i.name){if(f.state===sr)return vs(s);f.state===ks?(f.state=ar,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=ar,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(vs(function(){i.state===sr&&(i.state=ks,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=qn,i.on.call("start",t,t.__data__,i.index,i.group),i.state===qn){for(i.state=sr,n=new Array(u=i.tween.length),h=0,d=-1;h<u;++h)(f=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=zn,1),d=-1,u=n.length;++d<u;)n[d].call(t,h);i.state===zn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=ar,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function sf(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>qn&&r.state<zn,r.state=ar,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function af(t){return this.each(function(){sf(this,t)})}function lf(t,e){var i,r;return function(){var n=jt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function cf(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=jt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function hf(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?lf:cf)(i,t,e))}function yo(t,e,i){var r=t._id;return t.each(function(){var n=jt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Dt(n,r).value[e]}}function Za(t,e){var i;return(typeof e=="number"?te:e instanceof Ue?Dn:(i=Ue(e))?(e=i,Dn):Ya)(t,e)}function uf(t){return function(){this.removeAttribute(t)}}function df(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ff(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function pf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function gf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function mf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function yf(t,e){var i=Dr(t),r=i==="transform"?Zd:Za;return this.attrTween(t,typeof e=="function"?(i.local?mf:gf)(i,r,yo(this,"attr."+t,e)):e==null?(i.local?df:uf)(i):(i.local?pf:ff)(i,r,e))}function _f(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Cf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function xf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Cf(t,o)),i}return n._value=e,n}function bf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&_f(t,o)),i}return n._value=e,n}function Tf(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Dr(t);return this.tween(i,(r.local?xf:bf)(r,e))}function vf(t,e){return function(){mo(this,t).delay=+e.apply(this,arguments)}}function Sf(t,e){return e=+e,function(){mo(this,t).delay=e}}function kf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vf:Sf)(e,t)):Dt(this.node(),e).delay}function wf(t,e){return function(){jt(this,t).duration=+e.apply(this,arguments)}}function Af(t,e){return e=+e,function(){jt(this,t).duration=e}}function Bf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wf:Af)(e,t)):Dt(this.node(),e).duration}function Ef(t,e){if(typeof e!="function")throw new Error;return function(){jt(this,t).ease=e}}function Lf(t){var e=this._id;return arguments.length?this.each(Ef(e,t)):Dt(this.node(),e).ease}function Ff(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;jt(this,t).ease=i}}function Of(t){if(typeof t!="function")throw new Error;return this.each(Ff(this._id,t))}function If(t){typeof t!="function"&&(t=Oa(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new re(r,this._parents,this._name,this._id)}function Mf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],h=l.length,d=s[a]=new Array(h),u,f=0;f<h;++f)(u=l[f]||c[f])&&(d[f]=u);for(;a<r;++a)s[a]=e[a];return new re(s,this._parents,this._name,this._id)}function $f(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Df(t,e,i){var r,n,o=$f(e)?mo:jt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Nf(t,e){var i=this._id;return arguments.length<2?Dt(this.node(),i).on.on(t):this.each(Df(i,t,e))}function Pf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Rf(){return this.on("end.remove",Pf(this._id))}function qf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=co(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),h,d,u=0;u<l;++u)(h=a[u])&&(d=t.call(h,h.__data__,u,a))&&("__data__"in h&&(d.__data__=h.__data__),c[u]=d,qr(c[u],e,i,u,c,Dt(h,i)));return new re(o,this._parents,e,i)}function zf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Fa(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,d=0;d<c;++d)if(h=l[d]){for(var u=t.call(h,h.__data__,d,l),f,m=Dt(h,i),y=0,C=u.length;y<C;++y)(f=u[y])&&qr(f,e,i,y,u,m);o.push(u),s.push(h)}return new re(o,s,e,i)}var Wf=Ri.prototype.constructor;function Hf(){return new Wf(this._groups,this._parents)}function Yf(t,e){var i,r,n;return function(){var o=je(this,t),s=(this.style.removeProperty(t),je(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function Ja(t){return function(){this.style.removeProperty(t)}}function jf(t,e,i){var r,n=i+"",o;return function(){var s=je(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Uf(t,e,i){var r,n,o;return function(){var s=je(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),je(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Xf(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=jt(this,t),c=l.on,h=l.value[o]==null?a||(a=Ja(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(s,n=h),l.on=r}}function Gf(t,e,i){var r=(t+="")=="transform"?Kd:Za;return e==null?this.styleTween(t,Yf(t,r)).on("end.style."+t,Ja(t)):typeof e=="function"?this.styleTween(t,Uf(t,r,yo(this,"style."+t,e))).each(Xf(this._id,t)):this.styleTween(t,jf(t,r,e),i).on("end.style."+t,null)}function Vf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Kf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Vf(t,s,i)),r}return o._value=e,o}function Zf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Kf(t,e,i??""))}function Jf(t){return function(){this.textContent=t}}function Qf(t){return function(){var e=t(this);this.textContent=e??""}}function tp(t){return this.tween("text",typeof t=="function"?Qf(yo(this,"text",t)):Jf(t==null?"":t+""))}function ep(t){return function(e){this.textContent=t.call(this,e)}}function ip(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&ep(n)),e}return r._value=t,r}function rp(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,ip(t))}function np(){for(var t=this._name,e=this._id,i=Qa(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=Dt(l,e);qr(l,t,i,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new re(r,this._parents,t,i)}function op(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=jt(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var sp=0;function re(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Qa(){return++sp}var Kt=Ri.prototype;re.prototype={constructor:re,select:qf,selectAll:zf,selectChild:Kt.selectChild,selectChildren:Kt.selectChildren,filter:If,merge:Mf,selection:Hf,transition:np,call:Kt.call,nodes:Kt.nodes,node:Kt.node,size:Kt.size,empty:Kt.empty,each:Kt.each,on:Nf,attr:yf,attrTween:Tf,style:Gf,styleTween:Zf,text:tp,textTween:rp,remove:Rf,tween:hf,delay:kf,duration:Bf,ease:Lf,easeVarying:Of,end:op,[Symbol.iterator]:Kt[Symbol.iterator]};function ap(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var lp={time:null,delay:0,duration:250,ease:ap};function cp(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function hp(t){var e,i;t instanceof re?(e=t._id,t=t._name):(e=Qa(),(i=lp).time=go(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&qr(l,t,e,c,s,i||cp(l,e));return new re(r,this._parents,t,e)}Ri.prototype.interrupt=af;Ri.prototype.transition=hp;const up=Math.abs,dp=Math.atan2,fp=Math.cos,pp=Math.max,gp=Math.min,mp=Math.sin,yp=Math.sqrt,Wn=1e-12,zr=Math.PI,Hn=zr/2,_p=2*zr;function Cp(t){return t>1?0:t<-1?zr:Math.acos(t)}function xp(t){return t>=1?Hn:t<=-1?-Hn:Math.asin(t)}function tl(t){this._context=t}tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function el(t){return new tl(t)}class il{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function bp(t){return new il(t,!0)}function Tp(t){return new il(t,!1)}function ue(){}function br(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Wr(t){this._context=t}Wr.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:br(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function rl(t){return new Wr(t)}function nl(t){this._context=t}nl.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function vp(t){return new nl(t)}function ol(t){this._context=t}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Sp(t){return new ol(t)}function sl(t,e){this._basis=new Wr(t),this._beta=e}sl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const kp=(function t(e){function i(r){return e===1?new Wr(r):new sl(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function Tr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function _o(t,e){this._context=t,this._k=(1-e)/6}_o.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:Tr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wp=(function t(e){function i(r){return new _o(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Co(t,e){this._context=t,this._k=(1-e)/6}Co.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ap=(function t(e){function i(r){return new Co(r,e)}return i.tension=function(r){return t(+r)},i})(0);function xo(t,e){this._context=t,this._k=(1-e)/6}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bp=(function t(e){function i(r){return new xo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function bo(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Wn){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Wn){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function al(t,e){this._context=t,this._alpha=e}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:bo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ep=(function t(e){function i(r){return e?new al(r,e):new _o(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ll(t,e){this._context=t,this._alpha=e}ll.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:bo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lp=(function t(e){function i(r){return e?new ll(r,e):new Co(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function cl(t,e){this._context=t,this._alpha=e}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bo(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Fp=(function t(e){function i(r){return e?new cl(r,e):new xo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function hl(t){this._context=t}hl.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Op(t){return new hl(t)}function ws(t){return t<0?-1:1}function As(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(ws(o)+ws(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Bs(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function _n(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function vr(t){this._context=t}vr.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:_n(this,this._t0,Bs(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,_n(this,Bs(this,i=As(this,t,e)),i);break;default:_n(this,this._t0,i=As(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ul(t){this._context=new dl(t)}(ul.prototype=Object.create(vr.prototype)).point=function(t,e){vr.prototype.point.call(this,e,t)};function dl(t){this._context=t}dl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function Ip(t){return new vr(t)}function Mp(t){return new ul(t)}function fl(t){this._context=t}fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Es(t),n=Es(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Es(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function $p(t){return new fl(t)}function Hr(t,e){this._context=t,this._t=e}Hr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Dp(t){return new Hr(t,.5)}function Np(t){return new Hr(t,0)}function Pp(t){return new Hr(t,1)}function bi(t,e,i){this.k=t,this.x=e,this.y=i}bi.prototype={constructor:bi,scale:function(t){return t===1?this:new bi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new bi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};bi.prototype;/*! @license DOMPurify 3.3.0 | (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.0/LICENSE */const{entries:pl,setPrototypeOf:Ls,isFrozen:Rp,getPrototypeOf:qp,getOwnPropertyDescriptor:zp}=Object;let{freeze:gt,seal:wt,create:Yn}=Object,{apply:jn,construct:Un}=typeof Reflect<"u"&&Reflect;gt||(gt=function(e){return e});wt||(wt=function(e){return e});jn||(jn=function(e,i){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(i,n)});Un||(Un=function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return new e(...r)});const Qi=mt(Array.prototype.forEach),Wp=mt(Array.prototype.lastIndexOf),Fs=mt(Array.prototype.pop),di=mt(Array.prototype.push),Hp=mt(Array.prototype.splice),lr=mt(String.prototype.toLowerCase),Cn=mt(String.prototype.toString),xn=mt(String.prototype.match),fi=mt(String.prototype.replace),Yp=mt(String.prototype.indexOf),jp=mt(String.prototype.trim),Ft=mt(Object.prototype.hasOwnProperty),ut=mt(RegExp.prototype.test),pi=Up(TypeError);function mt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return jn(t,e,r)}}function Up(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Un(t,i)}}function Y(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lr;Ls&&Ls(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Rp(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Xp(t){for(let e=0;e<t.length;e++)Ft(t,e)||(t[e]=null);return t}function Qt(t){const e=Yn(null);for(const[i,r]of pl(t))Ft(t,i)&&(Array.isArray(r)?e[i]=Xp(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=Qt(r):e[i]=r);return e}function gi(t,e){for(;t!==null;){const r=zp(t,e);if(r){if(r.get)return mt(r.get);if(typeof r.value=="function")return mt(r.value)}t=qp(t)}function i(){return null}return i}const Os=gt(["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"]),bn=gt(["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"]),Tn=gt(["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"]),Gp=gt(["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"]),vn=gt(["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"]),Vp=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Is=gt(["#text"]),Ms=gt(["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"]),Sn=gt(["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"]),$s=gt(["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"]),tr=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kp=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zp=wt(/<%[\w\W]*|[\w\W]*%>/gm),Jp=wt(/\$\{[\w\W]*/gm),Qp=wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),tg=wt(/^aria-[\-\w]+$/),gl=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eg=wt(/^(?:\w+script|data):/i),ig=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ml=wt(/^html$/i),rg=wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ds=Object.freeze({__proto__:null,ARIA_ATTR:tg,ATTR_WHITESPACE:ig,CUSTOM_ELEMENT:rg,DATA_ATTR:Qp,DOCTYPE_NAME:ml,ERB_EXPR:Zp,IS_ALLOWED_URI:gl,IS_SCRIPT_OR_DATA:eg,MUSTACHE_EXPR:Kp,TMPLIT_EXPR:Jp});const mi={element:1,text:3,progressingInstruction:7,comment:8,document:9},ng=function(){return typeof window>"u"?null:window},og=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Ns=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ng();const e=I=>yl(I);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==mi.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:f}=t,m=l.prototype,y=gi(m,"cloneNode"),C=gi(m,"remove"),L=gi(m,"nextSibling"),b=gi(m,"childNodes"),P=gi(m,"parentNode");if(typeof s=="function"){const I=i.createElement("template");I.content&&I.content.ownerDocument&&(i=I.content.ownerDocument)}let x,S="";const{implementation:U,createNodeIterator:N,createDocumentFragment:tt,getElementsByTagName:ot}=i,{importNode:H}=r;let A=Ns();e.isSupported=typeof pl=="function"&&typeof P=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:et,ERB_EXPR:oe,TMPLIT_EXPR:R,DATA_ATTR:w,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:$}=Ds;let{IS_ALLOWED_URI:W}=Ds,z=null;const V=Y({},[...Os,...bn,...Tn,...vn,...Is]);let j=null;const it=Y({},[...Ms,...Sn,...$s,...tr]);let X=Object.seal(Yn(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}})),vt=null,Bt=null;const St=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,rt=!0,Et=!1,se=!0,Lt=!1,Wi=!0,ge=!1,an=!1,ln=!1,Ee=!1,Hi=!1,Yi=!1,Yo=!0,jo=!1;const wh="user-content-";let cn=!0,li=!1,Le={},Fe=null;const Uo=Y({},["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 Xo=null;const Go=Y({},["audio","video","img","source","image","track"]);let hn=null;const Vo=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ji="http://www.w3.org/1998/Math/MathML",Ui="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let Oe=Xt,un=!1,dn=null;const Ah=Y({},[ji,Ui,Xt],Cn);let Xi=Y({},["mi","mo","mn","ms","mtext"]),Gi=Y({},["annotation-xml"]);const Bh=Y({},["title","style","font","a","script"]);let ci=null;const Eh=["application/xhtml+xml","text/html"],Lh="text/html";let nt=null,Ie=null;const Fh=i.createElement("form"),Ko=function(p){return p instanceof RegExp||p instanceof Function},fn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ie&&Ie===p)){if((!p||typeof p!="object")&&(p={}),p=Qt(p),ci=Eh.indexOf(p.PARSER_MEDIA_TYPE)===-1?Lh:p.PARSER_MEDIA_TYPE,nt=ci==="application/xhtml+xml"?Cn:lr,z=Ft(p,"ALLOWED_TAGS")?Y({},p.ALLOWED_TAGS,nt):V,j=Ft(p,"ALLOWED_ATTR")?Y({},p.ALLOWED_ATTR,nt):it,dn=Ft(p,"ALLOWED_NAMESPACES")?Y({},p.ALLOWED_NAMESPACES,Cn):Ah,hn=Ft(p,"ADD_URI_SAFE_ATTR")?Y(Qt(Vo),p.ADD_URI_SAFE_ATTR,nt):Vo,Xo=Ft(p,"ADD_DATA_URI_TAGS")?Y(Qt(Go),p.ADD_DATA_URI_TAGS,nt):Go,Fe=Ft(p,"FORBID_CONTENTS")?Y({},p.FORBID_CONTENTS,nt):Uo,vt=Ft(p,"FORBID_TAGS")?Y({},p.FORBID_TAGS,nt):Qt({}),Bt=Ft(p,"FORBID_ATTR")?Y({},p.FORBID_ATTR,nt):Qt({}),Le=Ft(p,"USE_PROFILES")?p.USE_PROFILES:!1,Nt=p.ALLOW_ARIA_ATTR!==!1,rt=p.ALLOW_DATA_ATTR!==!1,Et=p.ALLOW_UNKNOWN_PROTOCOLS||!1,se=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Lt=p.SAFE_FOR_TEMPLATES||!1,Wi=p.SAFE_FOR_XML!==!1,ge=p.WHOLE_DOCUMENT||!1,Ee=p.RETURN_DOM||!1,Hi=p.RETURN_DOM_FRAGMENT||!1,Yi=p.RETURN_TRUSTED_TYPE||!1,ln=p.FORCE_BODY||!1,Yo=p.SANITIZE_DOM!==!1,jo=p.SANITIZE_NAMED_PROPS||!1,cn=p.KEEP_CONTENT!==!1,li=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||gl,Oe=p.NAMESPACE||Xt,Xi=p.MATHML_TEXT_INTEGRATION_POINTS||Xi,Gi=p.HTML_INTEGRATION_POINTS||Gi,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Ko(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Ko(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Lt&&(rt=!1),Hi&&(Ee=!0),Le&&(z=Y({},Is),j=[],Le.html===!0&&(Y(z,Os),Y(j,Ms)),Le.svg===!0&&(Y(z,bn),Y(j,Sn),Y(j,tr)),Le.svgFilters===!0&&(Y(z,Tn),Y(j,Sn),Y(j,tr)),Le.mathMl===!0&&(Y(z,vn),Y(j,$s),Y(j,tr))),p.ADD_TAGS&&(typeof p.ADD_TAGS=="function"?St.tagCheck=p.ADD_TAGS:(z===V&&(z=Qt(z)),Y(z,p.ADD_TAGS,nt))),p.ADD_ATTR&&(typeof p.ADD_ATTR=="function"?St.attributeCheck=p.ADD_ATTR:(j===it&&(j=Qt(j)),Y(j,p.ADD_ATTR,nt))),p.ADD_URI_SAFE_ATTR&&Y(hn,p.ADD_URI_SAFE_ATTR,nt),p.FORBID_CONTENTS&&(Fe===Uo&&(Fe=Qt(Fe)),Y(Fe,p.FORBID_CONTENTS,nt)),cn&&(z["#text"]=!0),ge&&Y(z,["html","head","body"]),z.table&&(Y(z,["tbody"]),delete vt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=p.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=og(f,n)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));gt&>(p),Ie=p}},Zo=Y({},[...bn,...Tn,...Gp]),Jo=Y({},[...vn,...Vp]),Oh=function(p){let _=P(p);(!_||!_.tagName)&&(_={namespaceURI:Oe,tagName:"template"});const B=lr(p.tagName),K=lr(_.tagName);return dn[p.namespaceURI]?p.namespaceURI===Ui?_.namespaceURI===Xt?B==="svg":_.namespaceURI===ji?B==="svg"&&(K==="annotation-xml"||Xi[K]):!!Zo[B]:p.namespaceURI===ji?_.namespaceURI===Xt?B==="math":_.namespaceURI===Ui?B==="math"&&Gi[K]:!!Jo[B]:p.namespaceURI===Xt?_.namespaceURI===Ui&&!Gi[K]||_.namespaceURI===ji&&!Xi[K]?!1:!Jo[B]&&(Bh[B]||!Zo[B]):!!(ci==="application/xhtml+xml"&&dn[p.namespaceURI]):!1},Pt=function(p){di(e.removed,{element:p});try{P(p).removeChild(p)}catch{C(p)}},me=function(p,_){try{di(e.removed,{attribute:_.getAttributeNode(p),from:_})}catch{di(e.removed,{attribute:null,from:_})}if(_.removeAttribute(p),p==="is")if(Ee||Hi)try{Pt(_)}catch{}else try{_.setAttribute(p,"")}catch{}},Qo=function(p){let _=null,B=null;if(ln)p="<remove></remove>"+p;else{const Z=xn(p,/^[\r\n\t ]+/);B=Z&&Z[0]}ci==="application/xhtml+xml"&&Oe===Xt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const K=x?x.createHTML(p):p;if(Oe===Xt)try{_=new u().parseFromString(K,ci)}catch{}if(!_||!_.documentElement){_=U.createDocument(Oe,"template",null);try{_.documentElement.innerHTML=un?S:K}catch{}}const lt=_.body||_.documentElement;return p&&B&<.insertBefore(i.createTextNode(B),lt.childNodes[0]||null),Oe===Xt?ot.call(_,ge?"html":"body")[0]:ge?_.documentElement:lt},ts=function(p){return N.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(p){return p instanceof d&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof h)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},es=function(p){return typeof a=="function"&&p instanceof a};function Gt(I,p,_){Qi(I,B=>{B.call(e,p,_,Ie)})}const is=function(p){let _=null;if(Gt(A.beforeSanitizeElements,p,null),pn(p))return Pt(p),!0;const B=nt(p.nodeName);if(Gt(A.uponSanitizeElement,p,{tagName:B,allowedTags:z}),Wi&&p.hasChildNodes()&&!es(p.firstElementChild)&&ut(/<[/\w!]/g,p.innerHTML)&&ut(/<[/\w!]/g,p.textContent)||p.nodeType===mi.progressingInstruction||Wi&&p.nodeType===mi.comment&&ut(/<[/\w]/g,p.data))return Pt(p),!0;if(!(St.tagCheck instanceof Function&&St.tagCheck(B))&&(!z[B]||vt[B])){if(!vt[B]&&ns(B)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B)))return!1;if(cn&&!Fe[B]){const K=P(p)||p.parentNode,lt=b(p)||p.childNodes;if(lt&&K){const Z=lt.length;for(let yt=Z-1;yt>=0;--yt){const Vt=y(lt[yt],!0);Vt.__removalCount=(p.__removalCount||0)+1,K.insertBefore(Vt,L(p))}}}return Pt(p),!0}return p instanceof l&&!Oh(p)||(B==="noscript"||B==="noembed"||B==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Pt(p),!0):(Lt&&p.nodeType===mi.text&&(_=p.textContent,Qi([et,oe,R],K=>{_=fi(_,K," ")}),p.textContent!==_&&(di(e.removed,{element:p.cloneNode()}),p.textContent=_)),Gt(A.afterSanitizeElements,p,null),!1)},rs=function(p,_,B){if(Yo&&(_==="id"||_==="name")&&(B in i||B in Fh))return!1;if(!(rt&&!Bt[_]&&ut(w,_))){if(!(Nt&&ut(T,_))){if(!(St.attributeCheck instanceof Function&&St.attributeCheck(_,p))){if(!j[_]||Bt[_]){if(!(ns(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,_)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(_,p))||_==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B))))return!1}else if(!hn[_]){if(!ut(W,fi(B,k,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&p!=="script"&&Yp(B,"data:")===0&&Xo[p])){if(!(Et&&!ut(F,fi(B,k,"")))){if(B)return!1}}}}}}}return!0},ns=function(p){return p!=="annotation-xml"&&xn(p,$)},os=function(p){Gt(A.beforeSanitizeAttributes,p,null);const{attributes:_}=p;if(!_||pn(p))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let K=_.length;for(;K--;){const lt=_[K],{name:Z,namespaceURI:yt,value:Vt}=lt,Me=nt(Z),gn=Vt;let st=Z==="value"?gn:jp(gn);if(B.attrName=Me,B.attrValue=st,B.keepAttr=!0,B.forceKeepAttr=void 0,Gt(A.uponSanitizeAttribute,p,B),st=B.attrValue,jo&&(Me==="id"||Me==="name")&&(me(Z,p),st=wh+st),Wi&&ut(/((--!?|])>)|<\/(style|title|textarea)/i,st)){me(Z,p);continue}if(Me==="attributename"&&xn(st,"href")){me(Z,p);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){me(Z,p);continue}if(!se&&ut(/\/>/i,st)){me(Z,p);continue}Lt&&Qi([et,oe,R],as=>{st=fi(st,as," ")});const ss=nt(p.nodeName);if(!rs(ss,Me,st)){me(Z,p);continue}if(x&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!yt)switch(f.getAttributeType(ss,Me)){case"TrustedHTML":{st=x.createHTML(st);break}case"TrustedScriptURL":{st=x.createScriptURL(st);break}}if(st!==gn)try{yt?p.setAttributeNS(yt,Z,st):p.setAttribute(Z,st),pn(p)?Pt(p):Fs(e.removed)}catch{me(Z,p)}}Gt(A.afterSanitizeAttributes,p,null)},Ih=function I(p){let _=null;const B=ts(p);for(Gt(A.beforeSanitizeShadowDOM,p,null);_=B.nextNode();)Gt(A.uponSanitizeShadowNode,_,null),is(_),os(_),_.content instanceof o&&I(_.content);Gt(A.afterSanitizeShadowDOM,p,null)};return e.sanitize=function(I){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,B=null,K=null,lt=null;if(un=!I,un&&(I="<!-->"),typeof I!="string"&&!es(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw pi("dirty is not a string, aborting")}else throw pi("toString is not a function");if(!e.isSupported)return I;if(an||fn(p),e.removed=[],typeof I=="string"&&(li=!1),li){if(I.nodeName){const Vt=nt(I.nodeName);if(!z[Vt]||vt[Vt])throw pi("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof a)_=Qo("<!---->"),B=_.ownerDocument.importNode(I,!0),B.nodeType===mi.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?_=B:_.appendChild(B);else{if(!Ee&&!Lt&&!ge&&I.indexOf("<")===-1)return x&&Yi?x.createHTML(I):I;if(_=Qo(I),!_)return Ee?null:Yi?S:""}_&&ln&&Pt(_.firstChild);const Z=ts(li?I:_);for(;K=Z.nextNode();)is(K),os(K),K.content instanceof o&&Ih(K.content);if(li)return I;if(Ee){if(Hi)for(lt=tt.call(_.ownerDocument);_.firstChild;)lt.appendChild(_.firstChild);else lt=_;return(j.shadowroot||j.shadowrootmode)&&(lt=H.call(r,lt,!0)),lt}let yt=ge?_.outerHTML:_.innerHTML;return ge&&z["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&ut(ml,_.ownerDocument.doctype.name)&&(yt="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
|
|
13
|
+
`+yt),Lt&&Qi([et,oe,R],Vt=>{yt=fi(yt,Vt," ")}),x&&Yi?x.createHTML(yt):yt},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fn(I),an=!0},e.clearConfig=function(){Ie=null,an=!1},e.isValidAttribute=function(I,p,_){Ie||fn({});const B=nt(I),K=nt(p);return rs(B,K,_)},e.addHook=function(I,p){typeof p=="function"&&di(A[I],p)},e.removeHook=function(I,p){if(p!==void 0){const _=Wp(A[I],p);return _===-1?void 0:Hp(A[I],_,1)[0]}return Fs(A[I])},e.removeHooks=function(I){A[I]=[]},e.removeAllHooks=function(){A=Ns()},e}var Ge=yl();const cr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return cr.hue2rgb(o,n,t+1/3)*255;case"g":return cr.hue2rgb(o,n,t)*255;case"b":return cr.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},sg={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ag={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:cr,lang:sg,unit:ag},le={};for(let t=0;t<=255;t++)le[t]=q.unit.dec2hex(t);const ct={ALL:0,RGB:1,HSL:2};class lg{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}}class cg{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new lg}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Yr=new cg({r:0,g:0,b:0,a:0},"transparent"),qe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(qe.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,h=s?255:15;return Yr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:o?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}${le[Math.round(n*255)]}`:`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}`}},Ce={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ce.re);if(!i)return;const[,r,n,o,s,a]=i;return Yr.set({h:Ce._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(o)),a:s?q.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},Si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Si.colors[t];if(e)return qe.parse(e)},stringify:t=>{const e=qe.stringify(t);for(const i in Si.colors)if(Si.colors[i]===e)return i}},Ti={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ti.re);if(!i)return;const[,r,n,o,s,a,l,c,h]=i;return Yr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Mt={format:{keyword:Si,hex:qe,rgb:Ti,rgba:Ti,hsl:Ce,hsla:Ce},parse:t=>{if(typeof t!="string")return t;const e=qe.parse(t)||Ti.parse(t)||Ce.parse(t)||Si.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?Ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Ti.stringify(t):qe.stringify(t)},_l=(t,e)=>{const i=Mt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Mt.stringify(i)},ze=(t,e,i=0,r=1)=>{if(typeof t!="number")return _l(t,{a:e});const n=Yr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Mt.stringify(n)},hg=t=>{const{r:e,g:i,b:r}=Mt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},ug=t=>hg(t)>=.5,ii=t=>!ug(t),Cl=(t,e,i)=>{const r=Mt.parse(t),n=r[e],o=q.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Mt.stringify(r)},E=(t,e)=>Cl(t,"l",e),D=(t,e)=>Cl(t,"l",-e),g=(t,e)=>{const i=Mt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return _l(t,r)},dg=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Mt.parse(t),{r:a,g:l,b:c,a:h}=Mt.parse(e),d=i/100,u=d*2-1,f=s-h,y=((u*f===-1?u:(u+f)/(1+u*f))+1)/2,C=1-y,L=r*y+a*C,b=n*y+l*C,P=o*y+c*C,x=s*d+h*(1-d);return ze(L,b,P,x)},v=(t,e=100)=>{const i=Mt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,dg(i,t,e)};var xl=typeof global=="object"&&global&&global.Object===Object&&global,fg=typeof self=="object"&&self&&self.Object===Object&&self,Ut=xl||fg||Function("return this")(),Fi=Ut.Symbol,bl=Object.prototype,pg=bl.hasOwnProperty,gg=bl.toString,yi=Fi?Fi.toStringTag:void 0;function mg(t){var e=pg.call(t,yi),i=t[yi];try{t[yi]=void 0;var r=!0}catch{}var n=gg.call(t);return r&&(e?t[yi]=i:delete t[yi]),n}var yg=Object.prototype,_g=yg.toString;function Cg(t){return _g.call(t)}var xg="[object Null]",bg="[object Undefined]",Ps=Fi?Fi.toStringTag:void 0;function ri(t){return t==null?t===void 0?bg:xg:Ps&&Ps in Object(t)?mg(t):Cg(t)}function fe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Tg="[object AsyncFunction]",vg="[object Function]",Sg="[object GeneratorFunction]",kg="[object Proxy]";function To(t){if(!fe(t))return!1;var e=ri(t);return e==vg||e==Sg||e==Tg||e==kg}var kn=Ut["__core-js_shared__"],Rs=(function(){var t=/[^.]+$/.exec(kn&&kn.keys&&kn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function wg(t){return!!Rs&&Rs in t}var Ag=Function.prototype,Bg=Ag.toString;function we(t){if(t!=null){try{return Bg.call(t)}catch{}try{return t+""}catch{}}return""}var Eg=/[\\^$.*+?()[\]{}|]/g,Lg=/^\[object .+?Constructor\]$/,Fg=Function.prototype,Og=Object.prototype,Ig=Fg.toString,Mg=Og.hasOwnProperty,$g=RegExp("^"+Ig.call(Mg).replace(Eg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dg(t){if(!fe(t)||wg(t))return!1;var e=To(t)?$g:Lg;return e.test(we(t))}function Ng(t,e){return t==null?void 0:t[e]}function Ae(t,e){var i=Ng(t,e);return Dg(i)?i:void 0}var Oi=Ae(Object,"create");function Pg(){this.__data__=Oi?Oi(null):{},this.size=0}function Rg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var qg="__lodash_hash_undefined__",zg=Object.prototype,Wg=zg.hasOwnProperty;function Hg(t){var e=this.__data__;if(Oi){var i=e[t];return i===qg?void 0:i}return Wg.call(e,t)?e[t]:void 0}var Yg=Object.prototype,jg=Yg.hasOwnProperty;function Ug(t){var e=this.__data__;return Oi?e[t]!==void 0:jg.call(e,t)}var Xg="__lodash_hash_undefined__";function Gg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Oi&&e===void 0?Xg:e,this}function ve(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ve.prototype.clear=Pg;ve.prototype.delete=Rg;ve.prototype.get=Hg;ve.prototype.has=Ug;ve.prototype.set=Gg;function Vg(){this.__data__=[],this.size=0}function jr(t,e){return t===e||t!==t&&e!==e}function Ur(t,e){for(var i=t.length;i--;)if(jr(t[i][0],e))return i;return-1}var Kg=Array.prototype,Zg=Kg.splice;function Jg(t){var e=this.__data__,i=Ur(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Zg.call(e,i,1),--this.size,!0}function Qg(t){var e=this.__data__,i=Ur(e,t);return i<0?void 0:e[i][1]}function tm(t){return Ur(this.__data__,t)>-1}function em(t,e){var i=this.__data__,r=Ur(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ne(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ne.prototype.clear=Vg;ne.prototype.delete=Jg;ne.prototype.get=Qg;ne.prototype.has=tm;ne.prototype.set=em;var Ii=Ae(Ut,"Map");function im(){this.size=0,this.__data__={hash:new ve,map:new(Ii||ne),string:new ve}}function rm(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Xr(t,e){var i=t.__data__;return rm(e)?i[typeof e=="string"?"string":"hash"]:i.map}function nm(t){var e=Xr(this,t).delete(t);return this.size-=e?1:0,e}function om(t){return Xr(this,t).get(t)}function sm(t){return Xr(this,t).has(t)}function am(t,e){var i=Xr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function pe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}pe.prototype.clear=im;pe.prototype.delete=nm;pe.prototype.get=om;pe.prototype.has=sm;pe.prototype.set=am;var lm="Expected a function";function qi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(lm);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(qi.Cache||pe),i}qi.Cache=pe;function cm(){this.__data__=new ne,this.size=0}function hm(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function um(t){return this.__data__.get(t)}function dm(t){return this.__data__.has(t)}var fm=200;function pm(t,e){var i=this.__data__;if(i instanceof ne){var r=i.__data__;if(!Ii||r.length<fm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new pe(r)}return i.set(t,e),this.size=i.size,this}function Be(t){var e=this.__data__=new ne(t);this.size=e.size}Be.prototype.clear=cm;Be.prototype.delete=hm;Be.prototype.get=um;Be.prototype.has=dm;Be.prototype.set=pm;var Sr=(function(){try{var t=Ae(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vo(t,e,i){e=="__proto__"&&Sr?Sr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Xn(t,e,i){(i!==void 0&&!jr(t[e],i)||i===void 0&&!(e in t))&&vo(t,e,i)}function gm(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++n];if(i(o[l],l,o)===!1)break}return e}}var mm=gm(),Tl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qs=Tl&&typeof module=="object"&&module&&!module.nodeType&&module,ym=qs&&qs.exports===Tl,zs=ym?Ut.Buffer:void 0,Ws=zs?zs.allocUnsafe:void 0;function vl(t,e){if(e)return t.slice();var i=t.length,r=Ws?Ws(i):new t.constructor(i);return t.copy(r),r}var Hs=Ut.Uint8Array;function Sl(t){var e=new t.constructor(t.byteLength);return new Hs(e).set(new Hs(t)),e}function kl(t,e){var i=e?Sl(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function wl(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Ys=Object.create,_m=(function(){function t(){}return function(e){if(!fe(e))return{};if(Ys)return Ys(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}})();function Al(t,e){return function(i){return t(e(i))}}var Bl=Al(Object.getPrototypeOf,Object),Cm=Object.prototype;function Gr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||Cm;return t===i}function El(t){return typeof t.constructor=="function"&&!Gr(t)?_m(Bl(t)):{}}function ni(t){return t!=null&&typeof t=="object"}var xm="[object Arguments]";function js(t){return ni(t)&&ri(t)==xm}var Ll=Object.prototype,bm=Ll.hasOwnProperty,Tm=Ll.propertyIsEnumerable,kr=js((function(){return arguments})())?js:function(t){return ni(t)&&bm.call(t,"callee")&&!Tm.call(t,"callee")},Mi=Array.isArray,vm=9007199254740991;function Fl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=vm}function zi(t){return t!=null&&Fl(t.length)&&!To(t)}function Sm(t){return ni(t)&&zi(t)}function km(){return!1}var Ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Us=Ol&&typeof module=="object"&&module&&!module.nodeType&&module,wm=Us&&Us.exports===Ol,Xs=wm?Ut.Buffer:void 0,Am=Xs?Xs.isBuffer:void 0,Vr=Am||km,Bm="[object Object]",Em=Function.prototype,Lm=Object.prototype,Il=Em.toString,Fm=Lm.hasOwnProperty,Om=Il.call(Object);function Im(t){if(!ni(t)||ri(t)!=Bm)return!1;var e=Bl(t);if(e===null)return!0;var i=Fm.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Il.call(i)==Om}var Mm="[object Arguments]",$m="[object Array]",Dm="[object Boolean]",Nm="[object Date]",Pm="[object Error]",Rm="[object Function]",qm="[object Map]",zm="[object Number]",Wm="[object Object]",Hm="[object RegExp]",Ym="[object Set]",jm="[object String]",Um="[object WeakMap]",Xm="[object ArrayBuffer]",Gm="[object DataView]",Vm="[object Float32Array]",Km="[object Float64Array]",Zm="[object Int8Array]",Jm="[object Int16Array]",Qm="[object Int32Array]",t0="[object Uint8Array]",e0="[object Uint8ClampedArray]",i0="[object Uint16Array]",r0="[object Uint32Array]",G={};G[Vm]=G[Km]=G[Zm]=G[Jm]=G[Qm]=G[t0]=G[e0]=G[i0]=G[r0]=!0;G[Mm]=G[$m]=G[Xm]=G[Dm]=G[Gm]=G[Nm]=G[Pm]=G[Rm]=G[qm]=G[zm]=G[Wm]=G[Hm]=G[Ym]=G[jm]=G[Um]=!1;function n0(t){return ni(t)&&Fl(t.length)&&!!G[ri(t)]}function Ml(t){return function(e){return t(e)}}var $l=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ki=$l&&typeof module=="object"&&module&&!module.nodeType&&module,o0=ki&&ki.exports===$l,wn=o0&&xl.process,Gn=(function(){try{var t=ki&&ki.require&&ki.require("util").types;return t||wn&&wn.binding&&wn.binding("util")}catch{}})(),Gs=Gn&&Gn.isTypedArray,So=Gs?Ml(Gs):n0;function Vn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var s0=Object.prototype,a0=s0.hasOwnProperty;function Dl(t,e,i){var r=t[e];(!(a0.call(t,e)&&jr(r,i))||i===void 0&&!(e in t))&&vo(t,e,i)}function Nl(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),n?vo(i,a,l):Dl(i,a,l)}return i}function l0(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var c0=9007199254740991,h0=/^(?:0|[1-9]\d*)$/;function Pl(t,e){var i=typeof t;return e=e??c0,!!e&&(i=="number"||i!="symbol"&&h0.test(t))&&t>-1&&t%1==0&&t<e}var u0=Object.prototype,d0=u0.hasOwnProperty;function Rl(t,e){var i=Mi(t),r=!i&&kr(t),n=!i&&!r&&Vr(t),o=!i&&!r&&!n&&So(t),s=i||r||n||o,a=s?l0(t.length,String):[],l=a.length;for(var c in t)(e||d0.call(t,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Pl(c,l)))&&a.push(c);return a}function f0(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var p0=Object.prototype,g0=p0.hasOwnProperty;function m0(t){if(!fe(t))return f0(t);var e=Gr(t),i=[];for(var r in t)r=="constructor"&&(e||!g0.call(t,r))||i.push(r);return i}function ql(t){return zi(t)?Rl(t,!0):m0(t)}function y0(t){return Nl(t,ql(t))}function _0(t,e,i,r,n,o,s){var a=Vn(t,i),l=Vn(e,i),c=s.get(l);if(c){Xn(t,i,c);return}var h=o?o(a,l,i+"",t,e,s):void 0,d=h===void 0;if(d){var u=Mi(l),f=!u&&Vr(l),m=!u&&!f&&So(l);h=l,u||f||m?Mi(a)?h=a:Sm(a)?h=wl(a):f?(d=!1,h=vl(l,!0)):m?(d=!1,h=kl(l,!0)):h=[]:Im(l)||kr(l)?(h=a,kr(a)?h=y0(a):(!fe(a)||To(a))&&(h=El(l))):d=!1}d&&(s.set(l,h),n(h,l,r,o,s),s.delete(l)),Xn(t,i,h)}function zl(t,e,i,r,n){t!==e&&mm(e,function(o,s){if(n||(n=new Be),fe(o))_0(t,e,s,i,zl,r,n);else{var a=r?r(Vn(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),Xn(t,s,a)}},ql)}function Wl(t){return t}function C0(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Vs=Math.max;function x0(t,e,i){return e=Vs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Vs(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),C0(t,this,a)}}function b0(t){return function(){return t}}var T0=Sr?function(t,e){return Sr(t,"toString",{configurable:!0,enumerable:!1,value:b0(e),writable:!0})}:Wl,v0=800,S0=16,k0=Date.now;function w0(t){var e=0,i=0;return function(){var r=k0(),n=S0-(r-i);if(i=r,n>0){if(++e>=v0)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var A0=w0(T0);function B0(t,e){return A0(x0(t,e,Wl),t+"")}function E0(t,e,i){if(!fe(i))return!1;var r=typeof e;return(r=="number"?zi(i)&&Pl(e,i.length):r=="string"&&e in i)?jr(i[e],t):!1}function L0(t){return B0(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&E0(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var F0=L0(function(t,e,i){zl(t,e,i)}),Hl="comm",Yl="rule",jl="decl",O0="@import",I0="@namespace",M0="@keyframes",$0="@layer",Ul=Math.abs,ko=String.fromCharCode;function Xl(t){return t.trim()}function hr(t,e,i){return t.replace(e,i)}function D0(t,e,i){return t.indexOf(e,i)}function We(t,e){return t.charCodeAt(e)|0}function Ve(t,e,i){return t.slice(e,i)}function qt(t){return t.length}function N0(t){return t.length}function er(t,e){return e.push(t),t}var Kr=1,Ke=1,Gl=0,At=0,J=0,oi="";function wo(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Kr,column:Ke,length:s,return:"",siblings:a}}function P0(){return J}function R0(){return J=At>0?We(oi,--At):0,Ke--,J===10&&(Ke=1,Kr--),J}function It(){return J=At<Gl?We(oi,At++):0,Ke++,J===10&&(Ke=1,Kr++),J}function ce(){return We(oi,At)}function ur(){return At}function Zr(t,e){return Ve(oi,t,e)}function $i(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q0(t){return Kr=Ke=1,Gl=qt(oi=t),At=0,[]}function z0(t){return oi="",t}function An(t){return Xl(Zr(At-1,Kn(t===91?t+2:t===40?t+1:t)))}function W0(t){for(;(J=ce())&&J<33;)It();return $i(t)>2||$i(J)>3?"":" "}function H0(t,e){for(;--e&&It()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Zr(t,ur()+(e<6&&ce()==32&&It()==32))}function Kn(t){for(;It();)switch(J){case t:return At;case 34:case 39:t!==34&&t!==39&&Kn(J);break;case 40:t===41&&Kn(t);break;case 92:It();break}return At}function Y0(t,e){for(;It()&&t+J!==57;)if(t+J===84&&ce()===47)break;return"/*"+Zr(e,At-1)+"*"+ko(t===47?t:It())}function j0(t){for(;!$i(ce());)It();return Zr(t,At)}function U0(t){return z0(dr("",null,null,null,[""],t=q0(t),0,[0],t))}function dr(t,e,i,r,n,o,s,a,l){for(var c=0,h=0,d=s,u=0,f=0,m=0,y=1,C=1,L=1,b=0,P="",x=n,S=o,U=r,N=P;C;)switch(m=b,b=It()){case 40:if(m!=108&&We(N,d-1)==58){D0(N+=hr(An(b),"&","&\f"),"&\f",Ul(c?a[c-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:N+=An(b);break;case 9:case 10:case 13:case 32:N+=W0(m);break;case 92:N+=H0(ur()-1,7);continue;case 47:switch(ce()){case 42:case 47:er(X0(Y0(It(),ur()),e,i,l),l),($i(m||1)==5||$i(ce()||1)==5)&&qt(N)&&Ve(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*y:a[c++]=qt(N)*L;case 125*y:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+h:L==-1&&(N=hr(N,/\f/g,"")),f>0&&(qt(N)-d||y===0&&m===47)&&er(f>32?Zs(N+";",r,i,d-1,l):Zs(hr(N," ","")+";",r,i,d-2,l),l);break;case 59:N+=";";default:if(er(U=Ks(N,e,i,c,h,n,a,P,x=[],S=[],d,o),o),b===123)if(h===0)dr(N,e,U,U,x,o,d,a,S);else{switch(u){case 99:if(We(N,3)===110)break;case 108:if(We(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?dr(t,U,U,r&&er(Ks(t,U,U,0,0,n,a,P,n,x=[],d,S),S),n,S,d,a,r?x:S):dr(N,U,U,U,[""],S,0,a,S)}}c=h=f=0,y=L=1,P=N="",d=s;break;case 58:d=1+qt(N),f=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&R0()==125)continue}switch(N+=ko(b),b*y){case 38:L=h>0?1:(N+="\f",-1);break;case 44:a[c++]=(qt(N)-1)*L,L=1;break;case 64:ce()===45&&(N+=An(It())),u=ce(),h=d=qt(P=N+=j0(ur())),b++;break;case 45:m===45&&qt(N)==2&&(y=0)}}return o}function Ks(t,e,i,r,n,o,s,a,l,c,h,d){for(var u=n-1,f=n===0?o:[""],m=N0(f),y=0,C=0,L=0;y<r;++y)for(var b=0,P=Ve(t,u+1,u=Ul(C=s[y])),x=t;b<m;++b)(x=Xl(C>0?f[b]+" "+P:hr(P,/&\f/g,f[b])))&&(l[L++]=x);return wo(t,e,i,n===0?Yl:a,l,c,h,d)}function X0(t,e,i,r){return wo(t,e,i,Hl,ko(P0()),Ve(t,2,-2),0,r)}function Zs(t,e,i,r,n){return wo(t,e,i,jl,Ve(t,0,r),Ve(t,r+1,-1),r,n)}function Zn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function G0(t,e,i,r){switch(t.type){case $0:if(t.children.length)break;case O0:case I0:case jl:return t.return=t.return||t.value;case Hl:return"";case M0:return t.return=t.value+"{"+Zn(t.children,r)+"}";case Yl:if(!qt(t.value=t.props.join(",")))return""}return qt(i=Zn(t.children,r))?t.return=t.value+"{"+i+"}":""}var V0=Al(Object.keys,Object),K0=Object.prototype,Z0=K0.hasOwnProperty;function Vl(t){if(!Gr(t))return V0(t);var e=[];for(var i in Object(t))Z0.call(t,i)&&i!="constructor"&&e.push(i);return e}var Jn=Ae(Ut,"DataView"),Qn=Ae(Ut,"Promise"),to=Ae(Ut,"Set"),eo=Ae(Ut,"WeakMap"),Js="[object Map]",J0="[object Object]",Qs="[object Promise]",ta="[object Set]",ea="[object WeakMap]",ia="[object DataView]",Q0=we(Jn),ty=we(Ii),ey=we(Qn),iy=we(to),ry=we(eo);exports.getTag=ri;(Jn&&exports.getTag(new Jn(new ArrayBuffer(1)))!=ia||Ii&&exports.getTag(new Ii)!=Js||Qn&&exports.getTag(Qn.resolve())!=Qs||to&&exports.getTag(new to)!=ta||eo&&exports.getTag(new eo)!=ea)&&(exports.getTag=function(t){var e=ri(t),i=e==J0?t.constructor:void 0,r=i?we(i):"";if(r)switch(r){case Q0:return ia;case ty:return Js;case ey:return Qs;case iy:return ta;case ry:return ea}return e});var ny="[object Map]",oy="[object Set]",sy=Object.prototype,ay=sy.hasOwnProperty;function Bn(t){if(t==null)return!0;if(zi(t)&&(Mi(t)||typeof t=="string"||typeof t.splice=="function"||Vr(t)||So(t)||kr(t)))return!t.length;var e=exports.getTag(t);if(e==ny||e==oy)return!t.size;if(Gr(t))return!Vl(t).length;for(var i in t)if(ay.call(t,i))return!1;return!0}const Zt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Ao=function(t="fatal"){let e=Zt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Zt&&(e=Zt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Zt.fatal&&(M.fatal=console.error?console.error.bind(console,kt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",kt("FATAL"))),e<=Zt.error&&(M.error=console.error?console.error.bind(console,kt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",kt("ERROR"))),e<=Zt.warn&&(M.warn=console.warn?console.warn.bind(console,kt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",kt("WARN"))),e<=Zt.info&&(M.info=console.info?console.info.bind(console,kt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",kt("INFO"))),e<=Zt.debug&&(M.debug=console.debug?console.debug.bind(console,kt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("DEBUG"))),e<=Zt.trace&&(M.trace=console.debug?console.debug.bind(console,kt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("TRACE")))},kt=t=>`%c${Aa().format("ss.SSS")} : ${t} : `,si=/<br\s*\/?>/gi,ly=t=>t?Zl(t).replace(/\\n/g,"#br#").split("#br#"):[""],cy=(()=>{let t=!1;return()=>{t||(hy(),t=!0)}})();function hy(){const t="data-temp-href-target";Ge.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ge.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Kl=t=>(cy(),Ge.sanitize(t)),ra=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Kl(t):r!=="loose"&&(t=Zl(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=py(t))}return t},Se=(t,e)=>t&&(e.dompurifyConfig?t=Ge.sanitize(ra(t,e),e.dompurifyConfig).toString():t=Ge.sanitize(ra(t,e),{FORBID_TAGS:["style"]}).toString(),t),uy=(t,e)=>typeof t=="string"?Se(t,e):t.flat().map(i=>Se(i,e)),dy=t=>si.test(t),fy=t=>t.split(si),py=t=>t.replace(/#br#/g,"<br/>"),Zl=t=>t.replace(si,"#br#"),gy=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Bo=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),my=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},yy=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},_y=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];Cy(o,s)&&(n=o+","+s,r++,i.pop())}i.push(xy(n))}return i.join("")},io=(t,e)=>Math.max(0,t.split(e).length-1),Cy=(t,e)=>{const i=io(t,"~"),r=io(e,"~");return i===1&&r===1},xy=t=>{const e=io(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},na=()=>window.MathMLElement!==void 0,ro=/\$\$(.*)\$\$/g,no=t=>{var e;return(((e=t.match(ro))==null?void 0:e.length)??0)>0},by=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await Jl(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Ty=async(t,e)=>{if(!no(t))return t;if(!na()&&!e.legacyMathML)return t.replace(ro,"MathML is unsupported in this environment.");const{default:i}=await Promise.resolve().then(()=>require("./layers.hweLqW3I.js"));return t.split(si).map(r=>no(r)?`
|
|
14
|
+
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
15
|
+
${r}
|
|
16
|
+
</div>
|
|
17
|
+
`:`<div>${r}</div>`).join("").replace(ro,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:na()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Jl=async(t,e)=>Se(await Ty(t,e),e),Jr={getRows:ly,sanitizeText:Se,sanitizeTextOrArray:uy,hasBreaks:dy,splitBreaks:fy,lineBreakRegex:si,removeScript:Kl,getUrl:gy,evaluate:Bo,getMax:my,getMin:yy},pt=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Qr="#ffffff",tn="#f2f2f2";let vy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(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?D(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(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||E(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||v(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||E(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||D(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const u=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(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||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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?D(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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||Qr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tn}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Sy=t=>{const e=new vy;return e.calculate(t),e};let ky=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=E(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=E(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ze(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=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=ze(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ze(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.secondBkg=E(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=E(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=E(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=E(this.secondaryColor,20),this.git1=E(this.pie2||this.secondaryColor,20),this.git2=E(this.pie3||this.tertiaryColor,20),this.git3=E(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=E(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=E(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=E(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=E(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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||E(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||E(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const wy=t=>{const e=new ky;return e.calculate(t),e};let Ay=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ze(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(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||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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||Qr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tn}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Ql=t=>{const e=new Ay;return e.calculate(t),e};let By=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=E("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.actorBorder=D(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(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||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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||Qr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tn}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Ey=t=>{const e=new By;return e.calculate(t),e};class Ly{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=E(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.secondBkg=E(this.contrast,55),this.border2=this.contrast,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=E(this.contrast,30),this.sectionBkgColor2=E(this.contrast,30),this.taskBorderColor=D(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=E(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||Qr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tn}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Fy=t=>{const e=new Ly;return e.calculate(t),e},ie={base:{getThemeVariables:Sy},dark:{getThemeVariables:wy},default:{getThemeVariables:Ql},forest:{getThemeVariables:Ey},neutral:{getThemeVariables:Fy}},Jt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},tc={...Jt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ie.default.getThemeVariables(),sequence:{...Jt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Jt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Jt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Jt.pie,useWidth:984},xyChart:{...Jt.xyChart,useWidth:void 0},requirement:{...Jt.requirement,useWidth:void 0},gitGraph:{...Jt.gitGraph,useMaxWidth:!1},sankey:{...Jt.sankey,useMaxWidth:!1}},ec=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...ec(t[r],"")]:[...i,e+r],[]),Oy=new Set(ec(tc,"")),ic=tc,wr=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>wr(e));return}for(const e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Oy.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),wr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(M.debug("sanitizing css option",e),t[e]=Iy(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},Iy=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},rc=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,wi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,My=/\s*%%.*\n/gm;class nc extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ze={},en=function(t,e){t=t.replace(rc,"").replace(wi,"").replace(My,`
|
|
18
|
+
`);for(const[i,{detector:r}]of Object.entries(Ze))if(r(t,e))return i;throw new nc(`No diagram type detected matching given configuration for text: ${t}`)},oc=(...t)=>{for(const{id:e,detector:i,loader:r}of t)sc(e,i,r)},sc=(t,e,i)=>{Ze[t]?M.error(`Detector with key ${t} already exists`):Ze[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},$y=t=>Ze[t].loader,oo=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>oo(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=oo(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},at=oo,ac="",Dy={curveBasis:rl,curveBasisClosed:vp,curveBasisOpen:Sp,curveBumpX:bp,curveBumpY:Tp,curveBundle:kp,curveCardinalClosed:Ap,curveCardinalOpen:Bp,curveCardinal:wp,curveCatmullRomClosed:Lp,curveCatmullRomOpen:Fp,curveCatmullRom:Ep,curveLinear:el,curveLinearClosed:Op,curveMonotoneX:Ip,curveMonotoneY:Mp,curveNatural:$p,curveStep:Dp,curveStepAfter:Pp,curveStepBefore:Np},Ny=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Py=function(t,e){const i=lc(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);wr(s),r=at(r,[...s])}else r=i.args;if(!r)return;let n=en(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},lc=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Ny.source})(?=[}][%]{2}).*
|
|
19
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=wi.exec(t))!==null;)if(r.index===wi.lastIndex&&wi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return M.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Ry=function(t){return t.replace(wi,"")},qy=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function cc(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Dy[i]??e}function zy(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?zt.distExports.sanitizeUrl(i):i}const Wy=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){M.error(`Function name: ${t} not found in window`);return}o[n](...e)};function hc(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Hy(t){let e,i=0;t.forEach(n=>{i+=hc(n,e),e=n});const r=i/2;return Eo(t,r)}function Yy(t){return t.length===1?t[0]:Hy(t)}const oa=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Eo=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=hc(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:oa((1-s)*i.x+s*n.x,5),y:oa((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},jy=(t,e,i)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Eo(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function Uy(t,e,i){const r=structuredClone(i);M.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Eo(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function uc(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let sa=0;const dc=()=>(sa++,"id-"+Math.random().toString(36).substr(2,12)+"-"+sa);function Xy(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const fc=t=>Xy(t.length),Gy=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:""}},Vy=function(t,e){const i=e.text.replace(Jr.lineBreakRegex," "),[,r]=rn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},pc=qi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Jr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Di(`${s} `,i),c=Di(o,i);if(l>e){const{hyphenatedStrings:u,remainingWord:f}=Ky(s,e,"-",i);n.push(o,...u),o=f}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Ky=qi((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(Di(c,r)>=e){const d=l+1,u=n.length===d,f=`${c}${i}`;o.push(u?c:f),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function gc(t,e){return Lo(t,e).height}function Di(t,e){return Lo(t,e).width}const Lo=qi((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=rn(i),s=["sans-serif",r],a=t.split(Jr.lineBreakRegex),l=[],c=bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const u of s){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const C=Gy();C.text=y||ac;const L=Vy(h,C).style("font-size",o).style("font-weight",n).style("font-family",u),b=(L._groups||L)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),f=Math.round(b.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}h.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Zy{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let ir;const Jy=function(t){return ir=ir||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=t,unescape(ir.textContent)};function mc(t){return"str"in t}const Qy=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},rn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Fo(t,e){return F0({},t,e)}const He={assignWithDepth:at,wrapLabel:pc,calculateTextHeight:gc,calculateTextWidth:Di,calculateTextDimensions:Lo,cleanAndMerge:Fo,detectInit:Py,detectDirective:lc,isSubstringInArray:qy,interpolateToCurve:cc,calcLabelPosition:Yy,calcCardinalityPosition:jy,calcTerminalLabelPosition:Uy,formatUrl:zy,getStylesFromArray:uc,generateId:dc,random:fc,runFunc:Wy,entityDecode:Jy,insertTitle:Qy,parseFontSize:rn,InitIDGenerator:Zy},t_=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},yc=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},aa="10.9.5",Je=Object.freeze(ic);let _t=at({},Je),_c,Qe=[],Ai=at({},Je);const nn=(t,e)=>{let i=at({},t),r={};for(const n of e)bc(n),r=at(r,n);if(i=at(i,r),r.theme&&r.theme in ie){const n=at({},_c),o=at(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in ie&&(i.themeVariables=ie[i.theme].getThemeVariables(o))}return Ai=i,Tc(Ai),Ai},e_=t=>(_t=at({},Je),_t=at(_t,t),t.theme&&ie[t.theme]&&(_t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables)),nn(_t,Qe),_t),i_=t=>{_c=at({},t)},r_=t=>(_t=at(_t,t),nn(_t,Qe),_t),Cc=()=>at({},_t),xc=t=>(Tc(t),at(Ai,t),$t()),$t=()=>at({},Ai),bc=t=>{t&&(["secure",..._t.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&bc(t[e])}))},n_=t=>{wr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Qe.push(t),nn(_t,Qe)},Ar=(t=_t)=>{Qe=[],nn(t,Qe)},o_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},la={},s_=t=>{la[t]||(M.warn(o_[t]),la[t]=!0)},Tc=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&s_("LAZY_LOAD_DEPRECATED")},vc="c4",a_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),l_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BZvD_ufq.js"));return{id:vc,diagram:t}},c_={id:vc,detector:a_,loader:l_},h_=c_,Sc="flowchart",u_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},d_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BgJWoaX0.js"));return{id:Sc,diagram:t}},f_={id:Sc,detector:u_,loader:d_},p_=f_,kc="flowchart-v2",g_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},m_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Cm_DIS6r.js"));return{id:kc,diagram:t}},y_={id:kc,detector:g_,loader:m_},__=y_,wc="er",C_=t=>/^\s*erDiagram/.test(t),x_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CQWT2Mii.js"));return{id:wc,diagram:t}},b_={id:wc,detector:C_,loader:x_},T_=b_,Ac="gitGraph",v_=t=>/^\s*gitGraph/.test(t),S_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BmRLb_KH.js"));return{id:Ac,diagram:t}},k_={id:Ac,detector:v_,loader:S_},w_=k_,Bc="gantt",A_=t=>/^\s*gantt/.test(t),B_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CUvrvILv.js"));return{id:Bc,diagram:t}},E_={id:Bc,detector:A_,loader:B_},L_=E_,Ec="info",F_=t=>/^\s*info/.test(t),O_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.SV9c-xJ4.js"));return{id:Ec,diagram:t}},I_={id:Ec,detector:F_,loader:O_},Lc="pie",M_=t=>/^\s*pie/.test(t),$_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.7QozyVZs.js"));return{id:Lc,diagram:t}},D_={id:Lc,detector:M_,loader:$_},Fc="quadrantChart",N_=t=>/^\s*quadrantChart/.test(t),P_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.C9Xny9c1.js"));return{id:Fc,diagram:t}},R_={id:Fc,detector:N_,loader:P_},q_=R_,Oc="xychart",z_=t=>/^\s*xychart-beta/.test(t),W_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Bt-00ZMW.js"));return{id:Oc,diagram:t}},H_={id:Oc,detector:z_,loader:W_},Y_=H_,Ic="requirement",j_=t=>/^\s*requirement(Diagram)?/.test(t),U_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.PfvZQj0b.js"));return{id:Ic,diagram:t}},X_={id:Ic,detector:j_,loader:U_},G_=X_,Mc="sequence",V_=t=>/^\s*sequenceDiagram/.test(t),K_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.C9vKJCjt.js"));return{id:Mc,diagram:t}},Z_={id:Mc,detector:V_,loader:K_},J_=Z_,$c="class",Q_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},tC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DGxdKpV_.js"));return{id:$c,diagram:t}},eC={id:$c,detector:Q_,loader:tC},iC=eC,Dc="classDiagram",rC=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},nC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DT4LICiJ.js"));return{id:Dc,diagram:t}},oC={id:Dc,detector:rC,loader:nC},sC=oC,Nc="state",aC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},lC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.zGHylA_8.js"));return{id:Nc,diagram:t}},cC={id:Nc,detector:aC,loader:lC},hC=cC,Pc="stateDiagram",uC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},dC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.eJBQATnQ.js"));return{id:Pc,diagram:t}},fC={id:Pc,detector:uC,loader:dC},pC=fC,Rc="journey",gC=t=>/^\s*journey/.test(t),mC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.lK-yASGE.js"));return{id:Rc,diagram:t}},yC={id:Rc,detector:gC,loader:mC},_C=yC,CC=function(t,e){for(let i of e)t.attr(i[0],i[1])},xC=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Oo=function(t,e,i,r){const n=xC(e,i,r);CC(t,n)},qc=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;M.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;M.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,M.info(`Calculated bounds: ${a}x${l}`),Oo(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},fr={},bC=(t,e,i)=>{let r="";return t in fr&&fr[t]?r=fr[t](i):M.warn(`No theme found for ${t}`),` & {
|
|
20
|
+
font-family: ${i.fontFamily};
|
|
21
|
+
font-size: ${i.fontSize};
|
|
22
|
+
fill: ${i.textColor}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Classes common for multiple diagrams */
|
|
26
|
+
|
|
27
|
+
& .error-icon {
|
|
28
|
+
fill: ${i.errorBkgColor};
|
|
29
|
+
}
|
|
30
|
+
& .error-text {
|
|
31
|
+
fill: ${i.errorTextColor};
|
|
32
|
+
stroke: ${i.errorTextColor};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& .edge-thickness-normal {
|
|
36
|
+
stroke-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
& .edge-thickness-thick {
|
|
39
|
+
stroke-width: 3.5px
|
|
40
|
+
}
|
|
41
|
+
& .edge-pattern-solid {
|
|
42
|
+
stroke-dasharray: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
& .edge-pattern-dashed{
|
|
46
|
+
stroke-dasharray: 3;
|
|
47
|
+
}
|
|
48
|
+
.edge-pattern-dotted {
|
|
49
|
+
stroke-dasharray: 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& .marker {
|
|
53
|
+
fill: ${i.lineColor};
|
|
54
|
+
stroke: ${i.lineColor};
|
|
55
|
+
}
|
|
56
|
+
& .marker.cross {
|
|
57
|
+
stroke: ${i.lineColor};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& svg {
|
|
61
|
+
font-family: ${i.fontFamily};
|
|
62
|
+
font-size: ${i.fontSize};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${r}
|
|
66
|
+
|
|
67
|
+
${e}
|
|
68
|
+
`},TC=(t,e)=>{e!==void 0&&(fr[t]=e)},vC=bC;let Io="",Mo="",$o="";const Do=t=>Se(t,$t()),zc=()=>{Io="",$o="",Mo=""},Wc=t=>{Io=Do(t).replace(/^\s+/g,"")},Hc=()=>Io,Yc=t=>{$o=Do(t).replace(/\n\s+/g,`
|
|
69
|
+
`)},jc=()=>$o,Uc=t=>{Mo=Do(t)},Xc=()=>Mo,Gc=Object.freeze(Object.defineProperty({__proto__:null,clear:zc,getAccDescription:jc,getAccTitle:Hc,getDiagramTitle:Xc,setAccDescription:Yc,setAccTitle:Wc,setDiagramTitle:Uc},Symbol.toStringTag,{value:"Module"})),SC=M,kC=Ao,on=$t,wC=xc,AC=Je,BC=t=>Se(t,on()),Vc=qc,EC=()=>Gc,Br={},Er=(t,e,i)=>{var r;if(Br[t])throw new Error(`Diagram ${t} already registered.`);Br[t]=e,i&&sc(t,i),TC(t,e.styles),(r=e.injectUtils)==null||r.call(e,SC,kC,on,BC,Vc,EC(),()=>{})},No=t=>{if(t in Br)return Br[t];throw new LC(t)};class LC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Kc=t=>{var e;const{securityLevel:i}=on();let r=bt("body");if(i==="sandbox"){const s=((e=bt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=bt(s.body)}return r.select(`#${t}`)},FC=(t,e,i)=>{M.debug(`rendering svg for syntax error
|
|
70
|
+
`);const r=Kc(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),Oo(r,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 ${i}`)},Zc={draw:FC},OC=Zc,IC={db:{},renderer:Zc,parser:{parser:{yy:{}},parse:()=>{}}},MC=IC,Jc="flowchart-elk",$C=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},DC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BGyOsjNd.js"));return{id:Jc,diagram:t}},NC={id:Jc,detector:$C,loader:DC},PC=NC,Qc="timeline",RC=t=>/^\s*timeline/.test(t),qC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DSjAbsiI.js"));return{id:Qc,diagram:t}},zC={id:Qc,detector:RC,loader:qC},WC=zC,th="mindmap",HC=t=>/^\s*mindmap/.test(t),YC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DcbHyTt0.js"));return{id:th,diagram:t}},jC={id:th,detector:HC,loader:YC},UC=jC,eh="sankey",XC=t=>/^\s*sankey-beta/.test(t),GC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CcITvqlZ.js"));return{id:eh,diagram:t}},VC={id:eh,detector:XC,loader:GC},KC=VC,ih="block",ZC=t=>/^\s*block-beta/.test(t),JC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.ft1FusK9.js"));return{id:ih,diagram:t}},QC={id:ih,detector:ZC,loader:JC},tx=QC;let ca=!1;const Po=()=>{ca||(ca=!0,Er("error",MC,t=>t.toLowerCase().trim()==="error"),Er("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),oc(h_,sC,iC,T_,L_,I_,D_,G_,J_,PC,__,p_,UC,WC,w_,pC,hC,_C,q_,KC,Y_,tx))};class rh{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=t_(e),this.text+=`
|
|
71
|
+
`;const r=$t();try{this.type=en(e,r)}catch(o){this.type="error",this.detectError=o}const n=No(this.type);M.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=$t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const ex=async(t,e={})=>{const i=en(t,$t());try{No(i)}catch{const n=$y(i);if(!n)throw new nc(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();Er(o,s)}return new rh(t,e)};let ha=[];const ix=()=>{ha.forEach(t=>{t()}),ha=[]},rx="graphics-document document";function nx(t,e){t.attr("role",rx),e!==""&&t.attr("aria-roledescription",e)}function ox(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const sx=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function nh(t){return typeof t>"u"||t===null}function ax(t){return typeof t=="object"&&t!==null}function lx(t){return Array.isArray(t)?t:nh(t)?[]:[t]}function cx(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function hx(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function ux(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var dx=nh,fx=ax,px=lx,gx=hx,mx=ux,yx=cx,dt={isNothing:dx,isObject:fx,toArray:px,repeat:gx,isNegativeZero:mx,extend:yx};function oh(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
|
|
72
|
+
|
|
73
|
+
`+t.mark.snippet),r+" "+i):r}function Ni(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=oh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ni.prototype=Object.create(Error.prototype);Ni.prototype.constructor=Ni;Ni.prototype.toString=function(e){return this.name+": "+oh(this,e)};var ee=Ni;function En(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Ln(t,e){return dt.repeat(" ",e-t.length)+t}function _x(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=En(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),d),a=dt.repeat(" ",e.indent)+Ln((t.line-l+1).toString(),h)+" | "+c.str+`
|
|
74
|
+
`+a;for(c=En(t.buffer,r[s],n[s],t.position,d),a+=dt.repeat(" ",e.indent)+Ln((t.line+1).toString(),h)+" | "+c.str+`
|
|
75
|
+
`,a+=dt.repeat("-",e.indent+h+3+c.pos)+`^
|
|
76
|
+
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=En(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),d),a+=dt.repeat(" ",e.indent)+Ln((t.line+l+1).toString(),h)+" | "+c.str+`
|
|
77
|
+
`;return a.replace(/\n$/,"")}var Cx=_x,xx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],bx=["scalar","sequence","mapping"];function Tx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function vx(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(xx.indexOf(i)===-1)throw new ee('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Tx(e.styleAliases||null),bx.indexOf(this.kind)===-1)throw new ee('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=vx;function ua(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function Sx(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function so(t){return this.extend(t)}so.prototype.extend=function(e){var i=[],r=[];if(e instanceof ht)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(so.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ua(n,"implicit"),n.compiledExplicit=ua(n,"explicit"),n.compiledTypeMap=Sx(n.compiledImplicit,n.compiledExplicit),n};var kx=so,wx=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Ax=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Bx=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ex=new kx({explicit:[wx,Ax,Bx]});function Lx(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Fx(){return null}function Ox(t){return t===null}var Ix=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lx,construct:Fx,predicate:Ox,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Mx(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function $x(t){return t==="true"||t==="True"||t==="TRUE"}function Dx(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Nx=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Mx,construct:$x,predicate:Dx,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Px(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Rx(t){return 48<=t&&t<=55}function qx(t){return 48<=t&&t<=57}function zx(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Px(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Rx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!qx(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function Wx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Hx(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dt.isNegativeZero(t)}var Yx=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:zx,construct:Wx,predicate:Hx,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),jx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ux(t){return!(t===null||!jx.test(t)||t[t.length-1]==="_")}function Xx(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Gx=/^[-+]?[0-9]+e/;function Vx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(t))return"-0.0";return i=t.toString(10),Gx.test(i)?i.replace("e",".e"):i}function Kx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dt.isNegativeZero(t))}var Zx=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ux,construct:Xx,predicate:Kx,represent:Vx,defaultStyle:"lowercase"}),sh=Ex.extend({implicit:[Ix,Nx,Yx,Zx]}),Jx=sh,ah=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),lh=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 Qx(t){return t===null?!1:ah.exec(t)!==null||lh.exec(t)!==null}function tb(t){var e,i,r,n,o,s,a,l=0,c=null,h,d,u;if(e=ah.exec(t),e===null&&(e=lh.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],d=+(e[11]||0),c=(h*60+d)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&u.setTime(u.getTime()-c),u}function eb(t){return t.toISOString()}var ib=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Qx,construct:tb,instanceOf:Date,represent:eb});function rb(t){return t==="<<"||t===null}var nb=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rb}),Ro=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
78
|
+
\r`;function ob(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=Ro;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function sb(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=Ro,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function ab(t){var e="",i=0,r,n,o=t.length,s=Ro;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function lb(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var cb=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ob,construct:sb,predicate:lb,represent:ab}),hb=Object.prototype.hasOwnProperty,ub=Object.prototype.toString;function db(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,ub.call(n)!=="[object Object]")return!1;for(o in n)if(hb.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function fb(t){return t!==null?t:[]}var pb=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:db,construct:fb}),gb=Object.prototype.toString;function mb(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],gb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function yb(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var _b=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mb,construct:yb}),Cb=Object.prototype.hasOwnProperty;function xb(t){if(t===null)return!0;var e,i=t;for(e in i)if(Cb.call(i,e)&&i[e]!==null)return!1;return!0}function bb(t){return t!==null?t:{}}var Tb=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:xb,construct:bb}),vb=Jx.extend({implicit:[ib,nb],explicit:[cb,pb,_b,Tb]}),de=Object.prototype.hasOwnProperty,Lr=1,ch=2,hh=3,Fr=4,Fn=1,Sb=2,da=3,kb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wb=/[\x85\u2028\u2029]/,Ab=/[,\[\]\{\}]/,uh=/^(?:!|!!|![a-z\-]+!)$/i,dh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function fa(t){return Object.prototype.toString.call(t)}function Ht(t){return t===10||t===13}function be(t){return t===9||t===32}function Ct(t){return t===9||t===32||t===10||t===13}function Ne(t){return t===44||t===91||t===93||t===123||t===125}function Bb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Eb(t){return t===120?2:t===117?4:t===85?8:0}function Lb(t){return 48<=t&&t<=57?t-48:-1}function pa(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
79
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Fb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var fh=new Array(256),ph=new Array(256);for(var $e=0;$e<256;$e++)fh[$e]=pa($e)?1:0,ph[$e]=pa($e);function Ob(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||vb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gh(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=Cx(i),new ee(e,i)}function O(t,e){throw gh(t,e)}function Or(t,e){t.onWarning&&t.onWarning.call(null,gh(t,e))}var ga={YAML:function(e,i,r){var n,o,s;e.version!==null&&O(e,"duplication of %YAML directive"),r.length!==1&&O(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&O(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Or(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&O(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],uh.test(n)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),de.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),dh.test(o)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{O(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function he(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||O(t,"expected valid JSON character");else kb.test(a)&&O(t,"the stream contains non-printable characters");t.result+=a}}function ma(t,e,i,r){var n,o,s,a;for(dt.isObject(i)||O(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],de.call(e,o)||(e[o]=i[o],r[o]=!0)}function Pe(t,e,i,r,n,o,s,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&O(t,"nested arrays are not supported inside keys"),typeof n=="object"&&fa(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&fa(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,h=o.length;c<h;c+=1)ma(t,e,o[c],i);else ma(t,e,o,i);else!t.json&&!de.call(i,n)&&de.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,O(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function qo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Q(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;be(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Ht(n))for(qo(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Or(t,"deficient indentation"),r}function sn(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||Ct(i)))}function zo(t,e){e===1?t.result+=" ":e>1&&(t.result+=dt.repeat(`
|
|
80
|
+
`,e-1))}function Ib(t,e,i){var r,n,o,s,a,l,c,h,d=t.kind,u=t.result,f;if(f=t.input.charCodeAt(t.position),Ct(f)||Ne(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&Ne(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&Ne(n))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),Ct(r))break}else{if(t.position===t.lineStart&&sn(t)||i&&Ne(f))break;if(Ht(f))if(l=t.line,c=t.lineStart,h=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(he(t,o,s,!1),zo(t,t.line-l),o=s=t.position,a=!1),be(f)||(s=t.position+1),f=t.input.charCodeAt(++t.position)}return he(t,o,s,!1),t.result?!0:(t.kind=d,t.result=u,!1)}function Mb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(he(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Ht(i)?(he(t,r,n,!0),zo(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&sn(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function $b(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return he(t,i,t.position,!0),t.position++,!0;if(a===92){if(he(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Ht(a))Q(t,!1,e);else if(a<256&&fh[a])t.result+=ph[a],t.position++;else if((s=Eb(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Bb(a))>=0?o=(o<<4)+s:O(t,"expected hexadecimal character");t.result+=Fb(o),t.position++}else O(t,"unknown escape sequence");i=r=t.position}else Ht(a)?(he(t,i,r,!0),zo(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&sn(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function Db(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,h,d,u,f,m=Object.create(null),y,C,L,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,f=!1,a=[];else if(b===123)h=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(Q(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=s,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;i?b===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),C=y=L=null,d=u=!1,b===63&&(c=t.input.charCodeAt(t.position+1),Ct(c)&&(d=u=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,ti(t,e,Lr,!1,!0),C=t.tag,y=t.result,Q(t,!0,e),b=t.input.charCodeAt(t.position),(u||t.line===r)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Q(t,!0,e),ti(t,e,Lr,!1,!0),L=t.result),f?Pe(t,a,m,C,y,L,r,n,o):d?a.push(Pe(t,null,m,C,y,L,r,n,o)):a.push(y),Q(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(i=!0,b=t.input.charCodeAt(++t.position)):i=!1}O(t,"unexpected end of the stream within a flow collection")}function Nb(t,e){var i,r,n=Fn,o=!1,s=!1,a=e,l=0,c=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)Fn===n?n=d===43?da:Sb:O(t,"repeat of a chomping mode identifier");else if((h=Lb(d))>=0)h===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?O(t,"repeat of an indentation width identifier"):(a=e+h-1,s=!0);else break;if(be(d)){do d=t.input.charCodeAt(++t.position);while(be(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!Ht(d)&&d!==0)}for(;d!==0;){for(qo(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),Ht(d)){l++;continue}if(t.lineIndent<a){n===da?t.result+=dt.repeat(`
|
|
81
|
+
`,o?1+l:l):n===Fn&&o&&(t.result+=`
|
|
82
|
+
`);break}for(r?be(d)?(c=!0,t.result+=dt.repeat(`
|
|
83
|
+
`,o?1+l:l)):c?(c=!1,t.result+=dt.repeat(`
|
|
84
|
+
`,l+1)):l===0?o&&(t.result+=" "):t.result+=dt.repeat(`
|
|
85
|
+
`,l):t.result+=dt.repeat(`
|
|
86
|
+
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!Ht(d)&&d!==0;)d=t.input.charCodeAt(++t.position);he(t,i,t.position,!1)}return!0}function ya(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Ct(s))));){if(a=!0,t.position++,Q(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,ti(t,e,hh,!1,!0),o.push(t.result),Q(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function Pb(t,e,i){var r,n,o,s,a,l,c=t.tag,h=t.anchor,d={},u=Object.create(null),f=null,m=null,y=null,C=!1,L=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!C&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(b===63||b===58)&&Ct(r))b===63?(C&&(Pe(t,d,u,f,m,null,s,a,l),f=m=y=null),L=!0,C=!0,n=!0):C?(C=!1,n=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=r;else{if(s=t.line,a=t.lineStart,l=t.position,!ti(t,i,ch,!1,!0))break;if(t.line===o){for(b=t.input.charCodeAt(t.position);be(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),Ct(b)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Pe(t,d,u,f,m,null,s,a,l),f=m=y=null),L=!0,C=!1,n=!1,f=t.tag,m=t.result;else if(L)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(L)O(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===o||t.lineIndent>e)&&(C&&(s=t.line,a=t.lineStart,l=t.position),ti(t,e,Fr,!0,n)&&(C?m=t.result:y=t.result),C||(Pe(t,d,u,f,m,y,s,a,l),f=m=y=null),Q(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&b!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return C&&Pe(t,d,u,f,m,null,s,a,l),L&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=d),L}function Rb(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&O(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ct(s);)s===33&&(r?O(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),uh.test(n)||O(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),Ab.test(o)&&O(t,"tag suffix cannot contain flow indicator characters")}o&&!dh.test(o)&&O(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{O(t,"tag name is malformed: "+o)}return i?t.tag=o:de.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:O(t,'undeclared tag handle "'+n+'"'),!0}function qb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ct(i)&&!Ne(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function zb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ct(r)&&!Ne(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),de.call(t.anchorMap,i)||O(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],Q(t,!0,-1),!0}function ti(t,e,i,r,n){var o,s,a,l=1,c=!1,h=!1,d,u,f,m,y,C;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=Fr===i||hh===i,r&&Q(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Rb(t)||qb(t);)Q(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Fr===i)&&(Lr===i||ch===i?y=e:y=e+1,C=t.position-t.lineStart,l===1?a&&(ya(t,C)||Pb(t,C,y))||Db(t,y)?h=!0:(s&&Nb(t,y)||Mb(t,y)||$b(t,y)?h=!0:zb(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):Ib(t,y,Lr===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&ya(t,C))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,u=t.implicitTypes.length;d<u;d+=1)if(m=t.implicitTypes[d],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(de.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,f=t.typeMap.multi[t.kind||"fallback"],d=0,u=f.length;d<u;d+=1)if(t.tag.slice(0,f[d].tag.length)===f[d].tag){m=f[d];break}m||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function Wb(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!Ct(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&O(t,"directive name must not be less than one character in length");s!==0;){for(;be(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Ht(s));break}if(Ht(s))break;for(i=t.position;s!==0&&!Ct(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&qo(t),de.call(ga,r)?ga[r](t,r,n):Or(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):o&&O(t,"directives end mark is expected"),ti(t,t.lineIndent-1,Fr,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&wb.test(t.input.slice(e,t.position))&&Or(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&sn(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function Hb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
87
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Ob(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,O(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Wb(i);return i.documents}function Yb(t,e){var i=Hb(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new ee("expected a single document in the stream, but found more")}}var jb=Yb,Ub={load:jb},Xb=sh,Gb=Ub.load;function Vb(t){const e=t.match(rc);if(!e)return{text:t,metadata:{}};let i=Gb(e[1],{schema:Xb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Kb=t=>t.replace(/\r\n?/g,`
|
|
88
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Zb=t=>{const{text:e,metadata:i}=Vb(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},Jb=t=>{const e=He.detectInit(t)??{},i=He.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:Ry(t),directive:e}};function mh(t){const e=Kb(t),i=Zb(e),r=Jb(i.text),n=Fo(i.config,r.directive);return t=sx(r.text),{code:t,title:i.title,config:n}}const Qb=5e4,t1="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",e1="sandbox",i1="loose",r1="http://www.w3.org/2000/svg",n1="http://www.w3.org/1999/xlink",o1="http://www.w3.org/1999/xhtml",s1="100%",a1="100%",l1="border:0;margin:0;",c1="margin:0",h1="allow-top-navigation-by-user-activation allow-popups",u1='The "iframe" tag is not supported by your browser.',d1=["foreignobject"],f1=["dominant-baseline"];function yh(t){const e=mh(t);return Ar(),n_(e.config??{}),e}async function p1(t,e){Po(),t=yh(t).code;try{await Wo(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const _a=(t,e,i=[])=>`
|
|
89
|
+
.${t} ${e} { ${i.join(" !important; ")} !important; }`,g1=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
|
|
90
|
+
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
|
|
91
|
+
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
|
|
92
|
+
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Bn(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Bn(c.styles)||a.forEach(h=>{r+=_a(c.id,h,c.styles)}),Bn(c.textStyles)||(r+=_a(c.id,"tspan",c.textStyles))}}return r},m1=(t,e,i,r)=>{const n=g1(t,i),o=vC(e,n,t.themeVariables);return Zn(U0(`${r}{${o}}`),G0)},y1=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=yc(r),r=r.replace(/<br>/g,"<br/>"),r},_1=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":a1,o=btoa('<body style="'+c1+'">'+t+"</body>");return`<iframe style="width:${s1};height:${n};${l1}" src="data:text/html;base64,${o}" sandbox="${h1}">
|
|
93
|
+
${u1}
|
|
94
|
+
</iframe>`},Ca=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",r1);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function xa(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const C1=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},x1=async function(t,e,i){var r,n,o,s,a,l;Po();const c=yh(e);e=c.code;const h=$t();M.debug(h),e.length>((h==null?void 0:h.maxTextSize)??Qb)&&(e=t1);const d="#"+t,u="i"+t,f="#"+u,m="d"+t,y="#"+m;let C=bt("body");const L=h.securityLevel===e1,b=h.securityLevel===i1,P=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){const $=xa(bt(i),u);C=bt($.nodes()[0].contentDocument.body),C.node().style.margin=0}else C=bt(i);Ca(C,t,m,`font-family: ${P}`,n1)}else{if(C1(document,t,m,u),L){const $=xa(bt("body"),u);C=bt($.nodes()[0].contentDocument.body),C.node().style.margin=0}else C=bt("body");Ca(C,t,m)}let x,S;try{x=await Wo(e,{title:c.title})}catch($){x=new rh("error"),S=$}const U=C.select(y).node(),N=x.type,tt=U.firstChild,ot=tt.firstChild,H=(n=(r=x.renderer).getClasses)==null?void 0:n.call(r,e,x),A=m1(h,N,H,d),et=document.createElement("style");et.innerHTML=A,tt.insertBefore(et,ot);try{await x.renderer.draw(e,t,aa,x)}catch($){throw OC.draw(e,t,aa),$}const oe=C.select(`${y} svg`),R=(s=(o=x.db).getAccTitle)==null?void 0:s.call(o),w=(l=(a=x.db).getAccDescription)==null?void 0:l.call(a);T1(N,oe,R,w),C.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",o1);let T=C.select(y).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),T=y1(T,L,Bo(h.arrowMarkerAbsolute)),L){const $=C.select(y+" svg").node();T=_1(T,$)}else b||(T=Ge.sanitize(T,{ADD_TAGS:d1,ADD_ATTR:f1,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ix(),S)throw S;const k=bt(L?f:y).node();return k&&"remove"in k&&k.remove(),{svg:T,bindFunctions:x.db.bindFunctions}};function b1(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),i_(t),t!=null&&t.theme&&t.theme in ie?t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ie.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?e_(t):Cc();Ao(i.logLevel),Po()}const Wo=(t,e={})=>{const{code:i}=mh(t);return ex(i,e)};function T1(t,e,i,r){nx(e,t),ox(e,i,r,e.attr("id"))}const ke=Object.freeze({render:x1,parse:p1,getDiagramFromText:Wo,initialize:b1,getConfig:$t,setConfig:xc,getSiteConfig:Cc,updateSiteConfig:r_,reset:()=>{Ar()},globalReset:()=>{Ar(Je)},defaultConfig:Je});Ao($t().logLevel);Ar($t());const v1=async()=>{M.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ze).map(async([i,{detector:r,loader:n}])=>{if(n)try{No(i)}catch{try{const{diagram:s,id:a}=await n();Er(a,s,r)}catch(s){throw M.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Ze[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(const i of e)M.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},S1=(t,e,i)=>{M.warn(t),mc(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},_h=async function(t={querySelector:".mermaid"}){try{await k1(t)}catch(e){if(mc(e)&&M.error(e.str),Tt.parseError&&Tt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}},k1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=ke.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(M.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),ke.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new He.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){M.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=wa(He.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=He.detectInit(s);h&&M.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:u}=await Th(c,s,l);l.innerHTML=d,t&&await t(c),u&&u(l)}catch(d){S1(d,a,Tt.parseError)}}if(a.length>0)throw a[0]},Ch=function(t){ke.initialize(t)},w1=async function(t,e,i){M.warn("mermaid.init is deprecated. Please use run instead."),t&&Ch(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await _h(r)},A1=async(t,{lazyLoad:e=!0}={})=>{oc(...t),e===!1&&await v1()},xh=function(){if(Tt.startOnLoad){const{startOnLoad:t}=ke.getConfig();t&&Tt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
|
|
95
|
+
* Wait for document loaded before starting the execution
|
|
96
|
+
*/window.addEventListener("load",xh,!1)}const B1=function(t){Tt.parseError=t},Ir=[];let On=!1;const bh=async()=>{if(!On){for(On=!0;Ir.length>0;){const t=Ir.shift();if(t)try{await t()}catch(e){M.error("Error executing queue",e)}}On=!1}},E1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{ke.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;M.error("Error parsing",a),(l=Tt.parseError)==null||l.call(Tt,a),s(a),r(a)})});Ir.push(n),bh().catch(r)}),Th=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{ke.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;M.error("Error parsing",l),(c=Tt.parseError)==null||c.call(Tt,l),a(l),n(l)})});Ir.push(o),bh().catch(n)}),Tt={startOnLoad:!0,mermaidAPI:ke,parse:E1,render:Th,init:w1,run:_h,registerExternalDiagrams:A1,initialize:Ch,parseError:void 0,contentLoaded:xh,setParseErrorHandler:B1,detectType:en},ai=t=>{t=F1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},Ye=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},L1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},F1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},vh=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),o=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),s=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const h=c[c.length-1];return Math.hypot(h.x-a.x,h.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:o[0]+e.x,endY:o[1]+e.y,reflectionPoints:s}},O1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=Ho(r,e),o=r.getBBox(),s={width:o.width,height:o.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...s,text:ai(t.title)}},I1=(t,e)=>{var d,u,f;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((d=i.parentElement)==null?void 0:d.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=Ho(r?i.parentElement:i,e),o=i.getBBox(),s={width:o.width,height:o.height},a=(u=i.querySelector(".label-container"))==null?void 0:u.getAttribute("style"),l=(f=i.querySelector(".label"))==null?void 0:f.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),C=m.split(":")[1].trim();c[y]=C});const h={};return l==null||l.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),C=m.split(":")[1].trim();h[y]=C}),{id:t.id,labelType:t.labelType,text:ai(t.text),type:t.type,link:r||void 0,...n,...s,containerStyle:c,labelStyle:h}},M1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=Ho(r,i),o=vh(r,n);return t.length=void 0,{...t,...o,text:ai(t.text)}},Ho=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:h}=Ye(r),d=r.getBBox();n={x:Number(r.getAttribute("x"))||c+d.x||0,y:Number(r.getAttribute("y"))||h+d.y||0}}const{transformX:o,transformY:s}=Ye(t),a={x:o+n.x,y:s+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:h}=Ye(i);a.x+=c,a.y+=h}i=i.parentElement}return a},$1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=I1(r[a],e)});const n=new Map,o=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),M1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>O1(a,e)),vertices:r,edges:o}},D1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:ai(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const o=n.split(/(?=[LC])/),s=o[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];o.forEach(c=>{const h=c.substring(1).trim().split(" ").map(d=>{const[u,f]=d.split(",");return[parseFloat(u)-s[0],parseFloat(f)-s[1]]});a.push(...h)});const l=a[a.length-1];i.startX=s[0],i.startY=s[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i},Sh=(t,e,i,r,n)=>{const o={};return o.type="arrow",o.startX=t,o.startY=e,o.endX=i,o.endY=r,Object.assign(o,{...n}),o},ao=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Mr,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),kh=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),o=Number(t.getAttribute("y"));r.type="text",r.text=ai(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const s=t.getBBox();r.width=s.width,r.height=s.height,r.x=n-s.width/2,r.y=o;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Yt=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:o,id:s,groupId:a}=i;r.id=s,a&&(r.groupId=a),n&&(r.label={text:ai(n.text),fontSize:16,verticalAlign:n==null?void 0:n.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=o,o){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Pi=(t,e,i,r,n,o)=>{const s={};return s.startX=e,s.startY=i,s.endX=r,o!=null&&o.groupId&&(s.groupId=o.groupId),o!=null&&o.id&&(s.id=o.id),s.endY=n,s.strokeColor=t.getAttribute("stroke"),s.strokeWidth=Number(t.getAttribute("stroke-width")),s.type="line",s},ba={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Rt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},N1=t=>{let e;switch(t){case Rt.SOLID:case Rt.SOLID_CROSS:case Rt.SOLID_OPEN:case Rt.SOLID_POINT:e="solid";break;case Rt.DOTTED:case Rt.DOTTED_CROSS:case Rt.DOTTED_OPEN:case Rt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},P1=(t,e)=>{var r,n;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const o=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!o)throw new Error("sequence number not present");const s=30,a=s/2,c={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:o,fontSize:14},bgColor:"#e9ecef",height:s,subtype:"sequence"};Object.assign(e,{sequenceNumber:c})}},Ta=(t,e,i)=>{if(!t)throw"root node not found";const r=zt.nanoid(),n=Array.from(t.children),o=[];return n.forEach((s,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let c;switch(s.tagName){case"line":const h=Number(s.getAttribute("x1")),d=Number(s.getAttribute("y1")),u=Number(s.getAttribute("x2")),f=Number(s.getAttribute("y2"));c=Pi(s,h,d,u,f,{groupId:r,id:l});break;case"text":c=kh(s,e,{groupId:r,id:l});break;case"circle":c=Yt(s,"ellipse",{label:s.textContent?{text:s.textContent}:void 0,groupId:r,id:l});default:c=Yt(s,$h[s.tagName],{label:s.textContent?{text:s.textContent}:void 0,groupId:r,id:l})}o.push(c)}),o},R1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],o=[];return Object.values(t).forEach((s,a)=>{var d;const l=i.find(u=>u.getAttribute("name")===s.name),c=r.find(u=>u.getAttribute("name")===s.name);if(!l||!c)throw"root not found";const h=s.description;if(s.type==="participant"){const u=Yt(l,"rectangle",{id:`${s.name}-top`,label:{text:h},subtype:"actor"});if(!u)throw"Top Node element not found!";n.push([u]);const f=Yt(c,"rectangle",{id:`${s.name}-bottom`,label:{text:h},subtype:"actor"});n.push([f]);const m=(d=l==null?void 0:l.parentElement)==null?void 0:d.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1"));if(!u.height)throw"Top node element height is null";const C=u.y+u.height,L=f.y,b=Number(m.getAttribute("x2")),P=Pi(m,y,C,b,L);o.push(P)}else if(s.type==="actor"){const u=Ta(l,h,{id:`${s.name}-top`});n.push(u);const f=Ta(c,h,{id:`${s.name}-bottom`});n.push(f);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1")),C=Number(m.getAttribute("y1")),L=Number(m.getAttribute("x2")),b=f.find(P=>P.type==="ellipse");if(b){const P=b.y,x=Pi(m,y,C,L,P);o.push(x)}}}),{nodes:n,lines:o}},q1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(ba),o=t.filter(s=>n.includes(s.type.toString()));return r.forEach((s,a)=>{const l=o[a],c=ba[l.type],h=D1(s,{label:l==null?void 0:l.message,strokeStyle:N1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});P1(s,h),i.push(h)}),i},z1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(o=>o.parentElement),r=t.filter(o=>o.type===Rt.NOTE),n=[];return i.forEach((o,s)=>{if(!o)return;const a=o.firstChild,l=r[s].message,c=Yt(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},W1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Yt(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},H1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],o=[];i.forEach(h=>{const d=Number(h.getAttribute("x1")),u=Number(h.getAttribute("y1")),f=Number(h.getAttribute("x2")),m=Number(h.getAttribute("y2")),y=Pi(h,d,u,f,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const s=Array.from(e.querySelectorAll(".loopText")),a=t.filter(h=>h.type===Rt.CRITICAL_START).map(h=>h.message);s.forEach(h=>{var y;const d=h.textContent||"",u=kh(h,d),f=((y=d.match(/\[(.*?)\]/))==null?void 0:y[1])||"";a.includes(f)&&(u.x+=16),n.push(u)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),c=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((h,d)=>{var m;const u=((m=c[d])==null?void 0:m.textContent)||"",f=Yt(h,"rectangle",{label:{text:u}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,o.push(f)}),{lines:r,texts:n,nodes:o}},Y1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var n;return((n=r.parentElement)==null?void 0:n.tagName)!=="g"}),i=[];return e.forEach(r=>{const n=Yt(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},j1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),o=Y1(e),s=i.getActors(),{nodes:a,lines:l}=R1(s,e),c=i.getMessages(),h=q1(c,e),d=z1(c,e),u=W1(e),f=H1(c,e);return r.push(o),r.push(...a),r.push(d),r.push(u),{type:"sequence",lines:l,arrows:h,nodes:r,loops:f,groups:n}},rr={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},va={LINE:0,DOTTED_LINE:1},ae=16,U1=t=>{let e;switch(t){case va.LINE:e="solid";break;case va.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},Sa=t=>{let e;switch(t){case rr.AGGREGATION:e="diamond_outline";break;case rr.COMPOSITION:e="diamond";break;case rr.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case rr.DEPENDENCY:default:e="arrow";break}return e},X1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(o=>{var y;const{domId:s,id:a}=o,l=zt.nanoid(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${s} not found`);const{transformX:h,transformY:d}=Ye(c),u=Yt(c.firstChild,"rectangle",{id:a,groupId:l});u.x+=h,u.y+=d,u.metadata={classId:a},i.push(u),Array.from(c.querySelectorAll(".divider")).forEach(C=>{const L=Number(C.getAttribute("x1")),b=Number(C.getAttribute("y1")),P=Number(C.getAttribute("x2")),x=Number(C.getAttribute("y2")),S=Pi(C,L,b,P,x,{groupId:l,id:zt.nanoid()});S.startX+=h,S.startY+=d,S.endX+=h,S.endY+=d,S.metadata={classId:a},r.push(S)});const m=(y=c.querySelector(".label"))==null?void 0:y.children;if(!m)throw"label nodes not found";Array.from(m).forEach(C=>{const L=C.textContent;if(!L)return;const b=zt.nanoid(),{transformX:P,transformY:x}=Ye(C),S=C.getBBox(),N=ao(h+P,d+x+10,L,{width:S.width,height:S.height,id:b,groupId:l,metadata:{classId:a}});n.push(N)})}),{nodes:i,lines:r,text:n}},G1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=ae:t==="RL"?e.startX+=ae:t==="TB"?e.startY-=ae:t==="BT"&&(e.startY+=ae)),n&&(t==="LR"?e.endX+=ae:t==="RL"?e.endX-=ae:t==="TB"?e.endY+=ae:t==="BT"&&(e.endY-=ae))),e},V1=(t,e,i,r)=>{var a;const n=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!n)throw new Error("No Edges found!");const o=[],s=[];return t.forEach((l,c)=>{const{id1:h,id2:d,relation:u}=l,f=e.find(et=>et.id===h),m=e.find(et=>et.id===d),y=U1(u.lineType),C=Sa(u.type1),L=Sa(u.type2),b=vh(n[c]),P=Sh(b.startX,b.startY,b.endX,b.endY,{strokeStyle:y,startArrowhead:C,endArrowhead:L,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:m.id}}),x=G1(r,P);o.push(x);const{relationTitle1:S,relationTitle2:U}=l,N=20,tt=15,ot=15;let H,A;if(S&&S!=="none"){switch(r){case"TB":H=x.startX-N,x.endX<x.startX&&(H-=ot),A=x.startY+tt;break;case"BT":H=x.startX+N,x.endX>x.startX&&(H+=ot),A=x.startY-tt;break;case"LR":H=x.startX+N,A=x.startY+tt,x.endY>x.startY&&(A+=ot);break;case"RL":H=x.startX-N,A=x.startY-tt,x.startY>x.endY&&(A-=ot);break;default:H=x.startX-N,A=x.startY+tt}const et=ao(H,A,S,{fontSize:16});s.push(et)}if(U&&U!=="none"){switch(r){case"TB":H=x.endX+N,x.endX<x.startX&&(H+=ot),A=x.endY-tt;break;case"BT":H=x.endX-N,x.endX>x.startX&&(H-=ot),A=x.endY+tt;break;case"LR":H=x.endX-N,A=x.endY-tt,x.endY>x.startY&&(A-=ot);break;case"RL":H=x.endX+N,A=x.endY+tt,x.startY>x.endY&&(A+=ot);break;default:H=x.endX+N,A=x.endY-tt}const et=ao(H,A,U,{fontSize:16});s.push(et)}}),{arrows:o,text:s}},K1=(t,e,i)=>{const r=[],n=[];return t.forEach(o=>{const{id:s,text:a,class:l}=o,c=e.querySelector(`#${s}`);if(!c)throw new Error(`Node with id ${s} not found!`);const{transformX:h,transformY:d}=Ye(c),u=c.firstChild,f=Yt(u,"rectangle",{id:s,subtype:"note",label:{text:a}});if(Object.assign(f,{x:f.x+h,y:f.y+d}),r.push(f),l){const m=i.find(x=>x.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=f.x+(f.width||0)/2,C=f.y+(f.height||0),L=y,b=m.y,P=Sh(y,C,L,b,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:f.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(P)}}),{notes:r,connectors:n}},Z1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],o=[],s=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=X1(c,e);n.push(y.nodes),o.push(...y.lines),s.push(...y.text),a.push(...y.nodes)}const h=i.getRelations(),{arrows:d,text:u}=V1(h,a,e,r),{notes:f,connectors:m}=K1(i.getNotes(),e,a);return n.push(f),d.push(...m),s.push(...u),{type:"class",nodes:n,lines:o,arrows:d,text:s,namespaces:l}},J1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const o="image/svg+xml",s=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(s)}`;return{type:"graphImage",mimeType:o,dataURL:l,width:r,height:n}},Q1=async(t,e=ls)=>{Tt.initialize({...ls,...e});const i=await Tt.mermaidAPI.getDiagramFromText(L1(t)),{svg:r}=await Tt.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let o;switch(i.type){case"flowchart-v2":{o=$1(i,n);break}case"sequence":{o=j1(i,n);break}case"classDiagram":{o=Z1(i,n);break}default:o=J1(n)}return n.remove(),o},tT=async(t,e)=>{var s;const i=e||{},r=parseInt(((s=i.themeVariables)==null?void 0:s.fontSize)??"")||Mr,n=await Q1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return Gh(n,{fontSize:r})},eT=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:tT},Symbol.toStringTag,{value:"Module"}));exports.Color=Mt;exports.Color$1=ei;exports.Rgb=ft;exports.Selection=xt;exports.Stack=Be;exports.Symbol=Fi;exports.Utils=q;exports.ZERO_WIDTH_SPACE=ac;exports.abs=up;exports.acos=Cp;exports.array=La;exports.arrayLikeKeys=Rl;exports.asin=xp;exports.assignValue=Dl;exports.assignWithDepth$1=at;exports.atan2=dp;exports.baseKeys=Vl;exports.baseUnary=Ml;exports.calculateMathMLDimensions=by;exports.calculateTextHeight=gc;exports.calculateTextWidth=Di;exports.cleanAndMerge=Fo;exports.clear=zc;exports.cloneArrayBuffer=Sl;exports.cloneBuffer=vl;exports.cloneTypedArray=kl;exports.color=Ue;exports.common$1=Jr;exports.commonDb=Gc;exports.configureSvgSize=Oo;exports.constant=Pr;exports.copyArray=wl;exports.copyObject=Nl;exports.cos=fp;exports.curveBasis=rl;exports.curveLinear=el;exports.darken=D;exports.dayjs=Aa;exports.decodeEntities=yc;exports.dedent=wa;exports.defaultConfig=AC;exports.defaultConfig$2=ic;exports.define=Nr;exports.epsilon=Wn;exports.evaluate=Bo;exports.extend=fo;exports.generateId=dc;exports.getAccDescription=jc;exports.getAccTitle=Hc;exports.getConfig=on;exports.getConfig$1=$t;exports.getDiagramTitle=Xc;exports.getStylesFromArray=uc;exports.getThemeVariables$2=Ql;exports.halfPi=Hn;exports.hasKatex=no;exports.hue=Yd;exports.index=eT;exports.initCloneObject=El;exports.interpolateNumber=te;exports.interpolateRgb=Dn;exports.interpolateString=Ya;exports.interpolateToCurve=cc;exports.isArray=Mi;exports.isArrayLike=zi;exports.isBuffer=Vr;exports.isDark=ii;exports.isObject=fe;exports.isObjectLike=ni;exports.lighten=E;exports.lineBreakRegex=si;exports.log$1=M;exports.max=pp;exports.min=gp;exports.nodeUtil=Gn;exports.nogamma=po;exports.parseFontSize=rn;exports.parseGenericTypes=_y;exports.pi=zr;exports.random=fc;exports.renderKatexSanitized=Jl;exports.rgbConvert=za;exports.rgba=ze;exports.root=uo;exports.sanitizeText$2=Se;exports.select=bt;exports.selectSvgElement=Kc;exports.setAccDescription=Yc;exports.setAccTitle=Wc;exports.setConfig=wC;exports.setDiagramTitle=Uc;exports.setupGraphViewbox=Vc;exports.setupGraphViewbox$1=qc;exports.sin=mp;exports.sqrt=yp;exports.tau=_p;exports.utils=He;exports.wrapLabel=pc;
|