@smartmemory/compose 0.1.14-beta → 0.1.16-beta
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/assets/{_baseUniq-DhYM4zs-.js → _baseUniq-BiuP0tGC.js} +1 -1
- package/dist/assets/{arc-Cx8pDnCp.js → arc-gGnz3mzw.js} +1 -1
- package/dist/assets/{architectureDiagram-Q4EWVU46-B4oXgSKw.js → architectureDiagram-Q4EWVU46-Y-5N13WI.js} +1 -1
- package/dist/assets/{blockDiagram-DXYQGD6D-BpN337tM.js → blockDiagram-DXYQGD6D-BmwqqUy-.js} +1 -1
- package/dist/assets/{c4Diagram-AHTNJAMY-z7iak8a1.js → c4Diagram-AHTNJAMY-B9boaS51.js} +1 -1
- package/dist/assets/channel-peoVdauG.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-CvNLIH_v.js → chunk-4BX2VUAB-BsnIb9lW.js} +1 -1
- package/dist/assets/{chunk-4TB4RGXK-1dZ3bC8d.js → chunk-4TB4RGXK-DIh_ujQ8.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-Cshvewnk.js → chunk-55IACEB6-CqJtVAI8.js} +1 -1
- package/dist/assets/{chunk-EDXVE4YY-DpI4ty0y.js → chunk-EDXVE4YY-D9eZ98Xj.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-4nDQXnSs.js → chunk-FMBD7UC4-BRQ_0bxQ.js} +1 -1
- package/dist/assets/{chunk-OYMX7WX6-B4yYdtrW.js → chunk-OYMX7WX6-Cn5PCVaP.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-DyzKgOA6.js → chunk-QZHKN3VN-jw8Bt-z7.js} +1 -1
- package/dist/assets/{chunk-YZCP3GAM-Aos9ZwyW.js → chunk-YZCP3GAM-IZrFKHrt.js} +1 -1
- package/dist/assets/classDiagram-6PBFFD2Q-C6tyUFv_.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-C6tyUFv_.js +1 -0
- package/dist/assets/clone-D_T44Wz_.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-DAi5xffK.js → cose-bilkent-S5V4N54A-D4WlxDuB.js} +1 -1
- package/dist/assets/{dagre-KV5264BT-DxFW1QY6.js → dagre-KV5264BT-Cxy40gF8.js} +1 -1
- package/dist/assets/{diagram-5BDNPKRD-nvRL6hs4.js → diagram-5BDNPKRD-3hdpmlac.js} +1 -1
- package/dist/assets/{diagram-G4DWMVQ6-CxxEytXP.js → diagram-G4DWMVQ6-DS0wd2r9.js} +1 -1
- package/dist/assets/{diagram-MMDJMWI5-BJexpwi5.js → diagram-MMDJMWI5-E2ViuYbh.js} +1 -1
- package/dist/assets/{diagram-TYMM5635-C9yEyEsD.js → diagram-TYMM5635-B0uaLeTY.js} +1 -1
- package/dist/assets/{erDiagram-SMLLAGMA-BMQopaH1.js → erDiagram-SMLLAGMA-B64OWgdJ.js} +1 -1
- package/dist/assets/{flowDiagram-DWJPFMVM-wGvIjQo9.js → flowDiagram-DWJPFMVM-D1xz9OEI.js} +1 -1
- package/dist/assets/{ganttDiagram-T4ZO3ILL-CH1jxQfG.js → ganttDiagram-T4ZO3ILL-LJ7catI8.js} +1 -1
- package/dist/assets/{gitGraphDiagram-UUTBAWPF-B7hkxymq.js → gitGraphDiagram-UUTBAWPF-SuSzzjKc.js} +1 -1
- package/dist/assets/{graph-BTs_kQMM.js → graph-F8fEjvLX.js} +1 -1
- package/dist/assets/{index-B6tfYuWn.js → index-qXwxLQJp.js} +5 -5
- package/dist/assets/{infoDiagram-42DDH7IO-D-OFzY0V.js → infoDiagram-42DDH7IO-BOiCQ4O9.js} +1 -1
- package/dist/assets/{ishikawaDiagram-UXIWVN3A-CPkDVAha.js → ishikawaDiagram-UXIWVN3A-CBd1TU7N.js} +1 -1
- package/dist/assets/{journeyDiagram-VCZTEJTY-BgcWrIu0.js → journeyDiagram-VCZTEJTY-l-oZ48gd.js} +1 -1
- package/dist/assets/{kanban-definition-6JOO6SKY-CmIJ3S4y.js → kanban-definition-6JOO6SKY-kkjHOINe.js} +1 -1
- package/dist/assets/{layout-Dx8W0M77.js → layout-DGJmnHWZ.js} +1 -1
- package/dist/assets/{linear-BciPV3J5.js → linear-C6ALzL_H.js} +1 -1
- package/dist/assets/{min-DRbrl1ep.js → min-BUOcBhGo.js} +1 -1
- package/dist/assets/{mindmap-definition-QFDTVHPH-igf1ZpYE.js → mindmap-definition-QFDTVHPH-B65hCsHP.js} +1 -1
- package/dist/assets/{pieDiagram-DEJITSTG-DqhgUtug.js → pieDiagram-DEJITSTG-DDwSWF1-.js} +1 -1
- package/dist/assets/{quadrantDiagram-34T5L4WZ-DFZOJy8m.js → quadrantDiagram-34T5L4WZ-80DB4lrP.js} +1 -1
- package/dist/assets/{requirementDiagram-MS252O5E-BSSFdFqn.js → requirementDiagram-MS252O5E-DCWy3bbl.js} +1 -1
- package/dist/assets/{sankeyDiagram-XADWPNL6-CBXuv2Z-.js → sankeyDiagram-XADWPNL6-O5Vbdhfr.js} +1 -1
- package/dist/assets/{sequenceDiagram-FGHM5R23-Bv9TCVgL.js → sequenceDiagram-FGHM5R23-LXReMph9.js} +1 -1
- package/dist/assets/{stateDiagram-FHFEXIEX-DKN69T9x.js → stateDiagram-FHFEXIEX-NJR5tlgF.js} +1 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-Dsxw0ryZ.js +1 -0
- package/dist/assets/{timeline-definition-GMOUNBTQ-DU0j1dWA.js → timeline-definition-GMOUNBTQ-B7AQnJMp.js} +1 -1
- package/dist/assets/{vennDiagram-DHZGUBPP-BHFMOBAB.js → vennDiagram-DHZGUBPP-B3CXuGUi.js} +1 -1
- package/dist/assets/{wardley-RL74JXVD-CPREa3A9.js → wardley-RL74JXVD-DDGRNPol.js} +1 -1
- package/dist/assets/{wardleyDiagram-NUSXRM2D-CcMHDjhf.js → wardleyDiagram-NUSXRM2D-CzsLpFBJ.js} +1 -1
- package/dist/assets/{xychartDiagram-5P7HB3ND-vXuuNWg5.js → xychartDiagram-5P7HB3ND-D_80Cozs.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/vision-store.js +23 -9
- package/dist/assets/channel-DmMqgY5t.js +0 -1
- package/dist/assets/classDiagram-6PBFFD2Q-BAkP0AjJ.js +0 -1
- package/dist/assets/classDiagram-v2-HSJHXN6E-BAkP0AjJ.js +0 -1
- package/dist/assets/clone-nhPlY4y1.js +0 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-CDDMZPwW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-Cxy40gF8.js","assets/graph-F8fEjvLX.js","assets/_baseUniq-BiuP0tGC.js","assets/layout-DGJmnHWZ.js","assets/min-BUOcBhGo.js","assets/clone-D_T44Wz_.js","assets/c4Diagram-AHTNJAMY-B9boaS51.js","assets/chunk-YZCP3GAM-IZrFKHrt.js","assets/flowDiagram-DWJPFMVM-D1xz9OEI.js","assets/chunk-FMBD7UC4-BRQ_0bxQ.js","assets/chunk-55IACEB6-CqJtVAI8.js","assets/chunk-EDXVE4YY-D9eZ98Xj.js","assets/channel-peoVdauG.js","assets/erDiagram-SMLLAGMA-B64OWgdJ.js","assets/gitGraphDiagram-UUTBAWPF-SuSzzjKc.js","assets/chunk-4BX2VUAB-BsnIb9lW.js","assets/chunk-QZHKN3VN-jw8Bt-z7.js","assets/wardley-RL74JXVD-DDGRNPol.js","assets/ganttDiagram-T4ZO3ILL-LJ7catI8.js","assets/linear-C6ALzL_H.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-BOiCQ4O9.js","assets/pieDiagram-DEJITSTG-DDwSWF1-.js","assets/arc-gGnz3mzw.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-80DB4lrP.js","assets/xychartDiagram-5P7HB3ND-D_80Cozs.js","assets/requirementDiagram-MS252O5E-DCWy3bbl.js","assets/sequenceDiagram-FGHM5R23-LXReMph9.js","assets/classDiagram-6PBFFD2Q-C6tyUFv_.js","assets/chunk-4TB4RGXK-DIh_ujQ8.js","assets/classDiagram-v2-HSJHXN6E-C6tyUFv_.js","assets/stateDiagram-FHFEXIEX-NJR5tlgF.js","assets/chunk-OYMX7WX6-Cn5PCVaP.js","assets/stateDiagram-v2-QKLJ7IA2-Dsxw0ryZ.js","assets/journeyDiagram-VCZTEJTY-l-oZ48gd.js","assets/timeline-definition-GMOUNBTQ-B7AQnJMp.js","assets/mindmap-definition-QFDTVHPH-B65hCsHP.js","assets/kanban-definition-6JOO6SKY-kkjHOINe.js","assets/sankeyDiagram-XADWPNL6-O5Vbdhfr.js","assets/diagram-TYMM5635-B0uaLeTY.js","assets/diagram-MMDJMWI5-E2ViuYbh.js","assets/blockDiagram-DXYQGD6D-BmwqqUy-.js","assets/diagram-5BDNPKRD-3hdpmlac.js","assets/architectureDiagram-Q4EWVU46-Y-5N13WI.js","assets/diagram-G4DWMVQ6-DS0wd2r9.js","assets/wardleyDiagram-NUSXRM2D-CzsLpFBJ.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var nne=Object.defineProperty;var ine=(e,t,r)=>t in e?nne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Dr=(e,t,r)=>ine(e,typeof t!="symbol"?t+"":t,r);function ane(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Fm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c6e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var K1={exports:{}},sf={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -714,8 +714,8 @@ https://github.com/jquery/jquery/blob/master/src/event.js
|
|
|
714
714
|
else outColor = vIndex;`:"",`
|
|
715
715
|
}
|
|
716
716
|
`),o=U0e(n,i,s);o.aPosition=n.getAttribLocation(o,"aPosition"),o.aIndex=n.getAttribLocation(o,"aIndex"),o.aVertType=n.getAttribLocation(o,"aVertType"),o.aTransform=n.getAttribLocation(o,"aTransform"),o.aAtlasId=n.getAttribLocation(o,"aAtlasId"),o.aTex=n.getAttribLocation(o,"aTex"),o.aPointAPointB=n.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=n.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=n.getAttribLocation(o,"aLineWidth"),o.aColor=n.getAttribLocation(o,"aColor"),o.aCornerRadius=n.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=n.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=n.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=n.getUniformLocation(o,"uAtlasSize"),o.uBGColor=n.getUniformLocation(o,"uBGColor"),o.uZoom=n.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var l=0;l<this.batchManager.getMaxAtlasesPerBatch();l++)o.uTextures.push(n.getUniformLocation(o,"uTexture".concat(l)));return o}},{key:"_createVAO",value:function(){var r=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=r.length/2;var n=this.maxInstances,i=this.gl,a=this.program,s=i.createVertexArray();return i.bindVertexArray(s),J0e(i,"vec2",a.aPosition,r),this.transformBuffer=exe(i,n,a.aTransform),this.indexBuffer=ls(i,n,"vec4",a.aIndex),this.vertTypeBuffer=ls(i,n,"int",a.aVertType),this.atlasIdBuffer=ls(i,n,"int",a.aAtlasId),this.texBuffer=ls(i,n,"vec4",a.aTex),this.pointAPointBBuffer=ls(i,n,"vec4",a.aPointAPointB),this.pointCPointDBuffer=ls(i,n,"vec4",a.aPointCPointD),this.lineWidthBuffer=ls(i,n,"vec2",a.aLineWidth),this.colorBuffer=ls(i,n,"vec4",a.aColor),this.cornerRadiusBuffer=ls(i,n,"vec4",a.aCornerRadius),this.borderColorBuffer=ls(i,n,"vec4",a.aBorderColor),i.bindVertexArray(null),s}},{key:"buffers",get:function(){var r=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(n){return el(n,"Buffer")}).map(function(n){return r[n]})),this._buffers}},{key:"startFrame",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sp.SCREEN;this.panZoomMatrix=r,this.renderTarget=n,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(r,n){return r.visible()?n&&n.isVisible?n.isVisible(r):!0:!1}},{key:"drawTexture",value:function(r,n,i){var a=this.atlasManager,s=this.batchManager,o=a.getRenderTypeOpts(i);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===Dy.IGNORE)return;if(l==Dy.USE_BB){this.drawPickingRectangle(r,n,i);return}}var c=a.getAtlasInfo(r,i),u=Yi(c),h;try{for(u.s();!(h=u.n()).done;){var p=h.value,f=p.atlas,m=p.tex1,x=p.tex2;s.canAddToCurrentBatch(f)||this.endBatch();for(var y=s.getAtlasIndexForBatch(f),C=0,w=[[m,!0],[x,!1]];C<w.length;C++){var S=Nn(w[C],2),T=S[0],_=S[1];if(T.w!=0){var A=this.instanceCount;this.vertTypeBuffer.getView(A)[0]=Kw;var E=this.indexBuffer.getView(A);Iu(n,E);var L=this.atlasIdBuffer.getView(A);L[0]=y;var z=this.texBuffer.getView(A);z[0]=T.x,z[1]=T.y,z[2]=T.w,z[3]=T.h;var D=this.transformBuffer.getMatrixView(A);this.setTransformMatrix(r,D,o,p,_),this.instanceCount++,_||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(P){u.e(P)}finally{u.f()}}}},{key:"setTransformMatrix",value:function(r,n,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(i.shapeProps&&i.shapeProps.padding&&(o=r.pstyle(i.shapeProps.padding).pfValue),a){var l=a.bb,c=a.tex1,u=a.tex2,h=c.w/(c.w+u.w);s||(h=1-h);var p=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,p,i,r)}else{var f=i.getBoundingBox(r),m=this._getAdjustedBB(f,o,!0,1);this._applyTransformMatrix(n,m,i,r)}}},{key:"_applyTransformMatrix",value:function(r,n,i,a){var s,o;mj(r);var l=i.getRotation?i.getRotation(a):0;if(l!==0){var c=i.getRotationPoint(a),u=c.x,h=c.y;qv(r,r,[u,h]),vj(r,r,l);var p=i.getRotationOffset(a);s=p.x+(n.xOffset||0),o=p.y+(n.yOffset||0)}else s=n.x1,o=n.y1;qv(r,r,[s,o]),qA(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,i,a){var s=r.x1,o=r.y1,l=r.w,c=r.h,u=r.yOffset;n&&(s-=n,o-=n,l+=2*n,c+=2*n);var h=0,p=l*a;return i&&a<1?l=p:!i&&a<1&&(h=l-p,s+=h,l=p),{x1:s,y1:o,w:l,h:c,xOffset:h,yOffset:u}}},{key:"drawPickingRectangle",value:function(r,n,i){var a=this.atlasManager.getRenderTypeOpts(i),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=Fu;var o=this.indexBuffer.getView(s);Iu(n,o);var l=this.colorBuffer.getView(s);rc([0,0,0],1,l);var c=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,c,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,i){var a=this.simpleShapeOptions.get(i);if(this._isVisible(r,a)){var s=a.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||a.isSimple&&!a.isSimple(r,this.renderTarget)){this.drawTexture(r,n,i);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===nv||o===xf){var c=a.getBoundingBox(r),u=this._getCornerRadius(r,s.radius,c),h=this.cornerRadiusBuffer.getView(l);h[0]=u,h[1]=u,h[2]=u,h[3]=u,o===xf&&(h[0]=0,h[2]=0)}var p=this.indexBuffer.getView(l);Iu(n,p);var f=this.renderTarget.picking?1:i==="node-body"?r.effectiveOpacity():1,m=this.renderTarget.picking?1:r.pstyle(s.opacity).value*f,x=r.pstyle(s.color).value,y=this.colorBuffer.getView(l);rc(x,m,y);var C=this.lineWidthBuffer.getView(l);if(C[0]=0,C[1]=0,s.border){var w=r.pstyle("border-width").value;if(w>0){var S=r.pstyle("border-color").value,T=f*r.pstyle("border-opacity").value,_=this.borderColorBuffer.getView(l);rc(S,T,_);var A=r.pstyle("border-position").value;if(A==="inside")C[0]=0,C[1]=-w;else if(A==="outside")C[0]=w,C[1]=0;else{var E=w/2;C[0]=E,C[1]=-E}}}var L=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,L,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var i=r.pstyle(n).value;switch(i){case"rectangle":return Fu;case"ellipse":return bf;case"roundrectangle":case"round-rectangle":return nv;case"bottom-round-rectangle":return xf;default:return}}},{key:"_getCornerRadius",value:function(r,n,i){var a=i.w,s=i.h;if(r.pstyle(n).value==="auto")return pl(a,s);var o=r.pstyle(n).pfValue,l=a/2,c=s/2;return Math.min(o,c,l)}},{key:"drawEdgeArrow",value:function(r,n,i){if(r.visible()){var a=r._private.rscratch,s,o,l;if(i==="source"?(s=a.arrowStartX,o=a.arrowStartY,l=a.srcArrowAngle):(s=a.arrowEndX,o=a.arrowEndY,l=a.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var c=r.pstyle(i+"-arrow-shape").value;if(c!=="none"){var u=r.pstyle(i+"-arrow-color").value,h=r.pstyle("opacity").value,p=r.pstyle("line-opacity").value,f=h*p,m=r.pstyle("width").pfValue,x=r.pstyle("arrow-scale").value,y=this.r.getArrowWidth(m,x),C=this.instanceCount,w=this.transformBuffer.getMatrixView(C);mj(w),qv(w,w,[s,o]),qA(w,w,[y,y]),vj(w,w,l),this.vertTypeBuffer.getView(C)[0]=Zw;var S=this.indexBuffer.getView(C);Iu(n,S);var T=this.colorBuffer.getView(C);rc(u,f,T),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var i=this._getEdgePoints(r);if(i){var a=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,c=a*s;if(i.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),i.length==4){var u=this.instanceCount;this.vertTypeBuffer.getView(u)[0]=yj;var h=this.indexBuffer.getView(u);Iu(n,h);var p=this.colorBuffer.getView(u);rc(l,c,p);var f=this.lineWidthBuffer.getView(u);f[0]=o;var m=this.pointAPointBBuffer.getView(u);m[0]=i[0],m[1]=i[1],m[2]=i[2],m[3]=i[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var x=0;x<i.length-2;x+=2){var y=this.instanceCount;this.vertTypeBuffer.getView(y)[0]=xj;var C=this.indexBuffer.getView(y);Iu(n,C);var w=this.colorBuffer.getView(y);rc(l,c,w);var S=this.lineWidthBuffer.getView(y);S[0]=o;var T=i[x-2],_=i[x-1],A=i[x],E=i[x+1],L=i[x+2],z=i[x+3],D=i[x+4],P=i[x+5];x==0&&(T=2*A-L+.001,_=2*E-z+.001),x==i.length-4&&(D=2*L-A+.001,P=2*z-E+.001);var q=this.pointAPointBBuffer.getView(y);q[0]=T,q[1]=_,q[2]=A,q[3]=E;var W=this.pointCPointDBuffer.getView(y);W[0]=L,W[1]=z,W[2]=D,W[3]=P,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(r){var n=r._private.rscratch;return!(n.badLine||n.allpts==null||isNaN(n.allpts[0]))}},{key:"_getEdgePoints",value:function(r){var n=r._private.rscratch;if(this._isValidEdge(r)){var i=n.allpts;if(i.length==4)return i;var a=this._getNumSegments(r);return this._getCurveSegmentPoints(i,a)}}},{key:"_getNumSegments",value:function(r){var n=15;return Math.min(Math.max(n,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(r,n){if(r.length==4)return r;for(var i=Array((n+1)*2),a=0;a<=n;a++)if(a==0)i[0]=r[0],i[1]=r[1];else if(a==n)i[a*2]=r[r.length-2],i[a*2+1]=r[r.length-1];else{var s=a/n;this._setCurvePoint(r,s,i,a*2)}return i}},{key:"_setCurvePoint",value:function(r,n,i,a){if(r.length<=2)i[a]=r[0],i[a+1]=r[1];else{for(var s=Array(r.length-2),o=0;o<s.length;o+=2){var l=(1-n)*r[o]+n*r[o+2],c=(1-n)*r[o+1]+n*r[o+3];s[o]=l,s[o+1]=c}return this._setCurvePoint(s,n,i,a)}}},{key:"endBatch",value:function(){var r=this.gl,n=this.vao,i=this.vertexCount,a=this.instanceCount;if(a!==0){var s=this.renderTarget.picking?this.pickingProgram:this.program;r.useProgram(s),r.bindVertexArray(n);var o=Yi(this.buffers),l;try{for(o.s();!(l=o.n()).done;){var c=l.value;c.bufferSubData(a)}}catch(m){o.e(m)}finally{o.f()}for(var u=this.batchManager.getAtlases(),h=0;h<u.length;h++)u[h].bufferIfNeeded(r);for(var p=0;p<u.length;p++)r.activeTexture(r.TEXTURE0+p),r.bindTexture(r.TEXTURE_2D,u[p].texture),r.uniform1i(s.uTextures[p],p);r.uniform1f(s.uZoom,W0e(this.r)),r.uniformMatrix3fv(s.uPanZoomMatrix,!1,this.panZoomMatrix),r.uniform1i(s.uAtlasSize,this.batchManager.getAtlasSize());var f=rc(this.bgColor,1);r.uniform4fv(s.uBGColor,f),r.drawArraysInstanced(r.TRIANGLES,0,i,a),r.bindVertexArray(null),r.bindTexture(r.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:a,atlasCount:u.length}),this.startBatch()}}},{key:"getDebugInfo",value:function(){var r=this.atlasManager.getDebugInfo(),n=r.reduce(function(s,o){return s+o.atlasCount},0),i=this.batchDebugInfo,a=i.reduce(function(s,o){return s+o.count},0);return{atlasInfo:r,totalAtlases:n,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:i.length,batchInfo:i,totalInstances:a}}}])})(),YG={};YG.initWebgl=function(e,t){var r=this,n=r.data.contexts[r.WEBGL];e.bgColor=pxe(r),e.webglTexSize=Math.min(e.webglTexSize,n.getParameter(n.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)),r.webglDebug=e.webglDebug,r.webglDebugShowAtlases=e.webglDebugShowAtlases,r.pickingFrameBuffer=txe(n),r.pickingFrameBuffer.needsDraw=!0,r.drawing=new fxe(r,n,e);var i=function(h){return function(p){return r.getTextAngle(p,h)}},a=function(h){return function(p){var f=p.pstyle(h);return f&&f.value}},s=function(h){return function(p){return p.pstyle("".concat(h,"-opacity")).value>0}},o=function(h){var p=h.pstyle("text-events").strValue==="yes";return p?Dy.USE_BB:Dy.IGNORE},l=function(h){var p=h.position(),f=p.x,m=p.y,x=h.outerWidth(),y=h.outerHeight();return{w:x,h:y,x1:f-x/2,y1:m-y/2}};r.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:Y0e,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:s("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:s("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:o,getKey:Qw(t.getLabelKey,null),getBoundingBox:Jw(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:Qw(t.getSourceLabelKey,"source"),getBoundingBox:Jw(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:Qw(t.getTargetLabelKey,"target"),getBoundingBox:Jw(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a("target-label")});var c=rg(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(u,h){var p=!1;h&&h.length>0&&(p|=r.drawing.invalidate(h)),p&&c()}),gxe(r)};function pxe(e){var t=e.cy.container(),r=t&&t.style&&t.style.backgroundColor||"white";return C7(r)}function XG(e,t){var r=e._private.rscratch;return Ui(r,"labelWrapCachedLines",t)||[]}var Qw=function(t,r){return function(n){var i=t(n),a=XG(n,r);return a.length>1?a.map(function(s,o){return"".concat(i,"_").concat(o)}):i}},Jw=function(t,r){return function(n,i){var a=t(n);if(typeof i=="string"){var s=i.indexOf("_");if(s>0){var o=Number(i.substring(s+1)),l=XG(n,r),c=a.h/l.length,u=c*o,h=a.y1+u;return{x1:a.x1,w:a.w,y1:h,h:c,yOffset:u}}}return a}};function gxe(e){{var t=e.render;e.render=function(a){a=a||{};var s=e.cy;e.webgl&&(s.zoom()>$G?(mxe(e),t.call(e,a)):(vxe(e),ZG(e,a,sp.SCREEN)))}}{var r=e.matchCanvasSize;e.matchCanvasSize=function(a){r.call(e,a),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(a,s,o,l){return Sxe(e,a,s)};{var n=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){n.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var i=e.notify;e.notify=function(a,s){i.call(e,a,s),a==="viewport"||a==="bounds"?e.pickingFrameBuffer.needsDraw=!0:a==="background"&&e.drawing.invalidate(s,{type:"node-body"})}}}function mxe(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function vxe(e){var t=function(n){n.save(),n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,e.canvasWidth,e.canvasHeight),n.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function yxe(e){var t=e.canvasWidth,r=e.canvasHeight,n=pM(e),i=n.pan,a=n.zoom,s=Xw();qv(s,s,[i.x,i.y]),qA(s,s,[a,a]);var o=Xw();nxe(o,t,r);var l=Xw();return rxe(l,o,s),l}function KG(e,t){var r=e.canvasWidth,n=e.canvasHeight,i=pM(e),a=i.pan,s=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r,n),t.translate(a.x,a.y),t.scale(s,s)}function xxe(e,t){e.drawSelectionRectangle(t,function(r){return KG(e,r)})}function bxe(e){var t=e.data.contexts[e.NODE];t.save(),KG(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function Cxe(e){var t=function(i,a,s){for(var o=i.atlasManager.getAtlasCollection(a),l=e.data.contexts[e.NODE],c=o.atlases,u=0;u<c.length;u++){var h=c[u],p=h.canvas;if(p){var f=p.width,m=p.height,x=f*u,y=p.height*s,C=.4;l.save(),l.scale(C,C),l.drawImage(p,x,y),l.strokeStyle="black",l.rect(x,y,f,m),l.stroke(),l.restore()}}},r=0;t(e.drawing,"node",r++),t(e.drawing,"label",r++)}function wxe(e,t,r,n,i){var a,s,o,l,c=pM(e),u=c.pan,h=c.zoom;{var p=V0e(e,u,h,t,r),f=Nn(p,2),m=f[0],x=f[1],y=6;a=m-y/2,s=x-y/2,o=y,l=y}if(o===0||l===0)return[];var C=e.data.contexts[e.WEBGL];C.bindFramebuffer(C.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(C.viewport(0,0,C.canvas.width,C.canvas.height),ZG(e,null,sp.PICKING),e.pickingFrameBuffer.needsDraw=!1);var w=o*l,S=new Uint8Array(w*4);C.readPixels(a,s,o,l,C.RGBA,C.UNSIGNED_BYTE,S),C.bindFramebuffer(C.FRAMEBUFFER,null);for(var T=new Set,_=0;_<w;_++){var A=S.slice(_*4,_*4+4),E=K0e(A)-1;E>=0&&T.add(E)}return T}function Sxe(e,t,r){var n=wxe(e,t,r),i=e.getCachedZSortedEles(),a,s,o=Yi(n),l;try{for(o.s();!(l=o.n()).done;){var c=l.value,u=i[c];if(!a&&u.isNode()&&(a=u),!s&&u.isEdge()&&(s=u),a&&s)break}}catch(h){o.e(h)}finally{o.f()}return[a,s].filter(Boolean)}function eS(e,t,r){var n=e.drawing;t+=1,r.isNode()?(n.drawNode(r,t,"node-underlay"),n.drawNode(r,t,"node-body"),n.drawTexture(r,t,"label"),n.drawNode(r,t,"node-overlay")):(n.drawEdgeLine(r,t),n.drawEdgeArrow(r,t,"source"),n.drawEdgeArrow(r,t,"target"),n.drawTexture(r,t,"label"),n.drawTexture(r,t,"edge-source-label"),n.drawTexture(r,t,"edge-target-label"))}function ZG(e,t,r){var n;e.webglDebug&&(n=performance.now());var i=e.drawing,a=0;if(r.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&xxe(e,t),e.data.canvasNeedsRedraw[e.NODE]||r.picking){var s=e.data.contexts[e.WEBGL];r.screen?(s.clearColor(0,0,0,0),s.enable(s.BLEND),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA)):s.disable(s.BLEND),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,s.canvas.width,s.canvas.height);var o=yxe(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(o,r),r.screen){for(var c=0;c<l.nondrag.length;c++)eS(e,c,l.nondrag[c]);for(var u=0;u<l.drag.length;u++)eS(e,u,l.drag[u])}else if(r.picking)for(var h=0;h<l.length;h++)eS(e,h,l[h]);i.endFrame(),r.screen&&e.webglDebugShowAtlases&&(bxe(e),Cxe(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var p=performance.now(),f=!1,m=Math.ceil(p-n),x=i.getDebugInfo(),y=["".concat(a," elements"),"".concat(x.totalInstances," instances"),"".concat(x.batchCount," batches"),"".concat(x.totalAtlases," atlases"),"".concat(x.wrappedCount," wrapped textures"),"".concat(x.simpleCount," simple shapes")].join(", ");if(f)console.log("WebGL (".concat(r.name,") - time ").concat(m,"ms, ").concat(y));else{console.log("WebGL (".concat(r.name,") - frame time ").concat(m,"ms")),console.log("Totals:"),console.log(" ".concat(y)),console.log("Texture Atlases Used:");var C=x.atlasInfo,w=Yi(C),S;try{for(w.s();!(S=w.n()).done;){var T=S.value;console.log(" ".concat(T.type,": ").concat(T.keyCount," keys, ").concat(T.atlasCount," atlases"))}}catch(_){w.e(_)}finally{w.f()}console.log("")}}e.data.gc&&(console.log("Garbage Collect!"),e.data.gc=!1,i.gc())}var Bl={};Bl.drawPolygonPath=function(e,t,r,n,i,a){var s=n/2,o=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+s*a[0],r+o*a[1]);for(var l=1;l<a.length/2;l++)e.lineTo(t+s*a[l*2],r+o*a[l*2+1]);e.closePath()};Bl.drawRoundPolygonPath=function(e,t,r,n,i,a,s){s.forEach(function(o){return MG(e,o)}),e.closePath()};Bl.drawRoundRectanglePath=function(e,t,r,n,i,a){var s=n/2,o=i/2,l=a==="auto"?pl(n,i):Math.min(a,o,s);e.beginPath&&e.beginPath(),e.moveTo(t,r-o),e.arcTo(t+s,r-o,t+s,r,l),e.arcTo(t+s,r+o,t,r+o,l),e.arcTo(t-s,r+o,t-s,r,l),e.arcTo(t-s,r-o,t,r-o,l),e.lineTo(t,r-o),e.closePath()};Bl.drawBottomRoundRectanglePath=function(e,t,r,n,i,a){var s=n/2,o=i/2,l=a==="auto"?pl(n,i):a;e.beginPath&&e.beginPath(),e.moveTo(t,r-o),e.lineTo(t+s,r-o),e.lineTo(t+s,r),e.arcTo(t+s,r+o,t,r+o,l),e.arcTo(t-s,r+o,t-s,r,l),e.lineTo(t-s,r-o),e.lineTo(t,r-o),e.closePath()};Bl.drawCutRectanglePath=function(e,t,r,n,i,a,s){var o=n/2,l=i/2,c=s==="auto"?eM():s;e.beginPath&&e.beginPath(),e.moveTo(t-o+c,r-l),e.lineTo(t+o-c,r-l),e.lineTo(t+o,r-l+c),e.lineTo(t+o,r+l-c),e.lineTo(t+o-c,r+l),e.lineTo(t-o+c,r+l),e.lineTo(t-o,r+l-c),e.lineTo(t-o,r-l+c),e.closePath()};Bl.drawBarrelPath=function(e,t,r,n,i){var a=n/2,s=i/2,o=t-a,l=t+a,c=r-s,u=r+s,h=AA(n,i),p=h.widthOffset,f=h.heightOffset,m=h.ctrlPtOffsetPct*p;e.beginPath&&e.beginPath(),e.moveTo(o,c+f),e.lineTo(o,u-f),e.quadraticCurveTo(o+m,u,o+p,u),e.lineTo(l-p,u),e.quadraticCurveTo(l-m,u,l,u-f),e.lineTo(l,c+f),e.quadraticCurveTo(l-m,c,l-p,c),e.lineTo(o+p,c),e.quadraticCurveTo(o+m,c,o,c+f),e.closePath()};var bj=Math.sin(0),Cj=Math.cos(0),HA={},UA={},QG=Math.PI/40;for(var ju=0*Math.PI;ju<2*Math.PI;ju+=QG)HA[ju]=Math.sin(ju),UA[ju]=Math.cos(ju);Bl.drawEllipsePath=function(e,t,r,n,i){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,r,n/2,i/2,0,0,2*Math.PI);else for(var a,s,o=n/2,l=i/2,c=0*Math.PI;c<2*Math.PI;c+=QG)a=t-o*HA[c]*bj+o*UA[c]*Cj,s=r+l*UA[c]*bj+l*HA[c]*Cj,c===0?e.moveTo(a,s):e.lineTo(a,s);e.closePath()};var lg={};lg.createBuffer=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,[r,r.getContext("2d")]};lg.bufferCanvasImage=function(e){var t=this.cy,r=t.mutableElements(),n=r.boundingBox(),i=this.findContainerClientCoords(),a=e.full?Math.ceil(n.w):i[2],s=e.full?Math.ceil(n.h):i[3],o=ct(e.maxWidth)||ct(e.maxHeight),l=this.getPixelRatio(),c=1;if(e.scale!==void 0)a*=e.scale,s*=e.scale,c=e.scale;else if(o){var u=1/0,h=1/0;ct(e.maxWidth)&&(u=c*e.maxWidth/a),ct(e.maxHeight)&&(h=c*e.maxHeight/s),c=Math.min(u,h),a*=c,s*=c}o||(a*=l,s*=l,c*=l);var p=document.createElement("canvas");p.width=a,p.height=s,p.style.width=a+"px",p.style.height=s+"px";var f=p.getContext("2d");if(a>0&&s>0){f.clearRect(0,0,a,s),f.globalCompositeOperation="source-over";var m=this.getCachedZSortedEles();if(e.full)f.translate(-n.x1*c,-n.y1*c),f.scale(c,c),this.drawElements(f,m),f.scale(1/c,1/c),f.translate(n.x1*c,n.y1*c);else{var x=t.pan(),y={x:x.x*c,y:x.y*c};c*=t.zoom(),f.translate(y.x,y.y),f.scale(c,c),this.drawElements(f,m),f.scale(1/c,1/c),f.translate(-y.x,-y.y)}e.bg&&(f.globalCompositeOperation="destination-over",f.fillStyle=e.bg,f.rect(0,0,a,s),f.fill())}return p};function kxe(e,t){for(var r=atob(e),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return new Blob([n],{type:t})}function wj(e){var t=e.indexOf(",");return e.substr(t+1)}function JG(e,t,r){var n=function(){return t.toDataURL(r,e.quality)};switch(e.output){case"blob-promise":return new Jh(function(i,a){try{t.toBlob(function(s){s!=null?i(s):a(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,e.quality)}catch(s){a(s)}});case"blob":return kxe(wj(n()),r);case"base64":return wj(n());case"base64uri":default:return n()}}lg.png=function(e){return JG(e,this.bufferCanvasImage(e),"image/png")};lg.jpg=function(e){return JG(e,this.bufferCanvasImage(e),"image/jpeg")};var eW={};eW.nodeShapeImpl=function(e,t,r,n,i,a,s,o){switch(e){case"ellipse":return this.drawEllipsePath(t,r,n,i,a);case"polygon":return this.drawPolygonPath(t,r,n,i,a,s);case"round-polygon":return this.drawRoundPolygonPath(t,r,n,i,a,s,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,r,n,i,a,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,r,n,i,a,s,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,r,n,i,a,o);case"barrel":return this.drawBarrelPath(t,r,n,i,a)}};var Txe=tW,cr=tW.prototype;cr.CANVAS_LAYERS=3;cr.SELECT_BOX=0;cr.DRAG=1;cr.NODE=2;cr.WEBGL=3;cr.CANVAS_TYPES=["2d","2d","2d","webgl2"];cr.BUFFER_COUNT=3;cr.TEXTURE_BUFFER=0;cr.MOTIONBLUR_BUFFER_NODE=1;cr.MOTIONBLUR_BUFFER_DRAG=2;function tW(e){var t=this,r=t.cy.window(),n=r.document;e.webgl&&(cr.CANVAS_LAYERS=t.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),t.data={canvases:new Array(cr.CANVAS_LAYERS),contexts:new Array(cr.CANVAS_LAYERS),canvasNeedsRedraw:new Array(cr.CANVAS_LAYERS),bufferCanvases:new Array(cr.BUFFER_COUNT),bufferContexts:new Array(cr.CANVAS_LAYERS)};var i="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";t.data.canvasContainer=n.createElement("div");var s=t.data.canvasContainer.style;t.data.canvasContainer.style[i]=a,s.position="relative",s.zIndex="0",s.overflow="hidden";var o=e.cy.container();o.appendChild(t.data.canvasContainer),o.style[i]=a;var l={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};vpe()&&(l["-ms-touch-action"]="none",l["touch-action"]="none");for(var c=0;c<cr.CANVAS_LAYERS;c++){var u=t.data.canvases[c]=n.createElement("canvas"),h=cr.CANVAS_TYPES[c];t.data.contexts[c]=u.getContext(h),t.data.contexts[c]||cn("Could not create canvas of type "+h),Object.keys(l).forEach(function(re){u.style[re]=l[re]}),u.style.position="absolute",u.setAttribute("data-id","layer"+c),u.style.zIndex=String(cr.CANVAS_LAYERS-c),t.data.canvasContainer.appendChild(u),t.data.canvasNeedsRedraw[c]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[cr.NODE].setAttribute("data-id","layer"+cr.NODE+"-node"),t.data.canvases[cr.SELECT_BOX].setAttribute("data-id","layer"+cr.SELECT_BOX+"-selectbox"),t.data.canvases[cr.DRAG].setAttribute("data-id","layer"+cr.DRAG+"-drag"),t.data.canvases[cr.WEBGL]&&t.data.canvases[cr.WEBGL].setAttribute("data-id","layer"+cr.WEBGL+"-webgl");for(var c=0;c<cr.BUFFER_COUNT;c++)t.data.bufferCanvases[c]=n.createElement("canvas"),t.data.bufferContexts[c]=t.data.bufferCanvases[c].getContext("2d"),t.data.bufferCanvases[c].style.position="absolute",t.data.bufferCanvases[c].setAttribute("data-id","buffer"+c),t.data.bufferCanvases[c].style.zIndex=String(-c-1),t.data.bufferCanvases[c].style.visibility="hidden";t.pathsEnabled=!0;var p=Ni(),f=function(ee){return{x:(ee.x1+ee.x2)/2,y:(ee.y1+ee.y2)/2}},m=function(ee){return{x:-ee.w/2,y:-ee.h/2}},x=function(ee){var Z=ee[0]._private,ie=Z.oldBackgroundTimestamp===Z.backgroundTimestamp;return!ie},y=function(ee){return ee[0]._private.nodeKey},C=function(ee){return ee[0]._private.labelStyleKey},w=function(ee){return ee[0]._private.sourceLabelStyleKey},S=function(ee){return ee[0]._private.targetLabelStyleKey},T=function(ee,Z,ie,ce,he){return t.drawElement(ee,Z,ie,!1,!1,he)},_=function(ee,Z,ie,ce,he){return t.drawElementText(ee,Z,ie,ce,"main",he)},A=function(ee,Z,ie,ce,he){return t.drawElementText(ee,Z,ie,ce,"source",he)},E=function(ee,Z,ie,ce,he){return t.drawElementText(ee,Z,ie,ce,"target",he)},L=function(ee){return ee.boundingBox(),ee[0]._private.bodyBounds},z=function(ee){return ee.boundingBox(),ee[0]._private.labelBounds.main||p},D=function(ee){return ee.boundingBox(),ee[0]._private.labelBounds.source||p},P=function(ee){return ee.boundingBox(),ee[0]._private.labelBounds.target||p},q=function(ee,Z){return Z},W=function(ee){return f(L(ee))},B=function(ee,Z,ie){var ce=ee?ee+"-":"";return{x:Z.x+ie.pstyle(ce+"text-margin-x").pfValue,y:Z.y+ie.pstyle(ce+"text-margin-y").pfValue}},j=function(ee,Z,ie){var ce=ee[0]._private.rscratch;return{x:ce[Z],y:ce[ie]}},M=function(ee){return B("",j(ee,"labelX","labelY"),ee)},I=function(ee){return B("source",j(ee,"sourceLabelX","sourceLabelY"),ee)},F=function(ee){return B("target",j(ee,"targetLabelX","targetLabelY"),ee)},V=function(ee){return m(L(ee))},R=function(ee){return m(D(ee))},H=function(ee){return m(P(ee))},Y=function(ee){var Z=z(ee),ie=m(z(ee));if(ee.isNode()){switch(ee.pstyle("text-halign").value){case"left":ie.x=-Z.w-(Z.leftPad||0);break;case"right":ie.x=-(Z.rightPad||0);break}switch(ee.pstyle("text-valign").value){case"top":ie.y=-Z.h-(Z.topPad||0);break;case"bottom":ie.y=-(Z.botPad||0);break}}return ie},U=t.data.eleTxrCache=new zf(t,{getKey:y,doesEleInvalidateKey:x,drawElement:T,getBoundingBox:L,getRotationPoint:W,getRotationOffset:V,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),K=t.data.lblTxrCache=new zf(t,{getKey:C,drawElement:_,getBoundingBox:z,getRotationPoint:M,getRotationOffset:Y,isVisible:q}),Q=t.data.slbTxrCache=new zf(t,{getKey:w,drawElement:A,getBoundingBox:D,getRotationPoint:I,getRotationOffset:R,isVisible:q}),J=t.data.tlbTxrCache=new zf(t,{getKey:S,drawElement:E,getBoundingBox:P,getRotationPoint:F,getRotationOffset:H,isVisible:q}),se=t.data.lyrTxrCache=new qG(t);t.onUpdateEleCalcs(function(ee,Z){U.invalidateElements(Z),K.invalidateElements(Z),Q.invalidateElements(Z),J.invalidateElements(Z),se.invalidateElements(Z);for(var ie=0;ie<Z.length;ie++){var ce=Z[ie]._private;ce.oldBackgroundTimestamp=ce.backgroundTimestamp}});var ue=function(ee){for(var Z=0;Z<ee.length;Z++)se.enqueueElementRefinement(ee[Z].ele)};U.onDequeue(ue),K.onDequeue(ue),Q.onDequeue(ue),J.onDequeue(ue),e.webgl&&t.initWebgl(e,{getStyleKey:y,getLabelKey:C,getSourceLabelKey:w,getTargetLabelKey:S,drawElement:T,drawLabel:_,drawSourceLabel:A,drawTargetLabel:E,getElementBox:L,getLabelBox:z,getSourceLabelBox:D,getTargetLabelBox:P,getElementRotationPoint:W,getElementRotationOffset:V,getLabelRotationPoint:M,getSourceLabelRotationPoint:I,getTargetLabelRotationPoint:F,getLabelRotationOffset:Y,getSourceLabelRotationOffset:R,getTargetLabelRotationOffset:H})}cr.redrawHint=function(e,t){var r=this;switch(e){case"eles":r.data.canvasNeedsRedraw[cr.NODE]=t;break;case"drag":r.data.canvasNeedsRedraw[cr.DRAG]=t;break;case"select":r.data.canvasNeedsRedraw[cr.SELECT_BOX]=t;break;case"gc":r.data.gc=!0;break}};var Exe=typeof Path2D<"u";cr.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e};cr.usePaths=function(){return Exe&&this.pathsEnabled};cr.setImgSmoothing=function(e,t){e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)};cr.getImgSmoothing=function(e){return e.imageSmoothingEnabled!=null?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled};cr.makeOffscreenCanvas=function(e,t){var r;if((typeof OffscreenCanvas>"u"?"undefined":qn(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(e,t);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=e,r.height=t}return r};[HG,ks,uo,fM,zc,Ml,Bi,YG,Bl,lg,eW].forEach(function(e){Ot(cr,e)});var _xe=[{name:"null",impl:AG},{name:"base",impl:PG},{name:"canvas",impl:Txe}],Axe=[{type:"layout",extensions:Zye},{type:"renderer",extensions:_xe}],rW={},nW={};function iW(e,t,r){var n=r,i=function(L){Or("Can not register `"+t+"` for `"+e+"` since `"+L+"` already exists in the prototype and can not be overridden")};if(e==="core"){if(Ap.prototype[t])return i(t);Ap.prototype[t]=r}else if(e==="collection"){if(ii.prototype[t])return i(t);ii.prototype[t]=r}else if(e==="layout"){for(var a=function(L){this.options=L,r.call(this,L),wr(this._private)||(this._private={}),this._private.cy=L.cy,this._private.listeners=[],this.createEmitter()},s=a.prototype=Object.create(r.prototype),o=[],l=0;l<o.length;l++){var c=o[l];s[c]=s[c]||function(){return this}}s.start&&!s.run?s.run=function(){return this.start(),this}:!s.start&&s.run&&(s.start=function(){return this.run(),this});var u=r.prototype.stop;s.stop=function(){var E=this.options;if(E&&E.animate){var L=this.animations;if(L)for(var z=0;z<L.length;z++)L[z].stop()}return u?u.call(this):this.emit("layoutstop"),this},s.destroy||(s.destroy=function(){return this}),s.cy=function(){return this._private.cy};var h=function(L){return L._private.cy},p={addEventFields:function(L,z){z.layout=L,z.cy=h(L),z.target=L},bubble:function(){return!0},parent:function(L){return h(L)}};Ot(s,{createEmitter:function(){return this._private.emitter=new G0(p,this),this},emitter:function(){return this._private.emitter},on:function(L,z){return this.emitter().on(L,z),this},one:function(L,z){return this.emitter().one(L,z),this},once:function(L,z){return this.emitter().one(L,z),this},removeListener:function(L,z){return this.emitter().removeListener(L,z),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(L,z){return this.emitter().emit(L,z),this}}),Rr.eventAliasesOn(s),n=a}else if(e==="renderer"&&t!=="null"&&t!=="base"){var f=aW("renderer","base"),m=f.prototype,x=r,y=r.prototype,C=function(){f.apply(this,arguments),x.apply(this,arguments)},w=C.prototype;for(var S in m){var T=m[S],_=y[S]!=null;if(_)return i(S);w[S]=T}for(var A in y)w[A]=y[A];m.clientFunctions.forEach(function(E){w[E]=w[E]||function(){cn("Renderer does not implement `renderer."+E+"()` on its prototype")}}),n=C}else if(e==="__proto__"||e==="constructor"||e==="prototype")return cn(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return w7({map:rW,keys:[e,t],value:n})}function aW(e,t){return S7({map:rW,keys:[e,t]})}function Nxe(e,t,r,n,i){return w7({map:nW,keys:[e,t,r,n],value:i})}function Lxe(e,t,r,n){return S7({map:nW,keys:[e,t,r,n]})}var GA=function(){if(arguments.length===2)return aW.apply(null,arguments);if(arguments.length===3)return iW.apply(null,arguments);if(arguments.length===4)return Lxe.apply(null,arguments);if(arguments.length===5)return Nxe.apply(null,arguments);cn("Invalid extension access syntax")};Ap.prototype.extension=GA;Axe.forEach(function(e){e.extensions.forEach(function(t){iW(e.type,t.name,t.impl)})});var Ry=function(){if(!(this instanceof Ry))return new Ry;this.length=0},Ec=Ry.prototype;Ec.instanceString=function(){return"stylesheet"};Ec.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this};Ec.css=function(e,t){var r=this.length-1;if(At(e))this[r].properties.push({name:e,value:t});else if(wr(e))for(var n=e,i=Object.keys(n),a=0;a<i.length;a++){var s=i[a],o=n[s];if(o!=null){var l=Vn.properties[s]||Vn.properties[O0(s)];if(l!=null){var c=l.name,u=o;this[r].properties.push({name:c,value:u})}}}return this};Ec.style=Ec.css;Ec.generateStyle=function(e){var t=new Vn(e);return this.appendToStyle(t)};Ec.appendToStyle=function(e){for(var t=0;t<this.length;t++){var r=this[t],n=r.selector,i=r.properties;e.selector(n);for(var a=0;a<i.length;a++){var s=i[a];e.css(s.name,s.value)}}return e};var Mxe="3.33.3",Ka=function(t){if(t===void 0&&(t={}),wr(t))return new Ap(t);if(At(t))return GA.apply(GA,arguments)};Ka.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(Ka),e.apply(null,t),this};Ka.warnings=function(e){return L7(e)};Ka.version=Mxe;Ka.stylesheet=Ka.Stylesheet=Ry;var Hv={exports:{}};function gM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var tS,Sj;function Bxe(){if(Sj)return tS;Sj=1;function e(){this.__data__=[],this.size=0}return tS=e,tS}var rS,kj;function id(){if(kj)return rS;kj=1;function e(t,r){return t===r||t!==t&&r!==r}return rS=e,rS}var nS,Tj;function J0(){if(Tj)return nS;Tj=1;var e=id();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return nS=t,nS}var iS,Ej;function Dxe(){if(Ej)return iS;Ej=1;var e=J0(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var o=a.length-1;return s==o?a.pop():r.call(a,s,1),--this.size,!0}return iS=n,iS}var aS,_j;function Rxe(){if(_j)return aS;_j=1;var e=J0();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return aS=t,aS}var sS,Aj;function Oxe(){if(Aj)return sS;Aj=1;var e=J0();function t(r){return e(this.__data__,r)>-1}return sS=t,sS}var oS,Nj;function Ixe(){if(Nj)return oS;Nj=1;var e=J0();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return oS=t,oS}var lS,Lj;function ex(){if(Lj)return lS;Lj=1;var e=Bxe(),t=Dxe(),r=Rxe(),n=Oxe(),i=Ixe();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,lS=a,lS}var cS,Mj;function Fxe(){if(Mj)return cS;Mj=1;var e=ex();function t(){this.__data__=new e,this.size=0}return cS=t,cS}var uS,Bj;function jxe(){if(Bj)return uS;Bj=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return uS=e,uS}var hS,Dj;function Pxe(){if(Dj)return hS;Dj=1;function e(t){return this.__data__.get(t)}return hS=e,hS}var dS,Rj;function zxe(){if(Rj)return dS;Rj=1;function e(t){return this.__data__.has(t)}return dS=e,dS}var fS,Oj;function sW(){if(Oj)return fS;Oj=1;var e=typeof Fm=="object"&&Fm&&Fm.Object===Object&&Fm;return fS=e,fS}var pS,Ij;function Ja(){if(Ij)return pS;Ij=1;var e=sW(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return pS=r,pS}var gS,Fj;function ad(){if(Fj)return gS;Fj=1;var e=Ja(),t=e.Symbol;return gS=t,gS}var mS,jj;function $xe(){if(jj)return mS;jj=1;var e=ad(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(s){var o=r.call(s,i),l=s[i];try{s[i]=void 0;var c=!0}catch{}var u=n.call(s);return c&&(o?s[i]=l:delete s[i]),u}return mS=a,mS}var vS,Pj;function qxe(){if(Pj)return vS;Pj=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return vS=r,vS}var yS,zj;function $c(){if(zj)return yS;zj=1;var e=ad(),t=$xe(),r=qxe(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(o){return o==null?o===void 0?i:n:a&&a in Object(o)?t(o):r(o)}return yS=s,yS}var xS,$j;function Ra(){if($j)return xS;$j=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return xS=e,xS}var bS,qj;function cg(){if(qj)return bS;qj=1;var e=$c(),t=Ra(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(o){if(!t(o))return!1;var l=e(o);return l==n||l==i||l==r||l==a}return bS=s,bS}var CS,Hj;function Hxe(){if(Hj)return CS;Hj=1;var e=Ja(),t=e["__core-js_shared__"];return CS=t,CS}var wS,Uj;function Uxe(){if(Uj)return wS;Uj=1;var e=Hxe(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return wS=r,wS}var SS,Gj;function oW(){if(Gj)return SS;Gj=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return SS=r,SS}var kS,Wj;function Gxe(){if(Wj)return kS;Wj=1;var e=cg(),t=Uxe(),r=Ra(),n=oW(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(p){if(!r(p)||t(p))return!1;var f=e(p)?u:a;return f.test(n(p))}return kS=h,kS}var TS,Vj;function Wxe(){if(Vj)return TS;Vj=1;function e(t,r){return t==null?void 0:t[r]}return TS=e,TS}var ES,Yj;function qc(){if(Yj)return ES;Yj=1;var e=Gxe(),t=Wxe();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ES=r,ES}var _S,Xj;function mM(){if(Xj)return _S;Xj=1;var e=qc(),t=Ja(),r=e(t,"Map");return _S=r,_S}var AS,Kj;function tx(){if(Kj)return AS;Kj=1;var e=qc(),t=e(Object,"create");return AS=t,AS}var NS,Zj;function Vxe(){if(Zj)return NS;Zj=1;var e=tx();function t(){this.__data__=e?e(null):{},this.size=0}return NS=t,NS}var LS,Qj;function Yxe(){if(Qj)return LS;Qj=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return LS=e,LS}var MS,Jj;function Xxe(){if(Jj)return MS;Jj=1;var e=tx(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var s=this.__data__;if(e){var o=s[a];return o===t?void 0:o}return n.call(s,a)?s[a]:void 0}return MS=i,MS}var BS,eP;function Kxe(){if(eP)return BS;eP=1;var e=tx(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return BS=n,BS}var DS,tP;function Zxe(){if(tP)return DS;tP=1;var e=tx(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return DS=r,DS}var RS,rP;function Qxe(){if(rP)return RS;rP=1;var e=Vxe(),t=Yxe(),r=Xxe(),n=Kxe(),i=Zxe();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,RS=a,RS}var OS,nP;function Jxe(){if(nP)return OS;nP=1;var e=Qxe(),t=ex(),r=mM();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return OS=n,OS}var IS,iP;function ebe(){if(iP)return IS;iP=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return IS=e,IS}var FS,aP;function rx(){if(aP)return FS;aP=1;var e=ebe();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return FS=t,FS}var jS,sP;function tbe(){if(sP)return jS;sP=1;var e=rx();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return jS=t,jS}var PS,oP;function rbe(){if(oP)return PS;oP=1;var e=rx();function t(r){return e(this,r).get(r)}return PS=t,PS}var zS,lP;function nbe(){if(lP)return zS;lP=1;var e=rx();function t(r){return e(this,r).has(r)}return zS=t,zS}var $S,cP;function ibe(){if(cP)return $S;cP=1;var e=rx();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return $S=t,$S}var qS,uP;function vM(){if(uP)return qS;uP=1;var e=Jxe(),t=tbe(),r=rbe(),n=nbe(),i=ibe();function a(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var c=s[o];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qS=a,qS}var HS,hP;function abe(){if(hP)return HS;hP=1;var e=ex(),t=mM(),r=vM(),n=200;function i(a,s){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<n-1)return l.push([a,s]),this.size=++o.size,this;o=this.__data__=new r(l)}return o.set(a,s),this.size=o.size,this}return HS=i,HS}var US,dP;function nx(){if(dP)return US;dP=1;var e=ex(),t=Fxe(),r=jxe(),n=Pxe(),i=zxe(),a=abe();function s(o){var l=this.__data__=new e(o);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=a,US=s,US}var GS,fP;function yM(){if(fP)return GS;fP=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return GS=e,GS}var WS,pP;function lW(){if(pP)return WS;pP=1;var e=qc(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return WS=t,WS}var VS,gP;function ix(){if(gP)return VS;gP=1;var e=lW();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return VS=t,VS}var YS,mP;function ax(){if(mP)return YS;mP=1;var e=ix(),t=id(),r=Object.prototype,n=r.hasOwnProperty;function i(a,s,o){var l=a[s];(!(n.call(a,s)&&t(l,o))||o===void 0&&!(s in a))&&e(a,s,o)}return YS=i,YS}var XS,vP;function ug(){if(vP)return XS;vP=1;var e=ax(),t=ix();function r(n,i,a,s){var o=!a;a||(a={});for(var l=-1,c=i.length;++l<c;){var u=i[l],h=s?s(a[u],n[u],u,a,n):void 0;h===void 0&&(h=n[u]),o?t(a,u,h):e(a,u,h)}return a}return XS=r,XS}var KS,yP;function sbe(){if(yP)return KS;yP=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return KS=e,KS}var ZS,xP;function Ts(){if(xP)return ZS;xP=1;function e(t){return t!=null&&typeof t=="object"}return ZS=e,ZS}var QS,bP;function obe(){if(bP)return QS;bP=1;var e=$c(),t=Ts(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return QS=n,QS}var JS,CP;function hg(){if(CP)return JS;CP=1;var e=obe(),t=Ts(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return JS=a,JS}var ek,wP;function Bn(){if(wP)return ek;wP=1;var e=Array.isArray;return ek=e,ek}var $f={exports:{}},tk,SP;function lbe(){if(SP)return tk;SP=1;function e(){return!1}return tk=e,tk}$f.exports;var kP;function sd(){return kP||(kP=1,(function(e,t){var r=Ja(),n=lbe(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,o=s?r.Buffer:void 0,l=o?o.isBuffer:void 0,c=l||n;e.exports=c})($f,$f.exports)),$f.exports}var rk,TP;function sx(){if(TP)return rk;TP=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return rk=r,rk}var nk,EP;function xM(){if(EP)return nk;EP=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return nk=t,nk}var ik,_P;function cbe(){if(_P)return ik;_P=1;var e=$c(),t=xM(),r=Ts(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",h="[object Object]",p="[object RegExp]",f="[object Set]",m="[object String]",x="[object WeakMap]",y="[object ArrayBuffer]",C="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",E="[object Uint8Array]",L="[object Uint8ClampedArray]",z="[object Uint16Array]",D="[object Uint32Array]",P={};P[w]=P[S]=P[T]=P[_]=P[A]=P[E]=P[L]=P[z]=P[D]=!0,P[n]=P[i]=P[y]=P[a]=P[C]=P[s]=P[o]=P[l]=P[c]=P[u]=P[h]=P[p]=P[f]=P[m]=P[x]=!1;function q(W){return r(W)&&t(W.length)&&!!P[e(W)]}return ik=q,ik}var ak,AP;function ox(){if(AP)return ak;AP=1;function e(t){return function(r){return t(r)}}return ak=e,ak}var qf={exports:{}};qf.exports;var NP;function bM(){return NP||(NP=1,(function(e,t){var r=sW(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a&&r.process,o=(function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();e.exports=o})(qf,qf.exports)),qf.exports}var sk,LP;function dg(){if(LP)return sk;LP=1;var e=cbe(),t=ox(),r=bM(),n=r&&r.isTypedArray,i=n?t(n):e;return sk=i,sk}var ok,MP;function cW(){if(MP)return ok;MP=1;var e=sbe(),t=hg(),r=Bn(),n=sd(),i=sx(),a=dg(),s=Object.prototype,o=s.hasOwnProperty;function l(c,u){var h=r(c),p=!h&&t(c),f=!h&&!p&&n(c),m=!h&&!p&&!f&&a(c),x=h||p||f||m,y=x?e(c.length,String):[],C=y.length;for(var w in c)(u||o.call(c,w))&&!(x&&(w=="length"||f&&(w=="offset"||w=="parent")||m&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,C)))&&y.push(w);return y}return ok=l,ok}var lk,BP;function lx(){if(BP)return lk;BP=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return lk=t,lk}var ck,DP;function uW(){if(DP)return ck;DP=1;function e(t,r){return function(n){return t(r(n))}}return ck=e,ck}var uk,RP;function ube(){if(RP)return uk;RP=1;var e=uW(),t=e(Object.keys,Object);return uk=t,uk}var hk,OP;function CM(){if(OP)return hk;OP=1;var e=lx(),t=ube(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var o in Object(a))n.call(a,o)&&o!="constructor"&&s.push(o);return s}return hk=i,hk}var dk,IP;function ho(){if(IP)return dk;IP=1;var e=cg(),t=xM();function r(n){return n!=null&&t(n.length)&&!e(n)}return dk=r,dk}var fk,FP;function Dl(){if(FP)return fk;FP=1;var e=cW(),t=CM(),r=ho();function n(i){return r(i)?e(i):t(i)}return fk=n,fk}var pk,jP;function hbe(){if(jP)return pk;jP=1;var e=ug(),t=Dl();function r(n,i){return n&&e(i,t(i),n)}return pk=r,pk}var gk,PP;function dbe(){if(PP)return gk;PP=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return gk=e,gk}var mk,zP;function fbe(){if(zP)return mk;zP=1;var e=Ra(),t=lx(),r=dbe(),n=Object.prototype,i=n.hasOwnProperty;function a(s){if(!e(s))return r(s);var o=t(s),l=[];for(var c in s)c=="constructor"&&(o||!i.call(s,c))||l.push(c);return l}return mk=a,mk}var vk,$P;function Hc(){if($P)return vk;$P=1;var e=cW(),t=fbe(),r=ho();function n(i){return r(i)?e(i,!0):t(i)}return vk=n,vk}var yk,qP;function pbe(){if(qP)return yk;qP=1;var e=ug(),t=Hc();function r(n,i){return n&&e(i,t(i),n)}return yk=r,yk}var Hf={exports:{}};Hf.exports;var HP;function hW(){return HP||(HP=1,(function(e,t){var r=Ja(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var h=c.length,p=o?o(h):new c.constructor(h);return c.copy(p),p}e.exports=l})(Hf,Hf.exports)),Hf.exports}var xk,UP;function dW(){if(UP)return xk;UP=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return xk=e,xk}var bk,GP;function fW(){if(GP)return bk;GP=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,s=[];++n<i;){var o=t[n];r(o,n,t)&&(s[a++]=o)}return s}return bk=e,bk}var Ck,WP;function pW(){if(WP)return Ck;WP=1;function e(){return[]}return Ck=e,Ck}var wk,VP;function wM(){if(VP)return wk;VP=1;var e=fW(),t=pW(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(o){return n.call(s,o)}))}:t;return wk=a,wk}var Sk,YP;function gbe(){if(YP)return Sk;YP=1;var e=ug(),t=wM();function r(n,i){return e(n,t(n),i)}return Sk=r,Sk}var kk,XP;function SM(){if(XP)return kk;XP=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return kk=e,kk}var Tk,KP;function cx(){if(KP)return Tk;KP=1;var e=uW(),t=e(Object.getPrototypeOf,Object);return Tk=t,Tk}var Ek,ZP;function gW(){if(ZP)return Ek;ZP=1;var e=SM(),t=cx(),r=wM(),n=pW(),i=Object.getOwnPropertySymbols,a=i?function(s){for(var o=[];s;)e(o,r(s)),s=t(s);return o}:n;return Ek=a,Ek}var _k,QP;function mbe(){if(QP)return _k;QP=1;var e=ug(),t=gW();function r(n,i){return e(n,t(n),i)}return _k=r,_k}var Ak,JP;function mW(){if(JP)return Ak;JP=1;var e=SM(),t=Bn();function r(n,i,a){var s=i(n);return t(n)?s:e(s,a(n))}return Ak=r,Ak}var Nk,e4;function vW(){if(e4)return Nk;e4=1;var e=mW(),t=wM(),r=Dl();function n(i){return e(i,r,t)}return Nk=n,Nk}var Lk,t4;function vbe(){if(t4)return Lk;t4=1;var e=mW(),t=gW(),r=Hc();function n(i){return e(i,r,t)}return Lk=n,Lk}var Mk,r4;function ybe(){if(r4)return Mk;r4=1;var e=qc(),t=Ja(),r=e(t,"DataView");return Mk=r,Mk}var Bk,n4;function xbe(){if(n4)return Bk;n4=1;var e=qc(),t=Ja(),r=e(t,"Promise");return Bk=r,Bk}var Dk,i4;function yW(){if(i4)return Dk;i4=1;var e=qc(),t=Ja(),r=e(t,"Set");return Dk=r,Dk}var Rk,a4;function bbe(){if(a4)return Rk;a4=1;var e=qc(),t=Ja(),r=e(t,"WeakMap");return Rk=r,Rk}var Ok,s4;function od(){if(s4)return Ok;s4=1;var e=ybe(),t=mM(),r=xbe(),n=yW(),i=bbe(),a=$c(),s=oW(),o="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",h="[object WeakMap]",p="[object DataView]",f=s(e),m=s(t),x=s(r),y=s(n),C=s(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=p||t&&w(new t)!=o||r&&w(r.resolve())!=c||n&&w(new n)!=u||i&&w(new i)!=h)&&(w=function(S){var T=a(S),_=T==l?S.constructor:void 0,A=_?s(_):"";if(A)switch(A){case f:return p;case m:return o;case x:return c;case y:return u;case C:return h}return T}),Ok=w,Ok}var Ik,o4;function Cbe(){if(o4)return Ik;o4=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return Ik=r,Ik}var Fk,l4;function xW(){if(l4)return Fk;l4=1;var e=Ja(),t=e.Uint8Array;return Fk=t,Fk}var jk,c4;function kM(){if(c4)return jk;c4=1;var e=xW();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return jk=t,jk}var Pk,u4;function wbe(){if(u4)return Pk;u4=1;var e=kM();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Pk=t,Pk}var zk,h4;function Sbe(){if(h4)return zk;h4=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return zk=t,zk}var $k,d4;function kbe(){if(d4)return $k;d4=1;var e=ad(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return $k=n,$k}var qk,f4;function bW(){if(f4)return qk;f4=1;var e=kM();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return qk=t,qk}var Hk,p4;function Tbe(){if(p4)return Hk;p4=1;var e=kM(),t=wbe(),r=Sbe(),n=kbe(),i=bW(),a="[object Boolean]",s="[object Date]",o="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",h="[object String]",p="[object Symbol]",f="[object ArrayBuffer]",m="[object DataView]",x="[object Float32Array]",y="[object Float64Array]",C="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",_="[object Uint8ClampedArray]",A="[object Uint16Array]",E="[object Uint32Array]";function L(z,D,P){var q=z.constructor;switch(D){case f:return e(z);case a:case s:return new q(+z);case m:return t(z,P);case x:case y:case C:case w:case S:case T:case _:case A:case E:return i(z,P);case o:return new q;case l:case h:return new q(z);case c:return r(z);case u:return new q;case p:return n(z)}}return Hk=L,Hk}var Uk,g4;function CW(){if(g4)return Uk;g4=1;var e=Ra(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}})();return Uk=r,Uk}var Gk,m4;function wW(){if(m4)return Gk;m4=1;var e=CW(),t=cx(),r=lx();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Gk=n,Gk}var Wk,v4;function Ebe(){if(v4)return Wk;v4=1;var e=od(),t=Ts(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Wk=n,Wk}var Vk,y4;function _be(){if(y4)return Vk;y4=1;var e=Ebe(),t=ox(),r=bM(),n=r&&r.isMap,i=n?t(n):e;return Vk=i,Vk}var Yk,x4;function Abe(){if(x4)return Yk;x4=1;var e=od(),t=Ts(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Yk=n,Yk}var Xk,b4;function Nbe(){if(b4)return Xk;b4=1;var e=Abe(),t=ox(),r=bM(),n=r&&r.isSet,i=n?t(n):e;return Xk=i,Xk}var Kk,C4;function SW(){if(C4)return Kk;C4=1;var e=nx(),t=yM(),r=ax(),n=hbe(),i=pbe(),a=hW(),s=dW(),o=gbe(),l=mbe(),c=vW(),u=vbe(),h=od(),p=Cbe(),f=Tbe(),m=wW(),x=Bn(),y=sd(),C=_be(),w=Ra(),S=Nbe(),T=Dl(),_=Hc(),A=1,E=2,L=4,z="[object Arguments]",D="[object Array]",P="[object Boolean]",q="[object Date]",W="[object Error]",B="[object Function]",j="[object GeneratorFunction]",M="[object Map]",I="[object Number]",F="[object Object]",V="[object RegExp]",R="[object Set]",H="[object String]",Y="[object Symbol]",U="[object WeakMap]",K="[object ArrayBuffer]",Q="[object DataView]",J="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",re="[object Int16Array]",ee="[object Int32Array]",Z="[object Uint8Array]",ie="[object Uint8ClampedArray]",ce="[object Uint16Array]",he="[object Uint32Array]",ke={};ke[z]=ke[D]=ke[K]=ke[Q]=ke[P]=ke[q]=ke[J]=ke[se]=ke[ue]=ke[re]=ke[ee]=ke[M]=ke[I]=ke[F]=ke[V]=ke[R]=ke[H]=ke[Y]=ke[Z]=ke[ie]=ke[ce]=ke[he]=!0,ke[W]=ke[B]=ke[U]=!1;function He(Ne,Te,Oe,Re,Xe,Ue){var Ge,Ee=Te&A,Qe=Te&E,me=Te&L;if(Oe&&(Ge=Xe?Oe(Ne,Re,Xe,Ue):Oe(Ne)),Ge!==void 0)return Ge;if(!w(Ne))return Ne;var Me=x(Ne);if(Me){if(Ge=p(Ne),!Ee)return s(Ne,Ge)}else{var Ke=h(Ne),et=Ke==B||Ke==j;if(y(Ne))return a(Ne,Ee);if(Ke==F||Ke==z||et&&!Xe){if(Ge=Qe||et?{}:m(Ne),!Ee)return Qe?l(Ne,i(Ge,Ne)):o(Ne,n(Ge,Ne))}else{if(!ke[Ke])return Xe?Ne:{};Ge=f(Ne,Ke,Ee)}}Ue||(Ue=new e);var Se=Ue.get(Ne);if(Se)return Se;Ue.set(Ne,Ge),S(Ne)?Ne.forEach(function(le){Ge.add(He(le,Te,Oe,le,Ne,Ue))}):C(Ne)&&Ne.forEach(function(le,de){Ge.set(de,He(le,Te,Oe,de,Ne,Ue))});var ne=me?Qe?u:c:Qe?_:T,oe=Me?void 0:ne(Ne);return t(oe||Ne,function(le,de){oe&&(de=le,le=Ne[de]),r(Ge,de,He(le,Te,Oe,de,Ne,Ue))}),Ge}return Kk=He,Kk}var Zk,w4;function Lbe(){if(w4)return Zk;w4=1;var e=SW(),t=4;function r(n){return e(n,t)}return Zk=r,Zk}var Qk,S4;function TM(){if(S4)return Qk;S4=1;function e(t){return function(){return t}}return Qk=e,Qk}var Jk,k4;function Mbe(){if(k4)return Jk;k4=1;function e(t){return function(r,n,i){for(var a=-1,s=Object(r),o=i(r),l=o.length;l--;){var c=o[t?l:++a];if(n(s[c],c,s)===!1)break}return r}}return Jk=e,Jk}var e2,T4;function EM(){if(T4)return e2;T4=1;var e=Mbe(),t=e();return e2=t,e2}var t2,E4;function _M(){if(E4)return t2;E4=1;var e=EM(),t=Dl();function r(n,i){return n&&e(n,i,t)}return t2=r,t2}var r2,_4;function Bbe(){if(_4)return r2;_4=1;var e=ho();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var s=i.length,o=n?s:-1,l=Object(i);(n?o--:++o<s)&&a(l[o],o,l)!==!1;);return i}}return r2=t,r2}var n2,A4;function ux(){if(A4)return n2;A4=1;var e=_M(),t=Bbe(),r=t(e);return n2=r,n2}var i2,N4;function Uc(){if(N4)return i2;N4=1;function e(t){return t}return i2=e,i2}var a2,L4;function kW(){if(L4)return a2;L4=1;var e=Uc();function t(r){return typeof r=="function"?r:e}return a2=t,a2}var s2,M4;function TW(){if(M4)return s2;M4=1;var e=yM(),t=ux(),r=kW(),n=Bn();function i(a,s){var o=n(a)?e:t;return o(a,r(s))}return s2=i,s2}var o2,B4;function EW(){return B4||(B4=1,o2=TW()),o2}var l2,D4;function Dbe(){if(D4)return l2;D4=1;var e=ux();function t(r,n){var i=[];return e(r,function(a,s,o){n(a,s,o)&&i.push(a)}),i}return l2=t,l2}var c2,R4;function Rbe(){if(R4)return c2;R4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return c2=t,c2}var u2,O4;function Obe(){if(O4)return u2;O4=1;function e(t){return this.__data__.has(t)}return u2=e,u2}var h2,I4;function _W(){if(I4)return h2;I4=1;var e=vM(),t=Rbe(),r=Obe();function n(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,h2=n,h2}var d2,F4;function Ibe(){if(F4)return d2;F4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return d2=e,d2}var f2,j4;function AW(){if(j4)return f2;j4=1;function e(t,r){return t.has(r)}return f2=e,f2}var p2,P4;function NW(){if(P4)return p2;P4=1;var e=_W(),t=Ibe(),r=AW(),n=1,i=2;function a(s,o,l,c,u,h){var p=l&n,f=s.length,m=o.length;if(f!=m&&!(p&&m>f))return!1;var x=h.get(s),y=h.get(o);if(x&&y)return x==o&&y==s;var C=-1,w=!0,S=l&i?new e:void 0;for(h.set(s,o),h.set(o,s);++C<f;){var T=s[C],_=o[C];if(c)var A=p?c(_,T,C,o,s,h):c(T,_,C,s,o,h);if(A!==void 0){if(A)continue;w=!1;break}if(S){if(!t(o,function(E,L){if(!r(S,L)&&(T===E||u(T,E,l,c,h)))return S.push(L)})){w=!1;break}}else if(!(T===_||u(T,_,l,c,h))){w=!1;break}}return h.delete(s),h.delete(o),w}return p2=a,p2}var g2,z4;function Fbe(){if(z4)return g2;z4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return g2=e,g2}var m2,$4;function AM(){if($4)return m2;$4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return m2=e,m2}var v2,q4;function jbe(){if(q4)return v2;q4=1;var e=ad(),t=xW(),r=id(),n=NW(),i=Fbe(),a=AM(),s=1,o=2,l="[object Boolean]",c="[object Date]",u="[object Error]",h="[object Map]",p="[object Number]",f="[object RegExp]",m="[object Set]",x="[object String]",y="[object Symbol]",C="[object ArrayBuffer]",w="[object DataView]",S=e?e.prototype:void 0,T=S?S.valueOf:void 0;function _(A,E,L,z,D,P,q){switch(L){case w:if(A.byteLength!=E.byteLength||A.byteOffset!=E.byteOffset)return!1;A=A.buffer,E=E.buffer;case C:return!(A.byteLength!=E.byteLength||!P(new t(A),new t(E)));case l:case c:case p:return r(+A,+E);case u:return A.name==E.name&&A.message==E.message;case f:case x:return A==E+"";case h:var W=i;case m:var B=z&s;if(W||(W=a),A.size!=E.size&&!B)return!1;var j=q.get(A);if(j)return j==E;z|=o,q.set(A,E);var M=n(W(A),W(E),z,D,P,q);return q.delete(A),M;case y:if(T)return T.call(A)==T.call(E)}return!1}return v2=_,v2}var y2,H4;function Pbe(){if(H4)return y2;H4=1;var e=vW(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,s,o,l,c,u){var h=o&t,p=e(a),f=p.length,m=e(s),x=m.length;if(f!=x&&!h)return!1;for(var y=f;y--;){var C=p[y];if(!(h?C in s:n.call(s,C)))return!1}var w=u.get(a),S=u.get(s);if(w&&S)return w==s&&S==a;var T=!0;u.set(a,s),u.set(s,a);for(var _=h;++y<f;){C=p[y];var A=a[C],E=s[C];if(l)var L=h?l(E,A,C,s,a,u):l(A,E,C,a,s,u);if(!(L===void 0?A===E||c(A,E,o,l,u):L)){T=!1;break}_||(_=C=="constructor")}if(T&&!_){var z=a.constructor,D=s.constructor;z!=D&&"constructor"in a&&"constructor"in s&&!(typeof z=="function"&&z instanceof z&&typeof D=="function"&&D instanceof D)&&(T=!1)}return u.delete(a),u.delete(s),T}return y2=i,y2}var x2,U4;function zbe(){if(U4)return x2;U4=1;var e=nx(),t=NW(),r=jbe(),n=Pbe(),i=od(),a=Bn(),s=sd(),o=dg(),l=1,c="[object Arguments]",u="[object Array]",h="[object Object]",p=Object.prototype,f=p.hasOwnProperty;function m(x,y,C,w,S,T){var _=a(x),A=a(y),E=_?u:i(x),L=A?u:i(y);E=E==c?h:E,L=L==c?h:L;var z=E==h,D=L==h,P=E==L;if(P&&s(x)){if(!s(y))return!1;_=!0,z=!1}if(P&&!z)return T||(T=new e),_||o(x)?t(x,y,C,w,S,T):r(x,y,E,C,w,S,T);if(!(C&l)){var q=z&&f.call(x,"__wrapped__"),W=D&&f.call(y,"__wrapped__");if(q||W){var B=q?x.value():x,j=W?y.value():y;return T||(T=new e),S(B,j,C,w,T)}}return P?(T||(T=new e),n(x,y,C,w,S,T)):!1}return x2=m,x2}var b2,G4;function LW(){if(G4)return b2;G4=1;var e=zbe(),t=Ts();function r(n,i,a,s,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,s,r,o)}return b2=r,b2}var C2,W4;function $be(){if(W4)return C2;W4=1;var e=nx(),t=LW(),r=1,n=2;function i(a,s,o,l){var c=o.length,u=c,h=!l;if(a==null)return!u;for(a=Object(a);c--;){var p=o[c];if(h&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++c<u;){p=o[c];var f=p[0],m=a[f],x=p[1];if(h&&p[2]){if(m===void 0&&!(f in a))return!1}else{var y=new e;if(l)var C=l(m,x,f,a,s,y);if(!(C===void 0?t(x,m,r|n,l,y):C))return!1}}return!0}return C2=i,C2}var w2,V4;function MW(){if(V4)return w2;V4=1;var e=Ra();function t(r){return r===r&&!e(r)}return w2=t,w2}var S2,Y4;function qbe(){if(Y4)return S2;Y4=1;var e=MW(),t=Dl();function r(n){for(var i=t(n),a=i.length;a--;){var s=i[a],o=n[s];i[a]=[s,o,e(o)]}return i}return S2=r,S2}var k2,X4;function BW(){if(X4)return k2;X4=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return k2=e,k2}var T2,K4;function Hbe(){if(K4)return T2;K4=1;var e=$be(),t=qbe(),r=BW();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return T2=n,T2}var E2,Z4;function ld(){if(Z4)return E2;Z4=1;var e=$c(),t=Ts(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return E2=n,E2}var _2,Q4;function NM(){if(Q4)return _2;Q4=1;var e=Bn(),t=ld(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){if(e(a))return!1;var o=typeof a;return o=="number"||o=="symbol"||o=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||s!=null&&a in Object(s)}return _2=i,_2}var A2,J4;function Ube(){if(J4)return A2;J4=1;var e=vM(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,o=i?i.apply(this,s):s[0],l=a.cache;if(l.has(o))return l.get(o);var c=n.apply(this,s);return a.cache=l.set(o,c)||l,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,A2=r,A2}var N2,ez;function Gbe(){if(ez)return N2;ez=1;var e=Ube(),t=500;function r(n){var i=e(n,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return N2=r,N2}var L2,tz;function Wbe(){if(tz)return L2;tz=1;var e=Gbe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,o,l,c){a.push(l?c.replace(r,"$1"):o||s)}),a});return L2=n,L2}var M2,rz;function hx(){if(rz)return M2;rz=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return M2=e,M2}var B2,nz;function Vbe(){if(nz)return B2;nz=1;var e=ad(),t=hx(),r=Bn(),n=ld(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(o){if(typeof o=="string")return o;if(r(o))return t(o,s)+"";if(n(o))return a?a.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return B2=s,B2}var D2,iz;function DW(){if(iz)return D2;iz=1;var e=Vbe();function t(r){return r==null?"":e(r)}return D2=t,D2}var R2,az;function dx(){if(az)return R2;az=1;var e=Bn(),t=NM(),r=Wbe(),n=DW();function i(a,s){return e(a)?a:t(a,s)?[a]:r(n(a))}return R2=i,R2}var O2,sz;function fg(){if(sz)return O2;sz=1;var e=ld();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return O2=t,O2}var I2,oz;function fx(){if(oz)return I2;oz=1;var e=dx(),t=fg();function r(n,i){i=e(i,n);for(var a=0,s=i.length;n!=null&&a<s;)n=n[t(i[a++])];return a&&a==s?n:void 0}return I2=r,I2}var F2,lz;function Ybe(){if(lz)return F2;lz=1;var e=fx();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return F2=t,F2}var j2,cz;function Xbe(){if(cz)return j2;cz=1;function e(t,r){return t!=null&&r in Object(t)}return j2=e,j2}var P2,uz;function RW(){if(uz)return P2;uz=1;var e=dx(),t=hg(),r=Bn(),n=sx(),i=xM(),a=fg();function s(o,l,c){l=e(l,o);for(var u=-1,h=l.length,p=!1;++u<h;){var f=a(l[u]);if(!(p=o!=null&&c(o,f)))break;o=o[f]}return p||++u!=h?p:(h=o==null?0:o.length,!!h&&i(h)&&n(f,h)&&(r(o)||t(o)))}return P2=s,P2}var z2,hz;function OW(){if(hz)return z2;hz=1;var e=Xbe(),t=RW();function r(n,i){return n!=null&&t(n,i,e)}return z2=r,z2}var $2,dz;function Kbe(){if(dz)return $2;dz=1;var e=LW(),t=Ybe(),r=OW(),n=NM(),i=MW(),a=BW(),s=fg(),o=1,l=2;function c(u,h){return n(u)&&i(h)?a(s(u),h):function(p){var f=t(p,u);return f===void 0&&f===h?r(p,u):e(h,f,o|l)}}return $2=c,$2}var q2,fz;function IW(){if(fz)return q2;fz=1;function e(t){return function(r){return r==null?void 0:r[t]}}return q2=e,q2}var H2,pz;function Zbe(){if(pz)return H2;pz=1;var e=fx();function t(r){return function(n){return e(n,r)}}return H2=t,H2}var U2,gz;function Qbe(){if(gz)return U2;gz=1;var e=IW(),t=Zbe(),r=NM(),n=fg();function i(a){return r(a)?e(n(a)):t(a)}return U2=i,U2}var G2,mz;function fo(){if(mz)return G2;mz=1;var e=Hbe(),t=Kbe(),r=Uc(),n=Bn(),i=Qbe();function a(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):i(s)}return G2=a,G2}var W2,vz;function FW(){if(vz)return W2;vz=1;var e=fW(),t=Dbe(),r=fo(),n=Bn();function i(a,s){var o=n(a)?e:t;return o(a,r(s,3))}return W2=i,W2}var V2,yz;function Jbe(){if(yz)return V2;yz=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return V2=r,V2}var Y2,xz;function jW(){if(xz)return Y2;xz=1;var e=Jbe(),t=RW();function r(n,i){return n!=null&&t(n,i,e)}return Y2=r,Y2}var X2,bz;function e1e(){if(bz)return X2;bz=1;var e=CM(),t=od(),r=hg(),n=Bn(),i=ho(),a=sd(),s=lx(),o=dg(),l="[object Map]",c="[object Set]",u=Object.prototype,h=u.hasOwnProperty;function p(f){if(f==null)return!0;if(i(f)&&(n(f)||typeof f=="string"||typeof f.splice=="function"||a(f)||o(f)||r(f)))return!f.length;var m=t(f);if(m==l||m==c)return!f.size;if(s(f))return!e(f).length;for(var x in f)if(h.call(f,x))return!1;return!0}return X2=p,X2}var K2,Cz;function PW(){if(Cz)return K2;Cz=1;function e(t){return t===void 0}return K2=e,K2}var Z2,wz;function zW(){if(wz)return Z2;wz=1;var e=ux(),t=ho();function r(n,i){var a=-1,s=t(n)?Array(n.length):[];return e(n,function(o,l,c){s[++a]=i(o,l,c)}),s}return Z2=r,Z2}var Q2,Sz;function $W(){if(Sz)return Q2;Sz=1;var e=hx(),t=fo(),r=zW(),n=Bn();function i(a,s){var o=n(a)?e:r;return o(a,t(s,3))}return Q2=i,Q2}var J2,kz;function t1e(){if(kz)return J2;kz=1;function e(t,r,n,i){var a=-1,s=t==null?0:t.length;for(i&&s&&(n=t[++a]);++a<s;)n=r(n,t[a],a,t);return n}return J2=e,J2}var eT,Tz;function r1e(){if(Tz)return eT;Tz=1;function e(t,r,n,i,a){return a(t,function(s,o,l){n=i?(i=!1,s):r(n,s,o,l)}),n}return eT=e,eT}var tT,Ez;function qW(){if(Ez)return tT;Ez=1;var e=t1e(),t=ux(),r=fo(),n=r1e(),i=Bn();function a(s,o,l){var c=i(s)?e:n,u=arguments.length<3;return c(s,r(o,4),l,u,t)}return tT=a,tT}var rT,_z;function n1e(){if(_z)return rT;_z=1;var e=$c(),t=Bn(),r=Ts(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return rT=i,rT}var nT,Az;function i1e(){if(Az)return nT;Az=1;var e=IW(),t=e("length");return nT=t,nT}var iT,Nz;function a1e(){if(Nz)return iT;Nz=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",s="\\u200d",o=RegExp("["+s+e+i+a+"]");function l(c){return o.test(c)}return iT=l,iT}var aT,Lz;function s1e(){if(Lz)return aT;Lz=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",s="["+e+"]",o="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+l+")",u="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",m=c+"?",x="["+a+"]?",y="(?:"+f+"(?:"+[u,h,p].join("|")+")"+x+m+")*",C=x+m+y,w="(?:"+[u+o+"?",o,h,p,s].join("|")+")",S=RegExp(l+"(?="+l+")|"+w+C,"g");function T(_){for(var A=S.lastIndex=0;S.test(_);)++A;return A}return aT=T,aT}var sT,Mz;function o1e(){if(Mz)return sT;Mz=1;var e=i1e(),t=a1e(),r=s1e();function n(i){return t(i)?r(i):e(i)}return sT=n,sT}var oT,Bz;function l1e(){if(Bz)return oT;Bz=1;var e=CM(),t=od(),r=ho(),n=n1e(),i=o1e(),a="[object Map]",s="[object Set]";function o(l){if(l==null)return 0;if(r(l))return n(l)?i(l):l.length;var c=t(l);return c==a||c==s?l.size:e(l).length}return oT=o,oT}var lT,Dz;function c1e(){if(Dz)return lT;Dz=1;var e=yM(),t=CW(),r=_M(),n=fo(),i=cx(),a=Bn(),s=sd(),o=cg(),l=Ra(),c=dg();function u(h,p,f){var m=a(h),x=m||s(h)||c(h);if(p=n(p,4),f==null){var y=h&&h.constructor;x?f=m?new y:[]:l(h)?f=o(y)?t(i(h)):{}:f={}}return(x?e:r)(h,function(C,w,S){return p(f,C,w,S)}),f}return lT=u,lT}var cT,Rz;function u1e(){if(Rz)return cT;Rz=1;var e=ad(),t=hg(),r=Bn(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return cT=i,cT}var uT,Oz;function LM(){if(Oz)return uT;Oz=1;var e=SM(),t=u1e();function r(n,i,a,s,o){var l=-1,c=n.length;for(a||(a=t),o||(o=[]);++l<c;){var u=n[l];i>0&&a(u)?i>1?r(u,i-1,a,s,o):e(o,u):s||(o[o.length]=u)}return o}return uT=r,uT}var hT,Iz;function h1e(){if(Iz)return hT;Iz=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return hT=e,hT}var dT,Fz;function HW(){if(Fz)return dT;Fz=1;var e=h1e(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var s=arguments,o=-1,l=t(s.length-i,0),c=Array(l);++o<l;)c[o]=s[i+o];o=-1;for(var u=Array(i+1);++o<i;)u[o]=s[o];return u[i]=a(c),e(n,this,u)}}return dT=r,dT}var fT,jz;function d1e(){if(jz)return fT;jz=1;var e=TM(),t=lW(),r=Uc(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return fT=n,fT}var pT,Pz;function f1e(){if(Pz)return pT;Pz=1;var e=800,t=16,r=Date.now;function n(i){var a=0,s=0;return function(){var o=r(),l=t-(o-s);if(s=o,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return pT=n,pT}var gT,zz;function UW(){if(zz)return gT;zz=1;var e=d1e(),t=f1e(),r=t(e);return gT=r,gT}var mT,$z;function px(){if($z)return mT;$z=1;var e=Uc(),t=HW(),r=UW();function n(i,a){return r(t(i,a,e),i+"")}return mT=n,mT}var vT,qz;function GW(){if(qz)return vT;qz=1;function e(t,r,n,i){for(var a=t.length,s=n+(i?1:-1);i?s--:++s<a;)if(r(t[s],s,t))return s;return-1}return vT=e,vT}var yT,Hz;function p1e(){if(Hz)return yT;Hz=1;function e(t){return t!==t}return yT=e,yT}var xT,Uz;function g1e(){if(Uz)return xT;Uz=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xT=e,xT}var bT,Gz;function m1e(){if(Gz)return bT;Gz=1;var e=GW(),t=p1e(),r=g1e();function n(i,a,s){return a===a?r(i,a,s):e(i,t,s)}return bT=n,bT}var CT,Wz;function v1e(){if(Wz)return CT;Wz=1;var e=m1e();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return CT=t,CT}var wT,Vz;function y1e(){if(Vz)return wT;Vz=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return wT=e,wT}var ST,Yz;function x1e(){if(Yz)return ST;Yz=1;function e(){}return ST=e,ST}var kT,Xz;function b1e(){if(Xz)return kT;Xz=1;var e=yW(),t=x1e(),r=AM(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return kT=i,kT}var TT,Kz;function C1e(){if(Kz)return TT;Kz=1;var e=_W(),t=v1e(),r=y1e(),n=AW(),i=b1e(),a=AM(),s=200;function o(l,c,u){var h=-1,p=t,f=l.length,m=!0,x=[],y=x;if(u)m=!1,p=r;else if(f>=s){var C=c?null:i(l);if(C)return a(C);m=!1,p=n,y=new e}else y=c?[]:x;e:for(;++h<f;){var w=l[h],S=c?c(w):w;if(w=u||w!==0?w:0,m&&S===S){for(var T=y.length;T--;)if(y[T]===S)continue e;c&&y.push(S),x.push(w)}else p(y,S,u)||(y!==x&&y.push(S),x.push(w))}return x}return TT=o,TT}var ET,Zz;function WW(){if(Zz)return ET;Zz=1;var e=ho(),t=Ts();function r(n){return t(n)&&e(n)}return ET=r,ET}var _T,Qz;function w1e(){if(Qz)return _T;Qz=1;var e=LM(),t=px(),r=C1e(),n=WW(),i=t(function(a){return r(e(a,1,n,!0))});return _T=i,_T}var AT,Jz;function S1e(){if(Jz)return AT;Jz=1;var e=hx();function t(r,n){return e(n,function(i){return r[i]})}return AT=t,AT}var NT,e6;function VW(){if(e6)return NT;e6=1;var e=S1e(),t=Dl();function r(n){return n==null?[]:e(n,t(n))}return NT=r,NT}var LT,t6;function Oa(){if(t6)return LT;t6=1;var e;if(typeof gM=="function")try{e={clone:Lbe(),constant:TM(),each:EW(),filter:FW(),has:jW(),isArray:Bn(),isEmpty:e1e(),isFunction:cg(),isUndefined:PW(),keys:Dl(),map:$W(),reduce:qW(),size:l1e(),transform:c1e(),union:w1e(),values:VW()}}catch{}return e||(e=window._),LT=e,LT}var MT,r6;function MM(){if(r6)return MT;r6=1;var e=Oa();MT=i;var t="\0",r="\0",n="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[r]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._in[h])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._out[h])})},i.prototype.setNodes=function(u,h){var p=arguments,f=this;return e.each(u,function(m){p.length>1?f.setNode(m,h):f.setNode(m)}),this},i.prototype.setNode=function(u,h){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=h),this):(this._nodes[u]=arguments.length>1?h:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=r,this._children[u]={},this._children[r][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var h=this;if(e.has(this._nodes,u)){var p=function(f){h.removeEdge(h._edgeObjs[f])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(f){h.setParent(f)}),delete this._children[u]),e.each(e.keys(this._in[u]),p),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),p),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(h))h=r;else{h+="";for(var p=h;!e.isUndefined(p);p=this.parent(p))if(p===u)throw new Error("Setting "+h+" as parent of "+u+" would create a cycle");this.setNode(h)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=h,this._children[h][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var h=this._parent[u];if(h!==r)return h}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=r),this._isCompound){var h=this._children[u];if(h)return e.keys(h)}else{if(u===r)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var h=this._preds[u];if(h)return e.keys(h)},i.prototype.successors=function(u){var h=this._sucs[u];if(h)return e.keys(h)},i.prototype.neighbors=function(u){var h=this.predecessors(u);if(h)return e.union(h,this.successors(u))},i.prototype.isLeaf=function(u){var h;return this.isDirected()?h=this.successors(u):h=this.neighbors(u),h.length===0},i.prototype.filterNodes=function(u){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var p=this;e.each(this._nodes,function(x,y){u(y)&&h.setNode(y,x)}),e.each(this._edgeObjs,function(x){h.hasNode(x.v)&&h.hasNode(x.w)&&h.setEdge(x,p.edge(x))});var f={};function m(x){var y=p.parent(x);return y===void 0||h.hasNode(y)?(f[x]=y,y):y in f?f[y]:m(y)}return this._isCompound&&e.each(h.nodes(),function(x){h.setParent(x,m(x))}),h},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,h){var p=this,f=arguments;return e.reduce(u,function(m,x){return f.length>1?p.setEdge(m,x,h):p.setEdge(m,x),x}),this},i.prototype.setEdge=function(){var u,h,p,f,m=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(u=x.v,h=x.w,p=x.name,arguments.length===2&&(f=arguments[1],m=!0)):(u=x,h=arguments[1],p=arguments[3],arguments.length>2&&(f=arguments[2],m=!0)),u=""+u,h=""+h,e.isUndefined(p)||(p=""+p);var y=o(this._isDirected,u,h,p);if(e.has(this._edgeLabels,y))return m&&(this._edgeLabels[y]=f),this;if(!e.isUndefined(p)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(h),this._edgeLabels[y]=m?f:this._defaultEdgeLabelFn(u,h,p);var C=l(this._isDirected,u,h,p);return u=C.v,h=C.w,Object.freeze(C),this._edgeObjs[y]=C,a(this._preds[h],u),a(this._sucs[u],h),this._in[h][y]=C,this._out[u][y]=C,this._edgeCount++,this},i.prototype.edge=function(u,h,p){var f=arguments.length===1?c(this._isDirected,arguments[0]):o(this._isDirected,u,h,p);return this._edgeLabels[f]},i.prototype.hasEdge=function(u,h,p){var f=arguments.length===1?c(this._isDirected,arguments[0]):o(this._isDirected,u,h,p);return e.has(this._edgeLabels,f)},i.prototype.removeEdge=function(u,h,p){var f=arguments.length===1?c(this._isDirected,arguments[0]):o(this._isDirected,u,h,p),m=this._edgeObjs[f];return m&&(u=m.v,h=m.w,delete this._edgeLabels[f],delete this._edgeObjs[f],s(this._preds[h],u),s(this._sucs[u],h),delete this._in[h][f],delete this._out[u][f],this._edgeCount--),this},i.prototype.inEdges=function(u,h){var p=this._in[u];if(p){var f=e.values(p);return h?e.filter(f,function(m){return m.v===h}):f}},i.prototype.outEdges=function(u,h){var p=this._out[u];if(p){var f=e.values(p);return h?e.filter(f,function(m){return m.w===h}):f}},i.prototype.nodeEdges=function(u,h){var p=this.inEdges(u,h);if(p)return p.concat(this.outEdges(u,h))};function a(u,h){u[h]?u[h]++:u[h]=1}function s(u,h){--u[h]||delete u[h]}function o(u,h,p,f){var m=""+h,x=""+p;if(!u&&m>x){var y=m;m=x,x=y}return m+n+x+n+(e.isUndefined(f)?t:f)}function l(u,h,p,f){var m=""+h,x=""+p;if(!u&&m>x){var y=m;m=x,x=y}var C={v:m,w:x};return f&&(C.name=f),C}function c(u,h){return o(u,h.v,h.w,h.name)}return MT}var BT,n6;function k1e(){return n6||(n6=1,BT="2.1.8"),BT}var DT,i6;function T1e(){return i6||(i6=1,DT={Graph:MM(),version:k1e()}),DT}var RT,a6;function E1e(){if(a6)return RT;a6=1;var e=Oa(),t=MM();RT={write:r,read:a};function r(s){var o={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:i(s)};return e.isUndefined(s.graph())||(o.value=e.clone(s.graph())),o}function n(s){return e.map(s.nodes(),function(o){var l=s.node(o),c=s.parent(o),u={v:o};return e.isUndefined(l)||(u.value=l),e.isUndefined(c)||(u.parent=c),u})}function i(s){return e.map(s.edges(),function(o){var l=s.edge(o),c={v:o.v,w:o.w};return e.isUndefined(o.name)||(c.name=o.name),e.isUndefined(l)||(c.value=l),c})}function a(s){var o=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){o.setNode(l.v,l.value),l.parent&&o.setParent(l.v,l.parent)}),e.each(s.edges,function(l){o.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),o}return RT}var OT,s6;function _1e(){if(s6)return OT;s6=1;var e=Oa();OT=t;function t(r){var n={},i=[],a;function s(o){e.has(n,o)||(n[o]=!0,a.push(o),e.each(r.successors(o),s),e.each(r.predecessors(o),s))}return e.each(r.nodes(),function(o){a=[],s(o),a.length&&i.push(a)}),i}return OT}var IT,o6;function YW(){if(o6)return IT;o6=1;var e=Oa();IT=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var i=this._keyIndices;if(r=String(r),!e.has(i,r)){var a=this._arr,s=a.length;return i[r]=s,a.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var i=this._keyIndices[r];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},t.prototype._heapify=function(r){var n=this._arr,i=2*r,a=i+1,s=r;i<n.length&&(s=n[i].priority<n[s].priority?i:s,a<n.length&&(s=n[a].priority<n[s].priority?a:s),s!==r&&(this._swap(r,s),this._heapify(s)))},t.prototype._decrease=function(r){for(var n=this._arr,i=n[r].priority,a;r!==0&&(a=r>>1,!(n[a].priority<i));)this._swap(r,a),r=a},t.prototype._swap=function(r,n){var i=this._arr,a=this._keyIndices,s=i[r],o=i[n];i[r]=o,i[n]=s,a[o.key]=r,a[s.key]=n},IT}var FT,l6;function XW(){if(l6)return FT;l6=1;var e=Oa(),t=YW();FT=n;var r=e.constant(1);function n(a,s,o,l){return i(a,String(s),o||r,l||function(c){return a.outEdges(c)})}function i(a,s,o,l){var c={},u=new t,h,p,f=function(m){var x=m.v!==h?m.v:m.w,y=c[x],C=o(m),w=p.distance+C;if(C<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+m+" Weight: "+C);w<y.distance&&(y.distance=w,y.predecessor=h,u.decrease(x,w))};for(a.nodes().forEach(function(m){var x=m===s?0:Number.POSITIVE_INFINITY;c[m]={distance:x},u.add(m,x)});u.size()>0&&(h=u.removeMin(),p=c[h],p.distance!==Number.POSITIVE_INFINITY);)l(h).forEach(f);return c}return FT}var jT,c6;function A1e(){if(c6)return jT;c6=1;var e=XW(),t=Oa();jT=r;function r(n,i,a){return t.transform(n.nodes(),function(s,o){s[o]=e(n,o,i,a)},{})}return jT}var PT,u6;function KW(){if(u6)return PT;u6=1;var e=Oa();PT=t;function t(r){var n=0,i=[],a={},s=[];function o(l){var c=a[l]={onStack:!0,lowlink:n,index:n++};if(i.push(l),r.successors(l).forEach(function(p){e.has(a,p)?a[p].onStack&&(c.lowlink=Math.min(c.lowlink,a[p].index)):(o(p),c.lowlink=Math.min(c.lowlink,a[p].lowlink))}),c.lowlink===c.index){var u=[],h;do h=i.pop(),a[h].onStack=!1,u.push(h);while(l!==h);s.push(u)}}return r.nodes().forEach(function(l){e.has(a,l)||o(l)}),s}return PT}var zT,h6;function N1e(){if(h6)return zT;h6=1;var e=Oa(),t=KW();zT=r;function r(n){return e.filter(t(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return zT}var $T,d6;function L1e(){if(d6)return $T;d6=1;var e=Oa();$T=r;var t=e.constant(1);function r(i,a,s){return n(i,a||t,s||function(o){return i.outEdges(o)})}function n(i,a,s){var o={},l=i.nodes();return l.forEach(function(c){o[c]={},o[c][c]={distance:0},l.forEach(function(u){c!==u&&(o[c][u]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(u){var h=u.v===c?u.w:u.v,p=a(u);o[c][h]={distance:p,predecessor:c}})}),l.forEach(function(c){var u=o[c];l.forEach(function(h){var p=o[h];l.forEach(function(f){var m=p[c],x=u[f],y=p[f],C=m.distance+x.distance;C<y.distance&&(y.distance=C,y.predecessor=x.predecessor)})})}),o}return $T}var qT,f6;function ZW(){if(f6)return qT;f6=1;var e=Oa();qT=t,t.CycleException=r;function t(n){var i={},a={},s=[];function o(l){if(e.has(a,l))throw new r;e.has(i,l)||(a[l]=!0,i[l]=!0,e.each(n.predecessors(l),o),delete a[l],s.push(l))}if(e.each(n.sinks(),o),e.size(i)!==n.nodeCount())throw new r;return s}function r(){}return r.prototype=new Error,qT}var HT,p6;function M1e(){if(p6)return HT;p6=1;var e=ZW();HT=t;function t(r){try{e(r)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}return HT}var UT,g6;function QW(){if(g6)return UT;g6=1;var e=Oa();UT=t;function t(n,i,a){e.isArray(i)||(i=[i]);var s=(n.isDirected()?n.successors:n.neighbors).bind(n),o=[],l={};return e.each(i,function(c){if(!n.hasNode(c))throw new Error("Graph does not have node: "+c);r(n,c,a==="post",l,s,o)}),o}function r(n,i,a,s,o,l){e.has(s,i)||(s[i]=!0,a||l.push(i),e.each(o(i),function(c){r(n,c,a,s,o,l)}),a&&l.push(i))}return UT}var GT,m6;function B1e(){if(m6)return GT;m6=1;var e=QW();GT=t;function t(r,n){return e(r,n,"post")}return GT}var WT,v6;function D1e(){if(v6)return WT;v6=1;var e=QW();WT=t;function t(r,n){return e(r,n,"pre")}return WT}var VT,y6;function R1e(){if(y6)return VT;y6=1;var e=Oa(),t=MM(),r=YW();VT=n;function n(i,a){var s=new t,o={},l=new r,c;function u(p){var f=p.v===c?p.w:p.v,m=l.priority(f);if(m!==void 0){var x=a(p);x<m&&(o[f]=c,l.decrease(f,x))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(p){l.add(p,Number.POSITIVE_INFINITY),s.setNode(p)}),l.decrease(i.nodes()[0],0);for(var h=!1;l.size()>0;){if(c=l.removeMin(),e.has(o,c))s.setEdge(c,o[c]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(c).forEach(u)}return s}return VT}var YT,x6;function O1e(){return x6||(x6=1,YT={components:_1e(),dijkstra:XW(),dijkstraAll:A1e(),findCycles:N1e(),floydWarshall:L1e(),isAcyclic:M1e(),postorder:B1e(),preorder:D1e(),prim:R1e(),tarjan:KW(),topsort:ZW()}),YT}var XT,b6;function I1e(){if(b6)return XT;b6=1;var e=T1e();return XT={Graph:e.Graph,json:E1e(),alg:O1e(),version:e.version},XT}var KT,C6;function Za(){if(C6)return KT;C6=1;var e;if(typeof gM=="function")try{e=I1e()}catch{}return e||(e=window.graphlib),KT=e,KT}var ZT,w6;function F1e(){if(w6)return ZT;w6=1;var e=SW(),t=1,r=4;function n(i){return e(i,t|r)}return ZT=n,ZT}var QT,S6;function gx(){if(S6)return QT;S6=1;var e=id(),t=ho(),r=sx(),n=Ra();function i(a,s,o){if(!n(o))return!1;var l=typeof s;return(l=="number"?t(o)&&r(s,o.length):l=="string"&&s in o)?e(o[s],a):!1}return QT=i,QT}var JT,k6;function j1e(){if(k6)return JT;k6=1;var e=px(),t=id(),r=gx(),n=Hc(),i=Object.prototype,a=i.hasOwnProperty,s=e(function(o,l){o=Object(o);var c=-1,u=l.length,h=u>2?l[2]:void 0;for(h&&r(l[0],l[1],h)&&(u=1);++c<u;)for(var p=l[c],f=n(p),m=-1,x=f.length;++m<x;){var y=f[m],C=o[y];(C===void 0||t(C,i[y])&&!a.call(o,y))&&(o[y]=p[y])}return o});return JT=s,JT}var eE,T6;function P1e(){if(T6)return eE;T6=1;var e=fo(),t=ho(),r=Dl();function n(i){return function(a,s,o){var l=Object(a);if(!t(a)){var c=e(s,3);a=r(a),s=function(h){return c(l[h],h,l)}}var u=i(a,s,o);return u>-1?l[c?a[u]:u]:void 0}}return eE=n,eE}var tE,E6;function z1e(){if(E6)return tE;E6=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return tE=t,tE}var rE,_6;function $1e(){if(_6)return rE;_6=1;var e=z1e(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return rE=r,rE}var nE,A6;function q1e(){if(A6)return nE;A6=1;var e=$1e(),t=Ra(),r=ld(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var h=a.test(c);return h||s.test(c)?o(c.slice(2),h?2:8):i.test(c)?n:+c}return nE=l,nE}var iE,N6;function JW(){if(N6)return iE;N6=1;var e=q1e(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return iE=n,iE}var aE,L6;function H1e(){if(L6)return aE;L6=1;var e=JW();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return aE=t,aE}var sE,M6;function U1e(){if(M6)return sE;M6=1;var e=GW(),t=fo(),r=H1e(),n=Math.max;function i(a,s,o){var l=a==null?0:a.length;if(!l)return-1;var c=o==null?0:r(o);return c<0&&(c=n(l+c,0)),e(a,t(s,3),c)}return sE=i,sE}var oE,B6;function G1e(){if(B6)return oE;B6=1;var e=P1e(),t=U1e(),r=e(t);return oE=r,oE}var lE,D6;function eV(){if(D6)return lE;D6=1;var e=LM();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return lE=t,lE}var cE,R6;function W1e(){if(R6)return cE;R6=1;var e=EM(),t=kW(),r=Hc();function n(i,a){return i==null?i:e(i,t(a),r)}return cE=n,cE}var uE,O6;function V1e(){if(O6)return uE;O6=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return uE=e,uE}var hE,I6;function Y1e(){if(I6)return hE;I6=1;var e=ix(),t=_M(),r=fo();function n(i,a){var s={};return a=r(a,3),t(i,function(o,l,c){e(s,l,a(o,l,c))}),s}return hE=n,hE}var dE,F6;function BM(){if(F6)return dE;F6=1;var e=ld();function t(r,n,i){for(var a=-1,s=r.length;++a<s;){var o=r[a],l=n(o);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,u=o}return u}return dE=t,dE}var fE,j6;function X1e(){if(j6)return fE;j6=1;function e(t,r){return t>r}return fE=e,fE}var pE,P6;function K1e(){if(P6)return pE;P6=1;var e=BM(),t=X1e(),r=Uc();function n(i){return i&&i.length?e(i,r,t):void 0}return pE=n,pE}var gE,z6;function tV(){if(z6)return gE;z6=1;var e=ix(),t=id();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return gE=r,gE}var mE,$6;function Z1e(){if($6)return mE;$6=1;var e=$c(),t=cx(),r=Ts(),n="[object Object]",i=Function.prototype,a=Object.prototype,s=i.toString,o=a.hasOwnProperty,l=s.call(Object);function c(u){if(!r(u)||e(u)!=n)return!1;var h=t(u);if(h===null)return!0;var p=o.call(h,"constructor")&&h.constructor;return typeof p=="function"&&p instanceof p&&s.call(p)==l}return mE=c,mE}var vE,q6;function rV(){if(q6)return vE;q6=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return vE=e,vE}var yE,H6;function Q1e(){if(H6)return yE;H6=1;var e=ug(),t=Hc();function r(n){return e(n,t(n))}return yE=r,yE}var xE,U6;function J1e(){if(U6)return xE;U6=1;var e=tV(),t=hW(),r=bW(),n=dW(),i=wW(),a=hg(),s=Bn(),o=WW(),l=sd(),c=cg(),u=Ra(),h=Z1e(),p=dg(),f=rV(),m=Q1e();function x(y,C,w,S,T,_,A){var E=f(y,w),L=f(C,w),z=A.get(L);if(z){e(y,w,z);return}var D=_?_(E,L,w+"",y,C,A):void 0,P=D===void 0;if(P){var q=s(L),W=!q&&l(L),B=!q&&!W&&p(L);D=L,q||W||B?s(E)?D=E:o(E)?D=n(E):W?(P=!1,D=t(L,!0)):B?(P=!1,D=r(L,!0)):D=[]:h(L)||a(L)?(D=E,a(E)?D=m(E):(!u(E)||c(E))&&(D=i(L))):P=!1}P&&(A.set(L,D),T(D,L,S,_,A),A.delete(L)),e(y,w,D)}return xE=x,xE}var bE,G6;function eCe(){if(G6)return bE;G6=1;var e=nx(),t=tV(),r=EM(),n=J1e(),i=Ra(),a=Hc(),s=rV();function o(l,c,u,h,p){l!==c&&r(c,function(f,m){if(p||(p=new e),i(f))n(l,c,m,u,o,h,p);else{var x=h?h(s(l,m),f,m+"",l,c,p):void 0;x===void 0&&(x=f),t(l,m,x)}},a)}return bE=o,bE}var CE,W6;function tCe(){if(W6)return CE;W6=1;var e=px(),t=gx();function r(n){return e(function(i,a){var s=-1,o=a.length,l=o>1?a[o-1]:void 0,c=o>2?a[2]:void 0;for(l=n.length>3&&typeof l=="function"?(o--,l):void 0,c&&t(a[0],a[1],c)&&(l=o<3?void 0:l,o=1),i=Object(i);++s<o;){var u=a[s];u&&n(i,u,s,l)}return i})}return CE=r,CE}var wE,V6;function rCe(){if(V6)return wE;V6=1;var e=eCe(),t=tCe(),r=t(function(n,i,a){e(n,i,a)});return wE=r,wE}var SE,Y6;function nV(){if(Y6)return SE;Y6=1;function e(t,r){return t<r}return SE=e,SE}var kE,X6;function nCe(){if(X6)return kE;X6=1;var e=BM(),t=nV(),r=Uc();function n(i){return i&&i.length?e(i,r,t):void 0}return kE=n,kE}var TE,K6;function iCe(){if(K6)return TE;K6=1;var e=BM(),t=fo(),r=nV();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return TE=n,TE}var EE,Z6;function aCe(){if(Z6)return EE;Z6=1;var e=Ja(),t=function(){return e.Date.now()};return EE=t,EE}var _E,Q6;function sCe(){if(Q6)return _E;Q6=1;var e=ax(),t=dx(),r=sx(),n=Ra(),i=fg();function a(s,o,l,c){if(!n(s))return s;o=t(o,s);for(var u=-1,h=o.length,p=h-1,f=s;f!=null&&++u<h;){var m=i(o[u]),x=l;if(m==="__proto__"||m==="constructor"||m==="prototype")return s;if(u!=p){var y=f[m];x=c?c(y,m,f):void 0,x===void 0&&(x=n(y)?y:r(o[u+1])?[]:{})}e(f,m,x),f=f[m]}return s}return _E=a,_E}var AE,J6;function oCe(){if(J6)return AE;J6=1;var e=fx(),t=sCe(),r=dx();function n(i,a,s){for(var o=-1,l=a.length,c={};++o<l;){var u=a[o],h=e(i,u);s(h,u)&&t(c,r(u,i),h)}return c}return AE=n,AE}var NE,e$;function lCe(){if(e$)return NE;e$=1;var e=oCe(),t=OW();function r(n,i){return e(n,i,function(a,s){return t(n,s)})}return NE=r,NE}var LE,t$;function cCe(){if(t$)return LE;t$=1;var e=eV(),t=HW(),r=UW();function n(i){return r(t(i,void 0,e),i+"")}return LE=n,LE}var ME,r$;function uCe(){if(r$)return ME;r$=1;var e=lCe(),t=cCe(),r=t(function(n,i){return n==null?{}:e(n,i)});return ME=r,ME}var BE,n$;function hCe(){if(n$)return BE;n$=1;var e=Math.ceil,t=Math.max;function r(n,i,a,s){for(var o=-1,l=t(e((i-n)/(a||1)),0),c=Array(l);l--;)c[s?l:++o]=n,n+=a;return c}return BE=r,BE}var DE,i$;function dCe(){if(i$)return DE;i$=1;var e=hCe(),t=gx(),r=JW();function n(i){return function(a,s,o){return o&&typeof o!="number"&&t(a,s,o)&&(s=o=void 0),a=r(a),s===void 0?(s=a,a=0):s=r(s),o=o===void 0?a<s?1:-1:r(o),e(a,s,o,i)}}return DE=n,DE}var RE,a$;function fCe(){if(a$)return RE;a$=1;var e=dCe(),t=e();return RE=t,RE}var OE,s$;function pCe(){if(s$)return OE;s$=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return OE=e,OE}var IE,o$;function gCe(){if(o$)return IE;o$=1;var e=ld();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,s=r===r,o=e(r),l=n!==void 0,c=n===null,u=n===n,h=e(n);if(!c&&!h&&!o&&r>n||o&&l&&u&&!c&&!h||a&&l&&u||!i&&u||!s)return 1;if(!a&&!o&&!h&&r<n||h&&i&&s&&!a&&!o||c&&i&&s||!l&&s||!u)return-1}return 0}return IE=t,IE}var FE,l$;function mCe(){if(l$)return FE;l$=1;var e=gCe();function t(r,n,i){for(var a=-1,s=r.criteria,o=n.criteria,l=s.length,c=i.length;++a<l;){var u=e(s[a],o[a]);if(u){if(a>=c)return u;var h=i[a];return u*(h=="desc"?-1:1)}}return r.index-n.index}return FE=t,FE}var jE,c$;function vCe(){if(c$)return jE;c$=1;var e=hx(),t=fx(),r=fo(),n=zW(),i=pCe(),a=ox(),s=mCe(),o=Uc(),l=Bn();function c(u,h,p){h.length?h=e(h,function(x){return l(x)?function(y){return t(y,x.length===1?x[0]:x)}:x}):h=[o];var f=-1;h=e(h,a(r));var m=n(u,function(x,y,C){var w=e(h,function(S){return S(x)});return{criteria:w,index:++f,value:x}});return i(m,function(x,y){return s(x,y,p)})}return jE=c,jE}var PE,u$;function yCe(){if(u$)return PE;u$=1;var e=LM(),t=vCe(),r=px(),n=gx(),i=r(function(a,s){if(a==null)return[];var o=s.length;return o>1&&n(a,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(a,e(s,1),[])});return PE=i,PE}var zE,h$;function xCe(){if(h$)return zE;h$=1;var e=DW(),t=0;function r(n){var i=++t;return e(n)+i}return zE=r,zE}var $E,d$;function bCe(){if(d$)return $E;d$=1;function e(t,r,n){for(var i=-1,a=t.length,s=r.length,o={};++i<a;){var l=i<s?r[i]:void 0;n(o,t[i],l)}return o}return $E=e,$E}var qE,f$;function CCe(){if(f$)return qE;f$=1;var e=ax(),t=bCe();function r(n,i){return t(n||[],i||[],e)}return qE=r,qE}var HE,p$;function un(){if(p$)return HE;p$=1;var e;if(typeof gM=="function")try{e={cloneDeep:F1e(),constant:TM(),defaults:j1e(),each:EW(),filter:FW(),find:G1e(),flatten:eV(),forEach:TW(),forIn:W1e(),has:jW(),isUndefined:PW(),last:V1e(),map:$W(),mapValues:Y1e(),max:K1e(),merge:rCe(),min:nCe(),minBy:iCe(),now:aCe(),pick:uCe(),range:fCe(),reduce:qW(),sortBy:yCe(),uniqueId:xCe(),values:VW(),zipObject:CCe()}}catch{}return e||(e=window._),HE=e,HE}var UE,g$;function wCe(){if(g$)return UE;g$=1,UE=e;function e(){var n={};n._next=n._prev=n,this._sentinel=n}e.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return t(i),i},e.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&t(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},e.prototype.toString=function(){for(var n=[],i=this._sentinel,a=i._prev;a!==i;)n.push(JSON.stringify(a,r)),a=a._prev;return"["+n.join(", ")+"]"};function t(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function r(n,i){if(n!=="_next"&&n!=="_prev")return i}return UE}var GE,m$;function SCe(){if(m$)return GE;m$=1;var e=un(),t=Za().Graph,r=wCe();GE=i;var n=e.constant(1);function i(c,u){if(c.nodeCount()<=1)return[];var h=o(c,u||n),p=a(h.graph,h.buckets,h.zeroIdx);return e.flatten(e.map(p,function(f){return c.outEdges(f.v,f.w)}),!0)}function a(c,u,h){for(var p=[],f=u[u.length-1],m=u[0],x;c.nodeCount();){for(;x=m.dequeue();)s(c,u,h,x);for(;x=f.dequeue();)s(c,u,h,x);if(c.nodeCount()){for(var y=u.length-2;y>0;--y)if(x=u[y].dequeue(),x){p=p.concat(s(c,u,h,x,!0));break}}}return p}function s(c,u,h,p,f){var m=f?[]:void 0;return e.forEach(c.inEdges(p.v),function(x){var y=c.edge(x),C=c.node(x.v);f&&m.push({v:x.v,w:x.w}),C.out-=y,l(u,h,C)}),e.forEach(c.outEdges(p.v),function(x){var y=c.edge(x),C=x.w,w=c.node(C);w.in-=y,l(u,h,w)}),c.removeNode(p.v),m}function o(c,u){var h=new t,p=0,f=0;e.forEach(c.nodes(),function(y){h.setNode(y,{v:y,in:0,out:0})}),e.forEach(c.edges(),function(y){var C=h.edge(y.v,y.w)||0,w=u(y),S=C+w;h.setEdge(y.v,y.w,S),f=Math.max(f,h.node(y.v).out+=w),p=Math.max(p,h.node(y.w).in+=w)});var m=e.range(f+p+3).map(function(){return new r}),x=p+1;return e.forEach(h.nodes(),function(y){l(m,x,h.node(y))}),{graph:h,buckets:m,zeroIdx:x}}function l(c,u,h){h.out?h.in?c[h.out-h.in+u].enqueue(h):c[c.length-1].enqueue(h):c[0].enqueue(h)}return GE}var WE,v$;function kCe(){if(v$)return WE;v$=1;var e=un(),t=SCe();WE={run:r,undo:i};function r(a){var s=a.graph().acyclicer==="greedy"?t(a,o(a)):n(a);e.forEach(s,function(l){var c=a.edge(l);a.removeEdge(l),c.forwardName=l.name,c.reversed=!0,a.setEdge(l.w,l.v,c,e.uniqueId("rev"))});function o(l){return function(c){return l.edge(c).weight}}}function n(a){var s=[],o={},l={};function c(u){e.has(l,u)||(l[u]=!0,o[u]=!0,e.forEach(a.outEdges(u),function(h){e.has(o,h.w)?s.push(h):c(h.w)}),delete o[u])}return e.forEach(a.nodes(),c),s}function i(a){e.forEach(a.edges(),function(s){var o=a.edge(s);if(o.reversed){a.removeEdge(s);var l=o.forwardName;delete o.reversed,delete o.forwardName,a.setEdge(s.w,s.v,o,l)}})}return WE}var VE,y$;function Zi(){if(y$)return VE;y$=1;var e=un(),t=Za().Graph;VE={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:s,intersectRect:o,buildLayerMatrix:l,normalizeRanks:c,removeEmptyRanks:u,addBorderNode:h,maxRank:p,partition:f,time:m,notime:x};function r(y,C,w,S){var T;do T=e.uniqueId(S);while(y.hasNode(T));return w.dummy=C,y.setNode(T,w),T}function n(y){var C=new t().setGraph(y.graph());return e.forEach(y.nodes(),function(w){C.setNode(w,y.node(w))}),e.forEach(y.edges(),function(w){var S=C.edge(w.v,w.w)||{weight:0,minlen:1},T=y.edge(w);C.setEdge(w.v,w.w,{weight:S.weight+T.weight,minlen:Math.max(S.minlen,T.minlen)})}),C}function i(y){var C=new t({multigraph:y.isMultigraph()}).setGraph(y.graph());return e.forEach(y.nodes(),function(w){y.children(w).length||C.setNode(w,y.node(w))}),e.forEach(y.edges(),function(w){C.setEdge(w,y.edge(w))}),C}function a(y){var C=e.map(y.nodes(),function(w){var S={};return e.forEach(y.outEdges(w),function(T){S[T.w]=(S[T.w]||0)+y.edge(T).weight}),S});return e.zipObject(y.nodes(),C)}function s(y){var C=e.map(y.nodes(),function(w){var S={};return e.forEach(y.inEdges(w),function(T){S[T.v]=(S[T.v]||0)+y.edge(T).weight}),S});return e.zipObject(y.nodes(),C)}function o(y,C){var w=y.x,S=y.y,T=C.x-w,_=C.y-S,A=y.width/2,E=y.height/2;if(!T&&!_)throw new Error("Not possible to find intersection inside of the rectangle");var L,z;return Math.abs(_)*A>Math.abs(T)*E?(_<0&&(E=-E),L=E*T/_,z=E):(T<0&&(A=-A),L=A,z=A*_/T),{x:w+L,y:S+z}}function l(y){var C=e.map(e.range(p(y)+1),function(){return[]});return e.forEach(y.nodes(),function(w){var S=y.node(w),T=S.rank;e.isUndefined(T)||(C[T][S.order]=w)}),C}function c(y){var C=e.min(e.map(y.nodes(),function(w){return y.node(w).rank}));e.forEach(y.nodes(),function(w){var S=y.node(w);e.has(S,"rank")&&(S.rank-=C)})}function u(y){var C=e.min(e.map(y.nodes(),function(_){return y.node(_).rank})),w=[];e.forEach(y.nodes(),function(_){var A=y.node(_).rank-C;w[A]||(w[A]=[]),w[A].push(_)});var S=0,T=y.graph().nodeRankFactor;e.forEach(w,function(_,A){e.isUndefined(_)&&A%T!==0?--S:S&&e.forEach(_,function(E){y.node(E).rank+=S})})}function h(y,C,w,S){var T={width:0,height:0};return arguments.length>=4&&(T.rank=w,T.order=S),r(y,"border",T,C)}function p(y){return e.max(e.map(y.nodes(),function(C){var w=y.node(C).rank;if(!e.isUndefined(w))return w}))}function f(y,C){var w={lhs:[],rhs:[]};return e.forEach(y,function(S){C(S)?w.lhs.push(S):w.rhs.push(S)}),w}function m(y,C){var w=e.now();try{return C()}finally{console.log(y+" time: "+(e.now()-w)+"ms")}}function x(y,C){return C()}return VE}var YE,x$;function TCe(){if(x$)return YE;x$=1;var e=un(),t=Zi();YE={run:r,undo:i};function r(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(s){n(a,s)})}function n(a,s){var o=s.v,l=a.node(o).rank,c=s.w,u=a.node(c).rank,h=s.name,p=a.edge(s),f=p.labelRank;if(u!==l+1){a.removeEdge(s);var m,x,y;for(y=0,++l;l<u;++y,++l)p.points=[],x={width:0,height:0,edgeLabel:p,edgeObj:s,rank:l},m=t.addDummyNode(a,"edge",x,"_d"),l===f&&(x.width=p.width,x.height=p.height,x.dummy="edge-label",x.labelpos=p.labelpos),a.setEdge(o,m,{weight:p.weight},h),y===0&&a.graph().dummyChains.push(m),o=m;a.setEdge(o,c,{weight:p.weight},h)}}function i(a){e.forEach(a.graph().dummyChains,function(s){var o=a.node(s),l=o.edgeLabel,c;for(a.setEdge(o.edgeObj,l);o.dummy;)c=a.successors(s)[0],a.removeNode(s),l.points.push({x:o.x,y:o.y}),o.dummy==="edge-label"&&(l.x=o.x,l.y=o.y,l.width=o.width,l.height=o.height),s=c,o=a.node(s)})}return YE}var XE,b$;function Oy(){if(b$)return XE;b$=1;var e=un();XE={longestPath:t,slack:r};function t(n){var i={};function a(s){var o=n.node(s);if(e.has(i,s))return o.rank;i[s]=!0;var l=e.min(e.map(n.outEdges(s),function(c){return a(c.w)-n.edge(c).minlen}));return(l===Number.POSITIVE_INFINITY||l===void 0||l===null)&&(l=0),o.rank=l}e.forEach(n.sources(),a)}function r(n,i){return n.node(i.w).rank-n.node(i.v).rank-n.edge(i).minlen}return XE}var KE,C$;function iV(){if(C$)return KE;C$=1;var e=un(),t=Za().Graph,r=Oy().slack;KE=n;function n(o){var l=new t({directed:!1}),c=o.nodes()[0],u=o.nodeCount();l.setNode(c,{});for(var h,p;i(l,o)<u;)h=a(l,o),p=l.hasNode(h.v)?r(o,h):-r(o,h),s(l,o,p);return l}function i(o,l){function c(u){e.forEach(l.nodeEdges(u),function(h){var p=h.v,f=u===p?h.w:p;!o.hasNode(f)&&!r(l,h)&&(o.setNode(f,{}),o.setEdge(u,f,{}),c(f))})}return e.forEach(o.nodes(),c),o.nodeCount()}function a(o,l){return e.minBy(l.edges(),function(c){if(o.hasNode(c.v)!==o.hasNode(c.w))return r(l,c)})}function s(o,l,c){e.forEach(o.nodes(),function(u){l.node(u).rank+=c})}return KE}var ZE,w$;function ECe(){if(w$)return ZE;w$=1;var e=un(),t=iV(),r=Oy().slack,n=Oy().longestPath,i=Za().alg.preorder,a=Za().alg.postorder,s=Zi().simplify;ZE=o,o.initLowLimValues=h,o.initCutValues=l,o.calcCutValue=u,o.leaveEdge=f,o.enterEdge=m,o.exchangeEdges=x;function o(S){S=s(S),n(S);var T=t(S);h(T),l(T,S);for(var _,A;_=f(T);)A=m(T,S,_),x(T,S,_,A)}function l(S,T){var _=a(S,S.nodes());_=_.slice(0,_.length-1),e.forEach(_,function(A){c(S,T,A)})}function c(S,T,_){var A=S.node(_),E=A.parent;S.edge(_,E).cutvalue=u(S,T,_)}function u(S,T,_){var A=S.node(_),E=A.parent,L=!0,z=T.edge(_,E),D=0;return z||(L=!1,z=T.edge(E,_)),D=z.weight,e.forEach(T.nodeEdges(_),function(P){var q=P.v===_,W=q?P.w:P.v;if(W!==E){var B=q===L,j=T.edge(P).weight;if(D+=B?j:-j,C(S,_,W)){var M=S.edge(_,W).cutvalue;D+=B?-M:M}}}),D}function h(S,T){arguments.length<2&&(T=S.nodes()[0]),p(S,{},1,T)}function p(S,T,_,A,E){var L=_,z=S.node(A);return T[A]=!0,e.forEach(S.neighbors(A),function(D){e.has(T,D)||(_=p(S,T,_,D,A))}),z.low=L,z.lim=_++,E?z.parent=E:delete z.parent,_}function f(S){return e.find(S.edges(),function(T){return S.edge(T).cutvalue<0})}function m(S,T,_){var A=_.v,E=_.w;T.hasEdge(A,E)||(A=_.w,E=_.v);var L=S.node(A),z=S.node(E),D=L,P=!1;L.lim>z.lim&&(D=z,P=!0);var q=e.filter(T.edges(),function(W){return P===w(S,S.node(W.v),D)&&P!==w(S,S.node(W.w),D)});return e.minBy(q,function(W){return r(T,W)})}function x(S,T,_,A){var E=_.v,L=_.w;S.removeEdge(E,L),S.setEdge(A.v,A.w,{}),h(S),l(S,T),y(S,T)}function y(S,T){var _=e.find(S.nodes(),function(E){return!T.node(E).parent}),A=i(S,_);A=A.slice(1),e.forEach(A,function(E){var L=S.node(E).parent,z=T.edge(E,L),D=!1;z||(z=T.edge(L,E),D=!0),T.node(E).rank=T.node(L).rank+(D?z.minlen:-z.minlen)})}function C(S,T,_){return S.hasEdge(T,_)}function w(S,T,_){return _.low<=T.lim&&T.lim<=_.lim}return ZE}var QE,S$;function _Ce(){if(S$)return QE;S$=1;var e=Oy(),t=e.longestPath,r=iV(),n=ECe();QE=i;function i(l){switch(l.graph().ranker){case"network-simplex":o(l);break;case"tight-tree":s(l);break;case"longest-path":a(l);break;default:o(l)}}var a=t;function s(l){t(l),r(l)}function o(l){n(l)}return QE}var JE,k$;function ACe(){if(k$)return JE;k$=1;var e=un();JE=t;function t(i){var a=n(i);e.forEach(i.graph().dummyChains,function(s){for(var o=i.node(s),l=o.edgeObj,c=r(i,a,l.v,l.w),u=c.path,h=c.lca,p=0,f=u[p],m=!0;s!==l.w;){if(o=i.node(s),m){for(;(f=u[p])!==h&&i.node(f).maxRank<o.rank;)p++;f===h&&(m=!1)}if(!m){for(;p<u.length-1&&i.node(f=u[p+1]).minRank<=o.rank;)p++;f=u[p]}i.setParent(s,f),s=i.successors(s)[0]}})}function r(i,a,s,o){var l=[],c=[],u=Math.min(a[s].low,a[o].low),h=Math.max(a[s].lim,a[o].lim),p,f;p=s;do p=i.parent(p),l.push(p);while(p&&(a[p].low>u||h>a[p].lim));for(f=p,p=o;(p=i.parent(p))!==f;)c.push(p);return{path:l.concat(c.reverse()),lca:f}}function n(i){var a={},s=0;function o(l){var c=s;e.forEach(i.children(l),o),a[l]={low:c,lim:s++}}return e.forEach(i.children(),o),a}return JE}var e_,T$;function NCe(){if(T$)return e_;T$=1;var e=un(),t=Zi();e_={run:r,cleanup:s};function r(o){var l=t.addDummyNode(o,"root",{},"_root"),c=i(o),u=e.max(e.values(c))-1,h=2*u+1;o.graph().nestingRoot=l,e.forEach(o.edges(),function(f){o.edge(f).minlen*=h});var p=a(o)+1;e.forEach(o.children(),function(f){n(o,l,h,p,u,c,f)}),o.graph().nodeRankFactor=h}function n(o,l,c,u,h,p,f){var m=o.children(f);if(!m.length){f!==l&&o.setEdge(l,f,{weight:0,minlen:c});return}var x=t.addBorderNode(o,"_bt"),y=t.addBorderNode(o,"_bb"),C=o.node(f);o.setParent(x,f),C.borderTop=x,o.setParent(y,f),C.borderBottom=y,e.forEach(m,function(w){n(o,l,c,u,h,p,w);var S=o.node(w),T=S.borderTop?S.borderTop:w,_=S.borderBottom?S.borderBottom:w,A=S.borderTop?u:2*u,E=T!==_?1:h-p[f]+1;o.setEdge(x,T,{weight:A,minlen:E,nestingEdge:!0}),o.setEdge(_,y,{weight:A,minlen:E,nestingEdge:!0})}),o.parent(f)||o.setEdge(l,x,{weight:0,minlen:h+p[f]})}function i(o){var l={};function c(u,h){var p=o.children(u);p&&p.length&&e.forEach(p,function(f){c(f,h+1)}),l[u]=h}return e.forEach(o.children(),function(u){c(u,1)}),l}function a(o){return e.reduce(o.edges(),function(l,c){return l+o.edge(c).weight},0)}function s(o){var l=o.graph();o.removeNode(l.nestingRoot),delete l.nestingRoot,e.forEach(o.edges(),function(c){var u=o.edge(c);u.nestingEdge&&o.removeEdge(c)})}return e_}var t_,E$;function LCe(){if(E$)return t_;E$=1;var e=un(),t=Zi();t_=r;function r(i){function a(s){var o=i.children(s),l=i.node(s);if(o.length&&e.forEach(o,a),e.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var c=l.minRank,u=l.maxRank+1;c<u;++c)n(i,"borderLeft","_bl",s,l,c),n(i,"borderRight","_br",s,l,c)}}e.forEach(i.children(),a)}function n(i,a,s,o,l,c){var u={width:0,height:0,rank:c,borderType:a},h=l[a][c-1],p=t.addDummyNode(i,"border",u,s);l[a][c]=p,i.setParent(p,o),h&&i.setEdge(h,p,{weight:1})}return t_}var r_,_$;function MCe(){if(_$)return r_;_$=1;var e=un();r_={adjust:t,undo:r};function t(c){var u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(c)}function r(c){var u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&a(c),(u==="lr"||u==="rl")&&(o(c),n(c))}function n(c){e.forEach(c.nodes(),function(u){i(c.node(u))}),e.forEach(c.edges(),function(u){i(c.edge(u))})}function i(c){var u=c.width;c.width=c.height,c.height=u}function a(c){e.forEach(c.nodes(),function(u){s(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,s),e.has(h,"y")&&s(h)})}function s(c){c.y=-c.y}function o(c){e.forEach(c.nodes(),function(u){l(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,l),e.has(h,"x")&&l(h)})}function l(c){var u=c.x;c.x=c.y,c.y=u}return r_}var n_,A$;function BCe(){if(A$)return n_;A$=1;var e=un();n_=t;function t(r){var n={},i=e.filter(r.nodes(),function(c){return!r.children(c).length}),a=e.max(e.map(i,function(c){return r.node(c).rank})),s=e.map(e.range(a+1),function(){return[]});function o(c){if(!e.has(n,c)){n[c]=!0;var u=r.node(c);s[u.rank].push(c),e.forEach(r.successors(c),o)}}var l=e.sortBy(i,function(c){return r.node(c).rank});return e.forEach(l,o),s}return n_}var i_,N$;function DCe(){if(N$)return i_;N$=1;var e=un();i_=t;function t(n,i){for(var a=0,s=1;s<i.length;++s)a+=r(n,i[s-1],i[s]);return a}function r(n,i,a){for(var s=e.zipObject(a,e.map(a,function(p,f){return f})),o=e.flatten(e.map(i,function(p){return e.sortBy(e.map(n.outEdges(p),function(f){return{pos:s[f.w],weight:n.edge(f).weight}}),"pos")}),!0),l=1;l<a.length;)l<<=1;var c=2*l-1;l-=1;var u=e.map(new Array(c),function(){return 0}),h=0;return e.forEach(o.forEach(function(p){var f=p.pos+l;u[f]+=p.weight;for(var m=0;f>0;)f%2&&(m+=u[f+1]),f=f-1>>1,u[f]+=p.weight;h+=p.weight*m})),h}return i_}var a_,L$;function RCe(){if(L$)return a_;L$=1;var e=un();a_=t;function t(r,n){return e.map(n,function(i){var a=r.inEdges(i);if(a.length){var s=e.reduce(a,function(o,l){var c=r.edge(l),u=r.node(l.v);return{sum:o.sum+c.weight*u.order,weight:o.weight+c.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return a_}var s_,M$;function OCe(){if(M$)return s_;M$=1;var e=un();s_=t;function t(i,a){var s={};e.forEach(i,function(l,c){var u=s[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:c};e.isUndefined(l.barycenter)||(u.barycenter=l.barycenter,u.weight=l.weight)}),e.forEach(a.edges(),function(l){var c=s[l.v],u=s[l.w];!e.isUndefined(c)&&!e.isUndefined(u)&&(u.indegree++,c.out.push(s[l.w]))});var o=e.filter(s,function(l){return!l.indegree});return r(o)}function r(i){var a=[];function s(c){return function(u){u.merged||(e.isUndefined(u.barycenter)||e.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&n(c,u)}}function o(c){return function(u){u.in.push(c),--u.indegree===0&&i.push(u)}}for(;i.length;){var l=i.pop();a.push(l),e.forEach(l.in.reverse(),s(l)),e.forEach(l.out,o(l))}return e.map(e.filter(a,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function n(i,a){var s=0,o=0;i.weight&&(s+=i.barycenter*i.weight,o+=i.weight),a.weight&&(s+=a.barycenter*a.weight,o+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=s/o,i.weight=o,i.i=Math.min(a.i,i.i),a.merged=!0}return s_}var o_,B$;function ICe(){if(B$)return o_;B$=1;var e=un(),t=Zi();o_=r;function r(a,s){var o=t.partition(a,function(x){return e.has(x,"barycenter")}),l=o.lhs,c=e.sortBy(o.rhs,function(x){return-x.i}),u=[],h=0,p=0,f=0;l.sort(i(!!s)),f=n(u,c,f),e.forEach(l,function(x){f+=x.vs.length,u.push(x.vs),h+=x.barycenter*x.weight,p+=x.weight,f=n(u,c,f)});var m={vs:e.flatten(u,!0)};return p&&(m.barycenter=h/p,m.weight=p),m}function n(a,s,o){for(var l;s.length&&(l=e.last(s)).i<=o;)s.pop(),a.push(l.vs),o++;return o}function i(a){return function(s,o){return s.barycenter<o.barycenter?-1:s.barycenter>o.barycenter?1:a?o.i-s.i:s.i-o.i}}return o_}var l_,D$;function FCe(){if(D$)return l_;D$=1;var e=un(),t=RCe(),r=OCe(),n=ICe();l_=i;function i(o,l,c,u){var h=o.children(l),p=o.node(l),f=p?p.borderLeft:void 0,m=p?p.borderRight:void 0,x={};f&&(h=e.filter(h,function(_){return _!==f&&_!==m}));var y=t(o,h);e.forEach(y,function(_){if(o.children(_.v).length){var A=i(o,_.v,c,u);x[_.v]=A,e.has(A,"barycenter")&&s(_,A)}});var C=r(y,c);a(C,x);var w=n(C,u);if(f&&(w.vs=e.flatten([f,w.vs,m],!0),o.predecessors(f).length)){var S=o.node(o.predecessors(f)[0]),T=o.node(o.predecessors(m)[0]);e.has(w,"barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+S.order+T.order)/(w.weight+2),w.weight+=2}return w}function a(o,l){e.forEach(o,function(c){c.vs=e.flatten(c.vs.map(function(u){return l[u]?l[u].vs:u}),!0)})}function s(o,l){e.isUndefined(o.barycenter)?(o.barycenter=l.barycenter,o.weight=l.weight):(o.barycenter=(o.barycenter*o.weight+l.barycenter*l.weight)/(o.weight+l.weight),o.weight+=l.weight)}return l_}var c_,R$;function jCe(){if(R$)return c_;R$=1;var e=un(),t=Za().Graph;c_=r;function r(i,a,s){var o=n(i),l=new t({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(c){return i.node(c)});return e.forEach(i.nodes(),function(c){var u=i.node(c),h=i.parent(c);(u.rank===a||u.minRank<=a&&a<=u.maxRank)&&(l.setNode(c),l.setParent(c,h||o),e.forEach(i[s](c),function(p){var f=p.v===c?p.w:p.v,m=l.edge(f,c),x=e.isUndefined(m)?0:m.weight;l.setEdge(f,c,{weight:i.edge(p).weight+x})}),e.has(u,"minRank")&&l.setNode(c,{borderLeft:u.borderLeft[a],borderRight:u.borderRight[a]}))}),l}function n(i){for(var a;i.hasNode(a=e.uniqueId("_root")););return a}return c_}var u_,O$;function PCe(){if(O$)return u_;O$=1;var e=un();u_=t;function t(r,n,i){var a={},s;e.forEach(i,function(o){for(var l=r.parent(o),c,u;l;){if(c=r.parent(l),c?(u=a[c],a[c]=l):(u=s,s=l),u&&u!==l){n.setEdge(u,l);return}l=c}})}return u_}var h_,I$;function zCe(){if(I$)return h_;I$=1;var e=un(),t=BCe(),r=DCe(),n=FCe(),i=jCe(),a=PCe(),s=Za().Graph,o=Zi();h_=l;function l(p){var f=o.maxRank(p),m=c(p,e.range(1,f+1),"inEdges"),x=c(p,e.range(f-1,-1,-1),"outEdges"),y=t(p);h(p,y);for(var C=Number.POSITIVE_INFINITY,w,S=0,T=0;T<4;++S,++T){u(S%2?m:x,S%4>=2),y=o.buildLayerMatrix(p);var _=r(p,y);_<C&&(T=0,w=e.cloneDeep(y),C=_)}h(p,w)}function c(p,f,m){return e.map(f,function(x){return i(p,x,m)})}function u(p,f){var m=new s;e.forEach(p,function(x){var y=x.graph().root,C=n(x,y,m,f);e.forEach(C.vs,function(w,S){x.node(w).order=S}),a(x,m,C.vs)})}function h(p,f){e.forEach(f,function(m){e.forEach(m,function(x,y){p.node(x).order=y})})}return h_}var d_,F$;function $Ce(){if(F$)return d_;F$=1;var e=un(),t=Za().Graph,r=Zi();d_={positionX:m,findType1Conflicts:n,findType2Conflicts:i,addConflict:s,hasConflict:o,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:p,findSmallestWidthAlignment:h,balance:f};function n(C,w){var S={};function T(_,A){var E=0,L=0,z=_.length,D=e.last(A);return e.forEach(A,function(P,q){var W=a(C,P),B=W?C.node(W).order:z;(W||P===D)&&(e.forEach(A.slice(L,q+1),function(j){e.forEach(C.predecessors(j),function(M){var I=C.node(M),F=I.order;(F<E||B<F)&&!(I.dummy&&C.node(j).dummy)&&s(S,M,j)})}),L=q+1,E=B)}),A}return e.reduce(w,T),S}function i(C,w){var S={};function T(A,E,L,z,D){var P;e.forEach(e.range(E,L),function(q){P=A[q],C.node(P).dummy&&e.forEach(C.predecessors(P),function(W){var B=C.node(W);B.dummy&&(B.order<z||B.order>D)&&s(S,W,P)})})}function _(A,E){var L=-1,z,D=0;return e.forEach(E,function(P,q){if(C.node(P).dummy==="border"){var W=C.predecessors(P);W.length&&(z=C.node(W[0]).order,T(E,D,q,L,z),D=q,L=z)}T(E,D,E.length,z,A.length)}),E}return e.reduce(w,_),S}function a(C,w){if(C.node(w).dummy)return e.find(C.predecessors(w),function(S){return C.node(S).dummy})}function s(C,w,S){if(w>S){var T=w;w=S,S=T}var _=C[w];_||(C[w]=_={}),_[S]=!0}function o(C,w,S){if(w>S){var T=w;w=S,S=T}return e.has(C[w],S)}function l(C,w,S,T){var _={},A={},E={};return e.forEach(w,function(L){e.forEach(L,function(z,D){_[z]=z,A[z]=z,E[z]=D})}),e.forEach(w,function(L){var z=-1;e.forEach(L,function(D){var P=T(D);if(P.length){P=e.sortBy(P,function(M){return E[M]});for(var q=(P.length-1)/2,W=Math.floor(q),B=Math.ceil(q);W<=B;++W){var j=P[W];A[D]===D&&z<E[j]&&!o(S,D,j)&&(A[j]=D,A[D]=_[D]=_[j],z=E[j])}}})}),{root:_,align:A}}function c(C,w,S,T,_){var A={},E=u(C,w,S,_),L=_?"borderLeft":"borderRight";function z(q,W){for(var B=E.nodes(),j=B.pop(),M={};j;)M[j]?q(j):(M[j]=!0,B.push(j),B=B.concat(W(j))),j=B.pop()}function D(q){A[q]=E.inEdges(q).reduce(function(W,B){return Math.max(W,A[B.v]+E.edge(B))},0)}function P(q){var W=E.outEdges(q).reduce(function(j,M){return Math.min(j,A[M.w]-E.edge(M))},Number.POSITIVE_INFINITY),B=C.node(q);W!==Number.POSITIVE_INFINITY&&B.borderType!==L&&(A[q]=Math.max(A[q],W))}return z(D,E.predecessors.bind(E)),z(P,E.successors.bind(E)),e.forEach(T,function(q){A[q]=A[S[q]]}),A}function u(C,w,S,T){var _=new t,A=C.graph(),E=x(A.nodesep,A.edgesep,T);return e.forEach(w,function(L){var z;e.forEach(L,function(D){var P=S[D];if(_.setNode(P),z){var q=S[z],W=_.edge(q,P);_.setEdge(q,P,Math.max(E(C,D,z),W||0))}z=D})}),_}function h(C,w){return e.minBy(e.values(w),function(S){var T=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;return e.forIn(S,function(A,E){var L=y(C,E)/2;T=Math.max(A+L,T),_=Math.min(A-L,_)}),T-_})}function p(C,w){var S=e.values(w),T=e.min(S),_=e.max(S);e.forEach(["u","d"],function(A){e.forEach(["l","r"],function(E){var L=A+E,z=C[L],D;if(z!==w){var P=e.values(z);D=E==="l"?T-e.min(P):_-e.max(P),D&&(C[L]=e.mapValues(z,function(q){return q+D}))}})})}function f(C,w){return e.mapValues(C.ul,function(S,T){if(w)return C[w.toLowerCase()][T];var _=e.sortBy(e.map(C,T));return(_[1]+_[2])/2})}function m(C){var w=r.buildLayerMatrix(C),S=e.merge(n(C,w),i(C,w)),T={},_;e.forEach(["u","d"],function(E){_=E==="u"?w:e.values(w).reverse(),e.forEach(["l","r"],function(L){L==="r"&&(_=e.map(_,function(q){return e.values(q).reverse()}));var z=(E==="u"?C.predecessors:C.successors).bind(C),D=l(C,_,S,z),P=c(C,_,D.root,D.align,L==="r");L==="r"&&(P=e.mapValues(P,function(q){return-q})),T[E+L]=P})});var A=h(C,T);return p(T,A),f(T,C.graph().align)}function x(C,w,S){return function(T,_,A){var E=T.node(_),L=T.node(A),z=0,D;if(z+=E.width/2,e.has(E,"labelpos"))switch(E.labelpos.toLowerCase()){case"l":D=-E.width/2;break;case"r":D=E.width/2;break}if(D&&(z+=S?D:-D),D=0,z+=(E.dummy?w:C)/2,z+=(L.dummy?w:C)/2,z+=L.width/2,e.has(L,"labelpos"))switch(L.labelpos.toLowerCase()){case"l":D=L.width/2;break;case"r":D=-L.width/2;break}return D&&(z+=S?D:-D),D=0,z}}function y(C,w){return C.node(w).width}return d_}var f_,j$;function qCe(){if(j$)return f_;j$=1;var e=un(),t=Zi(),r=$Ce().positionX;f_=n;function n(a){a=t.asNonCompoundGraph(a),i(a),e.forEach(r(a),function(s,o){a.node(o).x=s})}function i(a){var s=t.buildLayerMatrix(a),o=a.graph().ranksep,l=0;e.forEach(s,function(c){var u=e.max(e.map(c,function(h){return a.node(h).height}));e.forEach(c,function(h){a.node(h).y=l+u/2}),l+=u+o})}return f_}var p_,P$;function HCe(){if(P$)return p_;P$=1;var e=un(),t=kCe(),r=TCe(),n=_Ce(),i=Zi().normalizeRanks,a=ACe(),s=Zi().removeEmptyRanks,o=NCe(),l=LCe(),c=MCe(),u=zCe(),h=qCe(),p=Zi(),f=Za().Graph;p_=m;function m(K,Q){var J=Q&&Q.debugTiming?p.time:p.notime;J("layout",function(){var se=J(" buildLayoutGraph",function(){return z(K)});J(" runLayout",function(){x(se,J)}),J(" updateInputGraph",function(){y(K,se)})})}function x(K,Q){Q(" makeSpaceForEdgeLabels",function(){D(K)}),Q(" removeSelfEdges",function(){V(K)}),Q(" acyclic",function(){t.run(K)}),Q(" nestingGraph.run",function(){o.run(K)}),Q(" rank",function(){n(p.asNonCompoundGraph(K))}),Q(" injectEdgeLabelProxies",function(){P(K)}),Q(" removeEmptyRanks",function(){s(K)}),Q(" nestingGraph.cleanup",function(){o.cleanup(K)}),Q(" normalizeRanks",function(){i(K)}),Q(" assignRankMinMax",function(){q(K)}),Q(" removeEdgeLabelProxies",function(){W(K)}),Q(" normalize.run",function(){r.run(K)}),Q(" parentDummyChains",function(){a(K)}),Q(" addBorderSegments",function(){l(K)}),Q(" order",function(){u(K)}),Q(" insertSelfEdges",function(){R(K)}),Q(" adjustCoordinateSystem",function(){c.adjust(K)}),Q(" position",function(){h(K)}),Q(" positionSelfEdges",function(){H(K)}),Q(" removeBorderNodes",function(){F(K)}),Q(" normalize.undo",function(){r.undo(K)}),Q(" fixupEdgeLabelCoords",function(){M(K)}),Q(" undoCoordinateSystem",function(){c.undo(K)}),Q(" translateGraph",function(){B(K)}),Q(" assignNodeIntersects",function(){j(K)}),Q(" reversePoints",function(){I(K)}),Q(" acyclic.undo",function(){t.undo(K)})}function y(K,Q){e.forEach(K.nodes(),function(J){var se=K.node(J),ue=Q.node(J);se&&(se.x=ue.x,se.y=ue.y,Q.children(J).length&&(se.width=ue.width,se.height=ue.height))}),e.forEach(K.edges(),function(J){var se=K.edge(J),ue=Q.edge(J);se.points=ue.points,e.has(ue,"x")&&(se.x=ue.x,se.y=ue.y)}),K.graph().width=Q.graph().width,K.graph().height=Q.graph().height}var C=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},S=["acyclicer","ranker","rankdir","align"],T=["width","height"],_={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},L=["labelpos"];function z(K){var Q=new f({multigraph:!0,compound:!0}),J=U(K.graph());return Q.setGraph(e.merge({},w,Y(J,C),e.pick(J,S))),e.forEach(K.nodes(),function(se){var ue=U(K.node(se));Q.setNode(se,e.defaults(Y(ue,T),_)),Q.setParent(se,K.parent(se))}),e.forEach(K.edges(),function(se){var ue=U(K.edge(se));Q.setEdge(se,e.merge({},E,Y(ue,A),e.pick(ue,L)))}),Q}function D(K){var Q=K.graph();Q.ranksep/=2,e.forEach(K.edges(),function(J){var se=K.edge(J);se.minlen*=2,se.labelpos.toLowerCase()!=="c"&&(Q.rankdir==="TB"||Q.rankdir==="BT"?se.width+=se.labeloffset:se.height+=se.labeloffset)})}function P(K){e.forEach(K.edges(),function(Q){var J=K.edge(Q);if(J.width&&J.height){var se=K.node(Q.v),ue=K.node(Q.w),re={rank:(ue.rank-se.rank)/2+se.rank,e:Q};p.addDummyNode(K,"edge-proxy",re,"_ep")}})}function q(K){var Q=0;e.forEach(K.nodes(),function(J){var se=K.node(J);se.borderTop&&(se.minRank=K.node(se.borderTop).rank,se.maxRank=K.node(se.borderBottom).rank,Q=e.max(Q,se.maxRank))}),K.graph().maxRank=Q}function W(K){e.forEach(K.nodes(),function(Q){var J=K.node(Q);J.dummy==="edge-proxy"&&(K.edge(J.e).labelRank=J.rank,K.removeNode(Q))})}function B(K){var Q=Number.POSITIVE_INFINITY,J=0,se=Number.POSITIVE_INFINITY,ue=0,re=K.graph(),ee=re.marginx||0,Z=re.marginy||0;function ie(ce){var he=ce.x,ke=ce.y,He=ce.width,Ne=ce.height;Q=Math.min(Q,he-He/2),J=Math.max(J,he+He/2),se=Math.min(se,ke-Ne/2),ue=Math.max(ue,ke+Ne/2)}e.forEach(K.nodes(),function(ce){ie(K.node(ce))}),e.forEach(K.edges(),function(ce){var he=K.edge(ce);e.has(he,"x")&&ie(he)}),Q-=ee,se-=Z,e.forEach(K.nodes(),function(ce){var he=K.node(ce);he.x-=Q,he.y-=se}),e.forEach(K.edges(),function(ce){var he=K.edge(ce);e.forEach(he.points,function(ke){ke.x-=Q,ke.y-=se}),e.has(he,"x")&&(he.x-=Q),e.has(he,"y")&&(he.y-=se)}),re.width=J-Q+ee,re.height=ue-se+Z}function j(K){e.forEach(K.edges(),function(Q){var J=K.edge(Q),se=K.node(Q.v),ue=K.node(Q.w),re,ee;J.points?(re=J.points[0],ee=J.points[J.points.length-1]):(J.points=[],re=ue,ee=se),J.points.unshift(p.intersectRect(se,re)),J.points.push(p.intersectRect(ue,ee))})}function M(K){e.forEach(K.edges(),function(Q){var J=K.edge(Q);if(e.has(J,"x"))switch((J.labelpos==="l"||J.labelpos==="r")&&(J.width-=J.labeloffset),J.labelpos){case"l":J.x-=J.width/2+J.labeloffset;break;case"r":J.x+=J.width/2+J.labeloffset;break}})}function I(K){e.forEach(K.edges(),function(Q){var J=K.edge(Q);J.reversed&&J.points.reverse()})}function F(K){e.forEach(K.nodes(),function(Q){if(K.children(Q).length){var J=K.node(Q),se=K.node(J.borderTop),ue=K.node(J.borderBottom),re=K.node(e.last(J.borderLeft)),ee=K.node(e.last(J.borderRight));J.width=Math.abs(ee.x-re.x),J.height=Math.abs(ue.y-se.y),J.x=re.x+J.width/2,J.y=se.y+J.height/2}}),e.forEach(K.nodes(),function(Q){K.node(Q).dummy==="border"&&K.removeNode(Q)})}function V(K){e.forEach(K.edges(),function(Q){if(Q.v===Q.w){var J=K.node(Q.v);J.selfEdges||(J.selfEdges=[]),J.selfEdges.push({e:Q,label:K.edge(Q)}),K.removeEdge(Q)}})}function R(K){var Q=p.buildLayerMatrix(K);e.forEach(Q,function(J){var se=0;e.forEach(J,function(ue,re){var ee=K.node(ue);ee.order=re+se,e.forEach(ee.selfEdges,function(Z){p.addDummyNode(K,"selfedge",{width:Z.label.width,height:Z.label.height,rank:ee.rank,order:re+ ++se,e:Z.e,label:Z.label},"_se")}),delete ee.selfEdges})})}function H(K){e.forEach(K.nodes(),function(Q){var J=K.node(Q);if(J.dummy==="selfedge"){var se=K.node(J.e.v),ue=se.x+se.width/2,re=se.y,ee=J.x-ue,Z=se.height/2;K.setEdge(J.e,J.label),K.removeNode(Q),J.label.points=[{x:ue+2*ee/3,y:re-Z},{x:ue+5*ee/6,y:re-Z},{x:ue+ee,y:re},{x:ue+5*ee/6,y:re+Z},{x:ue+2*ee/3,y:re+Z}],J.label.x=J.x,J.label.y=J.y}})}function Y(K,Q){return e.mapValues(e.pick(K,Q),Number)}function U(K){var Q={};return e.forEach(K,function(J,se){Q[se.toLowerCase()]=J}),Q}return p_}var g_,z$;function UCe(){if(z$)return g_;z$=1;var e=un(),t=Zi(),r=Za().Graph;g_={debugOrdering:n};function n(i){var a=t.buildLayerMatrix(i),s=new r({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(o){s.setNode(o,{label:o}),s.setParent(o,"layer"+i.node(o).rank)}),e.forEach(i.edges(),function(o){s.setEdge(o.v,o.w,{},o.name)}),e.forEach(a,function(o,l){var c="layer"+l;s.setNode(c,{rank:"same"}),e.reduce(o,function(u,h){return s.setEdge(u,h,{style:"invis"}),h})}),s}return g_}var m_,$$;function GCe(){return $$||($$=1,m_="0.8.5"),m_}var v_,q$;function WCe(){return q$||(q$=1,v_={graphlib:Za(),layout:HCe(),debug:UCe(),util:{time:Zi().time,notime:Zi().notime},version:GCe()}),v_}var VCe=Hv.exports,H$;function YCe(){return H$||(H$=1,(function(e,t){(function(n,i){e.exports=i(WCe())})(VCe,function(r){return(function(n){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=i,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)a.d(l,c,(function(u){return s[u]}).bind(null,c));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=0)})([(function(n,i,a){var s=a(1),o=function(c){c&&c("layout","dagre",s)};typeof cytoscape<"u"&&o(cytoscape),n.exports=o}),(function(n,i,a){function s(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(m){return typeof m}:s=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},s(p)}var o=function(f){return typeof f=="function"},l=a(2),c=a(3),u=a(4);function h(p){this.options=c({},l,p)}h.prototype.run=function(){var p=this.options,f=this,m=p.cy,x=p.eles,y=function(H,Y){return o(Y)?Y.apply(H,[H]):Y},C=p.boundingBox||{x1:0,y1:0,w:m.width(),h:m.height()};C.x2===void 0&&(C.x2=C.x1+C.w),C.w===void 0&&(C.w=C.x2-C.x1),C.y2===void 0&&(C.y2=C.y1+C.h),C.h===void 0&&(C.h=C.y2-C.y1);var w=new u.graphlib.Graph({multigraph:!0,compound:!0}),S={},T=function(H,Y){Y!=null&&(S[H]=Y)};T("nodesep",p.nodeSep),T("edgesep",p.edgeSep),T("ranksep",p.rankSep),T("rankdir",p.rankDir),T("align",p.align),T("ranker",p.ranker),T("acyclicer",p.acyclicer),w.setGraph(S),w.setDefaultEdgeLabel(function(){return{}}),w.setDefaultNodeLabel(function(){return{}});var _=x.nodes();o(p.sort)&&(_=_.sort(p.sort));for(var A=0;A<_.length;A++){var E=_[A],L=E.layoutDimensions(p);w.setNode(E.id(),{width:L.w,height:L.h,name:E.id()})}for(var z=0;z<_.length;z++){var D=_[z];D.isChild()&&w.setParent(D.id(),D.parent().id())}var P=x.edges().stdFilter(function(R){return!R.source().isParent()&&!R.target().isParent()});o(p.sort)&&(P=P.sort(p.sort));for(var q=0;q<P.length;q++){var W=P[q];w.setEdge(W.source().id(),W.target().id(),{minlen:y(W,p.minLen),weight:y(W,p.edgeWeight),name:W.id()},W.id())}u.layout(w);for(var B=w.nodes(),j=0;j<B.length;j++){var M=B[j],I=w.node(M);m.getElementById(M).scratch().dagre=I}var F;p.boundingBox?(F={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0},_.forEach(function(R){var H=R.scratch().dagre;F.x1=Math.min(F.x1,H.x),F.x2=Math.max(F.x2,H.x),F.y1=Math.min(F.y1,H.y),F.y2=Math.max(F.y2,H.y)}),F.w=F.x2-F.x1,F.h=F.y2-F.y1):F=C;var V=function(H){if(p.boundingBox){var Y=F.w===0?0:(H.x-F.x1)/F.w,U=F.h===0?0:(H.y-F.y1)/F.h;return{x:C.x1+Y*C.w,y:C.y1+U*C.h}}else return H};return _.layoutPositions(f,p,function(R){R=s(R)==="object"?R:this;var H=R.scratch().dagre;return V({x:H.x,y:H.y})}),this},n.exports=h}),(function(n,i){var a={nodeSep:void 0,edgeSep:void 0,rankSep:void 0,rankDir:void 0,align:void 0,acyclicer:void 0,ranker:void 0,minLen:function(o){return 1},edgeWeight:function(o){return 1},fit:!0,padding:30,spacingFactor:void 0,nodeDimensionsIncludeLabels:!1,animate:!1,animateFilter:function(o,l){return!0},animationDuration:500,animationEasing:void 0,boundingBox:void 0,transform:function(o,l){return l},ready:function(){},sort:void 0,stop:function(){}};n.exports=a}),(function(n,i){n.exports=Object.assign!=null?Object.assign.bind(Object):function(a){for(var s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];return o.forEach(function(c){Object.keys(c).forEach(function(u){return a[u]=c[u]})}),a}}),(function(n,i){n.exports=r})])})})(Hv)),Hv.exports}var XCe=YCe();const aV=Sl(XCe);var Uv={exports:{}},Gv={exports:{}},Wv={exports:{}},KCe=Wv.exports,U$;function ZCe(){return U$||(U$=1,(function(e,t){(function(n,i){e.exports=i()})(KCe,function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.i=function(a){return a},i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:o})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=28)})([(function(r,n,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,r.exports=a}),(function(r,n,i){var a=i(2),s=i(8),o=i(9);function l(u,h,p){a.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=u,this.target=h}l.prototype=Object.create(a.prototype);for(var c in a)l[c]=a[c];l.prototype.getSource=function(){return this.source},l.prototype.getTarget=function(){return this.target},l.prototype.isInterGraph=function(){return this.isInterGraph},l.prototype.getLength=function(){return this.length},l.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},l.prototype.getBendpoints=function(){return this.bendpoints},l.prototype.getLca=function(){return this.lca},l.prototype.getSourceInLca=function(){return this.sourceInLca},l.prototype.getTargetInLca=function(){return this.targetInLca},l.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},l.prototype.getOtherEndInGraph=function(u,h){for(var p=this.getOtherEnd(u),f=h.getGraphManager().getRoot();;){if(p.getOwner()==h)return p;if(p.getOwner()==f)break;p=p.getOwner().getParent()}return null},l.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},l.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},r.exports=l}),(function(r,n,i){function a(s){this.vGraphObject=s}r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(13),l=i(0),c=i(16),u=i(5);function h(f,m,x,y){x==null&&y==null&&(y=m),a.call(this,y),f.graphManager!=null&&(f=f.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=y,this.edges=[],this.graphManager=f,x!=null&&m!=null?this.rect=new o(m.x,m.y,x.width,x.height):this.rect=new o}h.prototype=Object.create(a.prototype);for(var p in a)h[p]=a[p];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(f){this.rect.width=f},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(f){this.rect.height=f},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(f,m){this.rect.x=f.x,this.rect.y=f.y,this.rect.width=m.width,this.rect.height=m.height},h.prototype.setCenter=function(f,m){this.rect.x=f-this.rect.width/2,this.rect.y=m-this.rect.height/2},h.prototype.setLocation=function(f,m){this.rect.x=f,this.rect.y=m},h.prototype.moveBy=function(f,m){this.rect.x+=f,this.rect.y+=m},h.prototype.getEdgeListToNode=function(f){var m=[],x=this;return x.edges.forEach(function(y){if(y.target==f){if(y.source!=x)throw"Incorrect edge source!";m.push(y)}}),m},h.prototype.getEdgesBetween=function(f){var m=[],x=this;return x.edges.forEach(function(y){if(!(y.source==x||y.target==x))throw"Incorrect edge source and/or target";(y.target==f||y.source==f)&&m.push(y)}),m},h.prototype.getNeighborsList=function(){var f=new Set,m=this;return m.edges.forEach(function(x){if(x.source==m)f.add(x.target);else{if(x.target!=m)throw"Incorrect incidency!";f.add(x.source)}}),f},h.prototype.withChildren=function(){var f=new Set,m,x;if(f.add(this),this.child!=null)for(var y=this.child.getNodes(),C=0;C<y.length;C++)m=y[C],x=m.withChildren(),x.forEach(function(w){f.add(w)});return f},h.prototype.getNoOfChildren=function(){var f=0,m;if(this.child==null)f=1;else for(var x=this.child.getNodes(),y=0;y<x.length;y++)m=x[y],f+=m.getNoOfChildren();return f==0&&(f=1),f},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},h.prototype.scatter=function(){var f,m,x=-l.INITIAL_WORLD_BOUNDARY,y=l.INITIAL_WORLD_BOUNDARY;f=l.WORLD_CENTER_X+c.nextDouble()*(y-x)+x;var C=-l.INITIAL_WORLD_BOUNDARY,w=l.INITIAL_WORLD_BOUNDARY;m=l.WORLD_CENTER_Y+c.nextDouble()*(w-C)+C,this.rect.x=f,this.rect.y=m},h.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var f=this.getChild();if(f.updateBounds(!0),this.rect.x=f.getLeft(),this.rect.y=f.getTop(),this.setWidth(f.getRight()-f.getLeft()),this.setHeight(f.getBottom()-f.getTop()),l.NODE_DIMENSIONS_INCLUDE_LABELS){var m=f.getRight()-f.getLeft(),x=f.getBottom()-f.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(m+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>m?(this.rect.x-=(this.labelWidth-m)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(m+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(x+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>x?(this.rect.y-=(this.labelHeight-x)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(x+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(f){var m=this.rect.x;m>l.WORLD_BOUNDARY?m=l.WORLD_BOUNDARY:m<-l.WORLD_BOUNDARY&&(m=-l.WORLD_BOUNDARY);var x=this.rect.y;x>l.WORLD_BOUNDARY?x=l.WORLD_BOUNDARY:x<-l.WORLD_BOUNDARY&&(x=-l.WORLD_BOUNDARY);var y=new u(m,x),C=f.inverseTransformPoint(y);this.setLocation(C.x,C.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h}),(function(r,n,i){var a=i(0);function s(){}for(var o in a)s[o]=a[o];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,r.exports=s}),(function(r,n,i){function a(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(s){this.x=s},a.prototype.setY=function(s){this.y=s},a.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=a}),(function(r,n,i){var a=i(2),s=i(10),o=i(0),l=i(7),c=i(3),u=i(1),h=i(13),p=i(12),f=i(11);function m(y,C,w){a.call(this,w),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=y,C!=null&&C instanceof l?this.graphManager=C:C!=null&&C instanceof Layout&&(this.graphManager=C.graphManager)}m.prototype=Object.create(a.prototype);for(var x in a)m[x]=a[x];m.prototype.getNodes=function(){return this.nodes},m.prototype.getEdges=function(){return this.edges},m.prototype.getGraphManager=function(){return this.graphManager},m.prototype.getParent=function(){return this.parent},m.prototype.getLeft=function(){return this.left},m.prototype.getRight=function(){return this.right},m.prototype.getTop=function(){return this.top},m.prototype.getBottom=function(){return this.bottom},m.prototype.isConnected=function(){return this.isConnected},m.prototype.add=function(y,C,w){if(C==null&&w==null){var S=y;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(S)>-1)throw"Node already in graph!";return S.owner=this,this.getNodes().push(S),S}else{var T=y;if(!(this.getNodes().indexOf(C)>-1&&this.getNodes().indexOf(w)>-1))throw"Source or target not in graph!";if(!(C.owner==w.owner&&C.owner==this))throw"Both owners must be this graph!";return C.owner!=w.owner?null:(T.source=C,T.target=w,T.isInterGraph=!1,this.getEdges().push(T),C.edges.push(T),w!=C&&w.edges.push(T),T)}},m.prototype.remove=function(y){var C=y;if(y instanceof c){if(C==null)throw"Node is null!";if(!(C.owner!=null&&C.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var w=C.edges.slice(),S,T=w.length,_=0;_<T;_++)S=w[_],S.isInterGraph?this.graphManager.remove(S):S.source.owner.remove(S);var A=this.nodes.indexOf(C);if(A==-1)throw"Node not in owner node list!";this.nodes.splice(A,1)}else if(y instanceof u){var S=y;if(S==null)throw"Edge is null!";if(!(S.source!=null&&S.target!=null))throw"Source and/or target is null!";if(!(S.source.owner!=null&&S.target.owner!=null&&S.source.owner==this&&S.target.owner==this))throw"Source and/or target owner is invalid!";var E=S.source.edges.indexOf(S),L=S.target.edges.indexOf(S);if(!(E>-1&&L>-1))throw"Source and/or target doesn't know this edge!";S.source.edges.splice(E,1),S.target!=S.source&&S.target.edges.splice(L,1);var A=S.source.owner.getEdges().indexOf(S);if(A==-1)throw"Not in owner's edge list!";S.source.owner.getEdges().splice(A,1)}},m.prototype.updateLeftTop=function(){for(var y=s.MAX_VALUE,C=s.MAX_VALUE,w,S,T,_=this.getNodes(),A=_.length,E=0;E<A;E++){var L=_[E];w=L.getTop(),S=L.getLeft(),y>w&&(y=w),C>S&&(C=S)}return y==s.MAX_VALUE?null:(_[0].getParent().paddingLeft!=null?T=_[0].getParent().paddingLeft:T=this.margin,this.left=C-T,this.top=y-T,new p(this.left,this.top))},m.prototype.updateBounds=function(y){for(var C=s.MAX_VALUE,w=-s.MAX_VALUE,S=s.MAX_VALUE,T=-s.MAX_VALUE,_,A,E,L,z,D=this.nodes,P=D.length,q=0;q<P;q++){var W=D[q];y&&W.child!=null&&W.updateBounds(),_=W.getLeft(),A=W.getRight(),E=W.getTop(),L=W.getBottom(),C>_&&(C=_),w<A&&(w=A),S>E&&(S=E),T<L&&(T=L)}var B=new h(C,S,w-C,T-S);C==s.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),D[0].getParent().paddingLeft!=null?z=D[0].getParent().paddingLeft:z=this.margin,this.left=B.x-z,this.right=B.x+B.width+z,this.top=B.y-z,this.bottom=B.y+B.height+z},m.calculateBounds=function(y){for(var C=s.MAX_VALUE,w=-s.MAX_VALUE,S=s.MAX_VALUE,T=-s.MAX_VALUE,_,A,E,L,z=y.length,D=0;D<z;D++){var P=y[D];_=P.getLeft(),A=P.getRight(),E=P.getTop(),L=P.getBottom(),C>_&&(C=_),w<A&&(w=A),S>E&&(S=E),T<L&&(T=L)}var q=new h(C,S,w-C,T-S);return q},m.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},m.prototype.getEstimatedSize=function(){if(this.estimatedSize==s.MIN_VALUE)throw"assert failed";return this.estimatedSize},m.prototype.calcEstimatedSize=function(){for(var y=0,C=this.nodes,w=C.length,S=0;S<w;S++){var T=C[S];y+=T.calcEstimatedSize()}return y==0?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=y/Math.sqrt(this.nodes.length),this.estimatedSize},m.prototype.updateConnected=function(){var y=this;if(this.nodes.length==0){this.isConnected=!0;return}var C=new f,w=new Set,S=this.nodes[0],T,_,A=S.withChildren();for(A.forEach(function(q){C.push(q),w.add(q)});C.length!==0;){S=C.shift(),T=S.getEdges();for(var E=T.length,L=0;L<E;L++){var z=T[L];if(_=z.getOtherEndInGraph(S,this),_!=null&&!w.has(_)){var D=_.withChildren();D.forEach(function(q){C.push(q),w.add(q)})}}}if(this.isConnected=!1,w.size>=this.nodes.length){var P=0;w.forEach(function(q){q.owner==y&&P++}),P==this.nodes.length&&(this.isConnected=!0)}},r.exports=m}),(function(r,n,i){var a,s=i(1);function o(l){a=i(6),this.layout=l,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var l=this.layout.newGraph(),c=this.layout.newNode(null),u=this.add(l,c);return this.setRootGraph(u),this.rootGraph},o.prototype.add=function(l,c,u,h,p){if(u==null&&h==null&&p==null){if(l==null)throw"Graph is null!";if(c==null)throw"Parent node is null!";if(this.graphs.indexOf(l)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(l),l.parent!=null)throw"Already has a parent!";if(c.child!=null)throw"Already has a child!";return l.parent=c,c.child=l,l}else{p=u,h=c,u=l;var f=h.getOwner(),m=p.getOwner();if(!(f!=null&&f.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(m!=null&&m.getGraphManager()==this))throw"Target not in this graph mgr!";if(f==m)return u.isInterGraph=!1,f.add(u,h,p);if(u.isInterGraph=!0,u.source=h,u.target=p,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},o.prototype.remove=function(l){if(l instanceof a){var c=l;if(c.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(c==this.rootGraph||c.parent!=null&&c.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(c.getEdges());for(var h,p=u.length,f=0;f<p;f++)h=u[f],c.remove(h);var m=[];m=m.concat(c.getNodes());var x;p=m.length;for(var f=0;f<p;f++)x=m[f],c.remove(x);c==this.rootGraph&&this.setRootGraph(null);var y=this.graphs.indexOf(c);this.graphs.splice(y,1),c.parent=null}else if(l instanceof s){if(h=l,h==null)throw"Edge is null!";if(!h.isInterGraph)throw"Not an inter-graph edge!";if(!(h.source!=null&&h.target!=null))throw"Source and/or target is null!";if(!(h.source.edges.indexOf(h)!=-1&&h.target.edges.indexOf(h)!=-1))throw"Source and/or target doesn't know this edge!";var y=h.source.edges.indexOf(h);if(h.source.edges.splice(y,1),y=h.target.edges.indexOf(h),h.target.edges.splice(y,1),!(h.source.owner!=null&&h.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(h.source.owner.getGraphManager().edges.indexOf(h)==-1)throw"Not in owner graph manager's edge list!";var y=h.source.owner.getGraphManager().edges.indexOf(h);h.source.owner.getGraphManager().edges.splice(y,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(this.allNodes==null){for(var l=[],c=this.getGraphs(),u=c.length,h=0;h<u;h++)l=l.concat(c[h].getNodes());this.allNodes=l}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(this.allEdges==null){var l=[],c=this.getGraphs();c.length;for(var u=0;u<c.length;u++)l=l.concat(c[u].getEdges());l=l.concat(this.edges),this.allEdges=l}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(l){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=l},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(l){if(l.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=l,l.parent==null&&(l.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(l,c){if(!(l!=null&&c!=null))throw"assert failed";if(l==c)return!0;var u=l.getOwner(),h;do{if(h=u.getParent(),h==null)break;if(h==c)return!0;if(u=h.getOwner(),u==null)break}while(!0);u=c.getOwner();do{if(h=u.getParent(),h==null)break;if(h==l)return!0;if(u=h.getOwner(),u==null)break}while(!0);return!1},o.prototype.calcLowestCommonAncestors=function(){for(var l,c,u,h,p,f=this.getAllEdges(),m=f.length,x=0;x<m;x++){if(l=f[x],c=l.source,u=l.target,l.lca=null,l.sourceInLca=c,l.targetInLca=u,c==u){l.lca=c.getOwner();continue}for(h=c.getOwner();l.lca==null;){for(l.targetInLca=u,p=u.getOwner();l.lca==null;){if(p==h){l.lca=p;break}if(p==this.rootGraph)break;if(l.lca!=null)throw"assert failed";l.targetInLca=p.getParent(),p=l.targetInLca.getOwner()}if(h==this.rootGraph)break;l.lca==null&&(l.sourceInLca=h.getParent(),h=l.sourceInLca.getOwner())}if(l.lca==null)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(l,c){if(l==c)return l.getOwner();var u=l.getOwner();do{if(u==null)break;var h=c.getOwner();do{if(h==null)break;if(h==u)return h;h=h.getParent().getOwner()}while(!0);u=u.getParent().getOwner()}while(!0);return u},o.prototype.calcInclusionTreeDepths=function(l,c){l==null&&c==null&&(l=this.rootGraph,c=1);for(var u,h=l.getNodes(),p=h.length,f=0;f<p;f++)u=h[f],u.inclusionTreeDepth=c,u.child!=null&&this.calcInclusionTreeDepths(u.child,c+1)},o.prototype.includesInvalidEdge=function(){for(var l,c=[],u=this.edges.length,h=0;h<u;h++)l=this.edges[h],this.isOneAncestorOfOther(l.source,l.target)&&c.push(l);for(var h=0;h<c.length;h++)this.remove(c[h]);return!1},r.exports=o}),(function(r,n,i){var a=i(12);function s(){}s.calcSeparationAmount=function(o,l,c,u){if(!o.intersects(l))throw"assert failed";var h=new Array(2);this.decideDirectionsForOverlappingNodes(o,l,h),c[0]=Math.min(o.getRight(),l.getRight())-Math.max(o.x,l.x),c[1]=Math.min(o.getBottom(),l.getBottom())-Math.max(o.y,l.y),o.getX()<=l.getX()&&o.getRight()>=l.getRight()?c[0]+=Math.min(l.getX()-o.getX(),o.getRight()-l.getRight()):l.getX()<=o.getX()&&l.getRight()>=o.getRight()&&(c[0]+=Math.min(o.getX()-l.getX(),l.getRight()-o.getRight())),o.getY()<=l.getY()&&o.getBottom()>=l.getBottom()?c[1]+=Math.min(l.getY()-o.getY(),o.getBottom()-l.getBottom()):l.getY()<=o.getY()&&l.getBottom()>=o.getBottom()&&(c[1]+=Math.min(o.getY()-l.getY(),l.getBottom()-o.getBottom()));var p=Math.abs((l.getCenterY()-o.getCenterY())/(l.getCenterX()-o.getCenterX()));l.getCenterY()===o.getCenterY()&&l.getCenterX()===o.getCenterX()&&(p=1);var f=p*c[0],m=c[1]/p;c[0]<m?m=c[0]:f=c[1],c[0]=-1*h[0]*(m/2+u),c[1]=-1*h[1]*(f/2+u)},s.decideDirectionsForOverlappingNodes=function(o,l,c){o.getCenterX()<l.getCenterX()?c[0]=-1:c[0]=1,o.getCenterY()<l.getCenterY()?c[1]=-1:c[1]=1},s.getIntersection2=function(o,l,c){var u=o.getCenterX(),h=o.getCenterY(),p=l.getCenterX(),f=l.getCenterY();if(o.intersects(l))return c[0]=u,c[1]=h,c[2]=p,c[3]=f,!0;var m=o.getX(),x=o.getY(),y=o.getRight(),C=o.getX(),w=o.getBottom(),S=o.getRight(),T=o.getWidthHalf(),_=o.getHeightHalf(),A=l.getX(),E=l.getY(),L=l.getRight(),z=l.getX(),D=l.getBottom(),P=l.getRight(),q=l.getWidthHalf(),W=l.getHeightHalf(),B=!1,j=!1;if(u===p){if(h>f)return c[0]=u,c[1]=x,c[2]=p,c[3]=D,!1;if(h<f)return c[0]=u,c[1]=w,c[2]=p,c[3]=E,!1}else if(h===f){if(u>p)return c[0]=m,c[1]=h,c[2]=L,c[3]=f,!1;if(u<p)return c[0]=y,c[1]=h,c[2]=A,c[3]=f,!1}else{var M=o.height/o.width,I=l.height/l.width,F=(f-h)/(p-u),V=void 0,R=void 0,H=void 0,Y=void 0,U=void 0,K=void 0;if(-M===F?u>p?(c[0]=C,c[1]=w,B=!0):(c[0]=y,c[1]=x,B=!0):M===F&&(u>p?(c[0]=m,c[1]=x,B=!0):(c[0]=S,c[1]=w,B=!0)),-I===F?p>u?(c[2]=z,c[3]=D,j=!0):(c[2]=L,c[3]=E,j=!0):I===F&&(p>u?(c[2]=A,c[3]=E,j=!0):(c[2]=P,c[3]=D,j=!0)),B&&j)return!1;if(u>p?h>f?(V=this.getCardinalDirection(M,F,4),R=this.getCardinalDirection(I,F,2)):(V=this.getCardinalDirection(-M,F,3),R=this.getCardinalDirection(-I,F,1)):h>f?(V=this.getCardinalDirection(-M,F,1),R=this.getCardinalDirection(-I,F,3)):(V=this.getCardinalDirection(M,F,2),R=this.getCardinalDirection(I,F,4)),!B)switch(V){case 1:Y=x,H=u+-_/F,c[0]=H,c[1]=Y;break;case 2:H=S,Y=h+T*F,c[0]=H,c[1]=Y;break;case 3:Y=w,H=u+_/F,c[0]=H,c[1]=Y;break;case 4:H=C,Y=h+-T*F,c[0]=H,c[1]=Y;break}if(!j)switch(R){case 1:K=E,U=p+-W/F,c[2]=U,c[3]=K;break;case 2:U=P,K=f+q*F,c[2]=U,c[3]=K;break;case 3:K=D,U=p+W/F,c[2]=U,c[3]=K;break;case 4:U=z,K=f+-q*F,c[2]=U,c[3]=K;break}}return!1},s.getCardinalDirection=function(o,l,c){return o>l?c:1+c%4},s.getIntersection=function(o,l,c,u){if(u==null)return this.getIntersection2(o,l,c);var h=o.x,p=o.y,f=l.x,m=l.y,x=c.x,y=c.y,C=u.x,w=u.y,S=void 0,T=void 0,_=void 0,A=void 0,E=void 0,L=void 0,z=void 0,D=void 0,P=void 0;return _=m-p,E=h-f,z=f*p-h*m,A=w-y,L=x-C,D=C*y-x*w,P=_*L-A*E,P===0?null:(S=(E*D-L*z)/P,T=(A*z-_*D)/P,new a(S,T))},s.angleOfVector=function(o,l,c,u){var h=void 0;return o!==c?(h=Math.atan((u-l)/(c-o)),c<o?h+=Math.PI:u<l&&(h+=this.TWO_PI)):u<l?h=this.ONE_AND_HALF_PI:h=this.HALF_PI,h},s.doIntersect=function(o,l,c,u){var h=o.x,p=o.y,f=l.x,m=l.y,x=c.x,y=c.y,C=u.x,w=u.y,S=(f-h)*(w-y)-(C-x)*(m-p);if(S===0)return!1;var T=((w-y)*(C-h)+(x-C)*(w-p))/S,_=((p-m)*(C-h)+(f-h)*(w-p))/S;return 0<T&&T<1&&0<_&&_<1},s.findCircleLineIntersections=function(o,l,c,u,h,p,f){var m=(c-o)*(c-o)+(u-l)*(u-l),x=2*((o-h)*(c-o)+(l-p)*(u-l)),y=(o-h)*(o-h)+(l-p)*(l-p)-f*f,C=x*x-4*m*y;if(C>=0){var w=(-x+Math.sqrt(x*x-4*m*y))/(2*m),S=(-x-Math.sqrt(x*x-4*m*y))/(2*m),T=null;return w>=0&&w<=1?[w]:S>=0&&S<=1?[S]:T}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,r.exports=s}),(function(r,n,i){function a(){}a.sign=function(s){return s>0?1:s<0?-1:0},a.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},a.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=a}),(function(r,n,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,r.exports=a}),(function(r,n,i){var a=(function(){function h(p,f){for(var m=0;m<f.length;m++){var x=f[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,f,m){return f&&h(p.prototype,f),m&&h(p,m),p}})();function s(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}var o=function(p){return{value:p,next:null,prev:null}},l=function(p,f,m,x){return p!==null?p.next=f:x.head=f,m!==null?m.prev=f:x.tail=f,f.prev=p,f.next=m,x.length++,f},c=function(p,f){var m=p.prev,x=p.next;return m!==null?m.next=x:f.head=x,x!==null?x.prev=m:f.tail=m,p.prev=p.next=null,f.length--,p},u=(function(){function h(p){var f=this;s(this,h),this.length=0,this.head=null,this.tail=null,p!=null&&p.forEach(function(m){return f.push(m)})}return a(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(f,m){return l(m.prev,o(f),m,this)}},{key:"insertAfter",value:function(f,m){return l(m,o(f),m.next,this)}},{key:"insertNodeBefore",value:function(f,m){return l(m.prev,f,m,this)}},{key:"insertNodeAfter",value:function(f,m){return l(m,f,m.next,this)}},{key:"push",value:function(f){return l(this.tail,o(f),null,this)}},{key:"unshift",value:function(f){return l(null,o(f),this.head,this)}},{key:"remove",value:function(f){return c(f,this)}},{key:"pop",value:function(){return c(this.tail,this).value}},{key:"popNode",value:function(){return c(this.tail,this)}},{key:"shift",value:function(){return c(this.head,this).value}},{key:"shiftNode",value:function(){return c(this.head,this)}},{key:"get_object_at",value:function(f){if(f<=this.length()){for(var m=1,x=this.head;m<f;)x=x.next,m++;return x.value}}},{key:"set_object_at",value:function(f,m){if(f<=this.length()){for(var x=1,y=this.head;x<f;)y=y.next,x++;y.value=m}}}]),h})();r.exports=u}),(function(r,n,i){function a(s,o,l){this.x=null,this.y=null,s==null&&o==null&&l==null?(this.x=0,this.y=0):typeof s=="number"&&typeof o=="number"&&l==null?(this.x=s,this.y=o):s.constructor.name=="Point"&&o==null&&l==null&&(l=s,this.x=l.x,this.y=l.y)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.getLocation=function(){return new a(this.x,this.y)},a.prototype.setLocation=function(s,o,l){s.constructor.name=="Point"&&o==null&&l==null?(l=s,this.setLocation(l.x,l.y)):typeof s=="number"&&typeof o=="number"&&l==null&&(parseInt(s)==s&&parseInt(o)==o?this.move(s,o):(this.x=Math.floor(s+.5),this.y=Math.floor(o+.5)))},a.prototype.move=function(s,o){this.x=s,this.y=o},a.prototype.translate=function(s,o){this.x+=s,this.y+=o},a.prototype.equals=function(s){if(s.constructor.name=="Point"){var o=s;return this.x==o.x&&this.y==o.y}return this==s},a.prototype.toString=function(){return new a().constructor.name+"[x="+this.x+",y="+this.y+"]"},r.exports=a}),(function(r,n,i){function a(s,o,l,c){this.x=0,this.y=0,this.width=0,this.height=0,s!=null&&o!=null&&l!=null&&c!=null&&(this.x=s,this.y=o,this.width=l,this.height=c)}a.prototype.getX=function(){return this.x},a.prototype.setX=function(s){this.x=s},a.prototype.getY=function(){return this.y},a.prototype.setY=function(s){this.y=s},a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},a.prototype.getRight=function(){return this.x+this.width},a.prototype.getBottom=function(){return this.y+this.height},a.prototype.intersects=function(s){return!(this.getRight()<s.x||this.getBottom()<s.y||s.getRight()<this.x||s.getBottom()<this.y)},a.prototype.getCenterX=function(){return this.x+this.width/2},a.prototype.getMinX=function(){return this.getX()},a.prototype.getMaxX=function(){return this.getX()+this.width},a.prototype.getCenterY=function(){return this.y+this.height/2},a.prototype.getMinY=function(){return this.getY()},a.prototype.getMaxY=function(){return this.getY()+this.height},a.prototype.getWidthHalf=function(){return this.width/2},a.prototype.getHeightHalf=function(){return this.height/2},r.exports=a}),(function(r,n,i){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function s(){}s.lastID=0,s.createID=function(o){return s.isPrimitive(o)?o:(o.uniqueID!=null||(o.uniqueID=s.getString(),s.lastID++),o.uniqueID)},s.getString=function(o){return o==null&&(o=s.lastID),"Object#"+o},s.isPrimitive=function(o){var l=typeof o>"u"?"undefined":a(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,i){function a(x){if(Array.isArray(x)){for(var y=0,C=Array(x.length);y<x.length;y++)C[y]=x[y];return C}else return Array.from(x)}var s=i(0),o=i(7),l=i(3),c=i(1),u=i(6),h=i(5),p=i(17),f=i(29);function m(x){f.call(this),this.layoutQuality=s.QUALITY,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=s.DEFAULT_INCREMENTAL,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,x!=null&&(this.isRemoteUse=x)}m.RANDOM_SEED=1,m.prototype=Object.create(f.prototype),m.prototype.getGraphManager=function(){return this.graphManager},m.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},m.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},m.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},m.prototype.newGraphManager=function(){var x=new o(this);return this.graphManager=x,x},m.prototype.newGraph=function(x){return new u(null,this.graphManager,x)},m.prototype.newNode=function(x){return new l(this.graphManager,x)},m.prototype.newEdge=function(x){return new c(null,null,x)},m.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},m.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var x;return this.checkLayoutSuccess()?x=!1:x=this.layout(),s.ANIMATE==="during"?!1:(x&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,x)},m.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},m.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var x=this.graphManager.getAllEdges(),y=0;y<x.length;y++)x[y];for(var C=this.graphManager.getRoot().getNodes(),y=0;y<C.length;y++)C[y];this.update(this.graphManager.getRoot())}},m.prototype.update=function(x){if(x==null)this.update2();else if(x instanceof l){var y=x;if(y.getChild()!=null)for(var C=y.getChild().getNodes(),w=0;w<C.length;w++)update(C[w]);if(y.vGraphObject!=null){var S=y.vGraphObject;S.update(y)}}else if(x instanceof c){var T=x;if(T.vGraphObject!=null){var _=T.vGraphObject;_.update(T)}}else if(x instanceof u){var A=x;if(A.vGraphObject!=null){var E=A.vGraphObject;E.update(A)}}},m.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=s.QUALITY,this.animationDuringLayout=s.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=s.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=s.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=s.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=s.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=s.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},m.prototype.transform=function(x){if(x==null)this.transform(new h(0,0));else{var y=new p,C=this.graphManager.getRoot().updateLeftTop();if(C!=null){y.setWorldOrgX(x.x),y.setWorldOrgY(x.y),y.setDeviceOrgX(C.x),y.setDeviceOrgY(C.y);for(var w=this.getAllNodes(),S,T=0;T<w.length;T++)S=w[T],S.transform(y)}}},m.prototype.positionNodesRandomly=function(x){if(x==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var y,C,w=x.getNodes(),S=0;S<w.length;S++)y=w[S],C=y.getChild(),C==null||C.getNodes().length==0?y.scatter():(this.positionNodesRandomly(C),y.updateBounds())},m.prototype.getFlatForest=function(){for(var x=[],y=!0,C=this.graphManager.getRoot().getNodes(),w=!0,S=0;S<C.length;S++)C[S].getChild()!=null&&(w=!1);if(!w)return x;var T=new Set,_=[],A=new Map,E=[];for(E=E.concat(C);E.length>0&&y;){for(_.push(E[0]);_.length>0&&y;){var L=_[0];_.splice(0,1),T.add(L);for(var z=L.getEdges(),S=0;S<z.length;S++){var D=z[S].getOtherEnd(L);if(A.get(L)!=D)if(!T.has(D))_.push(D),A.set(D,L);else{y=!1;break}}}if(!y)x=[];else{var P=[].concat(a(T));x.push(P);for(var S=0;S<P.length;S++){var q=P[S],W=E.indexOf(q);W>-1&&E.splice(W,1)}T=new Set,A=new Map}}return x},m.prototype.createDummyNodesForBendpoints=function(x){for(var y=[],C=x.source,w=this.graphManager.calcLowestCommonAncestor(x.source,x.target),S=0;S<x.bendpoints.length;S++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),w.add(T);var _=this.newEdge(null);this.graphManager.add(_,C,T),y.add(T),C=T}var _=this.newEdge(null);return this.graphManager.add(_,C,x.target),this.edgeToDummyNodes.set(x,y),x.isInterGraph()?this.graphManager.remove(x):w.remove(x),y},m.prototype.createBendpointsFromDummyNodes=function(){var x=[];x=x.concat(this.graphManager.getAllEdges()),x=[].concat(a(this.edgeToDummyNodes.keys())).concat(x);for(var y=0;y<x.length;y++){var C=x[y];if(C.bendpoints.length>0){for(var w=this.edgeToDummyNodes.get(C),S=0;S<w.length;S++){var T=w[S],_=new h(T.getCenterX(),T.getCenterY()),A=C.bendpoints.get(S);A.x=_.x,A.y=_.y,T.getOwner().remove(T)}this.graphManager.add(C,C.source,C.target)}}},m.transform=function(x,y,C,w){if(C!=null&&w!=null){var S=y;if(x<=50){var T=y/C;S-=(y-T)/50*(50-x)}else{var _=y*w;S+=(_-y)/50*(x-50)}return S}else{var A,E;return x<=50?(A=9*y/500,E=y/10):(A=9*y/50,E=-8*y),A*x+E}},m.findCenterOfTree=function(x){var y=[];y=y.concat(x);var C=[],w=new Map,S=!1,T=null;(y.length==1||y.length==2)&&(S=!0,T=y[0]);for(var _=0;_<y.length;_++){var A=y[_],E=A.getNeighborsList().size;w.set(A,A.getNeighborsList().size),E==1&&C.push(A)}var L=[];for(L=L.concat(C);!S;){var z=[];z=z.concat(L),L=[];for(var _=0;_<y.length;_++){var A=y[_],D=y.indexOf(A);D>=0&&y.splice(D,1);var P=A.getNeighborsList();P.forEach(function(B){if(C.indexOf(B)<0){var j=w.get(B),M=j-1;M==1&&L.push(B),w.set(B,M)}})}C=C.concat(L),(y.length==1||y.length==2)&&(S=!0,T=y[0])}return T},m.prototype.setGraphManager=function(x){this.graphManager=x},r.exports=m}),(function(r,n,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},r.exports=a}),(function(r,n,i){var a=i(5);function s(o,l){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var l=0,c=this.lworldExtX;return c!=0&&(l=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/c),l},s.prototype.transformY=function(o){var l=0,c=this.lworldExtY;return c!=0&&(l=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/c),l},s.prototype.inverseTransformX=function(o){var l=0,c=this.ldeviceExtX;return c!=0&&(l=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/c),l},s.prototype.inverseTransformY=function(o){var l=0,c=this.ldeviceExtY;return c!=0&&(l=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/c),l},s.prototype.inverseTransformPoint=function(o){var l=new a(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,i){function a(f){if(Array.isArray(f)){for(var m=0,x=Array(f.length);m<f.length;m++)x[m]=f[m];return x}else return Array.from(f)}var s=i(15),o=i(4),l=i(0),c=i(8),u=i(9);function h(){s.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}h.prototype=Object.create(s.prototype);for(var p in s)h[p]=s[p];h.prototype.initParameters=function(){s.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var f,m,x,y,C,w,S,T=this.getGraphManager().getAllEdges(),_=0;_<T.length;_++)f=T[_],m=f.idealLength,f.isInterGraph&&(y=f.getSource(),C=f.getTarget(),w=f.getSourceInLca().getEstimatedSize(),S=f.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(f.idealLength+=w+S-2*l.SIMPLE_NODE_SIZE),x=f.getLca().getInclusionTreeDepth(),f.idealLength+=m*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(y.getInclusionTreeDepth()+C.getInclusionTreeDepth()-2*x))},h.prototype.initSpringEmbedder=function(){var f=this.getAllNodes().length;this.incremental?(f>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(f-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(f>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(f-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var f=this.getAllEdges(),m,x=0;x<f.length;x++)m=f[x],this.calcSpringForce(m,m.idealLength)},h.prototype.calcRepulsionForces=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x,y,C,w,S=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&f&&this.updateGrid(),T=new Set,x=0;x<S.length;x++)C=S[x],this.calculateRepulsionForceOfANode(C,T,f,m),T.add(C);else for(x=0;x<S.length;x++)for(C=S[x],y=x+1;y<S.length;y++)w=S[y],C.getOwner()==w.getOwner()&&this.calcRepulsionForce(C,w)},h.prototype.calcGravitationalForces=function(){for(var f,m=this.getAllNodesToApplyGravitation(),x=0;x<m.length;x++)f=m[x],this.calcGravitationalForce(f)},h.prototype.moveNodes=function(){for(var f=this.getAllNodes(),m,x=0;x<f.length;x++)m=f[x],m.move()},h.prototype.calcSpringForce=function(f,m){var x=f.getSource(),y=f.getTarget(),C,w,S,T;if(this.uniformLeafNodeSizes&&x.getChild()==null&&y.getChild()==null)f.updateLengthSimple();else if(f.updateLength(),f.isOverlapingSourceAndTarget)return;C=f.getLength(),C!=0&&(w=f.edgeElasticity*(C-m),S=w*(f.lengthX/C),T=w*(f.lengthY/C),x.springForceX+=S,x.springForceY+=T,y.springForceX-=S,y.springForceY-=T)},h.prototype.calcRepulsionForce=function(f,m){var x=f.getRect(),y=m.getRect(),C=new Array(2),w=new Array(4),S,T,_,A,E,L,z;if(x.intersects(y)){c.calcSeparationAmount(x,y,C,o.DEFAULT_EDGE_LENGTH/2),L=2*C[0],z=2*C[1];var D=f.noOfChildren*m.noOfChildren/(f.noOfChildren+m.noOfChildren);f.repulsionForceX-=D*L,f.repulsionForceY-=D*z,m.repulsionForceX+=D*L,m.repulsionForceY+=D*z}else this.uniformLeafNodeSizes&&f.getChild()==null&&m.getChild()==null?(S=y.getCenterX()-x.getCenterX(),T=y.getCenterY()-x.getCenterY()):(c.getIntersection(x,y,w),S=w[2]-w[0],T=w[3]-w[1]),Math.abs(S)<o.MIN_REPULSION_DIST&&(S=u.sign(S)*o.MIN_REPULSION_DIST),Math.abs(T)<o.MIN_REPULSION_DIST&&(T=u.sign(T)*o.MIN_REPULSION_DIST),_=S*S+T*T,A=Math.sqrt(_),E=(f.nodeRepulsion/2+m.nodeRepulsion/2)*f.noOfChildren*m.noOfChildren/_,L=E*S/A,z=E*T/A,f.repulsionForceX-=L,f.repulsionForceY-=z,m.repulsionForceX+=L,m.repulsionForceY+=z},h.prototype.calcGravitationalForce=function(f){var m,x,y,C,w,S,T,_;m=f.getOwner(),x=(m.getRight()+m.getLeft())/2,y=(m.getTop()+m.getBottom())/2,C=f.getCenterX()-x,w=f.getCenterY()-y,S=Math.abs(C)+f.getWidth()/2,T=Math.abs(w)+f.getHeight()/2,f.getOwner()==this.graphManager.getRoot()?(_=m.getEstimatedSize()*this.gravityRangeFactor,(S>_||T>_)&&(f.gravitationForceX=-this.gravityConstant*C,f.gravitationForceY=-this.gravityConstant*w)):(_=m.getEstimatedSize()*this.compoundGravityRangeFactor,(S>_||T>_)&&(f.gravitationForceX=-this.gravityConstant*C*this.compoundGravityConstant,f.gravitationForceY=-this.gravityConstant*w*this.compoundGravityConstant))},h.prototype.isConverged=function(){var f,m=!1;return this.totalIterations>this.maxIterations/3&&(m=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),f=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,f||m},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var f,m=this.graphManager.getAllNodes(),x=0;x<m.length;x++)f=m[x],f.noOfChildren=f.getNoOfChildren()},h.prototype.calcGrid=function(f){var m=0,x=0;m=parseInt(Math.ceil((f.getRight()-f.getLeft())/this.repulsionRange)),x=parseInt(Math.ceil((f.getBottom()-f.getTop())/this.repulsionRange));for(var y=new Array(m),C=0;C<m;C++)y[C]=new Array(x);for(var C=0;C<m;C++)for(var w=0;w<x;w++)y[C][w]=new Array;return y},h.prototype.addNodeToGrid=function(f,m,x){var y=0,C=0,w=0,S=0;y=parseInt(Math.floor((f.getRect().x-m)/this.repulsionRange)),C=parseInt(Math.floor((f.getRect().width+f.getRect().x-m)/this.repulsionRange)),w=parseInt(Math.floor((f.getRect().y-x)/this.repulsionRange)),S=parseInt(Math.floor((f.getRect().height+f.getRect().y-x)/this.repulsionRange));for(var T=y;T<=C;T++)for(var _=w;_<=S;_++)this.grid[T][_].push(f),f.setGridCoordinates(y,C,w,S)},h.prototype.updateGrid=function(){var f,m,x=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),f=0;f<x.length;f++)m=x[f],this.addNodeToGrid(m,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(f,m,x,y){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&x||y){var C=new Set;f.surrounding=new Array;for(var w,S=this.grid,T=f.startX-1;T<f.finishX+2;T++)for(var _=f.startY-1;_<f.finishY+2;_++)if(!(T<0||_<0||T>=S.length||_>=S[0].length)){for(var A=0;A<S[T][_].length;A++)if(w=S[T][_][A],!(f.getOwner()!=w.getOwner()||f==w)&&!m.has(w)&&!C.has(w)){var E=Math.abs(f.getCenterX()-w.getCenterX())-(f.getWidth()/2+w.getWidth()/2),L=Math.abs(f.getCenterY()-w.getCenterY())-(f.getHeight()/2+w.getHeight()/2);E<=this.repulsionRange&&L<=this.repulsionRange&&C.add(w)}}f.surrounding=[].concat(a(C))}for(T=0;T<f.surrounding.length;T++)this.calcRepulsionForce(f,f.surrounding[T])},h.prototype.calcRepulsionRange=function(){return 0},r.exports=h}),(function(r,n,i){var a=i(1),s=i(4);function o(c,u,h){a.call(this,c,u,h),this.idealLength=s.DEFAULT_EDGE_LENGTH,this.edgeElasticity=s.DEFAULT_SPRING_STRENGTH}o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];r.exports=o}),(function(r,n,i){var a=i(3),s=i(4);function o(c,u,h,p){a.call(this,c,u,h,p),this.nodeRepulsion=s.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}o.prototype=Object.create(a.prototype);for(var l in a)o[l]=a[l];o.prototype.setGridCoordinates=function(c,u,h,p){this.startX=c,this.finishX=u,this.startY=h,this.finishY=p},r.exports=o}),(function(r,n,i){function a(s,o){this.width=0,this.height=0,s!==null&&o!==null&&(this.height=o,this.width=s)}a.prototype.getWidth=function(){return this.width},a.prototype.setWidth=function(s){this.width=s},a.prototype.getHeight=function(){return this.height},a.prototype.setHeight=function(s){this.height=s},r.exports=a}),(function(r,n,i){var a=i(14);function s(){this.map={},this.keys=[]}s.prototype.put=function(o,l){var c=a.createID(o);this.contains(c)||(this.map[c]=l,this.keys.push(o))},s.prototype.contains=function(o){return a.createID(o),this.map[o]!=null},s.prototype.get=function(o){var l=a.createID(o);return this.map[l]},s.prototype.keySet=function(){return this.keys},r.exports=s}),(function(r,n,i){var a=i(14);function s(){this.set={}}s.prototype.add=function(o){var l=a.createID(o);this.contains(l)||(this.set[l]=o)},s.prototype.remove=function(o){delete this.set[a.createID(o)]},s.prototype.clear=function(){this.set={}},s.prototype.contains=function(o){return this.set[a.createID(o)]==o},s.prototype.isEmpty=function(){return this.size()===0},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAllTo=function(o){for(var l=Object.keys(this.set),c=l.length,u=0;u<c;u++)o.push(this.set[l[u]])},s.prototype.size=function(){return Object.keys(this.set).length},s.prototype.addAll=function(o){for(var l=o.length,c=0;c<l;c++){var u=o[c];this.add(u)}},r.exports=s}),(function(r,n,i){function a(){}a.multMat=function(s,o){for(var l=[],c=0;c<s.length;c++){l[c]=[];for(var u=0;u<o[0].length;u++){l[c][u]=0;for(var h=0;h<s[0].length;h++)l[c][u]+=s[c][h]*o[h][u]}}return l},a.transpose=function(s){for(var o=[],l=0;l<s[0].length;l++){o[l]=[];for(var c=0;c<s.length;c++)o[l][c]=s[c][l]}return o},a.multCons=function(s,o){for(var l=[],c=0;c<s.length;c++)l[c]=s[c]*o;return l},a.minusOp=function(s,o){for(var l=[],c=0;c<s.length;c++)l[c]=s[c]-o[c];return l},a.dotProduct=function(s,o){for(var l=0,c=0;c<s.length;c++)l+=s[c]*o[c];return l},a.mag=function(s){return Math.sqrt(this.dotProduct(s,s))},a.normalize=function(s){for(var o=[],l=this.mag(s),c=0;c<s.length;c++)o[c]=s[c]/l;return o},a.multGamma=function(s){for(var o=[],l=0,c=0;c<s.length;c++)l+=s[c];l*=-1/s.length;for(var u=0;u<s.length;u++)o[u]=l+s[u];return o},a.multL=function(s,o,l){for(var c=[],u=[],h=[],p=0;p<o[0].length;p++){for(var f=0,m=0;m<o.length;m++)f+=-.5*o[m][p]*s[m];u[p]=f}for(var x=0;x<l.length;x++){for(var y=0,C=0;C<l.length;C++)y+=l[x][C]*u[C];h[x]=y}for(var w=0;w<o.length;w++){for(var S=0,T=0;T<o[0].length;T++)S+=o[w][T]*h[T];c[w]=S}return c},r.exports=a}),(function(r,n,i){var a=(function(){function c(u,h){for(var p=0;p<h.length;p++){var f=h[p];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,h,p){return h&&c(u.prototype,h),p&&c(u,p),u}})();function s(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var o=i(11),l=(function(){function c(u,h){s(this,c),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var p=void 0;u instanceof o?p=u.size():p=u.length,this._quicksort(u,0,p-1)}return a(c,[{key:"_quicksort",value:function(h,p,f){if(p<f){var m=this._partition(h,p,f);this._quicksort(h,p,m),this._quicksort(h,m+1,f)}}},{key:"_partition",value:function(h,p,f){for(var m=this._get(h,p),x=p,y=f;;){for(;this.compareFunction(m,this._get(h,y));)y--;for(;this.compareFunction(this._get(h,x),m);)x++;if(x<y)this._swap(h,x,y),x++,y--;else return y}}},{key:"_get",value:function(h,p){return h instanceof o?h.get_object_at(p):h[p]}},{key:"_set",value:function(h,p,f){h instanceof o?h.set_object_at(p,f):h[p]=f}},{key:"_swap",value:function(h,p,f){var m=this._get(h,p);this._set(h,p,this._get(h,f)),this._set(h,f,m)}},{key:"_defaultCompareFunction",value:function(h,p){return p>h}}]),c})();r.exports=l}),(function(r,n,i){function a(){}a.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var o=Math.min(this.m,this.n);this.s=(function(pt){for(var Bt=[];pt-- >0;)Bt.push(0);return Bt})(Math.min(this.m+1,this.n)),this.U=(function(pt){var Bt=function Mt(Gt){if(Gt.length==0)return 0;for(var br=[],or=0;or<Gt[0];or++)br.push(Mt(Gt.slice(1)));return br};return Bt(pt)})([this.m,o]),this.V=(function(pt){var Bt=function Mt(Gt){if(Gt.length==0)return 0;for(var br=[],or=0;or<Gt[0];or++)br.push(Mt(Gt.slice(1)));return br};return Bt(pt)})([this.n,this.n]);for(var l=(function(pt){for(var Bt=[];pt-- >0;)Bt.push(0);return Bt})(this.n),c=(function(pt){for(var Bt=[];pt-- >0;)Bt.push(0);return Bt})(this.m),u=!0,h=Math.min(this.m-1,this.n),p=Math.max(0,Math.min(this.n-2,this.m)),f=0;f<Math.max(h,p);f++){if(f<h){this.s[f]=0;for(var m=f;m<this.m;m++)this.s[f]=a.hypot(this.s[f],s[m][f]);if(this.s[f]!==0){s[f][f]<0&&(this.s[f]=-this.s[f]);for(var x=f;x<this.m;x++)s[x][f]/=this.s[f];s[f][f]+=1}this.s[f]=-this.s[f]}for(var y=f+1;y<this.n;y++){if((function(pt,Bt){return pt&&Bt})(f<h,this.s[f]!==0)){for(var C=0,w=f;w<this.m;w++)C+=s[w][f]*s[w][y];C=-C/s[f][f];for(var S=f;S<this.m;S++)s[S][y]+=C*s[S][f]}l[y]=s[f][y]}if((function(pt,Bt){return Bt})(u,f<h))for(var T=f;T<this.m;T++)this.U[T][f]=s[T][f];if(f<p){l[f]=0;for(var _=f+1;_<this.n;_++)l[f]=a.hypot(l[f],l[_]);if(l[f]!==0){l[f+1]<0&&(l[f]=-l[f]);for(var A=f+1;A<this.n;A++)l[A]/=l[f];l[f+1]+=1}if(l[f]=-l[f],(function(pt,Bt){return pt&&Bt})(f+1<this.m,l[f]!==0)){for(var E=f+1;E<this.m;E++)c[E]=0;for(var L=f+1;L<this.n;L++)for(var z=f+1;z<this.m;z++)c[z]+=l[L]*s[z][L];for(var D=f+1;D<this.n;D++)for(var P=-l[D]/l[f+1],q=f+1;q<this.m;q++)s[q][D]+=P*c[q]}for(var W=f+1;W<this.n;W++)this.V[W][f]=l[W]}}var B=Math.min(this.n,this.m+1);h<this.n&&(this.s[h]=s[h][h]),this.m<B&&(this.s[B-1]=0),p+1<B&&(l[p]=s[p][B-1]),l[B-1]=0;{for(var j=h;j<o;j++){for(var M=0;M<this.m;M++)this.U[M][j]=0;this.U[j][j]=1}for(var I=h-1;I>=0;I--)if(this.s[I]!==0){for(var F=I+1;F<o;F++){for(var V=0,R=I;R<this.m;R++)V+=this.U[R][I]*this.U[R][F];V=-V/this.U[I][I];for(var H=I;H<this.m;H++)this.U[H][F]+=V*this.U[H][I]}for(var Y=I;Y<this.m;Y++)this.U[Y][I]=-this.U[Y][I];this.U[I][I]=1+this.U[I][I];for(var U=0;U<I-1;U++)this.U[U][I]=0}else{for(var K=0;K<this.m;K++)this.U[K][I]=0;this.U[I][I]=1}}for(var Q=this.n-1;Q>=0;Q--){if((function(pt,Bt){return pt&&Bt})(Q<p,l[Q]!==0))for(var J=Q+1;J<o;J++){for(var se=0,ue=Q+1;ue<this.n;ue++)se+=this.V[ue][Q]*this.V[ue][J];se=-se/this.V[Q+1][Q];for(var re=Q+1;re<this.n;re++)this.V[re][J]+=se*this.V[re][Q]}for(var ee=0;ee<this.n;ee++)this.V[ee][Q]=0;this.V[Q][Q]=1}for(var Z=B-1,ie=Math.pow(2,-52),ce=Math.pow(2,-966);B>0;){var he=void 0,ke=void 0;for(he=B-2;he>=-1&&he!==-1;he--)if(Math.abs(l[he])<=ce+ie*(Math.abs(this.s[he])+Math.abs(this.s[he+1]))){l[he]=0;break}if(he===B-2)ke=4;else{var He=void 0;for(He=B-1;He>=he&&He!==he;He--){var Ne=(He!==B?Math.abs(l[He]):0)+(He!==he+1?Math.abs(l[He-1]):0);if(Math.abs(this.s[He])<=ce+ie*Ne){this.s[He]=0;break}}He===he?ke=3:He===B-1?ke=1:(ke=2,he=He)}switch(he++,ke){case 1:{var Te=l[B-2];l[B-2]=0;for(var Oe=B-2;Oe>=he;Oe--){var Re=a.hypot(this.s[Oe],Te),Xe=this.s[Oe]/Re,Ue=Te/Re;this.s[Oe]=Re,Oe!==he&&(Te=-Ue*l[Oe-1],l[Oe-1]=Xe*l[Oe-1]);for(var Ge=0;Ge<this.n;Ge++)Re=Xe*this.V[Ge][Oe]+Ue*this.V[Ge][B-1],this.V[Ge][B-1]=-Ue*this.V[Ge][Oe]+Xe*this.V[Ge][B-1],this.V[Ge][Oe]=Re}}break;case 2:{var Ee=l[he-1];l[he-1]=0;for(var Qe=he;Qe<B;Qe++){var me=a.hypot(this.s[Qe],Ee),Me=this.s[Qe]/me,Ke=Ee/me;this.s[Qe]=me,Ee=-Ke*l[Qe],l[Qe]=Me*l[Qe];for(var et=0;et<this.m;et++)me=Me*this.U[et][Qe]+Ke*this.U[et][he-1],this.U[et][he-1]=-Ke*this.U[et][Qe]+Me*this.U[et][he-1],this.U[et][Qe]=me}}break;case 3:{var Se=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[B-1]),Math.abs(this.s[B-2])),Math.abs(l[B-2])),Math.abs(this.s[he])),Math.abs(l[he])),ne=this.s[B-1]/Se,oe=this.s[B-2]/Se,le=l[B-2]/Se,de=this.s[he]/Se,pe=l[he]/Se,xe=((oe+ne)*(oe-ne)+le*le)/2,be=ne*le*(ne*le),Be=0;(function(pt,Bt){return pt||Bt})(xe!==0,be!==0)&&(Be=Math.sqrt(xe*xe+be),xe<0&&(Be=-Be),Be=be/(xe+Be));for(var ze=(de+ne)*(de-ne)+Be,Fe=de*pe,Pe=he;Pe<B-1;Pe++){var tt=a.hypot(ze,Fe),Ye=ze/tt,st=Fe/tt;Pe!==he&&(l[Pe-1]=tt),ze=Ye*this.s[Pe]+st*l[Pe],l[Pe]=Ye*l[Pe]-st*this.s[Pe],Fe=st*this.s[Pe+1],this.s[Pe+1]=Ye*this.s[Pe+1];for(var ht=0;ht<this.n;ht++)tt=Ye*this.V[ht][Pe]+st*this.V[ht][Pe+1],this.V[ht][Pe+1]=-st*this.V[ht][Pe]+Ye*this.V[ht][Pe+1],this.V[ht][Pe]=tt;if(tt=a.hypot(ze,Fe),Ye=ze/tt,st=Fe/tt,this.s[Pe]=tt,ze=Ye*l[Pe]+st*this.s[Pe+1],this.s[Pe+1]=-st*l[Pe]+Ye*this.s[Pe+1],Fe=st*l[Pe+1],l[Pe+1]=Ye*l[Pe+1],Pe<this.m-1)for(var rt=0;rt<this.m;rt++)tt=Ye*this.U[rt][Pe]+st*this.U[rt][Pe+1],this.U[rt][Pe+1]=-st*this.U[rt][Pe]+Ye*this.U[rt][Pe+1],this.U[rt][Pe]=tt}l[B-2]=ze}break;case 4:{if(this.s[he]<=0){this.s[he]=this.s[he]<0?-this.s[he]:0;for(var nt=0;nt<=Z;nt++)this.V[nt][he]=-this.V[nt][he]}for(;he<Z&&!(this.s[he]>=this.s[he+1]);){var Lt=this.s[he];if(this.s[he]=this.s[he+1],this.s[he+1]=Lt,he<this.n-1)for(var ot=0;ot<this.n;ot++)Lt=this.V[ot][he+1],this.V[ot][he+1]=this.V[ot][he],this.V[ot][he]=Lt;if(he<this.m-1)for(var lt=0;lt<this.m;lt++)Lt=this.U[lt][he+1],this.U[lt][he+1]=this.U[lt][he],this.U[lt][he]=Lt;he++}B--}break}}var Ut={U:this.U,V:this.V,S:this.s};return Ut},a.hypot=function(s,o){var l=void 0;return Math.abs(s)>Math.abs(o)?(l=o/s,l=Math.abs(s)*Math.sqrt(1+l*l)):o!=0?(l=s/o,l=Math.abs(o)*Math.sqrt(1+l*l)):l=0,l},r.exports=a}),(function(r,n,i){var a=(function(){function l(c,u){for(var h=0;h<u.length;h++){var p=u[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,p.key,p)}}return function(c,u,h){return u&&l(c.prototype,u),h&&l(c,h),c}})();function s(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var o=(function(){function l(c,u){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,l),this.sequence1=c,this.sequence2=u,this.match_score=h,this.mismatch_penalty=p,this.gap_penalty=f,this.iMax=c.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var m=0;m<this.iMax;m++){this.grid[m]=new Array(this.jMax);for(var x=0;x<this.jMax;x++)this.grid[m][x]=0}this.tracebackGrid=new Array(this.iMax);for(var y=0;y<this.iMax;y++){this.tracebackGrid[y]=new Array(this.jMax);for(var C=0;C<this.jMax;C++)this.tracebackGrid[y][C]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return a(l,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var u=1;u<this.jMax;u++)this.grid[0][u]=this.grid[0][u-1]+this.gap_penalty,this.tracebackGrid[0][u]=[!1,!1,!0];for(var h=1;h<this.iMax;h++)this.grid[h][0]=this.grid[h-1][0]+this.gap_penalty,this.tracebackGrid[h][0]=[!1,!0,!1];for(var p=1;p<this.iMax;p++)for(var f=1;f<this.jMax;f++){var m=void 0;this.sequence1[p-1]===this.sequence2[f-1]?m=this.grid[p-1][f-1]+this.match_score:m=this.grid[p-1][f-1]+this.mismatch_penalty;var x=this.grid[p-1][f]+this.gap_penalty,y=this.grid[p][f-1]+this.gap_penalty,C=[m,x,y],w=this.arrayAllMaxIndexes(C);this.grid[p][f]=C[w[0]],this.tracebackGrid[p][f]=[w.includes(0),w.includes(1),w.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var u=[];for(u.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});u[0];){var h=u[0],p=this.tracebackGrid[h.pos[0]][h.pos[1]];p[0]&&u.push({pos:[h.pos[0]-1,h.pos[1]-1],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),p[1]&&u.push({pos:[h.pos[0]-1,h.pos[1]],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:"-"+h.seq2}),p[2]&&u.push({pos:[h.pos[0],h.pos[1]-1],seq1:"-"+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),h.pos[0]===0&&h.pos[1]===0&&this.alignments.push({sequence1:h.seq1,sequence2:h.seq2}),u.shift()}return this.alignments}},{key:"getAllIndexes",value:function(u,h){for(var p=[],f=-1;(f=u.indexOf(h,f+1))!==-1;)p.push(f);return p}},{key:"arrayAllMaxIndexes",value:function(u){return this.getAllIndexes(u,Math.max.apply(null,u))}}]),l})();r.exports=o}),(function(r,n,i){var a=function(){};a.FDLayout=i(18),a.FDLayoutConstants=i(4),a.FDLayoutEdge=i(19),a.FDLayoutNode=i(20),a.DimensionD=i(21),a.HashMap=i(22),a.HashSet=i(23),a.IGeometry=i(8),a.IMath=i(9),a.Integer=i(10),a.Point=i(12),a.PointD=i(5),a.RandomSeed=i(16),a.RectangleD=i(13),a.Transform=i(17),a.UniqueIDGeneretor=i(14),a.Quicksort=i(25),a.LinkedList=i(11),a.LGraphObject=i(2),a.LGraph=i(6),a.LEdge=i(1),a.LGraphManager=i(7),a.LNode=i(3),a.Layout=i(15),a.LayoutConstants=i(0),a.NeedlemanWunsch=i(27),a.Matrix=i(24),a.SVD=i(26),r.exports=a}),(function(r,n,i){function a(){this.listeners=[]}var s=a.prototype;s.addListener=function(o,l){this.listeners.push({event:o,callback:l})},s.removeListener=function(o,l){for(var c=this.listeners.length;c>=0;c--){var u=this.listeners[c];u.event===o&&u.callback===l&&this.listeners.splice(c,1)}},s.emit=function(o,l){for(var c=0;c<this.listeners.length;c++){var u=this.listeners[c];o===u.event&&u.callback(l)}},r.exports=a})])})})(Wv)),Wv.exports}var QCe=Gv.exports,G$;function JCe(){return G$||(G$=1,(function(e,t){(function(n,i){e.exports=i(ZCe())})(QCe,function(r){return(()=>{var n={45:((o,l,c)=>{var u={};u.layoutBase=c(551),u.CoSEConstants=c(806),u.CoSEEdge=c(767),u.CoSEGraph=c(880),u.CoSEGraphManager=c(578),u.CoSELayout=c(765),u.CoSENode=c(991),u.ConstraintHandler=c(902),o.exports=u}),806:((o,l,c)=>{var u=c(551).FDLayoutConstants;function h(){}for(var p in u)h[p]=u[p];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,o.exports=h}),767:((o,l,c)=>{var u=c(551).FDLayoutEdge;function h(f,m,x){u.call(this,f,m,x)}h.prototype=Object.create(u.prototype);for(var p in u)h[p]=u[p];o.exports=h}),880:((o,l,c)=>{var u=c(551).LGraph;function h(f,m,x){u.call(this,f,m,x)}h.prototype=Object.create(u.prototype);for(var p in u)h[p]=u[p];o.exports=h}),578:((o,l,c)=>{var u=c(551).LGraphManager;function h(f){u.call(this,f)}h.prototype=Object.create(u.prototype);for(var p in u)h[p]=u[p];o.exports=h}),765:((o,l,c)=>{var u=c(551).FDLayout,h=c(578),p=c(880),f=c(991),m=c(767),x=c(806),y=c(902),C=c(551).FDLayoutConstants,w=c(551).LayoutConstants,S=c(551).Point,T=c(551).PointD,_=c(551).DimensionD,A=c(551).Layout,E=c(551).Integer,L=c(551).IGeometry,z=c(551).LGraph,D=c(551).Transform,P=c(551).LinkedList;function q(){u.call(this),this.toBeTiled={},this.constraints={}}q.prototype=Object.create(u.prototype);for(var W in u)q[W]=u[W];q.prototype.newGraphManager=function(){var B=new h(this);return this.graphManager=B,B},q.prototype.newGraph=function(B){return new p(null,this.graphManager,B)},q.prototype.newNode=function(B){return new f(this.graphManager,B)},q.prototype.newEdge=function(B){return new m(null,null,B)},q.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.isSubLayout||(x.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=C.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=C.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=C.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=C.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},q.prototype.initSpringEmbedder=function(){u.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/C.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},q.prototype.layout=function(){var B=w.DEFAULT_CREATE_BENDS_AS_NEEDED;return B&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},q.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(x.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var j=new Set(this.getAllNodes()),M=this.nodesWithGravity.filter(function(V){return j.has(V)});this.graphManager.setAllNodesToApplyGravitation(M)}}else{var B=this.getFlatForest();if(B.length>0)this.positionNodesRadially(B);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var j=new Set(this.getAllNodes()),M=this.nodesWithGravity.filter(function(I){return j.has(I)});this.graphManager.setAllNodesToApplyGravitation(M),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(y.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),x.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},q.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%C.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var B=new Set(this.getAllNodes()),j=this.nodesWithGravity.filter(function(F){return B.has(F)});this.graphManager.setAllNodesToApplyGravitation(j),this.graphManager.updateBounds(),this.updateGrid(),x.PURE_INCREMENTAL?this.coolingFactor=C.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=C.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),x.PURE_INCREMENTAL?this.coolingFactor=C.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=C.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var M=!this.isTreeGrowing&&!this.isGrowthFinished,I=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(M,I),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},q.prototype.getPositionsData=function(){for(var B=this.graphManager.getAllNodes(),j={},M=0;M<B.length;M++){var I=B[M].rect,F=B[M].id;j[F]={id:F,x:I.getCenterX(),y:I.getCenterY(),w:I.width,h:I.height}}return j},q.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var B=!1;if(C.ANIMATE==="during")this.emit("layoutstarted");else{for(;!B;)B=this.tick();this.graphManager.updateBounds()}},q.prototype.moveNodes=function(){for(var B=this.getAllNodes(),j,M=0;M<B.length;M++)j=B[M],j.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var M=0;M<B.length;M++)j=B[M],j.move()},q.prototype.initConstraintVariables=function(){var B=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var j=this.graphManager.getAllNodes(),M=0;M<j.length;M++){var I=j[M];this.idToNodeMap.set(I.id,I)}var F=function re(ee){for(var Z=ee.getChild().getNodes(),ie,ce=0,he=0;he<Z.length;he++)ie=Z[he],ie.getChild()==null?B.fixedNodeSet.has(ie.id)&&(ce+=100):ce+=re(ie);return ce};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(Z){B.fixedNodeSet.add(Z.nodeId)});for(var j=this.graphManager.getAllNodes(),I,M=0;M<j.length;M++)if(I=j[M],I.getChild()!=null){var V=F(I);V>0&&(I.fixedNodeWeight=V)}}if(this.constraints.relativePlacementConstraint){var R=new Map,H=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(re){B.fixedNodesOnHorizontal.add(re),B.fixedNodesOnVertical.add(re)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var Y=this.constraints.alignmentConstraint.vertical,M=0;M<Y.length;M++)this.dummyToNodeForVerticalAlignment.set("dummy"+M,[]),Y[M].forEach(function(ee){R.set(ee,"dummy"+M),B.dummyToNodeForVerticalAlignment.get("dummy"+M).push(ee),B.fixedNodeSet.has(ee)&&B.fixedNodesOnHorizontal.add("dummy"+M)});if(this.constraints.alignmentConstraint.horizontal)for(var U=this.constraints.alignmentConstraint.horizontal,M=0;M<U.length;M++)this.dummyToNodeForHorizontalAlignment.set("dummy"+M,[]),U[M].forEach(function(ee){H.set(ee,"dummy"+M),B.dummyToNodeForHorizontalAlignment.get("dummy"+M).push(ee),B.fixedNodeSet.has(ee)&&B.fixedNodesOnVertical.add("dummy"+M)})}if(x.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(re){var ee,Z,ie;for(ie=re.length-1;ie>=2*re.length/3;ie--)ee=Math.floor(Math.random()*(ie+1)),Z=re[ie],re[ie]=re[ee],re[ee]=Z;return re},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ee=R.has(re.left)?R.get(re.left):re.left,Z=R.has(re.right)?R.get(re.right):re.right;B.nodesInRelativeHorizontal.includes(ee)||(B.nodesInRelativeHorizontal.push(ee),B.nodeToRelativeConstraintMapHorizontal.set(ee,[]),B.dummyToNodeForVerticalAlignment.has(ee)?B.nodeToTempPositionMapHorizontal.set(ee,B.idToNodeMap.get(B.dummyToNodeForVerticalAlignment.get(ee)[0]).getCenterX()):B.nodeToTempPositionMapHorizontal.set(ee,B.idToNodeMap.get(ee).getCenterX())),B.nodesInRelativeHorizontal.includes(Z)||(B.nodesInRelativeHorizontal.push(Z),B.nodeToRelativeConstraintMapHorizontal.set(Z,[]),B.dummyToNodeForVerticalAlignment.has(Z)?B.nodeToTempPositionMapHorizontal.set(Z,B.idToNodeMap.get(B.dummyToNodeForVerticalAlignment.get(Z)[0]).getCenterX()):B.nodeToTempPositionMapHorizontal.set(Z,B.idToNodeMap.get(Z).getCenterX())),B.nodeToRelativeConstraintMapHorizontal.get(ee).push({right:Z,gap:re.gap}),B.nodeToRelativeConstraintMapHorizontal.get(Z).push({left:ee,gap:re.gap})}else{var ie=H.has(re.top)?H.get(re.top):re.top,ce=H.has(re.bottom)?H.get(re.bottom):re.bottom;B.nodesInRelativeVertical.includes(ie)||(B.nodesInRelativeVertical.push(ie),B.nodeToRelativeConstraintMapVertical.set(ie,[]),B.dummyToNodeForHorizontalAlignment.has(ie)?B.nodeToTempPositionMapVertical.set(ie,B.idToNodeMap.get(B.dummyToNodeForHorizontalAlignment.get(ie)[0]).getCenterY()):B.nodeToTempPositionMapVertical.set(ie,B.idToNodeMap.get(ie).getCenterY())),B.nodesInRelativeVertical.includes(ce)||(B.nodesInRelativeVertical.push(ce),B.nodeToRelativeConstraintMapVertical.set(ce,[]),B.dummyToNodeForHorizontalAlignment.has(ce)?B.nodeToTempPositionMapVertical.set(ce,B.idToNodeMap.get(B.dummyToNodeForHorizontalAlignment.get(ce)[0]).getCenterY()):B.nodeToTempPositionMapVertical.set(ce,B.idToNodeMap.get(ce).getCenterY())),B.nodeToRelativeConstraintMapVertical.get(ie).push({bottom:ce,gap:re.gap}),B.nodeToRelativeConstraintMapVertical.get(ce).push({top:ie,gap:re.gap})}});else{var K=new Map,Q=new Map;this.constraints.relativePlacementConstraint.forEach(function(re){if(re.left){var ee=R.has(re.left)?R.get(re.left):re.left,Z=R.has(re.right)?R.get(re.right):re.right;K.has(ee)?K.get(ee).push(Z):K.set(ee,[Z]),K.has(Z)?K.get(Z).push(ee):K.set(Z,[ee])}else{var ie=H.has(re.top)?H.get(re.top):re.top,ce=H.has(re.bottom)?H.get(re.bottom):re.bottom;Q.has(ie)?Q.get(ie).push(ce):Q.set(ie,[ce]),Q.has(ce)?Q.get(ce).push(ie):Q.set(ce,[ie])}});var J=function(ee,Z){var ie=[],ce=[],he=new P,ke=new Set,He=0;return ee.forEach(function(Ne,Te){if(!ke.has(Te)){ie[He]=[],ce[He]=!1;var Oe=Te;for(he.push(Oe),ke.add(Oe),ie[He].push(Oe);he.length!=0;){Oe=he.shift(),Z.has(Oe)&&(ce[He]=!0);var Re=ee.get(Oe);Re.forEach(function(Xe){ke.has(Xe)||(he.push(Xe),ke.add(Xe),ie[He].push(Xe))})}He++}}),{components:ie,isFixed:ce}},se=J(K,B.fixedNodesOnHorizontal);this.componentsOnHorizontal=se.components,this.fixedComponentsOnHorizontal=se.isFixed;var ue=J(Q,B.fixedNodesOnVertical);this.componentsOnVertical=ue.components,this.fixedComponentsOnVertical=ue.isFixed}}},q.prototype.updateDisplacements=function(){var B=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(ue){var re=B.idToNodeMap.get(ue.nodeId);re.displacementX=0,re.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var j=this.constraints.alignmentConstraint.vertical,M=0;M<j.length;M++){for(var I=0,F=0;F<j[M].length;F++){if(this.fixedNodeSet.has(j[M][F])){I=0;break}I+=this.idToNodeMap.get(j[M][F]).displacementX}for(var V=I/j[M].length,F=0;F<j[M].length;F++)this.idToNodeMap.get(j[M][F]).displacementX=V}if(this.constraints.alignmentConstraint.horizontal)for(var R=this.constraints.alignmentConstraint.horizontal,M=0;M<R.length;M++){for(var H=0,F=0;F<R[M].length;F++){if(this.fixedNodeSet.has(R[M][F])){H=0;break}H+=this.idToNodeMap.get(R[M][F]).displacementY}for(var Y=H/R[M].length,F=0;F<R[M].length;F++)this.idToNodeMap.get(R[M][F]).displacementY=Y}}if(this.constraints.relativePlacementConstraint)if(x.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(ue){if(!B.fixedNodesOnHorizontal.has(ue)){var re=0;B.dummyToNodeForVerticalAlignment.has(ue)?re=B.idToNodeMap.get(B.dummyToNodeForVerticalAlignment.get(ue)[0]).displacementX:re=B.idToNodeMap.get(ue).displacementX,B.nodeToRelativeConstraintMapHorizontal.get(ue).forEach(function(ee){if(ee.right){var Z=B.nodeToTempPositionMapHorizontal.get(ee.right)-B.nodeToTempPositionMapHorizontal.get(ue)-re;Z<ee.gap&&(re-=ee.gap-Z)}else{var Z=B.nodeToTempPositionMapHorizontal.get(ue)-B.nodeToTempPositionMapHorizontal.get(ee.left)+re;Z<ee.gap&&(re+=ee.gap-Z)}}),B.nodeToTempPositionMapHorizontal.set(ue,B.nodeToTempPositionMapHorizontal.get(ue)+re),B.dummyToNodeForVerticalAlignment.has(ue)?B.dummyToNodeForVerticalAlignment.get(ue).forEach(function(ee){B.idToNodeMap.get(ee).displacementX=re}):B.idToNodeMap.get(ue).displacementX=re}}),this.nodesInRelativeVertical.forEach(function(ue){if(!B.fixedNodesOnHorizontal.has(ue)){var re=0;B.dummyToNodeForHorizontalAlignment.has(ue)?re=B.idToNodeMap.get(B.dummyToNodeForHorizontalAlignment.get(ue)[0]).displacementY:re=B.idToNodeMap.get(ue).displacementY,B.nodeToRelativeConstraintMapVertical.get(ue).forEach(function(ee){if(ee.bottom){var Z=B.nodeToTempPositionMapVertical.get(ee.bottom)-B.nodeToTempPositionMapVertical.get(ue)-re;Z<ee.gap&&(re-=ee.gap-Z)}else{var Z=B.nodeToTempPositionMapVertical.get(ue)-B.nodeToTempPositionMapVertical.get(ee.top)+re;Z<ee.gap&&(re+=ee.gap-Z)}}),B.nodeToTempPositionMapVertical.set(ue,B.nodeToTempPositionMapVertical.get(ue)+re),B.dummyToNodeForHorizontalAlignment.has(ue)?B.dummyToNodeForHorizontalAlignment.get(ue).forEach(function(ee){B.idToNodeMap.get(ee).displacementY=re}):B.idToNodeMap.get(ue).displacementY=re}});else{for(var M=0;M<this.componentsOnHorizontal.length;M++){var U=this.componentsOnHorizontal[M];if(this.fixedComponentsOnHorizontal[M])for(var F=0;F<U.length;F++)this.dummyToNodeForVerticalAlignment.has(U[F])?this.dummyToNodeForVerticalAlignment.get(U[F]).forEach(function(ee){B.idToNodeMap.get(ee).displacementX=0}):this.idToNodeMap.get(U[F]).displacementX=0;else{for(var K=0,Q=0,F=0;F<U.length;F++)if(this.dummyToNodeForVerticalAlignment.has(U[F])){var J=this.dummyToNodeForVerticalAlignment.get(U[F]);K+=J.length*this.idToNodeMap.get(J[0]).displacementX,Q+=J.length}else K+=this.idToNodeMap.get(U[F]).displacementX,Q++;for(var se=K/Q,F=0;F<U.length;F++)this.dummyToNodeForVerticalAlignment.has(U[F])?this.dummyToNodeForVerticalAlignment.get(U[F]).forEach(function(ee){B.idToNodeMap.get(ee).displacementX=se}):this.idToNodeMap.get(U[F]).displacementX=se}}for(var M=0;M<this.componentsOnVertical.length;M++){var U=this.componentsOnVertical[M];if(this.fixedComponentsOnVertical[M])for(var F=0;F<U.length;F++)this.dummyToNodeForHorizontalAlignment.has(U[F])?this.dummyToNodeForHorizontalAlignment.get(U[F]).forEach(function(Z){B.idToNodeMap.get(Z).displacementY=0}):this.idToNodeMap.get(U[F]).displacementY=0;else{for(var K=0,Q=0,F=0;F<U.length;F++)if(this.dummyToNodeForHorizontalAlignment.has(U[F])){var J=this.dummyToNodeForHorizontalAlignment.get(U[F]);K+=J.length*this.idToNodeMap.get(J[0]).displacementY,Q+=J.length}else K+=this.idToNodeMap.get(U[F]).displacementY,Q++;for(var se=K/Q,F=0;F<U.length;F++)this.dummyToNodeForHorizontalAlignment.has(U[F])?this.dummyToNodeForHorizontalAlignment.get(U[F]).forEach(function(he){B.idToNodeMap.get(he).displacementY=se}):this.idToNodeMap.get(U[F]).displacementY=se}}}},q.prototype.calculateNodesToApplyGravitationTo=function(){var B=[],j,M=this.graphManager.getGraphs(),I=M.length,F;for(F=0;F<I;F++)j=M[F],j.updateConnected(),j.isConnected||(B=B.concat(j.getNodes()));return B},q.prototype.createBendpoints=function(){var B=[];B=B.concat(this.graphManager.getAllEdges());var j=new Set,M;for(M=0;M<B.length;M++){var I=B[M];if(!j.has(I)){var F=I.getSource(),V=I.getTarget();if(F==V)I.getBendpoints().push(new T),I.getBendpoints().push(new T),this.createDummyNodesForBendpoints(I),j.add(I);else{var R=[];if(R=R.concat(F.getEdgeListToNode(V)),R=R.concat(V.getEdgeListToNode(F)),!j.has(R[0])){if(R.length>1){var H;for(H=0;H<R.length;H++){var Y=R[H];Y.getBendpoints().push(new T),this.createDummyNodesForBendpoints(Y)}}R.forEach(function(U){j.add(U)})}}}if(j.size==B.length)break}},q.prototype.positionNodesRadially=function(B){for(var j=new S(0,0),M=Math.ceil(Math.sqrt(B.length)),I=0,F=0,V=0,R=new T(0,0),H=0;H<B.length;H++){H%M==0&&(V=0,F=I,H!=0&&(F+=x.DEFAULT_COMPONENT_SEPERATION),I=0);var Y=B[H],U=A.findCenterOfTree(Y);j.x=V,j.y=F,R=q.radialLayout(Y,U,j),R.y>I&&(I=Math.floor(R.y)),V=Math.floor(R.x+x.DEFAULT_COMPONENT_SEPERATION)}this.transform(new T(w.WORLD_CENTER_X-R.x/2,w.WORLD_CENTER_Y-R.y/2))},q.radialLayout=function(B,j,M){var I=Math.max(this.maxDiagonalInTree(B),x.DEFAULT_RADIAL_SEPARATION);q.branchRadialLayout(j,null,0,359,0,I);var F=z.calculateBounds(B),V=new D;V.setDeviceOrgX(F.getMinX()),V.setDeviceOrgY(F.getMinY()),V.setWorldOrgX(M.x),V.setWorldOrgY(M.y);for(var R=0;R<B.length;R++){var H=B[R];H.transform(V)}var Y=new T(F.getMaxX(),F.getMaxY());return V.inverseTransformPoint(Y)},q.branchRadialLayout=function(B,j,M,I,F,V){var R=(I-M+1)/2;R<0&&(R+=180);var H=(R+M)%360,Y=H*L.TWO_PI/360,U=F*Math.cos(Y),K=F*Math.sin(Y);B.setCenter(U,K);var Q=[];Q=Q.concat(B.getEdges());var J=Q.length;j!=null&&J--;for(var se=0,ue=Q.length,re,ee=B.getEdgesBetween(j);ee.length>1;){var Z=ee[0];ee.splice(0,1);var ie=Q.indexOf(Z);ie>=0&&Q.splice(ie,1),ue--,J--}j!=null?re=(Q.indexOf(ee[0])+1)%ue:re=0;for(var ce=Math.abs(I-M)/J,he=re;se!=J;he=++he%ue){var ke=Q[he].getOtherEnd(B);if(ke!=j){var He=(M+se*ce)%360,Ne=(He+ce)%360;q.branchRadialLayout(ke,B,He,Ne,F+V,V),se++}}},q.maxDiagonalInTree=function(B){for(var j=E.MIN_VALUE,M=0;M<B.length;M++){var I=B[M],F=I.getDiagonal();F>j&&(j=F)}return j},q.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},q.prototype.groupZeroDegreeMembers=function(){var B=this,j={};this.memberGroups={},this.idToDummyNode={};for(var M=[],I=this.graphManager.getAllNodes(),F=0;F<I.length;F++){var V=I[F],R=V.getParent();this.getNodeDegreeWithChildren(V)===0&&(R.id==null||!this.getToBeTiled(R))&&M.push(V)}for(var F=0;F<M.length;F++){var V=M[F],H=V.getParent().id;typeof j[H]>"u"&&(j[H]=[]),j[H]=j[H].concat(V)}Object.keys(j).forEach(function(Y){if(j[Y].length>1){var U="DummyCompound_"+Y;B.memberGroups[U]=j[Y];var K=j[Y][0].getParent(),Q=new f(B.graphManager);Q.id=U,Q.paddingLeft=K.paddingLeft||0,Q.paddingRight=K.paddingRight||0,Q.paddingBottom=K.paddingBottom||0,Q.paddingTop=K.paddingTop||0,B.idToDummyNode[U]=Q;var J=B.getGraphManager().add(B.newGraph(),Q),se=K.getChild();se.add(Q);for(var ue=0;ue<j[Y].length;ue++){var re=j[Y][ue];se.remove(re),J.add(re)}}})},q.prototype.clearCompounds=function(){var B={},j={};this.performDFSOnCompounds();for(var M=0;M<this.compoundOrder.length;M++)j[this.compoundOrder[M].id]=this.compoundOrder[M],B[this.compoundOrder[M].id]=[].concat(this.compoundOrder[M].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[M].getChild()),this.compoundOrder[M].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(B,j)},q.prototype.clearZeroDegreeMembers=function(){var B=this,j=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(M){var I=B.idToDummyNode[M];if(j[M]=B.tileNodes(B.memberGroups[M],I.paddingLeft+I.paddingRight),I.rect.width=j[M].width,I.rect.height=j[M].height,I.setCenter(j[M].centerX,j[M].centerY),I.labelMarginLeft=0,I.labelMarginTop=0,x.NODE_DIMENSIONS_INCLUDE_LABELS){var F=I.rect.width,V=I.rect.height;I.labelWidth&&(I.labelPosHorizontal=="left"?(I.rect.x-=I.labelWidth,I.setWidth(F+I.labelWidth),I.labelMarginLeft=I.labelWidth):I.labelPosHorizontal=="center"&&I.labelWidth>F?(I.rect.x-=(I.labelWidth-F)/2,I.setWidth(I.labelWidth),I.labelMarginLeft=(I.labelWidth-F)/2):I.labelPosHorizontal=="right"&&I.setWidth(F+I.labelWidth)),I.labelHeight&&(I.labelPosVertical=="top"?(I.rect.y-=I.labelHeight,I.setHeight(V+I.labelHeight),I.labelMarginTop=I.labelHeight):I.labelPosVertical=="center"&&I.labelHeight>V?(I.rect.y-=(I.labelHeight-V)/2,I.setHeight(I.labelHeight),I.labelMarginTop=(I.labelHeight-V)/2):I.labelPosVertical=="bottom"&&I.setHeight(V+I.labelHeight))}})},q.prototype.repopulateCompounds=function(){for(var B=this.compoundOrder.length-1;B>=0;B--){var j=this.compoundOrder[B],M=j.id,I=j.paddingLeft,F=j.paddingTop,V=j.labelMarginLeft,R=j.labelMarginTop;this.adjustLocations(this.tiledMemberPack[M],j.rect.x,j.rect.y,I,F,V,R)}},q.prototype.repopulateZeroDegreeMembers=function(){var B=this,j=this.tiledZeroDegreePack;Object.keys(j).forEach(function(M){var I=B.idToDummyNode[M],F=I.paddingLeft,V=I.paddingTop,R=I.labelMarginLeft,H=I.labelMarginTop;B.adjustLocations(j[M],I.rect.x,I.rect.y,F,V,R,H)})},q.prototype.getToBeTiled=function(B){var j=B.id;if(this.toBeTiled[j]!=null)return this.toBeTiled[j];var M=B.getChild();if(M==null)return this.toBeTiled[j]=!1,!1;for(var I=M.getNodes(),F=0;F<I.length;F++){var V=I[F];if(this.getNodeDegree(V)>0)return this.toBeTiled[j]=!1,!1;if(V.getChild()==null){this.toBeTiled[V.id]=!1;continue}if(!this.getToBeTiled(V))return this.toBeTiled[j]=!1,!1}return this.toBeTiled[j]=!0,!0},q.prototype.getNodeDegree=function(B){B.id;for(var j=B.getEdges(),M=0,I=0;I<j.length;I++){var F=j[I];F.getSource().id!==F.getTarget().id&&(M=M+1)}return M},q.prototype.getNodeDegreeWithChildren=function(B){var j=this.getNodeDegree(B);if(B.getChild()==null)return j;for(var M=B.getChild().getNodes(),I=0;I<M.length;I++){var F=M[I];j+=this.getNodeDegreeWithChildren(F)}return j},q.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},q.prototype.fillCompexOrderByDFS=function(B){for(var j=0;j<B.length;j++){var M=B[j];M.getChild()!=null&&this.fillCompexOrderByDFS(M.getChild().getNodes()),this.getToBeTiled(M)&&this.compoundOrder.push(M)}},q.prototype.adjustLocations=function(B,j,M,I,F,V,R){j+=I+V,M+=F+R;for(var H=j,Y=0;Y<B.rows.length;Y++){var U=B.rows[Y];j=H;for(var K=0,Q=0;Q<U.length;Q++){var J=U[Q];J.rect.x=j,J.rect.y=M,j+=J.rect.width+B.horizontalPadding,J.rect.height>K&&(K=J.rect.height)}M+=K+B.verticalPadding}},q.prototype.tileCompoundMembers=function(B,j){var M=this;this.tiledMemberPack=[],Object.keys(B).forEach(function(I){var F=j[I];if(M.tiledMemberPack[I]=M.tileNodes(B[I],F.paddingLeft+F.paddingRight),F.rect.width=M.tiledMemberPack[I].width,F.rect.height=M.tiledMemberPack[I].height,F.setCenter(M.tiledMemberPack[I].centerX,M.tiledMemberPack[I].centerY),F.labelMarginLeft=0,F.labelMarginTop=0,x.NODE_DIMENSIONS_INCLUDE_LABELS){var V=F.rect.width,R=F.rect.height;F.labelWidth&&(F.labelPosHorizontal=="left"?(F.rect.x-=F.labelWidth,F.setWidth(V+F.labelWidth),F.labelMarginLeft=F.labelWidth):F.labelPosHorizontal=="center"&&F.labelWidth>V?(F.rect.x-=(F.labelWidth-V)/2,F.setWidth(F.labelWidth),F.labelMarginLeft=(F.labelWidth-V)/2):F.labelPosHorizontal=="right"&&F.setWidth(V+F.labelWidth)),F.labelHeight&&(F.labelPosVertical=="top"?(F.rect.y-=F.labelHeight,F.setHeight(R+F.labelHeight),F.labelMarginTop=F.labelHeight):F.labelPosVertical=="center"&&F.labelHeight>R?(F.rect.y-=(F.labelHeight-R)/2,F.setHeight(F.labelHeight),F.labelMarginTop=(F.labelHeight-R)/2):F.labelPosVertical=="bottom"&&F.setHeight(R+F.labelHeight))}})},q.prototype.tileNodes=function(B,j){var M=this.tileNodesByFavoringDim(B,j,!0),I=this.tileNodesByFavoringDim(B,j,!1),F=this.getOrgRatio(M),V=this.getOrgRatio(I),R;return V<F?R=I:R=M,R},q.prototype.getOrgRatio=function(B){var j=B.width,M=B.height,I=j/M;return I<1&&(I=1/I),I},q.prototype.calcIdealRowWidth=function(B,j){var M=x.TILING_PADDING_VERTICAL,I=x.TILING_PADDING_HORIZONTAL,F=B.length,V=0,R=0,H=0;B.forEach(function(ue){V+=ue.getWidth(),R+=ue.getHeight(),ue.getWidth()>H&&(H=ue.getWidth())});var Y=V/F,U=R/F,K=Math.pow(M-I,2)+4*(Y+I)*(U+M)*F,Q=(I-M+Math.sqrt(K))/(2*(Y+I)),J;j?(J=Math.ceil(Q),J==Q&&J++):J=Math.floor(Q);var se=J*(Y+I)-I;return H>se&&(se=H),se+=I*2,se},q.prototype.tileNodesByFavoringDim=function(B,j,M){var I=x.TILING_PADDING_VERTICAL,F=x.TILING_PADDING_HORIZONTAL,V=x.TILING_COMPARE_BY,R={rows:[],rowWidth:[],rowHeight:[],width:0,height:j,verticalPadding:I,horizontalPadding:F,centerX:0,centerY:0};V&&(R.idealRowWidth=this.calcIdealRowWidth(B,M));var H=function(re){return re.rect.width*re.rect.height},Y=function(re,ee){return H(ee)-H(re)};B.sort(function(ue,re){var ee=Y;return R.idealRowWidth?(ee=V,ee(ue.id,re.id)):ee(ue,re)});for(var U=0,K=0,Q=0;Q<B.length;Q++){var J=B[Q];U+=J.getCenterX(),K+=J.getCenterY()}R.centerX=U/B.length,R.centerY=K/B.length;for(var Q=0;Q<B.length;Q++){var J=B[Q];if(R.rows.length==0)this.insertNodeToRow(R,J,0,j);else if(this.canAddHorizontal(R,J.rect.width,J.rect.height)){var se=R.rows.length-1;R.idealRowWidth||(se=this.getShortestRowIndex(R)),this.insertNodeToRow(R,J,se,j)}else this.insertNodeToRow(R,J,R.rows.length,j);this.shiftToLastRow(R)}return R},q.prototype.insertNodeToRow=function(B,j,M,I){var F=I;if(M==B.rows.length){var V=[];B.rows.push(V),B.rowWidth.push(F),B.rowHeight.push(0)}var R=B.rowWidth[M]+j.rect.width;B.rows[M].length>0&&(R+=B.horizontalPadding),B.rowWidth[M]=R,B.width<R&&(B.width=R);var H=j.rect.height;M>0&&(H+=B.verticalPadding);var Y=0;H>B.rowHeight[M]&&(Y=B.rowHeight[M],B.rowHeight[M]=H,Y=B.rowHeight[M]-Y),B.height+=Y,B.rows[M].push(j)},q.prototype.getShortestRowIndex=function(B){for(var j=-1,M=Number.MAX_VALUE,I=0;I<B.rows.length;I++)B.rowWidth[I]<M&&(j=I,M=B.rowWidth[I]);return j},q.prototype.getLongestRowIndex=function(B){for(var j=-1,M=Number.MIN_VALUE,I=0;I<B.rows.length;I++)B.rowWidth[I]>M&&(j=I,M=B.rowWidth[I]);return j},q.prototype.canAddHorizontal=function(B,j,M){if(B.idealRowWidth){var I=B.rows.length-1,F=B.rowWidth[I];return F+j+B.horizontalPadding<=B.idealRowWidth}var V=this.getShortestRowIndex(B);if(V<0)return!0;var R=B.rowWidth[V];if(R+B.horizontalPadding+j<=B.width)return!0;var H=0;B.rowHeight[V]<M&&V>0&&(H=M+B.verticalPadding-B.rowHeight[V]);var Y;B.width-R>=j+B.horizontalPadding?Y=(B.height+H)/(R+j+B.horizontalPadding):Y=(B.height+H)/B.width,H=M+B.verticalPadding;var U;return B.width<j?U=(B.height+H)/j:U=(B.height+H)/B.width,U<1&&(U=1/U),Y<1&&(Y=1/Y),Y<U},q.prototype.shiftToLastRow=function(B){var j=this.getLongestRowIndex(B),M=B.rowWidth.length-1,I=B.rows[j],F=I[I.length-1],V=F.width+B.horizontalPadding;if(B.width-B.rowWidth[M]>V&&j!=M){I.splice(-1,1),B.rows[M].push(F),B.rowWidth[j]=B.rowWidth[j]-V,B.rowWidth[M]=B.rowWidth[M]+V,B.width=B.rowWidth[instance.getLongestRowIndex(B)];for(var R=Number.MIN_VALUE,H=0;H<I.length;H++)I[H].height>R&&(R=I[H].height);j>0&&(R+=B.verticalPadding);var Y=B.rowHeight[j]+B.rowHeight[M];B.rowHeight[j]=R,B.rowHeight[M]<F.height+B.verticalPadding&&(B.rowHeight[M]=F.height+B.verticalPadding);var U=B.rowHeight[j]+B.rowHeight[M];B.height+=U-Y,this.shiftToLastRow(B)}},q.prototype.tilingPreLayout=function(){x.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},q.prototype.tilingPostLayout=function(){x.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},q.prototype.reduceTrees=function(){for(var B=[],j=!0,M;j;){var I=this.graphManager.getAllNodes(),F=[];j=!1;for(var V=0;V<I.length;V++)if(M=I[V],M.getEdges().length==1&&!M.getEdges()[0].isInterGraph&&M.getChild()==null){if(x.PURE_INCREMENTAL){var R=M.getEdges()[0].getOtherEnd(M),H=new _(M.getCenterX()-R.getCenterX(),M.getCenterY()-R.getCenterY());F.push([M,M.getEdges()[0],M.getOwner(),H])}else F.push([M,M.getEdges()[0],M.getOwner()]);j=!0}if(j==!0){for(var Y=[],U=0;U<F.length;U++)F[U][0].getEdges().length==1&&(Y.push(F[U]),F[U][0].getOwner().remove(F[U][0]));B.push(Y),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=B},q.prototype.growTree=function(B){for(var j=B.length,M=B[j-1],I,F=0;F<M.length;F++)I=M[F],this.findPlaceforPrunedNode(I),I[2].add(I[0]),I[2].add(I[1],I[1].source,I[1].target);B.splice(B.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},q.prototype.findPlaceforPrunedNode=function(B){var j,M,I=B[0];if(I==B[1].source?M=B[1].target:M=B[1].source,x.PURE_INCREMENTAL)I.setCenter(M.getCenterX()+B[3].getWidth(),M.getCenterY()+B[3].getHeight());else{var F=M.startX,V=M.finishX,R=M.startY,H=M.finishY,Y=0,U=0,K=0,Q=0,J=[Y,K,U,Q];if(R>0)for(var se=F;se<=V;se++)J[0]+=this.grid[se][R-1].length+this.grid[se][R].length-1;if(V<this.grid.length-1)for(var se=R;se<=H;se++)J[1]+=this.grid[V+1][se].length+this.grid[V][se].length-1;if(H<this.grid[0].length-1)for(var se=F;se<=V;se++)J[2]+=this.grid[se][H+1].length+this.grid[se][H].length-1;if(F>0)for(var se=R;se<=H;se++)J[3]+=this.grid[F-1][se].length+this.grid[F][se].length-1;for(var ue=E.MAX_VALUE,re,ee,Z=0;Z<J.length;Z++)J[Z]<ue?(ue=J[Z],re=1,ee=Z):J[Z]==ue&&re++;if(re==3&&ue==0)J[0]==0&&J[1]==0&&J[2]==0?j=1:J[0]==0&&J[1]==0&&J[3]==0?j=0:J[0]==0&&J[2]==0&&J[3]==0?j=3:J[1]==0&&J[2]==0&&J[3]==0&&(j=2);else if(re==2&&ue==0){var ie=Math.floor(Math.random()*2);J[0]==0&&J[1]==0?ie==0?j=0:j=1:J[0]==0&&J[2]==0?ie==0?j=0:j=2:J[0]==0&&J[3]==0?ie==0?j=0:j=3:J[1]==0&&J[2]==0?ie==0?j=1:j=2:J[1]==0&&J[3]==0?ie==0?j=1:j=3:ie==0?j=2:j=3}else if(re==4&&ue==0){var ie=Math.floor(Math.random()*4);j=ie}else j=ee;j==0?I.setCenter(M.getCenterX(),M.getCenterY()-M.getHeight()/2-C.DEFAULT_EDGE_LENGTH-I.getHeight()/2):j==1?I.setCenter(M.getCenterX()+M.getWidth()/2+C.DEFAULT_EDGE_LENGTH+I.getWidth()/2,M.getCenterY()):j==2?I.setCenter(M.getCenterX(),M.getCenterY()+M.getHeight()/2+C.DEFAULT_EDGE_LENGTH+I.getHeight()/2):I.setCenter(M.getCenterX()-M.getWidth()/2-C.DEFAULT_EDGE_LENGTH-I.getWidth()/2,M.getCenterY())}},o.exports=q}),991:((o,l,c)=>{var u=c(551).FDLayoutNode,h=c(551).IMath;function p(m,x,y,C){u.call(this,m,x,y,C)}p.prototype=Object.create(u.prototype);for(var f in u)p[f]=u[f];p.prototype.calculateDisplacement=function(){var m=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=m.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=m.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=m.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=m.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementX=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>m.coolingFactor*m.maxNodeDisplacement&&(this.displacementY=m.coolingFactor*m.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(m,x){for(var y=this.getChild().getNodes(),C,w=0;w<y.length;w++)C=y[w],C.getChild()==null?(C.displacementX+=m,C.displacementY+=x):C.propogateDisplacementToChildren(m,x)},p.prototype.move=function(){var m=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),m.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},p.prototype.setPred1=function(m){this.pred1=m},p.prototype.getPred1=function(){return pred1},p.prototype.getPred2=function(){return pred2},p.prototype.setNext=function(m){this.next=m},p.prototype.getNext=function(){return next},p.prototype.setProcessed=function(m){this.processed=m},p.prototype.isProcessed=function(){return processed},o.exports=p}),902:((o,l,c)=>{function u(y){if(Array.isArray(y)){for(var C=0,w=Array(y.length);C<y.length;C++)w[C]=y[C];return w}else return Array.from(y)}var h=c(806),p=c(551).LinkedList,f=c(551).Matrix,m=c(551).SVD;function x(){}x.handleConstraints=function(y){var C={};C.fixedNodeConstraint=y.constraints.fixedNodeConstraint,C.alignmentConstraint=y.constraints.alignmentConstraint,C.relativePlacementConstraint=y.constraints.relativePlacementConstraint;for(var w=new Map,S=new Map,T=[],_=[],A=y.getAllNodes(),E=0,L=0;L<A.length;L++){var z=A[L];z.getChild()==null&&(S.set(z.id,E++),T.push(z.getCenterX()),_.push(z.getCenterY()),w.set(z.id,z))}C.relativePlacementConstraint&&C.relativePlacementConstraint.forEach(function(oe){!oe.gap&&oe.gap!=0&&(oe.left?oe.gap=h.DEFAULT_EDGE_LENGTH+w.get(oe.left).getWidth()/2+w.get(oe.right).getWidth()/2:oe.gap=h.DEFAULT_EDGE_LENGTH+w.get(oe.top).getHeight()/2+w.get(oe.bottom).getHeight()/2)});var D=function(le,de){return{x:le.x-de.x,y:le.y-de.y}},P=function(le){var de=0,pe=0;return le.forEach(function(xe){de+=T[S.get(xe)],pe+=_[S.get(xe)]}),{x:de/le.size,y:pe/le.size}},q=function(le,de,pe,xe,be){function Be(rt,nt){var Lt=new Set(rt),ot=!0,lt=!1,Ut=void 0;try{for(var pt=nt[Symbol.iterator](),Bt;!(ot=(Bt=pt.next()).done);ot=!0){var Mt=Bt.value;Lt.add(Mt)}}catch(Gt){lt=!0,Ut=Gt}finally{try{!ot&&pt.return&&pt.return()}finally{if(lt)throw Ut}}return Lt}var ze=new Map;le.forEach(function(rt,nt){ze.set(nt,0)}),le.forEach(function(rt,nt){rt.forEach(function(Lt){ze.set(Lt.id,ze.get(Lt.id)+1)})});var Fe=new Map,Pe=new Map,tt=new p;ze.forEach(function(rt,nt){rt==0?(tt.push(nt),pe||(de=="horizontal"?Fe.set(nt,S.has(nt)?T[S.get(nt)]:xe.get(nt)):Fe.set(nt,S.has(nt)?_[S.get(nt)]:xe.get(nt)))):Fe.set(nt,Number.NEGATIVE_INFINITY),pe&&Pe.set(nt,new Set([nt]))}),pe&&be.forEach(function(rt){var nt=[];if(rt.forEach(function(lt){pe.has(lt)&&nt.push(lt)}),nt.length>0){var Lt=0;nt.forEach(function(lt){de=="horizontal"?(Fe.set(lt,S.has(lt)?T[S.get(lt)]:xe.get(lt)),Lt+=Fe.get(lt)):(Fe.set(lt,S.has(lt)?_[S.get(lt)]:xe.get(lt)),Lt+=Fe.get(lt))}),Lt=Lt/nt.length,rt.forEach(function(lt){pe.has(lt)||Fe.set(lt,Lt)})}else{var ot=0;rt.forEach(function(lt){de=="horizontal"?ot+=S.has(lt)?T[S.get(lt)]:xe.get(lt):ot+=S.has(lt)?_[S.get(lt)]:xe.get(lt)}),ot=ot/rt.length,rt.forEach(function(lt){Fe.set(lt,ot)})}});for(var Ye=function(){var nt=tt.shift(),Lt=le.get(nt);Lt.forEach(function(ot){if(Fe.get(ot.id)<Fe.get(nt)+ot.gap)if(pe&&pe.has(ot.id)){var lt=void 0;if(de=="horizontal"?lt=S.has(ot.id)?T[S.get(ot.id)]:xe.get(ot.id):lt=S.has(ot.id)?_[S.get(ot.id)]:xe.get(ot.id),Fe.set(ot.id,lt),lt<Fe.get(nt)+ot.gap){var Ut=Fe.get(nt)+ot.gap-lt;Pe.get(nt).forEach(function(pt){Fe.set(pt,Fe.get(pt)-Ut)})}}else Fe.set(ot.id,Fe.get(nt)+ot.gap);ze.set(ot.id,ze.get(ot.id)-1),ze.get(ot.id)==0&&tt.push(ot.id),pe&&Pe.set(ot.id,Be(Pe.get(nt),Pe.get(ot.id)))})};tt.length!=0;)Ye();if(pe){var st=new Set;le.forEach(function(rt,nt){rt.length==0&&st.add(nt)});var ht=[];Pe.forEach(function(rt,nt){if(st.has(nt)){var Lt=!1,ot=!0,lt=!1,Ut=void 0;try{for(var pt=rt[Symbol.iterator](),Bt;!(ot=(Bt=pt.next()).done);ot=!0){var Mt=Bt.value;pe.has(Mt)&&(Lt=!0)}}catch(or){lt=!0,Ut=or}finally{try{!ot&&pt.return&&pt.return()}finally{if(lt)throw Ut}}if(!Lt){var Gt=!1,br=void 0;ht.forEach(function(or,Mr){or.has([].concat(u(rt))[0])&&(Gt=!0,br=Mr)}),Gt?rt.forEach(function(or){ht[br].add(or)}):ht.push(new Set(rt))}}}),ht.forEach(function(rt,nt){var Lt=Number.POSITIVE_INFINITY,ot=Number.POSITIVE_INFINITY,lt=Number.NEGATIVE_INFINITY,Ut=Number.NEGATIVE_INFINITY,pt=!0,Bt=!1,Mt=void 0;try{for(var Gt=rt[Symbol.iterator](),br;!(pt=(br=Gt.next()).done);pt=!0){var or=br.value,Mr=void 0;de=="horizontal"?Mr=S.has(or)?T[S.get(or)]:xe.get(or):Mr=S.has(or)?_[S.get(or)]:xe.get(or);var Pt=Fe.get(or);Mr<Lt&&(Lt=Mr),Mr>lt&&(lt=Mr),Pt<ot&&(ot=Pt),Pt>Ut&&(Ut=Pt)}}catch(ft){Bt=!0,Mt=ft}finally{try{!pt&&Gt.return&&Gt.return()}finally{if(Bt)throw Mt}}var Ht=(Lt+lt)/2-(ot+Ut)/2,nr=!0,Sr=!1,Dn=void 0;try{for(var Ur=rt[Symbol.iterator](),bi;!(nr=(bi=Ur.next()).done);nr=!0){var Rn=bi.value;Fe.set(Rn,Fe.get(Rn)+Ht)}}catch(ft){Sr=!0,Dn=ft}finally{try{!nr&&Ur.return&&Ur.return()}finally{if(Sr)throw Dn}}})}return Fe},W=function(le){var de=0,pe=0,xe=0,be=0;if(le.forEach(function(Pe){Pe.left?T[S.get(Pe.left)]-T[S.get(Pe.right)]>=0?de++:pe++:_[S.get(Pe.top)]-_[S.get(Pe.bottom)]>=0?xe++:be++}),de>pe&&xe>be)for(var Be=0;Be<S.size;Be++)T[Be]=-1*T[Be],_[Be]=-1*_[Be];else if(de>pe)for(var ze=0;ze<S.size;ze++)T[ze]=-1*T[ze];else if(xe>be)for(var Fe=0;Fe<S.size;Fe++)_[Fe]=-1*_[Fe]},B=function(le){var de=[],pe=new p,xe=new Set,be=0;return le.forEach(function(Be,ze){if(!xe.has(ze)){de[be]=[];var Fe=ze;for(pe.push(Fe),xe.add(Fe),de[be].push(Fe);pe.length!=0;){Fe=pe.shift();var Pe=le.get(Fe);Pe.forEach(function(tt){xe.has(tt.id)||(pe.push(tt.id),xe.add(tt.id),de[be].push(tt.id))})}be++}}),de},j=function(le){var de=new Map;return le.forEach(function(pe,xe){de.set(xe,[])}),le.forEach(function(pe,xe){pe.forEach(function(be){de.get(xe).push(be),de.get(be.id).push({id:xe,gap:be.gap,direction:be.direction})})}),de},M=function(le){var de=new Map;return le.forEach(function(pe,xe){de.set(xe,[])}),le.forEach(function(pe,xe){pe.forEach(function(be){de.get(be.id).push({id:xe,gap:be.gap,direction:be.direction})})}),de},I=[],F=[],V=!1,R=!1,H=new Set,Y=new Map,U=new Map,K=[];if(C.fixedNodeConstraint&&C.fixedNodeConstraint.forEach(function(oe){H.add(oe.nodeId)}),C.relativePlacementConstraint&&(C.relativePlacementConstraint.forEach(function(oe){oe.left?(Y.has(oe.left)?Y.get(oe.left).push({id:oe.right,gap:oe.gap,direction:"horizontal"}):Y.set(oe.left,[{id:oe.right,gap:oe.gap,direction:"horizontal"}]),Y.has(oe.right)||Y.set(oe.right,[])):(Y.has(oe.top)?Y.get(oe.top).push({id:oe.bottom,gap:oe.gap,direction:"vertical"}):Y.set(oe.top,[{id:oe.bottom,gap:oe.gap,direction:"vertical"}]),Y.has(oe.bottom)||Y.set(oe.bottom,[]))}),U=j(Y),K=B(U)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(C.fixedNodeConstraint&&C.fixedNodeConstraint.length>1)C.fixedNodeConstraint.forEach(function(oe,le){I[le]=[oe.position.x,oe.position.y],F[le]=[T[S.get(oe.nodeId)],_[S.get(oe.nodeId)]]}),V=!0;else if(C.alignmentConstraint)(function(){var oe=0;if(C.alignmentConstraint.vertical){for(var le=C.alignmentConstraint.vertical,de=function(Fe){var Pe=new Set;le[Fe].forEach(function(st){Pe.add(st)});var tt=new Set([].concat(u(Pe)).filter(function(st){return H.has(st)})),Ye=void 0;tt.size>0?Ye=T[S.get(tt.values().next().value)]:Ye=P(Pe).x,le[Fe].forEach(function(st){I[oe]=[Ye,_[S.get(st)]],F[oe]=[T[S.get(st)],_[S.get(st)]],oe++})},pe=0;pe<le.length;pe++)de(pe);V=!0}if(C.alignmentConstraint.horizontal){for(var xe=C.alignmentConstraint.horizontal,be=function(Fe){var Pe=new Set;xe[Fe].forEach(function(st){Pe.add(st)});var tt=new Set([].concat(u(Pe)).filter(function(st){return H.has(st)})),Ye=void 0;tt.size>0?Ye=T[S.get(tt.values().next().value)]:Ye=P(Pe).y,xe[Fe].forEach(function(st){I[oe]=[T[S.get(st)],Ye],F[oe]=[T[S.get(st)],_[S.get(st)]],oe++})},Be=0;Be<xe.length;Be++)be(Be);V=!0}C.relativePlacementConstraint&&(R=!0)})();else if(C.relativePlacementConstraint){for(var Q=0,J=0,se=0;se<K.length;se++)K[se].length>Q&&(Q=K[se].length,J=se);if(Q<U.size/2)W(C.relativePlacementConstraint),V=!1,R=!1;else{var ue=new Map,re=new Map,ee=[];K[J].forEach(function(oe){Y.get(oe).forEach(function(le){le.direction=="horizontal"?(ue.has(oe)?ue.get(oe).push(le):ue.set(oe,[le]),ue.has(le.id)||ue.set(le.id,[]),ee.push({left:oe,right:le.id})):(re.has(oe)?re.get(oe).push(le):re.set(oe,[le]),re.has(le.id)||re.set(le.id,[]),ee.push({top:oe,bottom:le.id}))})}),W(ee),R=!1;var Z=q(ue,"horizontal"),ie=q(re,"vertical");K[J].forEach(function(oe,le){F[le]=[T[S.get(oe)],_[S.get(oe)]],I[le]=[],Z.has(oe)?I[le][0]=Z.get(oe):I[le][0]=T[S.get(oe)],ie.has(oe)?I[le][1]=ie.get(oe):I[le][1]=_[S.get(oe)]}),V=!0}}if(V){for(var ce=void 0,he=f.transpose(I),ke=f.transpose(F),He=0;He<he.length;He++)he[He]=f.multGamma(he[He]),ke[He]=f.multGamma(ke[He]);var Ne=f.multMat(he,f.transpose(ke)),Te=m.svd(Ne);ce=f.multMat(Te.V,f.transpose(Te.U));for(var Oe=0;Oe<S.size;Oe++){var Re=[T[Oe],_[Oe]],Xe=[ce[0][0],ce[1][0]],Ue=[ce[0][1],ce[1][1]];T[Oe]=f.dotProduct(Re,Xe),_[Oe]=f.dotProduct(Re,Ue)}R&&W(C.relativePlacementConstraint)}}if(h.ENFORCE_CONSTRAINTS){if(C.fixedNodeConstraint&&C.fixedNodeConstraint.length>0){var Ge={x:0,y:0};C.fixedNodeConstraint.forEach(function(oe,le){var de={x:T[S.get(oe.nodeId)],y:_[S.get(oe.nodeId)]},pe=oe.position,xe=D(pe,de);Ge.x+=xe.x,Ge.y+=xe.y}),Ge.x/=C.fixedNodeConstraint.length,Ge.y/=C.fixedNodeConstraint.length,T.forEach(function(oe,le){T[le]+=Ge.x}),_.forEach(function(oe,le){_[le]+=Ge.y}),C.fixedNodeConstraint.forEach(function(oe){T[S.get(oe.nodeId)]=oe.position.x,_[S.get(oe.nodeId)]=oe.position.y})}if(C.alignmentConstraint){if(C.alignmentConstraint.vertical)for(var Ee=C.alignmentConstraint.vertical,Qe=function(le){var de=new Set;Ee[le].forEach(function(be){de.add(be)});var pe=new Set([].concat(u(de)).filter(function(be){return H.has(be)})),xe=void 0;pe.size>0?xe=T[S.get(pe.values().next().value)]:xe=P(de).x,de.forEach(function(be){H.has(be)||(T[S.get(be)]=xe)})},me=0;me<Ee.length;me++)Qe(me);if(C.alignmentConstraint.horizontal)for(var Me=C.alignmentConstraint.horizontal,Ke=function(le){var de=new Set;Me[le].forEach(function(be){de.add(be)});var pe=new Set([].concat(u(de)).filter(function(be){return H.has(be)})),xe=void 0;pe.size>0?xe=_[S.get(pe.values().next().value)]:xe=P(de).y,de.forEach(function(be){H.has(be)||(_[S.get(be)]=xe)})},et=0;et<Me.length;et++)Ke(et)}C.relativePlacementConstraint&&(function(){var oe=new Map,le=new Map,de=new Map,pe=new Map,xe=new Map,be=new Map,Be=new Set,ze=new Set;if(H.forEach(function(Xt){Be.add(Xt),ze.add(Xt)}),C.alignmentConstraint){if(C.alignmentConstraint.vertical)for(var Fe=C.alignmentConstraint.vertical,Pe=function(St){de.set("dummy"+St,[]),Fe[St].forEach(function(ir){oe.set(ir,"dummy"+St),de.get("dummy"+St).push(ir),H.has(ir)&&Be.add("dummy"+St)}),xe.set("dummy"+St,T[S.get(Fe[St][0])])},tt=0;tt<Fe.length;tt++)Pe(tt);if(C.alignmentConstraint.horizontal)for(var Ye=C.alignmentConstraint.horizontal,st=function(St){pe.set("dummy"+St,[]),Ye[St].forEach(function(ir){le.set(ir,"dummy"+St),pe.get("dummy"+St).push(ir),H.has(ir)&&ze.add("dummy"+St)}),be.set("dummy"+St,_[S.get(Ye[St][0])])},ht=0;ht<Ye.length;ht++)st(ht)}var rt=new Map,nt=new Map,Lt=function(St){Y.get(St).forEach(function(ir){var Un=void 0,Qr=void 0;ir.direction=="horizontal"?(Un=oe.get(St)?oe.get(St):St,oe.get(ir.id)?Qr={id:oe.get(ir.id),gap:ir.gap,direction:ir.direction}:Qr=ir,rt.has(Un)?rt.get(Un).push(Qr):rt.set(Un,[Qr]),rt.has(Qr.id)||rt.set(Qr.id,[])):(Un=le.get(St)?le.get(St):St,le.get(ir.id)?Qr={id:le.get(ir.id),gap:ir.gap,direction:ir.direction}:Qr=ir,nt.has(Un)?nt.get(Un).push(Qr):nt.set(Un,[Qr]),nt.has(Qr.id)||nt.set(Qr.id,[]))})},ot=!0,lt=!1,Ut=void 0;try{for(var pt=Y.keys()[Symbol.iterator](),Bt;!(ot=(Bt=pt.next()).done);ot=!0){var Mt=Bt.value;Lt(Mt)}}catch(Xt){lt=!0,Ut=Xt}finally{try{!ot&&pt.return&&pt.return()}finally{if(lt)throw Ut}}var Gt=j(rt),br=j(nt),or=B(Gt),Mr=B(br),Pt=M(rt),Ht=M(nt),nr=[],Sr=[];or.forEach(function(Xt,St){nr[St]=[],Xt.forEach(function(ir){Pt.get(ir).length==0&&nr[St].push(ir)})}),Mr.forEach(function(Xt,St){Sr[St]=[],Xt.forEach(function(ir){Ht.get(ir).length==0&&Sr[St].push(ir)})});var Dn=q(rt,"horizontal",Be,xe,nr),Ur=q(nt,"vertical",ze,be,Sr),bi=function(St){de.get(St)?de.get(St).forEach(function(ir){T[S.get(ir)]=Dn.get(St)}):T[S.get(St)]=Dn.get(St)},Rn=!0,ft=!1,fe=void 0;try{for(var $e=Dn.keys()[Symbol.iterator](),ut;!(Rn=(ut=$e.next()).done);Rn=!0){var Zt=ut.value;bi(Zt)}}catch(Xt){ft=!0,fe=Xt}finally{try{!Rn&&$e.return&&$e.return()}finally{if(ft)throw fe}}var Yt=function(St){pe.get(St)?pe.get(St).forEach(function(ir){_[S.get(ir)]=Ur.get(St)}):_[S.get(St)]=Ur.get(St)},ur=!0,Zr=!1,Br=void 0;try{for(var Gr=Ur.keys()[Symbol.iterator](),Di;!(ur=(Di=Gr.next()).done);ur=!0){var Zt=Di.value;Yt(Zt)}}catch(Xt){Zr=!0,Br=Xt}finally{try{!ur&&Gr.return&&Gr.return()}finally{if(Zr)throw Br}}})()}for(var Se=0;Se<A.length;Se++){var ne=A[Se];ne.getChild()==null&&ne.setCenter(T[S.get(ne.id)],_[S.get(ne.id)])}},o.exports=x}),551:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var c=i[o]={exports:{}};return n[o](c,c.exports,a),c.exports}var s=a(45);return s})()})})(Gv)),Gv.exports}var ewe=Uv.exports,W$;function twe(){return W$||(W$=1,(function(e,t){(function(n,i){e.exports=i(JCe())})(ewe,function(r){return(()=>{var n={658:(o=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(l){for(var c=arguments.length,u=Array(c>1?c-1:0),h=1;h<c;h++)u[h-1]=arguments[h];return u.forEach(function(p){Object.keys(p).forEach(function(f){return l[f]=p[f]})}),l}}),548:((o,l,c)=>{var u=(function(){function f(m,x){var y=[],C=!0,w=!1,S=void 0;try{for(var T=m[Symbol.iterator](),_;!(C=(_=T.next()).done)&&(y.push(_.value),!(x&&y.length===x));C=!0);}catch(A){w=!0,S=A}finally{try{!C&&T.return&&T.return()}finally{if(w)throw S}}return y}return function(m,x){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return f(m,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=c(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(f){for(var m={},x=0;x<f.length;x++)m[f[x].id()]=!0;var y=f.filter(function(C,w){typeof C=="number"&&(C=w);for(var S=C.parent()[0];S!=null;){if(m[S.id()])return!1;S=S.parent()[0]}return!0});return y},p.connectComponents=function(f,m,x,y){var C=new h,w=new Set,S=[],T=void 0,_=void 0,A=void 0,E=!1,L=1,z=[],D=[],P=function(){var W=f.collection();D.push(W);var B=x[0],j=f.collection();j.merge(B).merge(B.descendants().intersection(m)),S.push(B),j.forEach(function(F){C.push(F),w.add(F),W.merge(F)});for(var M=function(){B=C.shift();var V=f.collection();B.neighborhood().nodes().forEach(function(U){m.intersection(B.edgesWith(U)).length>0&&V.merge(U)});for(var R=0;R<V.length;R++){var H=V[R];if(T=x.intersection(H.union(H.ancestors())),T!=null&&!w.has(T[0])){var Y=T.union(T.descendants());Y.forEach(function(U){C.push(U),w.add(U),W.merge(U),x.has(U)&&S.push(U)})}}};C.length!=0;)M();if(W.forEach(function(F){m.intersection(F.connectedEdges()).forEach(function(V){W.has(V.source())&&W.has(V.target())&&W.merge(V)})}),S.length==x.length&&(E=!0),!E||E&&L>1){_=S[0],A=_.connectedEdges().length,S.forEach(function(F){F.connectedEdges().length<A&&(A=F.connectedEdges().length,_=F)}),z.push(_.id());var I=f.collection();I.merge(S[0]),S.forEach(function(F){I.merge(F)}),S=[],x=x.difference(I),L++}};do P();while(!E);return y&&z.length>0&&y.set("dummy"+(y.size+1),z),D},p.relocateComponent=function(f,m,x){if(!x.fixedNodeConstraint){var y=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,w=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY;if(x.quality=="draft"){var T=!0,_=!1,A=void 0;try{for(var E=m.nodeIndexes[Symbol.iterator](),L;!(T=(L=E.next()).done);T=!0){var z=L.value,D=u(z,2),P=D[0],q=D[1],W=x.cy.getElementById(P);if(W){var B=W.boundingBox(),j=m.xCoords[q]-B.w/2,M=m.xCoords[q]+B.w/2,I=m.yCoords[q]-B.h/2,F=m.yCoords[q]+B.h/2;j<y&&(y=j),M>C&&(C=M),I<w&&(w=I),F>S&&(S=F)}}}catch(U){_=!0,A=U}finally{try{!T&&E.return&&E.return()}finally{if(_)throw A}}var V=f.x-(C+y)/2,R=f.y-(S+w)/2;m.xCoords=m.xCoords.map(function(U){return U+V}),m.yCoords=m.yCoords.map(function(U){return U+R})}else{Object.keys(m).forEach(function(U){var K=m[U],Q=K.getRect().x,J=K.getRect().x+K.getRect().width,se=K.getRect().y,ue=K.getRect().y+K.getRect().height;Q<y&&(y=Q),J>C&&(C=J),se<w&&(w=se),ue>S&&(S=ue)});var H=f.x-(C+y)/2,Y=f.y-(S+w)/2;Object.keys(m).forEach(function(U){var K=m[U];K.setCenter(K.getCenterX()+H,K.getCenterY()+Y)})}}},p.calcBoundingBox=function(f,m,x,y){for(var C=Number.MAX_SAFE_INTEGER,w=Number.MIN_SAFE_INTEGER,S=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,_=void 0,A=void 0,E=void 0,L=void 0,z=f.descendants().not(":parent"),D=z.length,P=0;P<D;P++){var q=z[P];_=m[y.get(q.id())]-q.width()/2,A=m[y.get(q.id())]+q.width()/2,E=x[y.get(q.id())]-q.height()/2,L=x[y.get(q.id())]+q.height()/2,C>_&&(C=_),w<A&&(w=A),S>E&&(S=E),T<L&&(T=L)}var W={};return W.topLeftX=C,W.topLeftY=S,W.width=w-C,W.height=T-S,W},p.calcParentsWithoutChildren=function(f,m){var x=f.collection();return m.nodes(":parent").forEach(function(y){var C=!1;y.children().forEach(function(w){w.css("display")!="none"&&(C=!0)}),C||x.merge(y)}),x},o.exports=p}),816:((o,l,c)=>{var u=c(548),h=c(140).CoSELayout,p=c(140).CoSENode,f=c(140).layoutBase.PointD,m=c(140).layoutBase.DimensionD,x=c(140).layoutBase.LayoutConstants,y=c(140).layoutBase.FDLayoutConstants,C=c(140).CoSEConstants,w=function(T,_){var A=T.cy,E=T.eles,L=E.nodes(),z=E.edges(),D=void 0,P=void 0,q=void 0,W={};T.randomize&&(D=_.nodeIndexes,P=_.xCoords,q=_.yCoords);var B=function(U){return typeof U=="function"},j=function(U,K){return B(U)?U(K):U},M=u.calcParentsWithoutChildren(A,E),I=function Y(U,K,Q,J){for(var se=K.length,ue=0;ue<se;ue++){var re=K[ue],ee=null;re.intersection(M).length==0&&(ee=re.children());var Z=void 0,ie=re.layoutDimensions({nodeDimensionsIncludeLabels:J.nodeDimensionsIncludeLabels});if(re.outerWidth()!=null&&re.outerHeight()!=null)if(J.randomize)if(!re.isParent())Z=U.add(new p(Q.graphManager,new f(P[D.get(re.id())]-ie.w/2,q[D.get(re.id())]-ie.h/2),new m(parseFloat(ie.w),parseFloat(ie.h))));else{var ce=u.calcBoundingBox(re,P,q,D);re.intersection(M).length==0?Z=U.add(new p(Q.graphManager,new f(ce.topLeftX,ce.topLeftY),new m(ce.width,ce.height))):Z=U.add(new p(Q.graphManager,new f(ce.topLeftX,ce.topLeftY),new m(parseFloat(ie.w),parseFloat(ie.h))))}else Z=U.add(new p(Q.graphManager,new f(re.position("x")-ie.w/2,re.position("y")-ie.h/2),new m(parseFloat(ie.w),parseFloat(ie.h))));else Z=U.add(new p(this.graphManager));if(Z.id=re.data("id"),Z.nodeRepulsion=j(J.nodeRepulsion,re),Z.paddingLeft=parseInt(re.css("padding")),Z.paddingTop=parseInt(re.css("padding")),Z.paddingRight=parseInt(re.css("padding")),Z.paddingBottom=parseInt(re.css("padding")),J.nodeDimensionsIncludeLabels&&(Z.labelWidth=re.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,Z.labelHeight=re.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,Z.labelPosVertical=re.css("text-valign"),Z.labelPosHorizontal=re.css("text-halign")),W[re.data("id")]=Z,isNaN(Z.rect.x)&&(Z.rect.x=0),isNaN(Z.rect.y)&&(Z.rect.y=0),ee!=null&&ee.length>0){var he=void 0;he=Q.getGraphManager().add(Q.newGraph(),Z),Y(he,ee,Q,J)}}},F=function(U,K,Q){for(var J=0,se=0,ue=0;ue<Q.length;ue++){var re=Q[ue],ee=W[re.data("source")],Z=W[re.data("target")];if(ee&&Z&&ee!==Z&&ee.getEdgesBetween(Z).length==0){var ie=K.add(U.newEdge(),ee,Z);ie.id=re.id(),ie.idealLength=j(T.idealEdgeLength,re),ie.edgeElasticity=j(T.edgeElasticity,re),J+=ie.idealLength,se++}}T.idealEdgeLength!=null&&(se>0?C.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=J/se:B(T.idealEdgeLength)?C.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=50:C.DEFAULT_EDGE_LENGTH=y.DEFAULT_EDGE_LENGTH=T.idealEdgeLength,C.MIN_REPULSION_DIST=y.MIN_REPULSION_DIST=y.DEFAULT_EDGE_LENGTH/10,C.DEFAULT_RADIAL_SEPARATION=y.DEFAULT_EDGE_LENGTH)},V=function(U,K){K.fixedNodeConstraint&&(U.constraints.fixedNodeConstraint=K.fixedNodeConstraint),K.alignmentConstraint&&(U.constraints.alignmentConstraint=K.alignmentConstraint),K.relativePlacementConstraint&&(U.constraints.relativePlacementConstraint=K.relativePlacementConstraint)};T.nestingFactor!=null&&(C.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=T.nestingFactor),T.gravity!=null&&(C.DEFAULT_GRAVITY_STRENGTH=y.DEFAULT_GRAVITY_STRENGTH=T.gravity),T.numIter!=null&&(C.MAX_ITERATIONS=y.MAX_ITERATIONS=T.numIter),T.gravityRange!=null&&(C.DEFAULT_GRAVITY_RANGE_FACTOR=y.DEFAULT_GRAVITY_RANGE_FACTOR=T.gravityRange),T.gravityCompound!=null&&(C.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=T.gravityCompound),T.gravityRangeCompound!=null&&(C.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=T.gravityRangeCompound),T.initialEnergyOnIncremental!=null&&(C.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.DEFAULT_COOLING_FACTOR_INCREMENTAL=T.initialEnergyOnIncremental),T.tilingCompareBy!=null&&(C.TILING_COMPARE_BY=T.tilingCompareBy),T.quality=="proof"?x.QUALITY=2:x.QUALITY=0,C.NODE_DIMENSIONS_INCLUDE_LABELS=y.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.nodeDimensionsIncludeLabels,C.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=!T.randomize,C.ANIMATE=y.ANIMATE=x.ANIMATE=T.animate,C.TILE=T.tile,C.TILING_PADDING_VERTICAL=typeof T.tilingPaddingVertical=="function"?T.tilingPaddingVertical.call():T.tilingPaddingVertical,C.TILING_PADDING_HORIZONTAL=typeof T.tilingPaddingHorizontal=="function"?T.tilingPaddingHorizontal.call():T.tilingPaddingHorizontal,C.DEFAULT_INCREMENTAL=y.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=!0,C.PURE_INCREMENTAL=!T.randomize,x.DEFAULT_UNIFORM_LEAF_NODE_SIZES=T.uniformNodeDimensions,T.step=="transformed"&&(C.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,C.ENFORCE_CONSTRAINTS=!1,C.APPLY_LAYOUT=!1),T.step=="enforced"&&(C.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,C.ENFORCE_CONSTRAINTS=!0,C.APPLY_LAYOUT=!1),T.step=="cose"&&(C.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,C.ENFORCE_CONSTRAINTS=!1,C.APPLY_LAYOUT=!0),T.step=="all"&&(T.randomize?C.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:C.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,C.ENFORCE_CONSTRAINTS=!0,C.APPLY_LAYOUT=!0),T.fixedNodeConstraint||T.alignmentConstraint||T.relativePlacementConstraint?C.TREE_REDUCTION_ON_INCREMENTAL=!1:C.TREE_REDUCTION_ON_INCREMENTAL=!0;var R=new h,H=R.newGraphManager();return I(H.addRoot(),u.getTopMostNodes(L),R,T),F(R,H,z),V(R,T),R.runLayout(),W};o.exports={coseLayout:w}}),212:((o,l,c)=>{var u=(function(){function T(_,A){for(var E=0;E<A.length;E++){var L=A[E];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(_,L.key,L)}}return function(_,A,E){return A&&T(_.prototype,A),E&&T(_,E),_}})();function h(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}var p=c(658),f=c(548),m=c(657),x=m.spectralLayout,y=c(816),C=y.coseLayout,w=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(_){return 4500},idealEdgeLength:function(_){return 50},edgeElasticity:function(_){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),S=(function(){function T(_){h(this,T),this.options=p({},w,_)}return u(T,[{key:"run",value:function(){var A=this,E=this.options,L=E.cy,z=E.eles,D=[],P=[],q=void 0,W=[];E.fixedNodeConstraint&&(!Array.isArray(E.fixedNodeConstraint)||E.fixedNodeConstraint.length==0)&&(E.fixedNodeConstraint=void 0),E.alignmentConstraint&&(E.alignmentConstraint.vertical&&(!Array.isArray(E.alignmentConstraint.vertical)||E.alignmentConstraint.vertical.length==0)&&(E.alignmentConstraint.vertical=void 0),E.alignmentConstraint.horizontal&&(!Array.isArray(E.alignmentConstraint.horizontal)||E.alignmentConstraint.horizontal.length==0)&&(E.alignmentConstraint.horizontal=void 0)),E.relativePlacementConstraint&&(!Array.isArray(E.relativePlacementConstraint)||E.relativePlacementConstraint.length==0)&&(E.relativePlacementConstraint=void 0);var B=E.fixedNodeConstraint||E.alignmentConstraint||E.relativePlacementConstraint;B&&(E.tile=!1,E.packComponents=!1);var j=void 0,M=!1;if(L.layoutUtilities&&E.packComponents&&(j=L.layoutUtilities("get"),j||(j=L.layoutUtilities()),M=!0),z.nodes().length>0)if(M){var V=f.getTopMostNodes(E.eles.nodes());if(q=f.connectComponents(L,E.eles,V),q.forEach(function(Ne){var Te=Ne.boundingBox();W.push({x:Te.x1+Te.w/2,y:Te.y1+Te.h/2})}),E.randomize&&q.forEach(function(Ne){E.eles=Ne,D.push(x(E))}),E.quality=="default"||E.quality=="proof"){var R=L.collection();if(E.tile){var H=new Map,Y=[],U=[],K=0,Q={nodeIndexes:H,xCoords:Y,yCoords:U},J=[];if(q.forEach(function(Ne,Te){Ne.edges().length==0&&(Ne.nodes().forEach(function(Oe,Re){R.merge(Ne.nodes()[Re]),Oe.isParent()||(Q.nodeIndexes.set(Ne.nodes()[Re].id(),K++),Q.xCoords.push(Ne.nodes()[0].position().x),Q.yCoords.push(Ne.nodes()[0].position().y))}),J.push(Te))}),R.length>1){var se=R.boundingBox();W.push({x:se.x1+se.w/2,y:se.y1+se.h/2}),q.push(R),D.push(Q);for(var ue=J.length-1;ue>=0;ue--)q.splice(J[ue],1),D.splice(J[ue],1),W.splice(J[ue],1)}}q.forEach(function(Ne,Te){E.eles=Ne,P.push(C(E,D[Te])),f.relocateComponent(W[Te],P[Te],E)})}else q.forEach(function(Ne,Te){f.relocateComponent(W[Te],D[Te],E)});var re=new Set;if(q.length>1){var ee=[],Z=z.filter(function(Ne){return Ne.css("display")=="none"});q.forEach(function(Ne,Te){var Oe=void 0;if(E.quality=="draft"&&(Oe=D[Te].nodeIndexes),Ne.nodes().not(Z).length>0){var Re={};Re.edges=[],Re.nodes=[];var Xe=void 0;Ne.nodes().not(Z).forEach(function(Ue){if(E.quality=="draft")if(!Ue.isParent())Xe=Oe.get(Ue.id()),Re.nodes.push({x:D[Te].xCoords[Xe]-Ue.boundingbox().w/2,y:D[Te].yCoords[Xe]-Ue.boundingbox().h/2,width:Ue.boundingbox().w,height:Ue.boundingbox().h});else{var Ge=f.calcBoundingBox(Ue,D[Te].xCoords,D[Te].yCoords,Oe);Re.nodes.push({x:Ge.topLeftX,y:Ge.topLeftY,width:Ge.width,height:Ge.height})}else P[Te][Ue.id()]&&Re.nodes.push({x:P[Te][Ue.id()].getLeft(),y:P[Te][Ue.id()].getTop(),width:P[Te][Ue.id()].getWidth(),height:P[Te][Ue.id()].getHeight()})}),Ne.edges().forEach(function(Ue){var Ge=Ue.source(),Ee=Ue.target();if(Ge.css("display")!="none"&&Ee.css("display")!="none")if(E.quality=="draft"){var Qe=Oe.get(Ge.id()),me=Oe.get(Ee.id()),Me=[],Ke=[];if(Ge.isParent()){var et=f.calcBoundingBox(Ge,D[Te].xCoords,D[Te].yCoords,Oe);Me.push(et.topLeftX+et.width/2),Me.push(et.topLeftY+et.height/2)}else Me.push(D[Te].xCoords[Qe]),Me.push(D[Te].yCoords[Qe]);if(Ee.isParent()){var Se=f.calcBoundingBox(Ee,D[Te].xCoords,D[Te].yCoords,Oe);Ke.push(Se.topLeftX+Se.width/2),Ke.push(Se.topLeftY+Se.height/2)}else Ke.push(D[Te].xCoords[me]),Ke.push(D[Te].yCoords[me]);Re.edges.push({startX:Me[0],startY:Me[1],endX:Ke[0],endY:Ke[1]})}else P[Te][Ge.id()]&&P[Te][Ee.id()]&&Re.edges.push({startX:P[Te][Ge.id()].getCenterX(),startY:P[Te][Ge.id()].getCenterY(),endX:P[Te][Ee.id()].getCenterX(),endY:P[Te][Ee.id()].getCenterY()})}),Re.nodes.length>0&&(ee.push(Re),re.add(Te))}});var ie=j.packComponents(ee,E.randomize).shifts;if(E.quality=="draft")D.forEach(function(Ne,Te){var Oe=Ne.xCoords.map(function(Xe){return Xe+ie[Te].dx}),Re=Ne.yCoords.map(function(Xe){return Xe+ie[Te].dy});Ne.xCoords=Oe,Ne.yCoords=Re});else{var ce=0;re.forEach(function(Ne){Object.keys(P[Ne]).forEach(function(Te){var Oe=P[Ne][Te];Oe.setCenter(Oe.getCenterX()+ie[ce].dx,Oe.getCenterY()+ie[ce].dy)}),ce++})}}}else{var I=E.eles.boundingBox();if(W.push({x:I.x1+I.w/2,y:I.y1+I.h/2}),E.randomize){var F=x(E);D.push(F)}E.quality=="default"||E.quality=="proof"?(P.push(C(E,D[0])),f.relocateComponent(W[0],P[0],E)):f.relocateComponent(W[0],D[0],E)}var he=function(Te,Oe){if(E.quality=="default"||E.quality=="proof"){typeof Te=="number"&&(Te=Oe);var Re=void 0,Xe=void 0,Ue=Te.data("id");return P.forEach(function(Ee){Ue in Ee&&(Re={x:Ee[Ue].getRect().getCenterX(),y:Ee[Ue].getRect().getCenterY()},Xe=Ee[Ue])}),E.nodeDimensionsIncludeLabels&&(Xe.labelWidth&&(Xe.labelPosHorizontal=="left"?Re.x+=Xe.labelWidth/2:Xe.labelPosHorizontal=="right"&&(Re.x-=Xe.labelWidth/2)),Xe.labelHeight&&(Xe.labelPosVertical=="top"?Re.y+=Xe.labelHeight/2:Xe.labelPosVertical=="bottom"&&(Re.y-=Xe.labelHeight/2))),Re==null&&(Re={x:Te.position("x"),y:Te.position("y")}),{x:Re.x,y:Re.y}}else{var Ge=void 0;return D.forEach(function(Ee){var Qe=Ee.nodeIndexes.get(Te.id());Qe!=null&&(Ge={x:Ee.xCoords[Qe],y:Ee.yCoords[Qe]})}),Ge==null&&(Ge={x:Te.position("x"),y:Te.position("y")}),{x:Ge.x,y:Ge.y}}};if(E.quality=="default"||E.quality=="proof"||E.randomize){var ke=f.calcParentsWithoutChildren(L,z),He=z.filter(function(Ne){return Ne.css("display")=="none"});E.eles=z.not(He),z.nodes().not(":parent").not(He).layoutPositions(A,E,he),ke.length>0&&ke.forEach(function(Ne){Ne.position(he(Ne))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),T})();o.exports=S}),657:((o,l,c)=>{var u=c(548),h=c(140).layoutBase.Matrix,p=c(140).layoutBase.SVD,f=function(x){var y=x.cy,C=x.eles,w=C.nodes(),S=C.nodes(":parent"),T=new Map,_=new Map,A=new Map,E=[],L=[],z=[],D=[],P=[],q=[],W=[],B=[],j=void 0,M=1e8,I=1e-9,F=x.piTol,V=x.samplingType,R=x.nodeSeparation,H=void 0,Y=function(){for(var le=0,de=0,pe=!1;de<H;){le=Math.floor(Math.random()*j),pe=!1;for(var xe=0;xe<de;xe++)if(D[xe]==le){pe=!0;break}if(!pe)D[de]=le,de++;else continue}},U=function(le,de,pe){for(var xe=[],be=0,Be=0,ze=0,Fe=void 0,Pe=[],tt=0,Ye=1,st=0;st<j;st++)Pe[st]=M;for(xe[Be]=le,Pe[le]=0;Be>=be;){ze=xe[be++];for(var ht=E[ze],rt=0;rt<ht.length;rt++)Fe=_.get(ht[rt]),Pe[Fe]==M&&(Pe[Fe]=Pe[ze]+1,xe[++Be]=Fe);q[ze][de]=Pe[ze]*R}if(pe){for(var nt=0;nt<j;nt++)q[nt][de]<P[nt]&&(P[nt]=q[nt][de]);for(var Lt=0;Lt<j;Lt++)P[Lt]>tt&&(tt=P[Lt],Ye=Lt)}return Ye},K=function(le){var de=void 0;if(le){de=Math.floor(Math.random()*j);for(var xe=0;xe<j;xe++)P[xe]=M;for(var be=0;be<H;be++)D[be]=de,de=U(de,be,le)}else{Y();for(var pe=0;pe<H;pe++)U(D[pe],pe,le)}for(var Be=0;Be<j;Be++)for(var ze=0;ze<H;ze++)q[Be][ze]*=q[Be][ze];for(var Fe=0;Fe<H;Fe++)W[Fe]=[];for(var Pe=0;Pe<H;Pe++)for(var tt=0;tt<H;tt++)W[Pe][tt]=q[D[tt]][Pe]},Q=function(){for(var le=p.svd(W),de=le.S,pe=le.U,xe=le.V,be=de[0]*de[0]*de[0],Be=[],ze=0;ze<H;ze++){Be[ze]=[];for(var Fe=0;Fe<H;Fe++)Be[ze][Fe]=0,ze==Fe&&(Be[ze][Fe]=de[ze]/(de[ze]*de[ze]+be/(de[ze]*de[ze])))}B=h.multMat(h.multMat(xe,Be),h.transpose(pe))},J=function(){for(var le=void 0,de=void 0,pe=[],xe=[],be=[],Be=[],ze=0;ze<j;ze++)pe[ze]=Math.random(),xe[ze]=Math.random();pe=h.normalize(pe),xe=h.normalize(xe);for(var Fe=I,Pe=I,tt=void 0;;){for(var Ye=0;Ye<j;Ye++)be[Ye]=pe[Ye];if(pe=h.multGamma(h.multL(h.multGamma(be),q,B)),le=h.dotProduct(be,pe),pe=h.normalize(pe),Fe=h.dotProduct(be,pe),tt=Math.abs(Fe/Pe),tt<=1+F&&tt>=1)break;Pe=Fe}for(var st=0;st<j;st++)be[st]=pe[st];for(Pe=I;;){for(var ht=0;ht<j;ht++)Be[ht]=xe[ht];if(Be=h.minusOp(Be,h.multCons(be,h.dotProduct(be,Be))),xe=h.multGamma(h.multL(h.multGamma(Be),q,B)),de=h.dotProduct(Be,xe),xe=h.normalize(xe),Fe=h.dotProduct(Be,xe),tt=Math.abs(Fe/Pe),tt<=1+F&&tt>=1)break;Pe=Fe}for(var rt=0;rt<j;rt++)Be[rt]=xe[rt];L=h.multCons(be,Math.sqrt(Math.abs(le))),z=h.multCons(Be,Math.sqrt(Math.abs(de)))};u.connectComponents(y,C,u.getTopMostNodes(w),T),S.forEach(function(oe){u.connectComponents(y,C,u.getTopMostNodes(oe.descendants().intersection(C)),T)});for(var se=0,ue=0;ue<w.length;ue++)w[ue].isParent()||_.set(w[ue].id(),se++);var re=!0,ee=!1,Z=void 0;try{for(var ie=T.keys()[Symbol.iterator](),ce;!(re=(ce=ie.next()).done);re=!0){var he=ce.value;_.set(he,se++)}}catch(oe){ee=!0,Z=oe}finally{try{!re&&ie.return&&ie.return()}finally{if(ee)throw Z}}for(var ke=0;ke<_.size;ke++)E[ke]=[];S.forEach(function(oe){for(var le=oe.children().intersection(C);le.nodes(":childless").length==0;)le=le.nodes()[0].children().intersection(C);var de=0,pe=le.nodes(":childless")[0].connectedEdges().length;le.nodes(":childless").forEach(function(xe,be){xe.connectedEdges().length<pe&&(pe=xe.connectedEdges().length,de=be)}),A.set(oe.id(),le.nodes(":childless")[de].id())}),w.forEach(function(oe){var le=void 0;oe.isParent()?le=_.get(A.get(oe.id())):le=_.get(oe.id()),oe.neighborhood().nodes().forEach(function(de){C.intersection(oe.edgesWith(de)).length>0&&(de.isParent()?E[le].push(A.get(de.id())):E[le].push(de.id()))})});var He=function(le){var de=_.get(le),pe=void 0;T.get(le).forEach(function(xe){y.getElementById(xe).isParent()?pe=A.get(xe):pe=xe,E[de].push(pe),E[_.get(pe)].push(le)})},Ne=!0,Te=!1,Oe=void 0;try{for(var Re=T.keys()[Symbol.iterator](),Xe;!(Ne=(Xe=Re.next()).done);Ne=!0){var Ue=Xe.value;He(Ue)}}catch(oe){Te=!0,Oe=oe}finally{try{!Ne&&Re.return&&Re.return()}finally{if(Te)throw Oe}}j=_.size;var Ge=void 0;if(j>2){H=j<x.sampleSize?j:x.sampleSize;for(var Ee=0;Ee<j;Ee++)q[Ee]=[];for(var Qe=0;Qe<H;Qe++)B[Qe]=[];return x.quality=="draft"||x.step=="all"?(K(V),Q(),J(),Ge={nodeIndexes:_,xCoords:L,yCoords:z}):(_.forEach(function(oe,le){L.push(y.getElementById(le).position("x")),z.push(y.getElementById(le).position("y"))}),Ge={nodeIndexes:_,xCoords:L,yCoords:z}),Ge}else{var me=_.keys(),Me=y.getElementById(me.next().value),Ke=Me.position(),et=Me.outerWidth();if(L.push(Ke.x),z.push(Ke.y),j==2){var Se=y.getElementById(me.next().value),ne=Se.outerWidth();L.push(Ke.x+et/2+ne/2+x.idealEdgeLength),z.push(Ke.y)}return Ge={nodeIndexes:_,xCoords:L,yCoords:z},Ge}};o.exports={spectralLayout:f}}),579:((o,l,c)=>{var u=c(212),h=function(f){f&&f("layout","fcose",u)};typeof cytoscape<"u"&&h(cytoscape),o.exports=h}),140:(o=>{o.exports=r})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var c=i[o]={exports:{}};return n[o](c,c.exports,a),c.exports}var s=a(579);return s})()})})(Uv)),Uv.exports}var rwe=twe();const nwe=Sl(rwe);try{Ka.use(aV)}catch{}try{Ka.use(nwe)}catch{}const Iy={planned:"#64748b",ready:"#3b82f6",in_progress:"#fbbf24",review:"#f59e0b",complete:"#22c55e",blocked:"#ef4444",parked:"#6b7280",killed:"#475569"},iwe=Object.fromEntries(Object.entries(Qi).map(([e,t])=>{const r=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16),a=[15,23,42],s=.15,o=[Math.round(a[0]*(1-s)+r*s),Math.round(a[1]*(1-s)+n*s),Math.round(a[2]*(1-s)+i*s)];return[e,`#${o.map(l=>l.toString(16).padStart(2,"0")).join("")}`]})),awe=[1,1.5,2,2.5,3],WA={informs:{color:"#64748b",style:"solid"},supports:{color:"#22c55e",style:"solid"},blocks:{color:"#ef4444",style:"solid"},contradicts:{color:"#f472b6",style:"dashed"},implements:{color:"#a78bfa",style:"solid"}},V$=[{key:"all",label:"All",statuses:null},{key:"active",label:"Active",statuses:["planned","ready","in_progress","review"]},{key:"complete",label:"Done",statuses:["complete"]},{key:"blocked",label:"Blocked",statuses:["blocked","parked"]}];function Uf(e){return e.group||"other"}const Y$=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)*[a-z]?$/,y_=24;function swe(e){if(!e||e.length<=y_)return e;const t=e.split("-");let r="";for(const n of t){const i=r?r+"-"+n:n;if(i.length>y_-1)break;r=i}return(r||e.slice(0,y_-1))+"…"}function owe(e){var i;const t=((i=e.lifecycle)==null?void 0:i.featureCode)||e.featureCode;if(t&&Y$.test(t))return t;if(e.id&&Y$.test(e.id)&&e.id.length<=32)return e.id;const n=(e.title||"").replace(/`/g,"").trim().match(/^([A-Z][A-Z0-9]*(?:-[A-Z0-9]+)*[a-z]?)\b/);return n&&n[1].length>=3?n[1]:e.slug?swe(e.slug):e.id?e.id.slice(0,12):"item"}function X$(e,t=18){const r=e.split("-"),n=[];let i="";for(const a of r){const s=i?i+"-"+a:a;s.length>t&&i?(n.push(i),i=a):i=s}return i&&n.push(i),n.join(`
|
|
717
|
-
`)}function lwe(e,t,r,n,i){var
|
|
718
|
-
(${p} active, ${m} total)`,isGroup:!0,groupType:h},...o&&!x?{classes:"focus-dimmed"}:{}})}}for(const c of e){const u=c.slug||c.id.slice(0,8),h=X$(owe(c),14),p=Uf(c),f=o&&!o.has(c.id);a.push({data:{id:c.id,label:h,itemType:c.type||"task",status:c.status||"planned",phase:c.phase||"vision",confidence:c.confidence??0,title:c.title,description:c.description,slug:u,featureCode:((l=c.lifecycle)==null?void 0:l.featureCode)||c.featureCode||null,...r&&p?{parent:`group-${p}`}:{}},...f?{classes:"focus-dimmed"}:{}})}for(const c of t){if(!s.has(c.fromId)||!s.has(c.toId))continue;let u,h;c.type==="supports"||c.type==="blocks"?(u=c.toId,h=c.fromId):(u=c.fromId,h=c.toId);const p=WA[c.type]||WA.informs;a.push({data:{id:c.id||`${c.fromId}-${c.toId}`,source:u,target:h,edgeType:c.type,edgeColor:p.color,edgeStyle:p.style}})}return a}function cwe(){return[{selector:"[?isGroup]",style:{label:"data(label)","text-valign":"top","text-halign":"center","font-size":"10px","font-weight":600,color:"#64748b","text-transform":"uppercase","letter-spacing":"0.08em","text-wrap":"wrap","text-max-width":"160px","background-color":"#1a2537","border-width":1,"border-color":"#283548","border-style":"solid",padding:"24px","text-margin-y":-4}},{selector:"node[status]",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"9px","font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", monospace',"font-weight":500,color:"#e2e8f0","text-wrap":"wrap","text-max-width":"130px",width:"150px",height:"60px",shape:"round-rectangle","background-color":"#1e293b","border-style":"solid","border-width":2,"border-color":"#3b82f6"}},...Object.entries(Iy).map(([e,t])=>({selector:`node[status="${e}"]`,style:{"border-color":t,...e==="parked"||e==="killed"?{opacity:.7}:{}}})),...Object.entries(iwe).map(([e,t])=>({selector:`node[itemType="${e}"]`,style:{"background-color":t}})),...awe.map((e,t)=>({selector:`node[confidence=${t}]`,style:{"border-width":e}})),{selector:"node:selected",style:{"background-color":"#1e3a5f","border-width":3,"border-color":"#60a5fa"}},{selector:"edge",style:{width:1.5,"line-color":"data(edgeColor)","target-arrow-color":"data(edgeColor)","target-arrow-shape":"triangle","arrow-scale":.8,"curve-style":"bezier",opacity:.6}},{selector:'edge[edgeStyle="dashed"]',style:{"line-style":"dashed","line-dash-pattern":[6,3],"target-arrow-shape":"diamond"}},{selector:'edge[edgeType="blocks"]',style:{"target-arrow-shape":"tee"}},{selector:".dimmed",style:{opacity:.35}},{selector:".focus-dimmed",style:{opacity:.15,events:"no"}},{selector:".highlighted",style:{"border-width":3,"border-color":"#60a5fa"}},{selector:".build-building",style:{"border-color":"#3b82f6","border-width":3,"shadow-color":"#3b82f6","shadow-opacity":.6,"shadow-blur":12}},{selector:".build-gate-pending",style:{"border-color":"#f59e0b","border-width":3,"shadow-color":"#f59e0b","shadow-opacity":.5,"shadow-blur":8}},{selector:".build-blocked-downstream",style:{opacity:.35,"border-color":"#94a3b8"}},{selector:".build-error",style:{"border-color":"#ef4444","border-width":3,"shadow-color":"#ef4444","shadow-opacity":.5,"shadow-blur":8}},{selector:"[?isAgentGroup]",style:{label:"data(label)","text-valign":"top","text-halign":"center","font-size":"9px",color:"#64748b","text-transform":"uppercase","background-color":"#0f1a2b","border-width":1,"border-color":"#1e3050","border-style":"dashed",padding:"14px"}},{selector:"[?isAgentNode]",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"8px","font-family":"monospace",color:"#e2e8f0","text-wrap":"wrap","text-max-width":"70px",width:"80px",height:"40px",shape:"diamond","background-color":"#1e293b","border-style":"solid","border-width":2,"border-color":"data(agentColor)"}},{selector:'[agentStatus="complete"]',style:{"border-style":"dashed",opacity:.6}},{selector:'[agentStatus="failed"]',style:{"border-color":"#ef4444","border-style":"dashed",opacity:.6}},{selector:"[?isRelayEdge]",style:{width:1,"line-color":"#475569","line-style":"dashed","line-dash-pattern":[8,4],"target-arrow-color":"#475569","target-arrow-shape":"triangle","arrow-scale":.6,"curve-style":"bezier",opacity:.4}},{selector:".relay-active",style:{width:2,"line-color":"#3b82f6",opacity:.8,"target-arrow-color":"#3b82f6"}},{selector:".relay-result",style:{width:2,"line-color":"#10b981",opacity:.8,"target-arrow-color":"#10b981"}},{selector:".idea-node",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"8px","font-family":"monospace",color:"#fbbf24","text-wrap":"wrap","text-max-width":"70px",width:"70px",height:"70px",shape:"ellipse","background-color":"#451a0310","border-style":"dashed","border-width":1.5,"border-color":"#f59e0b",opacity:.85}},{selector:'edge[edgeType="idea"]',style:{width:1,"line-color":"#f59e0b","line-style":"dashed","line-dash-pattern":[6,3],"target-arrow-color":"#f59e0b","target-arrow-shape":"triangle","arrow-scale":.7,"curve-style":"bezier",opacity:.5}}]}function uwe({data:e}){if(!e)return null;const{x:t,y:r,item:n}=e,i=Iy[n.status]||Iy.planned,a=Qi[n.itemType]||"#94a3b8",s=t+300>window.innerWidth?t-294:t+14,o=Math.min(r-10,window.innerHeight-200);return v.jsxs("div",{style:{position:"fixed",left:s,top:o,zIndex:9999,pointerEvents:"none",maxWidth:280,background:"#1e293b",border:"1px solid #475569",borderRadius:8,padding:"10px 13px",fontSize:12,boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[v.jsx("div",{style:{fontWeight:700,fontSize:13,color:"#f8fafc",marginBottom:3},children:n.slug}),v.jsx("div",{style:{color:"#94a3b8",marginBottom:6,lineHeight:1.4},children:n.title}),v.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[v.jsx(x_,{color:i,children:(n.status||"planned").replace("_"," ")}),v.jsx(x_,{color:a,children:n.itemType}),n.phase&&v.jsx(x_,{color:"#94a3b8",children:ly[n.phase]||n.phase})]}),n.description&&v.jsx("div",{style:{marginTop:8,color:"#94a3b8",fontSize:11,lineHeight:1.4},children:n.description.length>140?n.description.slice(0,140)+"…":n.description}),v.jsxs("div",{style:{marginTop:6,color:"#64748b",fontSize:10},children:[lL[n.confidence||0]," confidence"]})]})}function x_({color:e,children:t}){return v.jsx("span",{style:{fontSize:10,padding:"1px 6px",borderRadius:3,fontWeight:600,background:`${e}20`,color:e,border:`1px solid ${e}40`,textTransform:"uppercase",letterSpacing:"0.03em"},children:t})}const sV={fontSize:11,padding:"3px 9px",borderRadius:4,cursor:"pointer",transition:"all 0.15s"};function Cf({active:e,onClick:t,children:r}){return v.jsx("button",{onClick:t,style:{...sV,border:`1px solid ${e?"#3b82f6":"#334155"}`,background:e?"#3b82f6":"#1e293b",color:e?"#fff":"#94a3b8"},children:r})}function b_({onClick:e,children:t,title:r}){return v.jsx("button",{onClick:e,title:r,style:{...sV,border:"1px solid #334155",background:"#1e293b",color:"#94a3b8"},children:t})}function iv(){return v.jsx("div",{style:{width:1,height:20,background:"#334155",margin:"0 2px"}})}const hwe=["build-building","build-gate-pending","build-blocked-downstream","build-error"],dwe={building:{bg:"#3b82f620",border:"#3b82f6",color:"#3b82f6",label:"⚙"},gate_pending:{bg:"#f59e0b20",border:"#f59e0b",color:"#f59e0b",label:"⚠"},error:{bg:"#ef444420",border:"#ef4444",color:"#ef4444",label:"✖"}};function fwe({badge:e,onClick:t}){const r=dwe[e.state];return r?v.jsx("div",{onClick:t,style:{position:"absolute",left:e.x,top:e.y,width:16,height:16,borderRadius:"50%",background:r.bg,border:`1.5px solid ${r.border}`,color:r.color,fontSize:9,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",cursor:t?"pointer":"default",zIndex:100,pointerEvents:t?"auto":"none"},title:e.state.replace(/_/g," "),children:r.label}):null}function pwe({featureCode:e,gates:t,items:r,badgePositions:n,onResolve:i,onClose:a}){const s=n.find(u=>u.featureCode===e);if(!s)return null;const o=r.find(u=>{var h;return((h=u.lifecycle)==null?void 0:h.featureCode)===e||u.featureCode===e||u.title===e}),l=o&&(t==null?void 0:t.find(u=>u.itemId===o.id&&!u.resolvedAt));if(!l)return null;const c=l.stepId?l.stepId.replace(/_/g," ").replace(/\b\w/g,u=>u.toUpperCase()):"Gate";return v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{position:"fixed",inset:0,zIndex:199},onClick:a}),v.jsxs("div",{style:{position:"absolute",left:s.x-80,top:s.y+22,zIndex:200,width:200,background:"#1e293b",border:"1px solid #475569",borderRadius:8,padding:"10px 12px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[v.jsx("div",{style:{fontSize:10,color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:4},children:c}),v.jsx("div",{style:{fontSize:12,color:"#f8fafc",fontWeight:600,marginBottom:8},children:e}),v.jsxs("div",{style:{display:"flex",gap:4},children:[v.jsx("button",{onClick:()=>i(l.id,"approve"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#22c55e20",color:"#22c55e",border:"1px solid #22c55e40",cursor:"pointer"},children:"Approve"}),v.jsx("button",{onClick:()=>i(l.id,"revise"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#f59e0b20",color:"#f59e0b",border:"1px solid #f59e0b40",cursor:"pointer"},children:"Revise"}),v.jsx("button",{onClick:()=>i(l.id,"kill"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#ef444420",color:"#ef4444",border:"1px solid #ef444440",cursor:"pointer"},children:"Kill"})]})]})]})}function oV({items:e,connections:t,selectedItemId:r,onSelect:n,visibleTracks:i,hiddenGroups:a,buildStateMap:s,resolveGate:o,gates:l,spawnedAgents:c,agentRelays:u,agentOverlay:h,featureCode:p,focusActive:f,onToggleFocus:m}){const x=$.useRef(null),y=$.useRef(null),[C,w]=$.useState(null),[S,T]=$.useState("active"),[_,A]=$.useState(!0),[E,L]=$.useState(!1),[z,D]=$.useState(null),[P,q]=$.useState([]),[W,B]=$.useState(!1),[j,M]=$.useState(!1),I=Fh(Z=>Z.ideas),F=$.useRef(!1);$.useEffect(()=>{const Z=c==null?void 0:c.some(ie=>ie.status==="running");Z&&!F.current?B(!0):!Z&&F.current&&(c==null?void 0:c.length)>0&&B(!1),F.current=!!Z},[c]);const V=$.useMemo(()=>e.filter(Z=>{const ie=Z.title||"";return!ie.startsWith("`docs/")&&!ie.startsWith("docs/")}),[e]),R=$.useMemo(()=>{let Z=V;const ie=V$.find(ce=>ce.key===S);if(ie!=null&&ie.statuses&&(Z=Z.filter(ce=>ie.statuses.includes(ce.status||"planned"))),i){const ce=he=>{const ke=(he.description||"").match(/Track:\s*(\w+)/i);return ke?ke[1].toLowerCase():he.type||"other"};Z=Z.filter(he=>i.has(ce(he)))}return(a==null?void 0:a.size)>0&&(Z=Z.filter(ce=>!a.has(Uf(ce)))),Z},[V,S,i,a]),H=$.useMemo(()=>{const Z=new Set(R.map(ie=>ie.id));return t.filter(ie=>Z.has(ie.fromId)&&Z.has(ie.toId))},[t,R]),Y=$.useMemo(()=>!h||!h.nodes.length?[]:[...h.nodes,...h.edges],[c]),U=$.useMemo(()=>{if(!j)return[];new Set(R.map(ie=>ie.id));const Z=[];for(const ie of I){if(!ie.mapsTo)continue;const ce=`idea-${ie.id}`;Z.push({data:{id:ce,label:`${ie.id}
|
|
717
|
+
`)}function lwe(e,t,r,n,i){var c;const a=[],s=new Set(e.map(u=>u.id));let o=null;if(n&&i){o=new Set(e.filter(u=>{var h;return u.featureCode===i||((h=u.lifecycle)==null?void 0:h.featureCode)===i||(u.title||"").startsWith(i)}).map(u=>u.id));for(const u of t)o.has(u.fromId)&&s.has(u.toId)&&o.add(u.toId),o.has(u.toId)&&s.has(u.fromId)&&o.add(u.fromId)}const l=new Set;if(r){const h=[...new Set(e.map(p=>Uf(p)).filter(Boolean))].map(p=>{const f=e.filter(C=>Uf(C)===p),m=f.filter(C=>["blocked","parked"].includes(C.status)).length,x=f.filter(C=>["in_progress","review","ready"].includes(C.status)).length,y=f.filter(C=>C.status==="planned").length;return{group:p,blocked:m,active:x,planned:y,total:f.length}});h.sort((p,f)=>f.active-p.active||f.blocked-p.blocked||f.planned-p.planned||p.group.localeCompare(f.group));for(const{group:p,active:f,total:m}of h){if(m<2)continue;l.add(p);const x=o&&e.some(y=>Uf(y)===p&&o.has(y.id));a.push({data:{id:`group-${p}`,label:`${X$(p)}
|
|
718
|
+
(${f} active, ${m} total)`,isGroup:!0,groupType:p},...o&&!x?{classes:"focus-dimmed"}:{}})}}for(const u of e){const h=u.slug||u.id.slice(0,8),p=X$(owe(u),14),f=Uf(u),m=o&&!o.has(u.id);a.push({data:{id:u.id,label:p,itemType:u.type||"task",status:u.status||"planned",phase:u.phase||"vision",confidence:u.confidence??0,title:u.title,description:u.description,slug:h,featureCode:((c=u.lifecycle)==null?void 0:c.featureCode)||u.featureCode||null,...r&&f&&l.has(f)?{parent:`group-${f}`}:{}},...m?{classes:"focus-dimmed"}:{}})}for(const u of t){if(!s.has(u.fromId)||!s.has(u.toId))continue;let h,p;u.type==="supports"||u.type==="blocks"?(h=u.toId,p=u.fromId):(h=u.fromId,p=u.toId);const f=WA[u.type]||WA.informs;a.push({data:{id:u.id||`${u.fromId}-${u.toId}`,source:h,target:p,edgeType:u.type,edgeColor:f.color,edgeStyle:f.style}})}return a}function cwe(){return[{selector:"[?isGroup]",style:{label:"data(label)","text-valign":"top","text-halign":"center","font-size":"10px","font-weight":600,color:"#64748b","text-transform":"uppercase","letter-spacing":"0.08em","text-wrap":"wrap","text-max-width":"160px","background-color":"#1a2537","border-width":1,"border-color":"#283548","border-style":"solid",padding:"24px","text-margin-y":-4}},{selector:"node[status]",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"9px","font-family":'-apple-system, BlinkMacSystemFont, "Segoe UI", monospace',"font-weight":500,color:"#e2e8f0","text-wrap":"wrap","text-max-width":"130px",width:"150px",height:"60px",shape:"round-rectangle","background-color":"#1e293b","border-style":"solid","border-width":2,"border-color":"#3b82f6"}},...Object.entries(Iy).map(([e,t])=>({selector:`node[status="${e}"]`,style:{"border-color":t,...e==="parked"||e==="killed"?{opacity:.7}:{}}})),...Object.entries(iwe).map(([e,t])=>({selector:`node[itemType="${e}"]`,style:{"background-color":t}})),...awe.map((e,t)=>({selector:`node[confidence=${t}]`,style:{"border-width":e}})),{selector:"node:selected",style:{"background-color":"#1e3a5f","border-width":3,"border-color":"#60a5fa"}},{selector:"edge",style:{width:1.5,"line-color":"data(edgeColor)","target-arrow-color":"data(edgeColor)","target-arrow-shape":"triangle","arrow-scale":.8,"curve-style":"bezier",opacity:.6}},{selector:'edge[edgeStyle="dashed"]',style:{"line-style":"dashed","line-dash-pattern":[6,3],"target-arrow-shape":"diamond"}},{selector:'edge[edgeType="blocks"]',style:{"target-arrow-shape":"tee"}},{selector:".dimmed",style:{opacity:.35}},{selector:".focus-dimmed",style:{opacity:.15,events:"no"}},{selector:".highlighted",style:{"border-width":3,"border-color":"#60a5fa"}},{selector:".build-building",style:{"border-color":"#3b82f6","border-width":3,"shadow-color":"#3b82f6","shadow-opacity":.6,"shadow-blur":12}},{selector:".build-gate-pending",style:{"border-color":"#f59e0b","border-width":3,"shadow-color":"#f59e0b","shadow-opacity":.5,"shadow-blur":8}},{selector:".build-blocked-downstream",style:{opacity:.35,"border-color":"#94a3b8"}},{selector:".build-error",style:{"border-color":"#ef4444","border-width":3,"shadow-color":"#ef4444","shadow-opacity":.5,"shadow-blur":8}},{selector:"[?isAgentGroup]",style:{label:"data(label)","text-valign":"top","text-halign":"center","font-size":"9px",color:"#64748b","text-transform":"uppercase","background-color":"#0f1a2b","border-width":1,"border-color":"#1e3050","border-style":"dashed",padding:"14px"}},{selector:"[?isAgentNode]",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"8px","font-family":"monospace",color:"#e2e8f0","text-wrap":"wrap","text-max-width":"70px",width:"80px",height:"40px",shape:"diamond","background-color":"#1e293b","border-style":"solid","border-width":2,"border-color":"data(agentColor)"}},{selector:'[agentStatus="complete"]',style:{"border-style":"dashed",opacity:.6}},{selector:'[agentStatus="failed"]',style:{"border-color":"#ef4444","border-style":"dashed",opacity:.6}},{selector:"[?isRelayEdge]",style:{width:1,"line-color":"#475569","line-style":"dashed","line-dash-pattern":[8,4],"target-arrow-color":"#475569","target-arrow-shape":"triangle","arrow-scale":.6,"curve-style":"bezier",opacity:.4}},{selector:".relay-active",style:{width:2,"line-color":"#3b82f6",opacity:.8,"target-arrow-color":"#3b82f6"}},{selector:".relay-result",style:{width:2,"line-color":"#10b981",opacity:.8,"target-arrow-color":"#10b981"}},{selector:".idea-node",style:{label:"data(label)","text-valign":"center","text-halign":"center","font-size":"8px","font-family":"monospace",color:"#fbbf24","text-wrap":"wrap","text-max-width":"70px",width:"70px",height:"70px",shape:"ellipse","background-color":"#451a0310","border-style":"dashed","border-width":1.5,"border-color":"#f59e0b",opacity:.85}},{selector:'edge[edgeType="idea"]',style:{width:1,"line-color":"#f59e0b","line-style":"dashed","line-dash-pattern":[6,3],"target-arrow-color":"#f59e0b","target-arrow-shape":"triangle","arrow-scale":.7,"curve-style":"bezier",opacity:.5}}]}function uwe({data:e}){if(!e)return null;const{x:t,y:r,item:n}=e,i=Iy[n.status]||Iy.planned,a=Qi[n.itemType]||"#94a3b8",s=t+300>window.innerWidth?t-294:t+14,o=Math.min(r-10,window.innerHeight-200);return v.jsxs("div",{style:{position:"fixed",left:s,top:o,zIndex:9999,pointerEvents:"none",maxWidth:280,background:"#1e293b",border:"1px solid #475569",borderRadius:8,padding:"10px 13px",fontSize:12,boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[v.jsx("div",{style:{fontWeight:700,fontSize:13,color:"#f8fafc",marginBottom:3},children:n.slug}),v.jsx("div",{style:{color:"#94a3b8",marginBottom:6,lineHeight:1.4},children:n.title}),v.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[v.jsx(x_,{color:i,children:(n.status||"planned").replace("_"," ")}),v.jsx(x_,{color:a,children:n.itemType}),n.phase&&v.jsx(x_,{color:"#94a3b8",children:ly[n.phase]||n.phase})]}),n.description&&v.jsx("div",{style:{marginTop:8,color:"#94a3b8",fontSize:11,lineHeight:1.4},children:n.description.length>140?n.description.slice(0,140)+"…":n.description}),v.jsxs("div",{style:{marginTop:6,color:"#64748b",fontSize:10},children:[lL[n.confidence||0]," confidence"]})]})}function x_({color:e,children:t}){return v.jsx("span",{style:{fontSize:10,padding:"1px 6px",borderRadius:3,fontWeight:600,background:`${e}20`,color:e,border:`1px solid ${e}40`,textTransform:"uppercase",letterSpacing:"0.03em"},children:t})}const sV={fontSize:11,padding:"3px 9px",borderRadius:4,cursor:"pointer",transition:"all 0.15s"};function Cf({active:e,onClick:t,children:r}){return v.jsx("button",{onClick:t,style:{...sV,border:`1px solid ${e?"#3b82f6":"#334155"}`,background:e?"#3b82f6":"#1e293b",color:e?"#fff":"#94a3b8"},children:r})}function b_({onClick:e,children:t,title:r}){return v.jsx("button",{onClick:e,title:r,style:{...sV,border:"1px solid #334155",background:"#1e293b",color:"#94a3b8"},children:t})}function iv(){return v.jsx("div",{style:{width:1,height:20,background:"#334155",margin:"0 2px"}})}const hwe=["build-building","build-gate-pending","build-blocked-downstream","build-error"],dwe={building:{bg:"#3b82f620",border:"#3b82f6",color:"#3b82f6",label:"⚙"},gate_pending:{bg:"#f59e0b20",border:"#f59e0b",color:"#f59e0b",label:"⚠"},error:{bg:"#ef444420",border:"#ef4444",color:"#ef4444",label:"✖"}};function fwe({badge:e,onClick:t}){const r=dwe[e.state];return r?v.jsx("div",{onClick:t,style:{position:"absolute",left:e.x,top:e.y,width:16,height:16,borderRadius:"50%",background:r.bg,border:`1.5px solid ${r.border}`,color:r.color,fontSize:9,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",cursor:t?"pointer":"default",zIndex:100,pointerEvents:t?"auto":"none"},title:e.state.replace(/_/g," "),children:r.label}):null}function pwe({featureCode:e,gates:t,items:r,badgePositions:n,onResolve:i,onClose:a}){const s=n.find(u=>u.featureCode===e);if(!s)return null;const o=r.find(u=>{var h;return((h=u.lifecycle)==null?void 0:h.featureCode)===e||u.featureCode===e||u.title===e}),l=o&&(t==null?void 0:t.find(u=>u.itemId===o.id&&!u.resolvedAt));if(!l)return null;const c=l.stepId?l.stepId.replace(/_/g," ").replace(/\b\w/g,u=>u.toUpperCase()):"Gate";return v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{position:"fixed",inset:0,zIndex:199},onClick:a}),v.jsxs("div",{style:{position:"absolute",left:s.x-80,top:s.y+22,zIndex:200,width:200,background:"#1e293b",border:"1px solid #475569",borderRadius:8,padding:"10px 12px",boxShadow:"0 8px 24px rgba(0,0,0,0.5)"},children:[v.jsx("div",{style:{fontSize:10,color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:4},children:c}),v.jsx("div",{style:{fontSize:12,color:"#f8fafc",fontWeight:600,marginBottom:8},children:e}),v.jsxs("div",{style:{display:"flex",gap:4},children:[v.jsx("button",{onClick:()=>i(l.id,"approve"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#22c55e20",color:"#22c55e",border:"1px solid #22c55e40",cursor:"pointer"},children:"Approve"}),v.jsx("button",{onClick:()=>i(l.id,"revise"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#f59e0b20",color:"#f59e0b",border:"1px solid #f59e0b40",cursor:"pointer"},children:"Revise"}),v.jsx("button",{onClick:()=>i(l.id,"kill"),style:{flex:1,padding:"4px 0",fontSize:10,fontWeight:600,borderRadius:4,background:"#ef444420",color:"#ef4444",border:"1px solid #ef444440",cursor:"pointer"},children:"Kill"})]})]})]})}function oV({items:e,connections:t,selectedItemId:r,onSelect:n,visibleTracks:i,hiddenGroups:a,buildStateMap:s,resolveGate:o,gates:l,spawnedAgents:c,agentRelays:u,agentOverlay:h,featureCode:p,focusActive:f,onToggleFocus:m}){const x=$.useRef(null),y=$.useRef(null),[C,w]=$.useState(null),[S,T]=$.useState("active"),[_,A]=$.useState(!0),[E,L]=$.useState(!1),[z,D]=$.useState(null),[P,q]=$.useState([]),[W,B]=$.useState(!1),[j,M]=$.useState(!1),I=Fh(Z=>Z.ideas),F=$.useRef(!1);$.useEffect(()=>{const Z=c==null?void 0:c.some(ie=>ie.status==="running");Z&&!F.current?B(!0):!Z&&F.current&&(c==null?void 0:c.length)>0&&B(!1),F.current=!!Z},[c]);const V=$.useMemo(()=>e.filter(Z=>{const ie=Z.title||"";return!ie.startsWith("`docs/")&&!ie.startsWith("docs/")}),[e]),R=$.useMemo(()=>{let Z=V;const ie=V$.find(ce=>ce.key===S);if(ie!=null&&ie.statuses&&(Z=Z.filter(ce=>ie.statuses.includes(ce.status||"planned"))),i){const ce=he=>{const ke=(he.description||"").match(/Track:\s*(\w+)/i);return ke?ke[1].toLowerCase():he.type||"other"};Z=Z.filter(he=>i.has(ce(he)))}return(a==null?void 0:a.size)>0&&(Z=Z.filter(ce=>!a.has(Uf(ce)))),Z},[V,S,i,a]),H=$.useMemo(()=>{const Z=new Set(R.map(ie=>ie.id));return t.filter(ie=>Z.has(ie.fromId)&&Z.has(ie.toId))},[t,R]),Y=$.useMemo(()=>!h||!h.nodes.length?[]:[...h.nodes,...h.edges],[c]),U=$.useMemo(()=>{if(!j)return[];new Set(R.map(ie=>ie.id));const Z=[];for(const ie of I){if(!ie.mapsTo)continue;const ce=`idea-${ie.id}`;Z.push({data:{id:ce,label:`${ie.id}
|
|
719
719
|
${ie.title.slice(0,20)}${ie.title.length>20?"…":""}`,isIdeaNode:!0,status:"idea",ideaId:ie.id},classes:"idea-node"});const he=ie.mapsTo.split(",").map(ke=>ke.trim()).filter(Boolean);for(const ke of he){const He=R.find(Ne=>{var Te;return((Te=Ne.lifecycle)==null?void 0:Te.featureCode)===ke||Ne.featureCode===ke||(Ne.title||"").startsWith(ke)});He&&Z.push({data:{id:`idea-edge-${ie.id}-${He.id}`,source:ce,target:He.id,edgeType:"idea",edgeColor:"#f59e0b",edgeStyle:"dashed"}})}}return Z},[j,I,R]),K=$.useMemo(()=>{let ie=lwe(R,H,_,f,p);return W&&Y.length>0&&(ie=[...ie,...Y]),j&&U.length>0&&(ie=[...ie,...U]),ie},[R,H,_,W,Y,j,U,f,p]),Q=$.useMemo(()=>cwe(),[]);$.useEffect(()=>{if(!x.current)return;y.current&&(y.current.destroy(),y.current=null);const Z=Ka({container:x.current,elements:K,style:Q,layout:{name:"fcose",quality:"proof",animate:!1,fit:!1,padding:20,nodeSeparation:80,idealEdgeLength:120,nodeRepulsion:6e3,gravity:.3,gravityRange:1.5,tilingPaddingVertical:12,tilingPaddingHorizontal:12},minZoom:.1,maxZoom:4,wheelSensitivity:.3,boxSelectionEnabled:!1});if(y.current=Z,Z.fit(void 0,30),r){const ie=Z.$id(r);ie.length&&C_(Z,ie)}return Z.on("mouseover","node[status]",ie=>{const ce=ie.renderedPosition||ie.position,he=Z.container().getBoundingClientRect();w({x:he.left+ce.x,y:he.top+ce.y,item:ie.target.data()})}),Z.on("mousemove","node[status]",ie=>{const ce=ie.renderedPosition||ie.position,he=Z.container().getBoundingClientRect();w(ke=>ke?{x:he.left+ce.x,y:he.top+ce.y,item:ke.item}:null)}),Z.on("mouseout","node[status]",()=>w(null)),Z.on("tap","node[status]",ie=>{J.current=!0,C_(Z,ie.target),n(ie.target.id())}),Z.on("tap",ie=>{ie.target===Z&&Z.elements().removeClass("dimmed highlighted")}),()=>{Z.destroy(),y.current=null}},[K,Q]);const J=$.useRef(!1);$.useEffect(()=>{const Z=y.current;if(!Z||!r)return;const ie=Z.$id(r);ie.length&&(Z.elements().removeClass("dimmed highlighted"),C_(Z,ie),J.current||Z.animate({center:{eles:ie},duration:200}),J.current=!1)},[r]),$.useEffect(()=>{const Z=y.current;if(Z&&(Z.nodes().removeClass(hwe.join(" ")),!(!s||Object.keys(s).length===0)))for(const[ie,ce]of Object.entries(s)){const he=`build-${ce.replace(/_/g,"-")}`,ke=Z.nodes().filter(He=>{const Ne=He.data();return Ne.slug===ie||Ne.title===ie||Ne.featureCode===ie});ke.length&&ke.addClass(he)}},[s]),$.useEffect(()=>{const Z=y.current;if(!Z||!s||!Object.values(s).includes("building"))return;let ce=!0;const he=setInterval(()=>{const ke=Z.nodes(".build-building");ke.length&&(ce=!ce,ke.style("shadow-blur",ce?12:4),ke.style("shadow-opacity",ce?.6:.2))},800);return()=>clearInterval(he)},[s]),$.useEffect(()=>{var ke;const Z=y.current;if(!Z||(Z.edges("[?isRelayEdge]").removeClass("relay-active relay-result"),!W||!((ke=h==null?void 0:h.activeEdgeIds)!=null&&ke.size)))return;const ie=new Set((c||[]).map(He=>He.agentId)),ce=He=>He==="session"?"agent-session":ie.has(He)?`agent-${He}`:"agent-session";for(const He of h.activeEdgeIds){const Ne=Z.getElementById(He);if(Ne.length){const Te=u==null?void 0:u.findLast(Oe=>{const Re=ce(Oe.fromAgentId),Xe=ce(Oe.toAgentId);return(Oe.direction==="dispatch"?`relay-${Re}-${Xe}`:`relay-${Xe}-${Re}`)===He});Ne.addClass((Te==null?void 0:Te.direction)==="result"?"relay-result":"relay-active")}}const he=setInterval(()=>{const He=Z.edges(".relay-active, .relay-result");if(!He.length)return;const Ne=Date.now()/20%100;He.style("line-dash-offset",-Ne)},50);return()=>clearInterval(he)},[W,h==null?void 0:h.activeEdgeIds,u]);const se=$.useCallback(()=>{const Z=y.current;if(!Z||!s||Object.keys(s).length===0){q([]);return}const ie=[];for(const[ce,he]of Object.entries(s)){if(he!=="gate_pending"&&he!=="error"&&he!=="building")continue;const ke=Z.nodes().filter(Te=>{const Oe=Te.data();return Oe.slug===ce||Oe.title===ce||Oe.featureCode===ce});if(!ke.length)continue;const He=ke.renderedPosition(),Ne=ke.renderedOuterWidth();ie.push({featureCode:ce,state:he,x:He.x+Ne/2-6,y:He.y-ke.renderedOuterHeight()/2-6,nodeId:ke.id()})}q(ie)},[s]);$.useEffect(()=>{const Z=y.current;if(Z)return Z.on("render pan zoom",se),se(),()=>{Z.removeListener("render pan zoom",se)}},[se]);const ue=$.useCallback(()=>{var Z;return(Z=y.current)==null?void 0:Z.fit(void 0,40)},[]),re=$.useCallback(()=>{const Z=y.current;Z&&Z.zoom({level:Z.zoom()*1.3,renderedPosition:{x:Z.width()/2,y:Z.height()/2}})},[]),ee=$.useCallback(()=>{const Z=y.current;Z&&Z.zoom({level:Z.zoom()/1.3,renderedPosition:{x:Z.width()/2,y:Z.height()/2}})},[]);return v.jsxs("div",{className:"flex-1 flex flex-col min-h-0",style:{background:"#0f172a"},children:[v.jsx("div",{className:"shrink-0",style:{background:"#1e293b",borderBottom:"1px solid #334155"},children:v.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Kp,{featureCode:p,active:f,onToggle:m}),p&&v.jsx(iv,{}),v.jsx("span",{style:{fontSize:11,color:"#64748b"},children:"Status:"}),V$.map(Z=>v.jsx(Cf,{active:S===Z.key,onClick:()=>T(Z.key),children:Z.label},Z.key)),v.jsx(iv,{}),v.jsxs("span",{style:{fontSize:10,color:"#475569"},children:[R.length," items · ",H.length," edges"]})]}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(Cf,{active:_,onClick:()=>A(!_),children:"Group"}),v.jsx(Cf,{active:W,onClick:()=>B(Z=>!Z),title:"Show/hide agent topology",children:"Agents"}),v.jsx(Cf,{active:j,onClick:()=>M(Z=>!Z),title:"Show/hide idea nodes (connected to features via mapsTo)",children:"Ideas"}),v.jsx(iv,{}),v.jsx(b_,{onClick:ee,title:"Zoom out",children:"−"}),v.jsx(b_,{onClick:ue,title:"Fit to view",children:"Fit"}),v.jsx(b_,{onClick:re,title:"Zoom in",children:"+"}),v.jsx(iv,{}),v.jsx(Cf,{active:E,onClick:()=>L(!E),children:"Legend"})]})]})}),R.length===0&&!W?v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsxs("div",{style:{textAlign:"center"},children:[v.jsx("div",{style:{fontSize:12,color:"#64748b",marginBottom:6},children:"No items match the current filters"}),v.jsx("div",{style:{fontSize:11,color:"#475569"},children:"Try adjusting the status or group filters"})]})}):v.jsxs("div",{className:"flex-1 relative min-h-0",children:[v.jsx("div",{ref:x,className:"w-full h-full"}),E&&v.jsxs("div",{style:{position:"absolute",bottom:16,left:16,zIndex:10,background:"#1e293b",border:"1px solid #334155",borderRadius:8,padding:"10px 13px",fontSize:11,maxHeight:"calc(100% - 32px)",overflowY:"auto"},children:[v.jsx(w_,{title:"Types",children:Object.entries(Qi).map(([Z,ie])=>v.jsxs(k_,{children:[v.jsx(K$,{color:ie}),Z]},Z))}),v.jsx(S_,{}),v.jsx(w_,{title:"Status",children:Object.entries(Iy).map(([Z,ie])=>v.jsxs(k_,{children:[v.jsx(K$,{color:ie}),Z.replace("_"," ")]},Z))}),v.jsx(S_,{}),v.jsx(w_,{title:"Edges",children:Object.entries(WA).map(([Z,ie])=>v.jsxs(k_,{children:[v.jsx("svg",{width:"22",height:"6",style:{flexShrink:0},children:v.jsx("line",{x1:"0",y1:"3",x2:"22",y2:"3",stroke:ie.color,strokeWidth:"1.5",strokeDasharray:ie.style==="dashed"?"6,3":"none"})}),Z]},Z))}),v.jsx(S_,{}),v.jsxs("div",{style:{fontSize:10,color:"#475569"},children:["Border weight = confidence",v.jsx("br",{}),"Click node to trace deps"]})]}),v.jsx(uwe,{data:C}),P.map(Z=>v.jsx(fwe,{badge:Z,onClick:Z.state==="gate_pending"?()=>D(z===Z.featureCode?null:Z.featureCode):Z.state==="error"?()=>n(Z.nodeId):void 0},Z.featureCode)),z&&v.jsx(pwe,{featureCode:z,gates:l,items:e,badgePositions:P,onResolve:(Z,ie)=>{o&&o(Z,ie),D(null)},onClose:()=>D(null)})]})]})}function C_(e,t){e.elements().removeClass("dimmed highlighted");const r=t.union(t.predecessors("node[status]")).union(t.successors("node[status]")),n=r.edgesWith(r);e.nodes("[status]").not(r).addClass("dimmed"),e.edges().not(n).addClass("dimmed"),t.addClass("highlighted")}function w_({title:e,children:t}){return v.jsxs(v.Fragment,{children:[v.jsx("div",{style:{fontSize:10,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:5,fontWeight:700},children:e}),t]})}function S_(){return v.jsx("div",{style:{height:1,background:"#334155",margin:"6px 0"}})}function k_({children:e}){return v.jsx("div",{style:{display:"flex",alignItems:"center",gap:7,marginBottom:3,color:"#94a3b8"},children:e})}function K$({color:e}){return v.jsx("div",{style:{width:10,height:10,borderRadius:2,background:e,flexShrink:0}})}const gwe="modulepreload",mwe=function(e){return"/"+e},Z$={},xr=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=s(r.map(c=>{if(c=mwe(c),c in Z$)return;Z$[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":gwe,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((f,m)=>{p.addEventListener("load",f),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})};var Vv={exports:{}},vwe=Vv.exports,Q$;function ywe(){return Q$||(Q$=1,(function(e,t){(function(r,n){e.exports=n()})(vwe,(function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",h="month",p="quarter",f="year",m="date",x="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var j=["th","st","nd","rd"],M=B%100;return"["+B+(j[(M-20)%10]||j[M]||j[0])+"]"}},S=function(B,j,M){var I=String(B);return!I||I.length>=j?B:""+Array(j+1-I.length).join(M)+B},T={s:S,z:function(B){var j=-B.utcOffset(),M=Math.abs(j),I=Math.floor(M/60),F=M%60;return(j<=0?"+":"-")+S(I,2,"0")+":"+S(F,2,"0")},m:function B(j,M){if(j.date()<M.date())return-B(M,j);var I=12*(M.year()-j.year())+(M.month()-j.month()),F=j.clone().add(I,h),V=M-F<0,R=j.clone().add(I+(V?-1:1),h);return+(-(I+(M-F)/(V?F-R:R-F))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:h,y:f,w:u,d:c,D:m,h:l,m:o,s,ms:a,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},_="en",A={};A[_]=w;var E="$isDayjsObject",L=function(B){return B instanceof q||!(!B||!B[E])},z=function B(j,M,I){var F;if(!j)return _;if(typeof j=="string"){var V=j.toLowerCase();A[V]&&(F=V),M&&(A[V]=M,F=V);var R=j.split("-");if(!F&&R.length>1)return B(R[0])}else{var H=j.name;A[H]=j,F=H}return!I&&F&&(_=F),F||!I&&_},D=function(B,j){if(L(B))return B.clone();var M=typeof j=="object"?j:{};return M.date=B,M.args=arguments,new q(M)},P=T;P.l=z,P.i=L,P.w=function(B,j){return D(B,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var q=(function(){function B(M){this.$L=z(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[E]=!0}var j=B.prototype;return j.parse=function(M){this.$d=(function(I){var F=I.date,V=I.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var R=F.match(y);if(R){var H=R[2]-1||0,Y=(R[7]||"0").substring(0,3);return V?new Date(Date.UTC(R[1],H,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)):new Date(R[1],H,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Y)}}return new Date(F)})(M),this.init()},j.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},j.$utils=function(){return P},j.isValid=function(){return this.$d.toString()!==x},j.isSame=function(M,I){var F=D(M);return this.startOf(I)<=F&&F<=this.endOf(I)},j.isAfter=function(M,I){return D(M)<this.startOf(I)},j.isBefore=function(M,I){return this.endOf(I)<D(M)},j.$g=function(M,I,F){return P.u(M)?this[I]:this.set(F,M)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(M,I){var F=this,V=!!P.u(I)||I,R=P.p(M),H=function(re,ee){var Z=P.w(F.$u?Date.UTC(F.$y,ee,re):new Date(F.$y,ee,re),F);return V?Z:Z.endOf(c)},Y=function(re,ee){return P.w(F.toDate()[re].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ee)),F)},U=this.$W,K=this.$M,Q=this.$D,J="set"+(this.$u?"UTC":"");switch(R){case f:return V?H(1,0):H(31,11);case h:return V?H(1,K):H(0,K+1);case u:var se=this.$locale().weekStart||0,ue=(U<se?U+7:U)-se;return H(V?Q-ue:Q+(6-ue),K);case c:case m:return Y(J+"Hours",0);case l:return Y(J+"Minutes",1);case o:return Y(J+"Seconds",2);case s:return Y(J+"Milliseconds",3);default:return this.clone()}},j.endOf=function(M){return this.startOf(M,!1)},j.$set=function(M,I){var F,V=P.p(M),R="set"+(this.$u?"UTC":""),H=(F={},F[c]=R+"Date",F[m]=R+"Date",F[h]=R+"Month",F[f]=R+"FullYear",F[l]=R+"Hours",F[o]=R+"Minutes",F[s]=R+"Seconds",F[a]=R+"Milliseconds",F)[V],Y=V===c?this.$D+(I-this.$W):I;if(V===h||V===f){var U=this.clone().set(m,1);U.$d[H](Y),U.init(),this.$d=U.set(m,Math.min(this.$D,U.daysInMonth())).$d}else H&&this.$d[H](Y);return this.init(),this},j.set=function(M,I){return this.clone().$set(M,I)},j.get=function(M){return this[P.p(M)]()},j.add=function(M,I){var F,V=this;M=Number(M);var R=P.p(I),H=function(K){var Q=D(V);return P.w(Q.date(Q.date()+Math.round(K*M)),V)};if(R===h)return this.set(h,this.$M+M);if(R===f)return this.set(f,this.$y+M);if(R===c)return H(1);if(R===u)return H(7);var Y=(F={},F[o]=n,F[l]=i,F[s]=r,F)[R]||1,U=this.$d.getTime()+M*Y;return P.w(U,this)},j.subtract=function(M,I){return this.add(-1*M,I)},j.format=function(M){var I=this,F=this.$locale();if(!this.isValid())return F.invalidDate||x;var V=M||"YYYY-MM-DDTHH:mm:ssZ",R=P.z(this),H=this.$H,Y=this.$m,U=this.$M,K=F.weekdays,Q=F.months,J=F.meridiem,se=function(ee,Z,ie,ce){return ee&&(ee[Z]||ee(I,V))||ie[Z].slice(0,ce)},ue=function(ee){return P.s(H%12||12,ee,"0")},re=J||function(ee,Z,ie){var ce=ee<12?"AM":"PM";return ie?ce.toLowerCase():ce};return V.replace(C,(function(ee,Z){return Z||(function(ie){switch(ie){case"YY":return String(I.$y).slice(-2);case"YYYY":return P.s(I.$y,4,"0");case"M":return U+1;case"MM":return P.s(U+1,2,"0");case"MMM":return se(F.monthsShort,U,Q,3);case"MMMM":return se(Q,U);case"D":return I.$D;case"DD":return P.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return se(F.weekdaysMin,I.$W,K,2);case"ddd":return se(F.weekdaysShort,I.$W,K,3);case"dddd":return K[I.$W];case"H":return String(H);case"HH":return P.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return re(H,Y,!0);case"A":return re(H,Y,!1);case"m":return String(Y);case"mm":return P.s(Y,2,"0");case"s":return String(I.$s);case"ss":return P.s(I.$s,2,"0");case"SSS":return P.s(I.$ms,3,"0");case"Z":return R}return null})(ee)||R.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(M,I,F){var V,R=this,H=P.p(I),Y=D(M),U=(Y.utcOffset()-this.utcOffset())*n,K=this-Y,Q=function(){return P.m(R,Y)};switch(H){case f:V=Q()/12;break;case h:V=Q();break;case p:V=Q()/3;break;case u:V=(K-U)/6048e5;break;case c:V=(K-U)/864e5;break;case l:V=K/i;break;case o:V=K/n;break;case s:V=K/r;break;default:V=K}return F?V:P.a(V)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return A[this.$L]},j.locale=function(M,I){if(!M)return this.$L;var F=this.clone(),V=z(M,I,!0);return V&&(F.$L=V),F},j.clone=function(){return P.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},B})(),W=q.prototype;return D.prototype=W,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",h],["$y",f],["$D",m]].forEach((function(B){W[B[1]]=function(j){return this.$g(j,B[0],B[1])}})),D.extend=function(B,j){return B.$i||(B(j,q,D),B.$i=!0),D},D.locale=z,D.isDayjs=L,D.unix=function(B){return D(1e3*B)},D.en=A[_],D.Ls=A,D.p={},D}))})(Vv)),Vv.exports}var xwe=ywe();const bwe=Sl(xwe);var lV=Object.defineProperty,G=(e,t)=>lV(e,"name",{value:t,configurable:!0}),Cwe=(e,t)=>{for(var r in t)lV(e,r,{get:t[r],enumerable:!0})},Xs={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Ze={trace:G((...e)=>{},"trace"),debug:G((...e)=>{},"debug"),info:G((...e)=>{},"info"),warn:G((...e)=>{},"warn"),error:G((...e)=>{},"error"),fatal:G((...e)=>{},"fatal")},DM=G(function(e="fatal"){let t=Xs.fatal;typeof e=="string"?e.toLowerCase()in Xs&&(t=Xs[e]):typeof e=="number"&&(t=e),Ze.trace=()=>{},Ze.debug=()=>{},Ze.info=()=>{},Ze.warn=()=>{},Ze.error=()=>{},Ze.fatal=()=>{},t<=Xs.fatal&&(Ze.fatal=console.error?console.error.bind(console,Ta("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ta("FATAL"))),t<=Xs.error&&(Ze.error=console.error?console.error.bind(console,Ta("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ta("ERROR"))),t<=Xs.warn&&(Ze.warn=console.warn?console.warn.bind(console,Ta("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ta("WARN"))),t<=Xs.info&&(Ze.info=console.info?console.info.bind(console,Ta("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ta("INFO"))),t<=Xs.debug&&(Ze.debug=console.debug?console.debug.bind(console,Ta("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ta("DEBUG"))),t<=Xs.trace&&(Ze.trace=console.debug?console.debug.bind(console,Ta("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ta("TRACE")))},"setLogLevel"),Ta=G(e=>`%c${bwe().format("ss.SSS")} : ${e} : `,"format");const Yv={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;switch(n){case"r":return Yv.hue2rgb(a,i,e+1/3)*255;case"g":return Yv.hue2rgb(a,i,e)*255;case"b":return Yv.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const i=Math.max(e,t,r),a=Math.min(e,t,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},wwe={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Swe={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},qt={channel:Yv,lang:wwe,unit:Swe},Ko={};for(let e=0;e<=255;e++)Ko[e]=qt.unit.dec2hex(e);const ui={ALL:0,RGB:1,HSL:2};class kwe{constructor(){this.type=ui.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ui.ALL}is(t){return this.type===t}}class Twe{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new kwe}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ui.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=qt.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=qt.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=qt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=qt.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=qt.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=qt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ui.HSL)&&r!==void 0?r:(this._ensureHSL(),qt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ui.HSL)&&r!==void 0?r:(this._ensureHSL(),qt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ui.HSL)&&r!==void 0?r:(this._ensureHSL(),qt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ui.RGB)&&r!==void 0?r:(this._ensureRGB(),qt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ui.RGB)&&r!==void 0?r:(this._ensureRGB(),qt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(ui.RGB)&&r!==void 0?r:(this._ensureRGB(),qt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ui.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ui.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ui.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ui.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ui.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ui.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const mx=new Twe({r:0,g:0,b:0,a:0},"transparent"),ph={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ph.re);if(!t)return;const r=t[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,c=a?0:-1,u=s?255:15;return mx.set({r:(n>>l*(c+3)&u)*o,g:(n>>l*(c+2)&u)*o,b:(n>>l*(c+1)&u)*o,a:a?(n&u)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`#${Ko[Math.round(t)]}${Ko[Math.round(r)]}${Ko[Math.round(n)]}${Ko[Math.round(i*255)]}`:`#${Ko[Math.round(t)]}${Ko[Math.round(r)]}${Ko[Math.round(n)]}`}},pc={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(pc.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return qt.channel.clamp.h(parseFloat(r)*.9);case"rad":return qt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return qt.channel.clamp.h(parseFloat(r)*360)}}return qt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(pc.re);if(!r)return;const[,n,i,a,s,o]=r;return mx.set({h:pc._hue2deg(n),s:qt.channel.clamp.s(parseFloat(i)),l:qt.channel.clamp.l(parseFloat(a)),a:s?qt.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${qt.lang.round(t)}, ${qt.lang.round(r)}%, ${qt.lang.round(n)}%, ${i})`:`hsl(${qt.lang.round(t)}, ${qt.lang.round(r)}%, ${qt.lang.round(n)}%)`}},op={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=op.colors[e];if(t)return ph.parse(t)},stringify:e=>{const t=ph.stringify(e);for(const r in op.colors)if(op.colors[r]===t)return r}},Gf={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Gf.re);if(!r)return;const[,n,i,a,s,o,l,c,u]=r;return mx.set({r:qt.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:qt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:qt.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?qt.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${qt.lang.round(t)}, ${qt.lang.round(r)}, ${qt.lang.round(n)}, ${qt.lang.round(i)})`:`rgb(${qt.lang.round(t)}, ${qt.lang.round(r)}, ${qt.lang.round(n)})`}},ys={format:{keyword:op,hex:ph,rgb:Gf,rgba:Gf,hsl:pc,hsla:pc},parse:e=>{if(typeof e!="string")return e;const t=ph.parse(e)||Gf.parse(e)||pc.parse(e)||op.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ui.HSL)||e.data.r===void 0?pc.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Gf.stringify(e):ph.stringify(e)},cV=(e,t)=>{const r=ys.parse(e);for(const n in t)r[n]=qt.channel.clamp[n](t[n]);return ys.stringify(r)},ol=(e,t,r=0,n=1)=>{if(typeof e!="number")return cV(e,{a:t});const i=mx.set({r:qt.channel.clamp.r(e),g:qt.channel.clamp.g(t),b:qt.channel.clamp.b(r),a:qt.channel.clamp.a(n)});return ys.stringify(i)},Ewe=e=>{const{r:t,g:r,b:n}=ys.parse(e),i=.2126*qt.channel.toLinear(t)+.7152*qt.channel.toLinear(r)+.0722*qt.channel.toLinear(n);return qt.lang.round(i)},_we=e=>Ewe(e)>=.5,es=e=>!_we(e),uV=(e,t,r)=>{const n=ys.parse(e),i=n[t],a=qt.channel.clamp[t](i+r);return i!==a&&(n[t]=a),ys.stringify(n)},je=(e,t)=>uV(e,"l",t),De=(e,t)=>uV(e,"l",-t),te=(e,t)=>{const r=ys.parse(e),n={};for(const i in t)t[i]&&(n[i]=r[i]+t[i]);return cV(e,n)},Awe=(e,t,r=50)=>{const{r:n,g:i,b:a,a:s}=ys.parse(e),{r:o,g:l,b:c,a:u}=ys.parse(t),h=r/100,p=h*2-1,f=s-u,x=((p*f===-1?p:(p+f)/(1+p*f))+1)/2,y=1-x,C=n*x+o*y,w=i*x+l*y,S=a*x+c*y,T=s*h+u*(1-h);return ol(C,w,S,T)},Ce=(e,t=100)=>{const r=ys.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Awe(r,e,t)};/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:hV,setPrototypeOf:J$,isFrozen:Nwe,getPrototypeOf:Lwe,getOwnPropertyDescriptor:Mwe}=Object;let{freeze:Li,seal:Ma,create:Qu}=Object,{apply:VA,construct:YA}=typeof Reflect<"u"&&Reflect;Li||(Li=function(t){return t});Ma||(Ma=function(t){return t});VA||(VA=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)});YA||(YA=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const wf=Mn(Array.prototype.forEach),Bwe=Mn(Array.prototype.lastIndexOf),eq=Mn(Array.prototype.pop),Sf=Mn(Array.prototype.push),Dwe=Mn(Array.prototype.splice),wi=Array.isArray,Wf=Mn(String.prototype.toLowerCase),T_=Mn(String.prototype.toString),tq=Mn(String.prototype.match),Pu=Mn(String.prototype.replace),rq=Mn(String.prototype.indexOf),Rwe=Mn(String.prototype.trim),Owe=Mn(Number.prototype.toString),Iwe=Mn(Boolean.prototype.toString),nq=typeof BigInt>"u"?null:Mn(BigInt.prototype.toString),iq=typeof Symbol>"u"?null:Mn(Symbol.prototype.toString),vn=Mn(Object.prototype.hasOwnProperty),kf=Mn(Object.prototype.toString),ei=Mn(RegExp.prototype.test),av=Fwe(TypeError);function Mn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return VA(e,t,n)}}function Fwe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return YA(e,r)}}function tr(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wf;if(J$&&J$(e,null),!wi(t))return e;let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(Nwe(t)||(t[n]=a),i=a)}e[i]=!0}return e}function jwe(e){for(let t=0;t<e.length;t++)vn(e,t)||(e[t]=null);return e}function Hi(e){const t=Qu(null);for(const[r,n]of hV(e))vn(e,r)&&(wi(n)?t[r]=jwe(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Hi(n):t[r]=n);return t}function Pwe(e){switch(typeof e){case"string":return e;case"number":return Owe(e);case"boolean":return Iwe(e);case"bigint":return nq?nq(e):"0";case"symbol":return iq?iq(e):"Symbol()";case"undefined":return kf(e);case"function":case"object":{if(e===null)return kf(e);const t=e,r=Ju(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:kf(n)}return kf(e)}default:return kf(e)}}function Ju(e,t){for(;e!==null;){const n=Mwe(e,t);if(n){if(n.get)return Mn(n.get);if(typeof n.value=="function")return Mn(n.value)}e=Lwe(e)}function r(){return null}return r}function zwe(e){try{return ei(e,""),!0}catch{return!1}}const aq=Li(["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"]),E_=Li(["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"]),__=Li(["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"]),$we=Li(["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"]),A_=Li(["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"]),qwe=Li(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sq=Li(["#text"]),oq=Li(["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"]),N_=Li(["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"]),lq=Li(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),sv=Li(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hwe=Ma(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Uwe=Ma(/<%[\w\W]*|[\w\W]*%>/gm),Gwe=Ma(/\$\{[\w\W]*/gm),Wwe=Ma(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vwe=Ma(/^aria-[\-\w]+$/),dV=Ma(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ywe=Ma(/^(?:\w+script|data):/i),Xwe=Ma(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fV=Ma(/^html$/i),Kwe=Ma(/^[a-z][.\w]*(-[.\w]+)+$/i);var cq=Object.freeze({__proto__:null,ARIA_ATTR:Vwe,ATTR_WHITESPACE:Xwe,CUSTOM_ELEMENT:Kwe,DATA_ATTR:Wwe,DOCTYPE_NAME:fV,ERB_EXPR:Uwe,IS_ALLOWED_URI:dV,IS_SCRIPT_OR_DATA:Ywe,MUSTACHE_EXPR:Hwe,TMPLIT_EXPR:Gwe});const Tf={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zwe=function(){return typeof window>"u"?null:window},Qwe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},uq=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function pV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zwe();const t=ft=>pV(ft);if(t.version="3.4.2",t.removed=[],!e||!e.document||e.document.nodeType!==Tf.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=e,m=l.prototype,x=Ju(m,"cloneNode"),y=Ju(m,"remove"),C=Ju(m,"nextSibling"),w=Ju(m,"childNodes"),S=Ju(m,"parentNode");if(typeof s=="function"){const ft=r.createElement("template");ft.content&&ft.content.ownerDocument&&(r=ft.content.ownerDocument)}let T,_="";const{implementation:A,createNodeIterator:E,createDocumentFragment:L,getElementsByTagName:z}=r,{importNode:D}=n;let P=uq();t.isSupported=typeof hV=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:q,ERB_EXPR:W,TMPLIT_EXPR:B,DATA_ATTR:j,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:V}=cq;let{IS_ALLOWED_URI:R}=cq,H=null;const Y=tr({},[...aq,...E_,...__,...A_,...sq]);let U=null;const K=tr({},[...oq,...N_,...lq,...sv]);let Q=Object.seal(Qu(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}})),J=null,se=null;const ue=Object.seal(Qu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,ee=!0,Z=!1,ie=!0,ce=!1,he=!0,ke=!1,He=!1,Ne=!1,Te=!1,Oe=!1,Re=!1,Xe=!0,Ue=!1;const Ge="user-content-";let Ee=!0,Qe=!1,me={},Me=null;const Ke=tr({},["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 et=null;const Se=tr({},["audio","video","img","source","image","track"]);let ne=null;const oe=tr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",de="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let xe=pe,be=!1,Be=null;const ze=tr({},[le,de,pe],T_);let Fe=tr({},["mi","mo","mn","ms","mtext"]),Pe=tr({},["annotation-xml"]);const tt=tr({},["title","style","font","a","script"]);let Ye=null;const st=["application/xhtml+xml","text/html"],ht="text/html";let rt=null,nt=null;const Lt=r.createElement("form"),ot=function(fe){return fe instanceof RegExp||fe instanceof Function},lt=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(nt&&nt===fe)return;(!fe||typeof fe!="object")&&(fe={}),fe=Hi(fe),Ye=st.indexOf(fe.PARSER_MEDIA_TYPE)===-1?ht:fe.PARSER_MEDIA_TYPE,rt=Ye==="application/xhtml+xml"?T_:Wf,H=vn(fe,"ALLOWED_TAGS")&&wi(fe.ALLOWED_TAGS)?tr({},fe.ALLOWED_TAGS,rt):Y,U=vn(fe,"ALLOWED_ATTR")&&wi(fe.ALLOWED_ATTR)?tr({},fe.ALLOWED_ATTR,rt):K,Be=vn(fe,"ALLOWED_NAMESPACES")&&wi(fe.ALLOWED_NAMESPACES)?tr({},fe.ALLOWED_NAMESPACES,T_):ze,ne=vn(fe,"ADD_URI_SAFE_ATTR")&&wi(fe.ADD_URI_SAFE_ATTR)?tr(Hi(oe),fe.ADD_URI_SAFE_ATTR,rt):oe,et=vn(fe,"ADD_DATA_URI_TAGS")&&wi(fe.ADD_DATA_URI_TAGS)?tr(Hi(Se),fe.ADD_DATA_URI_TAGS,rt):Se,Me=vn(fe,"FORBID_CONTENTS")&&wi(fe.FORBID_CONTENTS)?tr({},fe.FORBID_CONTENTS,rt):Ke,J=vn(fe,"FORBID_TAGS")&&wi(fe.FORBID_TAGS)?tr({},fe.FORBID_TAGS,rt):Hi({}),se=vn(fe,"FORBID_ATTR")&&wi(fe.FORBID_ATTR)?tr({},fe.FORBID_ATTR,rt):Hi({}),me=vn(fe,"USE_PROFILES")?fe.USE_PROFILES&&typeof fe.USE_PROFILES=="object"?Hi(fe.USE_PROFILES):fe.USE_PROFILES:!1,re=fe.ALLOW_ARIA_ATTR!==!1,ee=fe.ALLOW_DATA_ATTR!==!1,Z=fe.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=fe.SAFE_FOR_TEMPLATES||!1,he=fe.SAFE_FOR_XML!==!1,ke=fe.WHOLE_DOCUMENT||!1,Te=fe.RETURN_DOM||!1,Oe=fe.RETURN_DOM_FRAGMENT||!1,Re=fe.RETURN_TRUSTED_TYPE||!1,Ne=fe.FORCE_BODY||!1,Xe=fe.SANITIZE_DOM!==!1,Ue=fe.SANITIZE_NAMED_PROPS||!1,Ee=fe.KEEP_CONTENT!==!1,Qe=fe.IN_PLACE||!1,R=zwe(fe.ALLOWED_URI_REGEXP)?fe.ALLOWED_URI_REGEXP:dV,xe=typeof fe.NAMESPACE=="string"?fe.NAMESPACE:pe,Fe=vn(fe,"MATHML_TEXT_INTEGRATION_POINTS")&&fe.MATHML_TEXT_INTEGRATION_POINTS&&typeof fe.MATHML_TEXT_INTEGRATION_POINTS=="object"?Hi(fe.MATHML_TEXT_INTEGRATION_POINTS):tr({},["mi","mo","mn","ms","mtext"]),Pe=vn(fe,"HTML_INTEGRATION_POINTS")&&fe.HTML_INTEGRATION_POINTS&&typeof fe.HTML_INTEGRATION_POINTS=="object"?Hi(fe.HTML_INTEGRATION_POINTS):tr({},["annotation-xml"]);const $e=vn(fe,"CUSTOM_ELEMENT_HANDLING")&&fe.CUSTOM_ELEMENT_HANDLING&&typeof fe.CUSTOM_ELEMENT_HANDLING=="object"?Hi(fe.CUSTOM_ELEMENT_HANDLING):Qu(null);if(Q=Qu(null),vn($e,"tagNameCheck")&&ot($e.tagNameCheck)&&(Q.tagNameCheck=$e.tagNameCheck),vn($e,"attributeNameCheck")&&ot($e.attributeNameCheck)&&(Q.attributeNameCheck=$e.attributeNameCheck),vn($e,"allowCustomizedBuiltInElements")&&typeof $e.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=$e.allowCustomizedBuiltInElements),ce&&(ee=!1),Oe&&(Te=!0),me&&(H=tr({},sq),U=Qu(null),me.html===!0&&(tr(H,aq),tr(U,oq)),me.svg===!0&&(tr(H,E_),tr(U,N_),tr(U,sv)),me.svgFilters===!0&&(tr(H,__),tr(U,N_),tr(U,sv)),me.mathMl===!0&&(tr(H,A_),tr(U,lq),tr(U,sv))),ue.tagCheck=null,ue.attributeCheck=null,vn(fe,"ADD_TAGS")&&(typeof fe.ADD_TAGS=="function"?ue.tagCheck=fe.ADD_TAGS:wi(fe.ADD_TAGS)&&(H===Y&&(H=Hi(H)),tr(H,fe.ADD_TAGS,rt))),vn(fe,"ADD_ATTR")&&(typeof fe.ADD_ATTR=="function"?ue.attributeCheck=fe.ADD_ATTR:wi(fe.ADD_ATTR)&&(U===K&&(U=Hi(U)),tr(U,fe.ADD_ATTR,rt))),vn(fe,"ADD_URI_SAFE_ATTR")&&wi(fe.ADD_URI_SAFE_ATTR)&&tr(ne,fe.ADD_URI_SAFE_ATTR,rt),vn(fe,"FORBID_CONTENTS")&&wi(fe.FORBID_CONTENTS)&&(Me===Ke&&(Me=Hi(Me)),tr(Me,fe.FORBID_CONTENTS,rt)),vn(fe,"ADD_FORBID_CONTENTS")&&wi(fe.ADD_FORBID_CONTENTS)&&(Me===Ke&&(Me=Hi(Me)),tr(Me,fe.ADD_FORBID_CONTENTS,rt)),Ee&&(H["#text"]=!0),ke&&tr(H,["html","head","body"]),H.table&&(tr(H,["tbody"]),delete J.tbody),fe.TRUSTED_TYPES_POLICY){if(typeof fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw av('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw av('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=fe.TRUSTED_TYPES_POLICY,_=T.createHTML("")}else T===void 0&&(T=Qwe(f,i)),T!==null&&typeof _=="string"&&(_=T.createHTML(""));Li&&Li(fe),nt=fe},Ut=tr({},[...E_,...__,...$we]),pt=tr({},[...A_,...qwe]),Bt=function(fe){let $e=S(fe);(!$e||!$e.tagName)&&($e={namespaceURI:xe,tagName:"template"});const ut=Wf(fe.tagName),Zt=Wf($e.tagName);return Be[fe.namespaceURI]?fe.namespaceURI===de?$e.namespaceURI===pe?ut==="svg":$e.namespaceURI===le?ut==="svg"&&(Zt==="annotation-xml"||Fe[Zt]):!!Ut[ut]:fe.namespaceURI===le?$e.namespaceURI===pe?ut==="math":$e.namespaceURI===de?ut==="math"&&Pe[Zt]:!!pt[ut]:fe.namespaceURI===pe?$e.namespaceURI===de&&!Pe[Zt]||$e.namespaceURI===le&&!Fe[Zt]?!1:!pt[ut]&&(tt[ut]||!Ut[ut]):!!(Ye==="application/xhtml+xml"&&Be[fe.namespaceURI]):!1},Mt=function(fe){Sf(t.removed,{element:fe});try{S(fe).removeChild(fe)}catch{y(fe)}},Gt=function(fe,$e){try{Sf(t.removed,{attribute:$e.getAttributeNode(fe),from:$e})}catch{Sf(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(fe),fe==="is")if(Te||Oe)try{Mt($e)}catch{}else try{$e.setAttribute(fe,"")}catch{}},br=function(fe){let $e=null,ut=null;if(Ne)fe="<remove></remove>"+fe;else{const ur=tq(fe,/^[\r\n\t ]+/);ut=ur&&ur[0]}Ye==="application/xhtml+xml"&&xe===pe&&(fe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+fe+"</body></html>");const Zt=T?T.createHTML(fe):fe;if(xe===pe)try{$e=new p().parseFromString(Zt,Ye)}catch{}if(!$e||!$e.documentElement){$e=A.createDocument(xe,"template",null);try{$e.documentElement.innerHTML=be?_:Zt}catch{}}const Yt=$e.body||$e.documentElement;return fe&&ut&&Yt.insertBefore(r.createTextNode(ut),Yt.childNodes[0]||null),xe===pe?z.call($e,ke?"html":"body")[0]:ke?$e.documentElement:Yt},or=function(fe){return E.call(fe.ownerDocument||fe,fe,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Mr=function(fe){return fe instanceof h&&(typeof fe.nodeName!="string"||typeof fe.textContent!="string"||typeof fe.removeChild!="function"||!(fe.attributes instanceof u)||typeof fe.removeAttribute!="function"||typeof fe.setAttribute!="function"||typeof fe.namespaceURI!="string"||typeof fe.insertBefore!="function"||typeof fe.hasChildNodes!="function")},Pt=function(fe){return typeof o=="function"&&fe instanceof o};function Ht(ft,fe,$e){wf(ft,ut=>{ut.call(t,fe,$e,nt)})}const nr=function(fe){let $e=null;if(Ht(P.beforeSanitizeElements,fe,null),Mr(fe))return Mt(fe),!0;const ut=rt(fe.nodeName);if(Ht(P.uponSanitizeElement,fe,{tagName:ut,allowedTags:H}),he&&fe.hasChildNodes()&&!Pt(fe.firstElementChild)&&ei(/<[/\w!]/g,fe.innerHTML)&&ei(/<[/\w!]/g,fe.textContent)||he&&fe.namespaceURI===pe&&ut==="style"&&Pt(fe.firstElementChild)||fe.nodeType===Tf.progressingInstruction||he&&fe.nodeType===Tf.comment&&ei(/<[/\w]/g,fe.data))return Mt(fe),!0;if(J[ut]||!(ue.tagCheck instanceof Function&&ue.tagCheck(ut))&&!H[ut]){if(!J[ut]&&Ur(ut)&&(Q.tagNameCheck instanceof RegExp&&ei(Q.tagNameCheck,ut)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(ut)))return!1;if(Ee&&!Me[ut]){const Zt=S(fe)||fe.parentNode,Yt=w(fe)||fe.childNodes;if(Yt&&Zt){const ur=Yt.length;for(let Zr=ur-1;Zr>=0;--Zr){const Br=x(Yt[Zr],!0);Zt.insertBefore(Br,C(fe))}}}return Mt(fe),!0}return fe instanceof l&&!Bt(fe)||(ut==="noscript"||ut==="noembed"||ut==="noframes")&&ei(/<\/no(script|embed|frames)/i,fe.innerHTML)?(Mt(fe),!0):(ce&&fe.nodeType===Tf.text&&($e=fe.textContent,wf([q,W,B],Zt=>{$e=Pu($e,Zt," ")}),fe.textContent!==$e&&(Sf(t.removed,{element:fe.cloneNode()}),fe.textContent=$e)),Ht(P.afterSanitizeElements,fe,null),!1)},Sr=function(fe,$e,ut){if(se[$e]||Xe&&($e==="id"||$e==="name")&&(ut in r||ut in Lt))return!1;const Zt=U[$e]||ue.attributeCheck instanceof Function&&ue.attributeCheck($e,fe);if(!(ee&&!se[$e]&&ei(j,$e))){if(!(re&&ei(M,$e))){if(!Zt||se[$e]){if(!(Ur(fe)&&(Q.tagNameCheck instanceof RegExp&&ei(Q.tagNameCheck,fe)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(fe))&&(Q.attributeNameCheck instanceof RegExp&&ei(Q.attributeNameCheck,$e)||Q.attributeNameCheck instanceof Function&&Q.attributeNameCheck($e,fe))||$e==="is"&&Q.allowCustomizedBuiltInElements&&(Q.tagNameCheck instanceof RegExp&&ei(Q.tagNameCheck,ut)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(ut))))return!1}else if(!ne[$e]){if(!ei(R,Pu(ut,F,""))){if(!(($e==="src"||$e==="xlink:href"||$e==="href")&&fe!=="script"&&rq(ut,"data:")===0&&et[fe])){if(!(Z&&!ei(I,Pu(ut,F,"")))){if(ut)return!1}}}}}}return!0},Dn=tr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ur=function(fe){return!Dn[Wf(fe)]&&ei(V,fe)},bi=function(fe){Ht(P.beforeSanitizeAttributes,fe,null);const{attributes:$e}=fe;if(!$e||Mr(fe))return;const ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let Zt=$e.length;for(;Zt--;){const Yt=$e[Zt],{name:ur,namespaceURI:Zr,value:Br}=Yt,Gr=rt(ur),Di=Br;let Xt=ur==="value"?Di:Rwe(Di);if(ut.attrName=Gr,ut.attrValue=Xt,ut.keepAttr=!0,ut.forceKeepAttr=void 0,Ht(P.uponSanitizeAttribute,fe,ut),Xt=ut.attrValue,Ue&&(Gr==="id"||Gr==="name")&&rq(Xt,Ge)!==0&&(Gt(ur,fe),Xt=Ge+Xt),he&&ei(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){Gt(ur,fe);continue}if(Gr==="attributename"&&tq(Xt,"href")){Gt(ur,fe);continue}if(ut.forceKeepAttr)continue;if(!ut.keepAttr){Gt(ur,fe);continue}if(!ie&&ei(/\/>/i,Xt)){Gt(ur,fe);continue}ce&&wf([q,W,B],ir=>{Xt=Pu(Xt,ir," ")});const St=rt(fe.nodeName);if(!Sr(St,Gr,Xt)){Gt(ur,fe);continue}if(T&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Zr)switch(f.getAttributeType(St,Gr)){case"TrustedHTML":{Xt=T.createHTML(Xt);break}case"TrustedScriptURL":{Xt=T.createScriptURL(Xt);break}}if(Xt!==Di)try{Zr?fe.setAttributeNS(Zr,ur,Xt):fe.setAttribute(ur,Xt),Mr(fe)?Mt(fe):eq(t.removed)}catch{Gt(ur,fe)}}Ht(P.afterSanitizeAttributes,fe,null)},Rn=function(fe){let $e=null;const ut=or(fe);for(Ht(P.beforeSanitizeShadowDOM,fe,null);$e=ut.nextNode();)Ht(P.uponSanitizeShadowNode,$e,null),nr($e),bi($e),$e.content instanceof a&&Rn($e.content);Ht(P.afterSanitizeShadowDOM,fe,null)};return t.sanitize=function(ft){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e=null,ut=null,Zt=null,Yt=null;if(be=!ft,be&&(ft="<!-->"),typeof ft!="string"&&!Pt(ft)&&(ft=Pwe(ft),typeof ft!="string"))throw av("dirty is not a string, aborting");if(!t.isSupported)return ft;if(He||lt(fe),t.removed=[],typeof ft=="string"&&(Qe=!1),Qe){const Br=ft.nodeName;if(typeof Br=="string"){const Gr=rt(Br);if(!H[Gr]||J[Gr])throw av("root node is forbidden and cannot be sanitized in-place")}}else if(ft instanceof o)$e=br("<!---->"),ut=$e.ownerDocument.importNode(ft,!0),ut.nodeType===Tf.element&&ut.nodeName==="BODY"||ut.nodeName==="HTML"?$e=ut:$e.appendChild(ut);else{if(!Te&&!ce&&!ke&&ft.indexOf("<")===-1)return T&&Re?T.createHTML(ft):ft;if($e=br(ft),!$e)return Te?null:Re?_:""}$e&&Ne&&Mt($e.firstChild);const ur=or(Qe?ft:$e);for(;Zt=ur.nextNode();)nr(Zt),bi(Zt),Zt.content instanceof a&&Rn(Zt.content);if(Qe)return ft;if(Te){if(ce){$e.normalize();let Br=$e.innerHTML;wf([q,W,B],Gr=>{Br=Pu(Br,Gr," ")}),$e.innerHTML=Br}if(Oe)for(Yt=L.call($e.ownerDocument);$e.firstChild;)Yt.appendChild($e.firstChild);else Yt=$e;return(U.shadowroot||U.shadowrootmode)&&(Yt=D.call(n,Yt,!0)),Yt}let Zr=ke?$e.outerHTML:$e.innerHTML;return ke&&H["!doctype"]&&$e.ownerDocument&&$e.ownerDocument.doctype&&$e.ownerDocument.doctype.name&&ei(fV,$e.ownerDocument.doctype.name)&&(Zr="<!DOCTYPE "+$e.ownerDocument.doctype.name+`>
|
|
720
720
|
`+Zr),ce&&wf([q,W,B],Br=>{Zr=Pu(Zr,Br," ")}),T&&Re?T.createHTML(Zr):Zr},t.setConfig=function(){let ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lt(ft),He=!0},t.clearConfig=function(){nt=null,He=!1},t.isValidAttribute=function(ft,fe,$e){nt||lt({});const ut=rt(ft),Zt=rt(fe);return Sr(ut,Zt,$e)},t.addHook=function(ft,fe){typeof fe=="function"&&Sf(P[ft],fe)},t.removeHook=function(ft,fe){if(fe!==void 0){const $e=Bwe(P[ft],fe);return $e===-1?void 0:Dwe(P[ft],$e,1)[0]}return eq(P[ft])},t.removeHooks=function(ft){P[ft]=[]},t.removeAllHooks=function(){P=uq()},t}var $h=pV(),gV=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,lp=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Jwe=/\s*%%.*\n/gm,xh,mV=(xh=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},G(xh,"UnknownDiagramError"),xh),_c={},RM=G(function(e,t){e=e.replace(gV,"").replace(lp,"").replace(Jwe,`
|
|
721
721
|
`);for(const[r,{detector:n}]of Object.entries(_c))if(n(e,t))return r;throw new mV(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),XA=G((...e)=>{for(const{id:t,detector:r,loader:n}of e)vV(t,r,n)},"registerLazyLoadedDiagrams"),vV=G((e,t,r)=>{_c[e]&&Ze.warn(`Detector with key ${e} already exists. Overwriting.`),_c[e]={detector:t,loader:r},Ze.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),eSe=G(e=>_c[e].loader,"getDiagramLoader"),KA=G((e,t,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>KA(e,a,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=KA(e[a],t[a],{depth:r-1,clobber:n})):(n||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Pn=KA,Es="#ffffff",_s="#f2f2f2",$t=G((e,t)=>t?te(e,{s:-40,l:10}):te(e,{s:-40,l:-10}),"mkBorder"),bh,tSe=(bh=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,n,i,a,s,o,l,c,u,h,p,f,m,x,y,C,w,S,T,_,A,E;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(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||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||De(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||De(this.mainBkg,10)):(this.rowOdd=this.rowOdd||je(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||je(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330}),this.darkMode)for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=De(this["cScale"+L],75);else for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=De(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||Ce(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this.darkMode?this["cScalePeer"+L]=this["cScalePeer"+L]||je(this["cScale"+L],10):this["cScalePeer"+L]=this["cScalePeer"+L]||De(this["cScale"+L],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||te(this.mainBkg,{h:180,s:-15,l:t*(5+L*3)}),this["surfacePeer"+L]=this["surfacePeer"+L]||te(this.mainBkg,{h:180,s:-15,l:t*(8+L*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||te(this.primaryColor,{h:64}),this.fillType3=this.fillType3||te(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||te(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||te(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||te(this.primaryColor,{h:128}),this.fillType7=this.fillType7||te(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||te(this.primaryColor,{l:-10}),this.pie5=this.pie5||te(this.secondaryColor,{l:-10}),this.pie6=this.pie6||te(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||te(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||te(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.venn1=this.venn1??te(this.primaryColor,{l:-30}),this.venn2=this.venn2??te(this.secondaryColor,{l:-30}),this.venn3=this.venn3??te(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??te(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??te(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??te(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??te(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??te(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,dataLabelColor:((m=this.xyChart)==null?void 0:m.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((y=this.xyChart)==null?void 0:y.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((A=this.xyChart)==null?void 0:A.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.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?De(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||te(this.primaryColor,{h:-30}),this.git4=this.git4||te(this.primaryColor,{h:-60}),this.git5=this.git5||te(this.primaryColor,{h:-90}),this.git6=this.git6||te(this.primaryColor,{h:60}),this.git7=this.git7||te(this.primaryColor,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(bh,"Theme"),bh),rSe=G(e=>{const t=new tSe;return t.calculate(e),t},"getThemeVariables"),Ch,nSe=(Ch=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(Ce("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ol(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=De("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=De(this.sectionBkgColor,10),this.taskBorderColor=ol(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ol(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||je(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||De(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,n,i,a,s,o,l,c,u,h,p,f,m,x,y,C,w,S,T,_,A;this.secondBkg=je(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=je(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=je(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=Ce(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=te(this.primaryColor,{h:64}),this.fillType3=te(this.secondaryColor,{h:64}),this.fillType4=te(this.primaryColor,{h:-64}),this.fillType5=te(this.secondaryColor,{h:-64}),this.fillType6=te(this.primaryColor,{h:128}),this.fillType7=te(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||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330});for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||Ce(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScalePeer"+E]=this["cScalePeer"+E]||je(this["cScale"+E],10);for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||te(this.mainBkg,{h:30,s:-30,l:-(-10+E*4)}),this["surfacePeer"+E]=this["surfacePeer"+E]||te(this.mainBkg,{h:30,s:-30,l:-(-7+E*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let E=0;E<8;E++)this["venn"+(E+1)]=this["venn"+(E+1)]??je(this["cScale"+E],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((T=this.radar)==null?void 0:T.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=je(this.secondaryColor,20),this.git1=je(this.pie2||this.secondaryColor,20),this.git2=je(this.pie3||this.tertiaryColor,20),this.git3=je(this.pie4||te(this.primaryColor,{h:-30}),20),this.git4=je(this.pie5||te(this.primaryColor,{h:-60}),20),this.git5=je(this.pie6||te(this.primaryColor,{h:-90}),10),this.git6=je(this.pie7||te(this.primaryColor,{h:60}),10),this.git7=je(this.pie8||te(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(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||je(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||je(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Ch,"Theme"),Ch),iSe=G(e=>{const t=new nSe;return t.calculate(e),t},"getThemeVariables"),wh,aSe=(wh=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=te(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=ol(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,n,i,a,s,o,l,c,u,h,p,f,m,x,y,C,w,S,T,_,A;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||De(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||De(this.tertiaryColor,40);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=De(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||De(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||te(this["cScale"+E],{h:180});for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||te(this.mainBkg,{h:30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||te(this.mainBkg,{h:30,l:-(7+E*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ce(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ce(this.labelTextColor);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||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=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||je(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||je(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=te(this.primaryColor,{h:64}),this.fillType3=te(this.secondaryColor,{h:64}),this.fillType4=te(this.primaryColor,{h:-64}),this.fillType5=te(this.secondaryColor,{h:-64}),this.fillType6=te(this.primaryColor,{h:128}),this.fillType7=te(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||te(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||te(this.primaryColor,{l:-10}),this.pie5=this.pie5||te(this.secondaryColor,{l:-30}),this.pie6=this.pie6||te(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||te(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||te(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.venn1=this.venn1??te(this.primaryColor,{l:-30}),this.venn2=this.venn2??te(this.secondaryColor,{l:-30}),this.venn3=this.venn3??te(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??te(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??te(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??te(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??te(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??te(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,dataLabelColor:((f=this.xyChart)==null?void 0:f.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((x=this.xyChart)==null?void 0:x.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((T=this.xyChart)==null?void 0:T.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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||te(this.primaryColor,{h:-30}),this.git4=this.git4||te(this.primaryColor,{h:-60}),this.git5=this.git5||te(this.primaryColor,{h:-90}),this.git6=this.git6||te(this.primaryColor,{h:60}),this.git7=this.git7||te(this.primaryColor,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||De(Ce(this.git0),25),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(wh,"Theme"),wh),sSe=G(e=>{const t=new aSe;return t.calculate(e),t},"getThemeVariables"),Sh,oSe=(Sh=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=je("#cde498",10),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.primaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,n,i,a,s,o,l,c,u,h,p,f,m,x,y,C,w,S,T,_,A;this.actorBorder=De(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||De(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||De(this.tertiaryColor,40);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=De(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||De(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||te(this["cScale"+E],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||te(this.mainBkg,{h:30,s:-30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||te(this.mainBkg,{h:30,s:-30,l:-(8+E*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||je(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||je(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=te(this.primaryColor,{h:64}),this.fillType3=te(this.secondaryColor,{h:64}),this.fillType4=te(this.primaryColor,{h:-64}),this.fillType5=te(this.secondaryColor,{h:-64}),this.fillType6=te(this.primaryColor,{h:128}),this.fillType7=te(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||te(this.primaryColor,{l:-30}),this.pie5=this.pie5||te(this.secondaryColor,{l:-30}),this.pie6=this.pie6||te(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||te(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||te(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.venn1=this.venn1??te(this.primaryColor,{l:-30}),this.venn2=this.venn2??te(this.secondaryColor,{l:-30}),this.venn3=this.venn3??te(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??te(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??te(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??te(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??te(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??te(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((p=this.xyChart)==null?void 0:p.titleColor)||this.primaryTextColor,dataLabelColor:((f=this.xyChart)==null?void 0:f.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((x=this.xyChart)==null?void 0:x.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((T=this.xyChart)==null?void 0:T.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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||te(this.primaryColor,{h:-30}),this.git4=this.git4||te(this.primaryColor,{h:-60}),this.git5=this.git5||te(this.primaryColor,{h:-90}),this.git6=this.git6||te(this.primaryColor,{h:60}),this.git7=this.git7||te(this.primaryColor,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ce(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Sh,"Theme"),Sh),lSe=G(e=>{const t=new oSe;return t.calculate(e),t},"getThemeVariables"),kh,cSe=(kh=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=je(this.contrast,55),this.background="#ffffff",this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.lineColor=Ce(this.background),this.textColor=Ce(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.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||je(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,n,i,a,s,o,l,c,u,h,p,f,m,x,y,C,w,S,T,_,A;this.secondBkg=je(this.contrast,55),this.border2=this.contrast,this.actorBorder=je(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||Ce(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this.darkMode?this["cScalePeer"+E]=this["cScalePeer"+E]||je(this["cScale"+E],10):this["cScalePeer"+E]=this["cScalePeer"+E]||De(this["cScale"+E],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||te(this.mainBkg,{l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||te(this.mainBkg,{l:-(8+E*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=je(this.contrast,30),this.sectionBkgColor2=je(this.contrast,30),this.taskBorderColor=De(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=je(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=De(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=te(this.primaryColor,{h:64}),this.fillType3=te(this.secondaryColor,{h:64}),this.fillType4=te(this.primaryColor,{h:-64}),this.fillType5=te(this.secondaryColor,{h:-64}),this.fillType6=te(this.primaryColor,{h:128}),this.fillType7=te(this.secondaryColor,{h:128});for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];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";for(let E=0;E<8;E++)this["venn"+(E+1)]=this["venn"+(E+1)]??this["cScale"+E];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((T=this.radar)==null?void 0:T.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=De(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||te(this.primaryColor,{h:-30}),this.git4=this.pie5||te(this.primaryColor,{h:-60}),this.git5=this.pie6||te(this.primaryColor,{h:-90}),this.git6=this.pie7||te(this.primaryColor,{h:60}),this.git7=this.pie8||te(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(kh,"Theme"),kh),uSe=G(e=>{const t=new cSe;return t.calculate(e),t},"getThemeVariables"),Th,hSe=(Th=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var a,s,o,l,c,u,h,p,f,m,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=te(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||te(t,{h:30}),this.cScale4=this.cScale4||te(t,{h:60}),this.cScale5=this.cScale5||te(t,{h:90}),this.cScale6=this.cScale6||te(t,{h:120}),this.cScale7=this.cScale7||te(t,{h:150}),this.cScale8=this.cScale8||te(t,{h:210,l:150}),this.cScale9=this.cScale9||te(t,{h:270}),this.cScale10=this.cScale10||te(t,{h:300}),this.cScale11=this.cScale11||te(t,{h:330}),this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=De(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=De(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ce(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||je(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||De(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||te(t,{h:64}),this.fillType3=this.fillType3||te(r,{h:64}),this.fillType4=this.fillType4||te(t,{h:-64}),this.fillType5=this.fillType5||te(r,{h:-64}),this.fillType6=this.fillType6||te(t,{h:128}),this.fillType7=this.fillType7||te(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||te(t,{l:-10}),this.pie5=this.pie5||te(r,{l:-10}),this.pie6=this.pie6||te(n,{l:-10}),this.pie7=this.pie7||te(t,{h:60,l:-10}),this.pie8=this.pie8||te(t,{h:-60,l:-10}),this.pie9=this.pie9||te(t,{h:120,l:0}),this.pie10=this.pie10||te(t,{h:60,l:-20}),this.pie11=this.pie11||te(t,{h:-60,l:-20}),this.pie12=this.pie12||te(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||te(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((p=this.xyChart)==null?void 0:p.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||te(t,{h:-30}),this.git4=this.git4||te(t,{h:-60}),this.git5=this.git5||te(t,{h:-90}),this.git6=this.git6||te(t,{h:60}),this.git7=this.git7||te(t,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Th,"Theme"),Th),dSe=G(e=>{const t=new hSe;return t.calculate(e),t},"getThemeVariables"),Eh,fSe=(Eh=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(Ce("#323D47"),10),this.border1="#ccc",this.border2=ol(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,n,i,a,s,o,l,c,u,h,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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.border1,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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(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||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=De(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=De(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ce(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||je(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||De(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 t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(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||te(this.primaryColor,{h:64}),this.fillType3=this.fillType3||te(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||te(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||te(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||te(this.primaryColor,{h:128}),this.fillType7=this.fillType7||te(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||te(this.primaryColor,{l:-10}),this.pie5=this.pie5||te(this.secondaryColor,{l:-10}),this.pie6=this.pie6||te(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||te(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||te(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.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?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Eh,"Theme"),Eh),pSe=G(e=>{const t=new fSe;return t.calculate(e),t},"getThemeVariables"),_h,gSe=(_h=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$t("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var a,s,o,l,c,u,h,p,f,m,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=te(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=this.mainBkg;if(this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=De(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=De(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ce(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||je(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||De(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||te(t,{h:64}),this.fillType3=this.fillType3||te(r,{h:64}),this.fillType4=this.fillType4||te(t,{h:-64}),this.fillType5=this.fillType5||te(r,{h:-64}),this.fillType6=this.fillType6||te(t,{h:128}),this.fillType7=this.fillType7||te(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||te(t,{l:-10}),this.pie5=this.pie5||te(r,{l:-10}),this.pie6=this.pie6||te(n,{l:-10}),this.pie7=this.pie7||te(t,{h:60,l:-10}),this.pie8=this.pie8||te(t,{h:-60,l:-10}),this.pie9=this.pie9||te(t,{h:120,l:0}),this.pie10=this.pie10||te(t,{h:60,l:-20}),this.pie11=this.pie11||te(t,{h:-60,l:-20}),this.pie12=this.pie12||te(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||te(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((p=this.xyChart)==null?void 0:p.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||te(t,{h:-30}),this.git4=this.git4||te(t,{h:-60}),this.git5=this.git5||te(t,{h:-90}),this.git6=this.git6||te(t,{h:60}),this.git7=this.git7||te(t,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(_h,"Theme"),_h),mSe=G(e=>{const t=new gSe;return t.calculate(e),t},"getThemeVariables"),Ah,vSe=(Ah=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(Ce("#323D47"),10),this.border1="#ccc",this.border2=ol(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,n,i,a,s,o,l,c,u,h,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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.border1,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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(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||je(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,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.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||te(this.primaryColor,{h:30}),this.cScale4=this.cScale4||te(this.primaryColor,{h:60}),this.cScale5=this.cScale5||te(this.primaryColor,{h:90}),this.cScale6=this.cScale6||te(this.primaryColor,{h:120}),this.cScale7=this.cScale7||te(this.primaryColor,{h:150}),this.cScale8=this.cScale8||te(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||te(this.primaryColor,{h:270}),this.cScale10=this.cScale10||te(this.primaryColor,{h:300}),this.cScale11=this.cScale11||te(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=De(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=De(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ce(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||je(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||De(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 t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(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||te(this.primaryColor,{h:64}),this.fillType3=this.fillType3||te(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||te(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||te(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||te(this.primaryColor,{h:128}),this.fillType7=this.fillType7||te(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||te(this.primaryColor,{l:-10}),this.pie5=this.pie5||te(this.secondaryColor,{l:-10}),this.pie6=this.pie6||te(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||te(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||te(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.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?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||te(this.primaryColor,{h:-30}),this.git4=this.git4||te(this.primaryColor,{h:-60}),this.git5=this.git5||te(this.primaryColor,{h:-90}),this.git6=this.git6||te(this.primaryColor,{h:60}),this.git7=this.git7||te(this.primaryColor,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Ah,"Theme"),Ah),ySe=G(e=>{const t=new vSe;return t.calculate(e),t},"getThemeVariables"),Nh,xSe=(Nh=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=$t(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var a,s,o,l,c,u,h,p,f,m,x;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=te(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ce(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||je(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||De(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||te(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||te(t,{h:64}),this.fillType3=this.fillType3||te(r,{h:64}),this.fillType4=this.fillType4||te(t,{h:-64}),this.fillType5=this.fillType5||te(r,{h:-64}),this.fillType6=this.fillType6||te(t,{h:128}),this.fillType7=this.fillType7||te(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||te(t,{l:-10}),this.pie5=this.pie5||te(r,{l:-10}),this.pie6=this.pie6||te(n,{l:-10}),this.pie7=this.pie7||te(t,{h:60,l:-10}),this.pie8=this.pie8||te(t,{h:-60,l:-10}),this.pie9=this.pie9||te(t,{h:120,l:0}),this.pie10=this.pie10||te(t,{h:60,l:-20}),this.pie11=this.pie11||te(t,{h:-60,l:-20}),this.pie12=this.pie12||te(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||te(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((p=this.xyChart)==null?void 0:p.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((x=this.xyChart)==null?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?De(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||te(t,{h:-30}),this.git4=this.git4||te(t,{h:-60}),this.git5=this.git5||te(t,{h:-90}),this.git6=this.git6||te(t,{h:60}),this.git7=this.git7||te(t,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Nh,"Theme"),Nh),bSe=G(e=>{const t=new xSe;return t.calculate(e),t},"getThemeVariables"),Lh,CSe=(Lh=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=te(this.primaryColor,{h:-160}),this.primaryBorderColor=Ce(this.background),this.secondaryBorderColor=$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=$t(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ce(this.primaryColor),this.secondaryTextColor=Ce(this.secondaryColor),this.tertiaryTextColor=Ce(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(Ce("#323D47"),10),this.border1="#ccc",this.border2=ol(255,255,255,.25),this.arrowheadColor=Ce(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,n,i,a,s,o,l,c,u,h,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||te(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||te(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||$t(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||$t(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||$t(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||$t(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ce(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ce(this.tertiaryColor),this.lineColor=this.lineColor||Ce(this.background),this.arrowheadColor=this.arrowheadColor||Ce(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.border1,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?De(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||De(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ce(this.lineColor),this.rootLabelColor="#FFFFFF",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||je(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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||"#f0f0f0",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||Ce(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||je(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||De(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=De(this["cScale"+f],75);const t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||te(this.mainBkg,{h:180,s:-15,l:t*(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||te(this.primaryColor,{h:64}),this.fillType3=this.fillType3||te(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||te(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||te(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||te(this.primaryColor,{h:128}),this.fillType7=this.fillType7||te(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||te(this.primaryColor,{l:-10}),this.pie5=this.pie5||te(this.secondaryColor,{l:-10}),this.pie6=this.pie6||te(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||te(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||te(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||te(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||te(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||te(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||te(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||te(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||te(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||te(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||te(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||te(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||te(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||es(this.quadrant1Fill)?je(this.quadrant1Fill):De(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.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?De(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||te(this.primaryColor,{h:-30}),this.git4=this.git4||te(this.primaryColor,{h:-60}),this.git5=this.git5||te(this.primaryColor,{h:-90}),this.git6=this.git6||te(this.primaryColor,{h:60}),this.git7=this.git7||te(this.primaryColor,{h:120}),this.darkMode?(this.git0=je(this.git0,25),this.git1=je(this.git1,25),this.git2=je(this.git2,25),this.git3=je(this.git3,25),this.git4=je(this.git4,25),this.git5=je(this.git5,25),this.git6=je(this.git6,25),this.git7=je(this.git7,25)):(this.git0=De(this.git0,25),this.git1=De(this.git1,25),this.git2=De(this.git2,25),this.git3=De(this.git3,25),this.git4=De(this.git4,25),this.git5=De(this.git5,25),this.git6=De(this.git6,25),this.git7=De(this.git7,25)),this.gitInv0=this.gitInv0||Ce(this.git0),this.gitInv1=this.gitInv1||Ce(this.git1),this.gitInv2=this.gitInv2||Ce(this.git2),this.gitInv3=this.gitInv3||Ce(this.git3),this.gitInv4=this.gitInv4||Ce(this.git4),this.gitInv5=this.gitInv5||Ce(this.git5),this.gitInv6=this.gitInv6||Ce(this.git6),this.gitInv7=this.gitInv7||Ce(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Es,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||_s}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},G(Lh,"Theme"),Lh),wSe=G(e=>{const t=new CSe;return t.calculate(e),t},"getThemeVariables"),to={base:{getThemeVariables:rSe},dark:{getThemeVariables:iSe},default:{getThemeVariables:sSe},forest:{getThemeVariables:lSe},neutral:{getThemeVariables:uSe},neo:{getThemeVariables:dSe},"neo-dark":{getThemeVariables:pSe},redux:{getThemeVariables:mSe},"redux-dark":{getThemeVariables:ySe},"redux-color":{getThemeVariables:bSe},"redux-dark-color":{getThemeVariables:wSe}},la={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},yV={...la,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:to.default.getThemeVariables(),sequence:{...la.sequence,messageFont:G(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:G(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:G(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...la.gantt,tickInterval:void 0,useWidth:void 0},c4:{...la.c4,useWidth:void 0,personFont:G(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...la.flowchart,inheritDir:!1},external_personFont:G(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:G(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:G(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:G(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:G(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:G(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:G(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:G(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:G(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:G(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:G(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:G(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:G(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:G(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:G(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:G(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:G(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:G(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:G(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:G(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:G(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...la.pie,useWidth:984},xyChart:{...la.xyChart,useWidth:void 0},requirement:{...la.requirement,useWidth:void 0},packet:{...la.packet},treeView:{...la.treeView,useWidth:void 0},radar:{...la.radar},ishikawa:{...la.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...la.venn}},xV=G((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...xV(e[n],"")]:[...r,t+n],[]),"keyify"),SSe=new Set(xV(yV,"")),bV=yV,Fy=G(e=>{if(Ze.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Fy(t));return}for(const t of Object.keys(e)){if(Ze.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!SSe.has(t)||e[t]==null){Ze.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Ze.debug("sanitizing object",t),Fy(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(Ze.debug("sanitizing css option",t),e[t]=kSe(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Ze.debug("After sanitization",e)}},"sanitizeDirective"),kSe=G(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),qh=Object.freeze(bV),po=G(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Wi=Pn({},qh),jy,Ac=[],cp=Pn({},qh),vx=G((e,t)=>{let r=Pn({},e),n={};for(const i of t)SV(i),n=Pn(n,i);if(r=Pn(r,n),n.theme&&n.theme in to){const i=Pn({},jy),a=Pn(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in to&&(r.themeVariables=to[r.theme].getThemeVariables(a))}return cp=r,TV(cp),cp},"updateCurrentConfig"),TSe=G(e=>(Wi=Pn({},qh),Wi=Pn(Wi,e),e.theme&&to[e.theme]&&(Wi.themeVariables=to[e.theme].getThemeVariables(e.themeVariables)),vx(Wi,Ac),Wi),"setSiteConfig"),ESe=G(e=>{jy=Pn({},e)},"saveConfigFromInitialize"),_Se=G(e=>(Wi=Pn(Wi,e),vx(Wi,Ac),Wi),"updateSiteConfig"),CV=G(()=>Pn({},Wi),"getSiteConfig"),wV=G(e=>(TV(e),Pn(cp,e),fn()),"setConfig"),fn=G(()=>Pn({},cp),"getConfig"),SV=G(e=>{e&&(["secure",...Wi.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Ze.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&SV(e[t])}))},"sanitize"),ASe=G(e=>{var t;Fy(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Ac.push(e),vx(Wi,Ac)},"addDirective"),Py=G((e=Wi)=>{Ac=[],vx(e,Ac)},"reset"),NSe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},hq={},kV=G(e=>{hq[e]||(Ze.warn(NSe[e]),hq[e]=!0)},"issueWarning"),TV=G(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&kV("LAZY_LOAD_DEPRECATED")},"checkConfig"),u6e=G(()=>{let e={};jy&&(e=Pn(e,jy));for(const t of Ac)e=Pn(e,t);return e},"getUserDefinedConfig"),Mi=G(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&kV("FLOWCHART_HTML_LABELS_DEPRECATED"),po(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),pg=/<br\s*\/?>/gi,LSe=G(e=>e?AV(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),MSe=(()=>{let e=!1;return()=>{e||(EV(),e=!0)}})();function EV(){const e="data-temp-href-target";$h.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),$h.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}G(EV,"setupDompurifyHooks");var _V=G(e=>(MSe(),$h.sanitize(e)),"removeScript"),dq=G((e,t)=>{if(Mi(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=_V(e):r!=="loose"&&(e=AV(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=OSe(e))}return e},"sanitizeMore"),Qa=G((e,t)=>e&&(t.dompurifyConfig?e=$h.sanitize(dq(e,t),t.dompurifyConfig).toString():e=$h.sanitize(dq(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),BSe=G((e,t)=>typeof e=="string"?Qa(e,t):e.flat().map(r=>Qa(r,t)),"sanitizeTextOrArray"),DSe=G(e=>pg.test(e),"hasBreaks"),RSe=G(e=>e.split(pg),"splitBreaks"),OSe=G(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),AV=G(e=>e.replace(pg,"#br#"),"breakToPlaceholder"),ISe=G(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),FSe=G(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),jSe=G(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),fq=G(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let i=t[n];if(i===","&&n>0&&n+1<t.length){const a=t[n-1],s=t[n+1];PSe(a,s)&&(i=a+","+s,n++,r.pop())}r.push(zSe(i))}return r.join("")},"parseGenericTypes"),ZA=G((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),PSe=G((e,t)=>{const r=ZA(e,"~"),n=ZA(t,"~");return r===1&&n===1},"shouldCombineSets"),zSe=G(e=>{const t=ZA(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),pq=G(()=>window.MathMLElement!==void 0,"isMathMLSupported"),QA=/\$\$(.*)\$\$/g,Lp=G(e=>{var t;return(((t=e.match(QA))==null?void 0:t.length)??0)>0},"hasKatex"),h6e=G(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await NV(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),$Se=G(async(e,t)=>{if(!Lp(e))return e;if(!(pq()||t.legacyMathML||t.forceLegacyMathML))return e.replace(QA,"MathML is unsupported in this environment.");{const{default:r}=await xr(async()=>{const{default:i}=await import("./katex-DkKDou_j.js");return{default:i}},[]),n=t.forceLegacyMathML||!pq()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(pg).map(i=>Lp(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(QA,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),NV=G(async(e,t)=>Qa(await $Se(e,t),t),"renderKatexSanitized"),gg={getRows:LSe,sanitizeText:Qa,sanitizeTextOrArray:BSe,hasBreaks:DSe,splitBreaks:RSe,lineBreakRegex:pg,removeScript:_V,getUrl:ISe,evaluate:po,getMax:FSe,getMin:jSe},qSe=G(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),HSe=G(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),LV=G(function(e,t,r,n){const i=HSe(t,r,n);qSe(e,i)},"configureSvgSize"),USe=G(function(e,t,r,n){const i=t.node().getBBox(),a=i.width,s=i.height;Ze.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;Ze.info(`Graph bounds: ${o}x${l}`,e),o=a+r*2,l=s+r*2,Ze.info(`Calculated bounds: ${o}x${l}`),LV(t,l,o,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Xv={},GSe=G((e,t,r,n)=>{let i="";return e in Xv&&Xv[e]?i=Xv[e]({...r,svgId:n}):Ze.warn(`No theme found for ${e}`),` & {
|
|
@@ -1012,8 +1012,8 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
|
|
|
1012
1012
|
L0,20`)},"requirement_arrow"),mDe=G((e,t,r)=>{const n=fn(),{themeVariables:i}=n,{strokeWidth:a}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
1013
1013
|
L20,10
|
|
1014
1014
|
M20,10
|
|
1015
|
-
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),vDe=G((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),yDe=G((e,t,r)=>{const n=fn(),{themeVariables:i}=n,{strokeWidth:a}=i,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),xDe={extension:ZBe,composition:QBe,aggregation:JBe,dependency:eDe,lollipop:tDe,point:rDe,circle:nDe,cross:iDe,barb:aDe,barbNeo:sDe,only_one:oDe,zero_or_one:lDe,one_or_more:cDe,zero_or_more:uDe,only_one_neo:hDe,zero_or_one_neo:dDe,one_or_more_neo:fDe,zero_or_more_neo:pDe,requirement_arrow:gDe,requirement_contains:vDe,requirement_arrow_neo:mDe,requirement_contains_neo:yDe},bDe=KBe,CDe={common:gg,getConfig:fn,insertCluster:yBe,insertEdge:XBe,insertEdgeLabel:HBe,insertMarkers:bDe,insertNode:DQ,interpolateToCurve:uB,labelHelper:jt,log:Ze,positionEdgeLabel:UBe},qp={},FQ=G(e=>{for(const t of e)qp[t.name]=t},"registerLayoutLoaders"),wDe=G(()=>{FQ([{name:"dagre",loader:G(async()=>await xr(()=>import("./dagre-KV5264BT-DxFW1QY6.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:G(async()=>await xr(()=>import("./cose-bilkent-S5V4N54A-DAi5xffK.js"),[]),"loader")}])},"registerDefaultLayoutLoaders");wDe();var I6e=G(async(e,t)=>{if(!(e.layoutAlgorithm in qp))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const u of e.nodes){const h=u.domId||u.id;u.domId=`${e.diagramId}-${h}`}const r=qp[e.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),s){const u=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");u.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),u.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(e,t,CDe,{algorithm:r.algorithm})},"render"),F6e=G((e="",{fallback:t="dagre"}={})=>{if(e in qp)return e;if(t in qp)return Ze.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),jQ="comm",PQ="rule",zQ="decl",SDe="@import",kDe="@namespace",TDe="@keyframes",EDe="@layer",_De=Math.abs,fp=String.fromCharCode;function $Q(e){return e.trim()}function zN(e,t,r){return e.replace(t,r)}function mh(e,t){return e.charCodeAt(t)|0}function Vh(e,t,r){return e.slice(t,r)}function fs(e){return e.length}function ADe(e){return e.length}function vv(e,t){return t.push(e),e}var Fx=1,Yh=1,qQ=0,Ba=0,Ln=0,fd="";function MB(e,t,r,n,i,a,s,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Fx,column:Yh,length:s,return:"",siblings:o}}function NDe(){return Ln}function LDe(){return Ln=Ba>0?mh(fd,--Ba):0,Yh--,Ln===10&&(Yh=1,Fx--),Ln}function Ya(){return Ln=Ba<qQ?mh(fd,Ba++):0,Yh++,Ln===10&&(Yh=1,Fx++),Ln}function il(){return mh(fd,Ba)}function ny(){return Ba}function jx(e,t){return Vh(fd,e,t)}function Hp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function MDe(e){return Fx=Yh=1,qQ=fs(fd=e),Ba=0,[]}function BDe(e){return fd="",e}function U_(e){return $Q(jx(Ba-1,$N(e===91?e+2:e===40?e+1:e)))}function DDe(e){for(;(Ln=il())&&Ln<33;)Ya();return Hp(e)>2||Hp(Ln)>3?"":" "}function RDe(e,t){for(;--t&&Ya()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return jx(e,ny()+(t<6&&il()==32&&Ya()==32))}function $N(e){for(;Ya();)switch(Ln){case e:return Ba;case 34:case 39:e!==34&&e!==39&&$N(Ln);break;case 40:e===41&&$N(e);break;case 92:Ya();break}return Ba}function ODe(e,t){for(;Ya()&&e+Ln!==57;)if(e+Ln===84&&il()===47)break;return"/*"+jx(t,Ba-1)+"*"+fp(e===47?e:Ya())}function IDe(e){for(;!Hp(il());)Ya();return jx(e,Ba)}function FDe(e){return BDe(iy("",null,null,null,[""],e=MDe(e),0,[0],e))}function iy(e,t,r,n,i,a,s,o,l){for(var c=0,u=0,h=s,p=0,f=0,m=0,x=1,y=1,C=1,w=0,S=0,T="",_=i,A=a,E=n,L=T;y;)switch(m=S,S=Ya()){case 40:m!=108&&mh(L,h-1)==58?(w++,L+="("):L+=U_(S);break;case 41:w--,L+=")";break;case 34:case 39:case 91:L+=U_(S);break;case 9:case 10:case 13:case 32:if(w>0){L+=fp(S);break}L+=DDe(m);break;case 92:L+=RDe(ny()-1,7);continue;case 47:switch(il()){case 42:case 47:vv(jDe(ODe(Ya(),ny()),t,r,l),l),(Hp(m||1)==5||Hp(il()||1)==5)&&fs(L)&&Vh(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*x:o[c++]=fs(L)*C;case 125*x:case 59:case 0:if(w>0&&S){L+=fp(S);break}switch(S){case 0:case 125:y=0;case 59+u:C==-1&&(L=zN(L,/\f/g,"")),f>0&&(fs(L)-h||x===0)&&vv(f>32?j8(L+";",n,r,h-1,l):j8(zN(L," ","")+";",n,r,h-2,l),l);break;case 59:L+=";";default:if(vv(E=F8(L,t,r,c,u,i,o,T,_=[],A=[],h,a),a),S===123)if(u===0)iy(L,t,E,E,_,a,h,o,A);else{switch(p){case 99:if(mh(L,3)===110)break;case 108:if(mh(L,2)===97)break;default:u=0;case 100:case 109:case 115:}u?iy(e,E,E,n&&vv(F8(e,E,E,0,0,i,o,T,i,_=[],h,A),A),i,A,h,o,n?_:A):iy(L,E,E,E,[""],A,0,o,A)}}c=u=f=0,x=C=1,T=L="",h=s;break;case 58:h=1+fs(L),f=m;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&LDe()==125)continue}switch(L+=fp(S),S*x){case 38:C=u>0?1:(L+="\f",-1);break;case 44:if(w>0)break;o[c++]=(fs(L)-1)*C,C=1;break;case 64:il()===45&&(L+=U_(Ya())),p=il(),u=h=fs(T=L+=IDe(ny())),S++;break;case 45:m===45&&fs(L)==2&&(x=0)}}return a}function F8(e,t,r,n,i,a,s,o,l,c,u,h){for(var p=i-1,f=i===0?a:[""],m=ADe(f),x=0,y=0,C=0;x<n;++x)for(var w=0,S=Vh(e,p+1,p=_De(y=s[x])),T=e;w<m;++w)(T=$Q(y>0?f[w]+" "+S:zN(S,/&\f/g,f[w])))&&(l[C++]=T);return MB(e,t,r,i===0?PQ:o,l,c,u,h)}function jDe(e,t,r,n){return MB(e,t,r,jQ,fp(NDe()),Vh(e,2,-2),0,n)}function j8(e,t,r,n,i){return MB(e,t,r,zQ,Vh(e,0,n),Vh(e,n+1,-1),n,i)}function qN(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function PDe(e,t,r,n){switch(e.type){case EDe:if(e.children.length)break;case SDe:case kDe:case zQ:return e.return=e.return||e.value;case jQ:return"";case TDe:return e.return=e.value+"{"+qN(e.children,n)+"}";case PQ:if(!fs(e.value=e.props.join(",")))return""}return fs(r=qN(e.children,n))?e.return=e.value+"{"+r+"}":""}var zDe=dK(Object.keys,Object),$De=Object.prototype,qDe=$De.hasOwnProperty;function HDe(e){if(!Ax(e))return zDe(e);var t=[];for(var r in Object(e))qDe.call(e,r)&&r!="constructor"&&t.push(r);return t}var HN=Vc(Ns,"DataView"),UN=Vc(Ns,"Promise"),GN=Vc(Ns,"Set"),WN=Vc(Ns,"WeakMap"),P8="[object Map]",UDe="[object Object]",z8="[object Promise]",$8="[object Set]",q8="[object WeakMap]",H8="[object DataView]",GDe=Wc(HN),WDe=Wc(zp),VDe=Wc(UN),YDe=Wc(GN),XDe=Wc(WN),cc=cd;(HN&&cc(new HN(new ArrayBuffer(1)))!=H8||zp&&cc(new zp)!=P8||UN&&cc(UN.resolve())!=z8||GN&&cc(new GN)!=$8||WN&&cc(new WN)!=q8)&&(cc=function(e){var t=cd(e),r=t==UDe?e.constructor:void 0,n=r?Wc(r):"";if(n)switch(n){case GDe:return H8;case WDe:return P8;case VDe:return z8;case YDe:return $8;case XDe:return q8}return t});var KDe="[object Map]",ZDe="[object Set]",QDe=Object.prototype,JDe=QDe.hasOwnProperty;function U8(e){if(e==null)return!0;if(Nx(e)&&(s0(e)||typeof e=="string"||typeof e.splice=="function"||lB(e)||cB(e)||a0(e)))return!e.length;var t=cc(e);if(t==KDe||t==ZDe)return!e.size;if(Ax(e))return!HDe(e).length;for(var r in e)if(JDe.call(e,r))return!1;return!0}var HQ="c4",eRe=G(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),tRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-z7iak8a1.js");return{diagram:t}},__vite__mapDeps([6,7]));return{id:HQ,diagram:e}},"loader"),rRe={id:HQ,detector:eRe,loader:tRe},nRe=rRe,UQ="flowchart",iRe=G((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),aRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-wGvIjQo9.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12]));return{id:UQ,diagram:e}},"loader"),sRe={id:UQ,detector:iRe,loader:aRe},oRe=sRe,GQ="flowchart-v2",lRe=G((e,t)=>{var r,n,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),cRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-wGvIjQo9.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12]));return{id:GQ,diagram:e}},"loader"),uRe={id:GQ,detector:lRe,loader:cRe},hRe=uRe,WQ="er",dRe=G(e=>/^\s*erDiagram/.test(e),"detector"),fRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-BMQopaH1.js");return{diagram:t}},__vite__mapDeps([13,10,11,12]));return{id:WQ,diagram:e}},"loader"),pRe={id:WQ,detector:dRe,loader:fRe},gRe=pRe,VQ="gitGraph",mRe=G(e=>/^\s*gitGraph/.test(e),"detector"),vRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-B7hkxymq.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,4,2]));return{id:VQ,diagram:e}},"loader"),yRe={id:VQ,detector:mRe,loader:vRe},xRe=yRe,YQ="gantt",bRe=G(e=>/^\s*gantt/.test(e),"detector"),CRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-CH1jxQfG.js");return{diagram:t}},__vite__mapDeps([18,19,20,21]));return{id:YQ,diagram:e}},"loader"),wRe={id:YQ,detector:bRe,loader:CRe},SRe=wRe,XQ="info",kRe=G(e=>/^\s*info/.test(e),"detector"),TRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-D-OFzY0V.js");return{diagram:t}},__vite__mapDeps([22,17,4,2]));return{id:XQ,diagram:e}},"loader"),ERe={id:XQ,detector:kRe,loader:TRe},KQ="pie",_Re=G(e=>/^\s*pie/.test(e),"detector"),ARe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-DqhgUtug.js");return{diagram:t}},__vite__mapDeps([23,15,17,4,2,24,25,20]));return{id:KQ,diagram:e}},"loader"),NRe={id:KQ,detector:_Re,loader:ARe},ZQ="quadrantChart",LRe=G(e=>/^\s*quadrantChart/.test(e),"detector"),MRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-DFZOJy8m.js");return{diagram:t}},__vite__mapDeps([26,19,20,21]));return{id:ZQ,diagram:e}},"loader"),BRe={id:ZQ,detector:LRe,loader:MRe},DRe=BRe,QQ="xychart",RRe=G(e=>/^\s*xychart(-beta)?/.test(e),"detector"),ORe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-vXuuNWg5.js");return{diagram:t}},__vite__mapDeps([27,20,25,19,21]));return{id:QQ,diagram:e}},"loader"),IRe={id:QQ,detector:RRe,loader:ORe},FRe=IRe,JQ="requirement",jRe=G(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),PRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-BSSFdFqn.js");return{diagram:t}},__vite__mapDeps([28,10,11]));return{id:JQ,diagram:e}},"loader"),zRe={id:JQ,detector:jRe,loader:PRe},$Re=zRe,eJ="sequence",qRe=G(e=>/^\s*sequenceDiagram/.test(e),"detector"),HRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-Bv9TCVgL.js");return{diagram:t}},__vite__mapDeps([29,7,16]));return{id:eJ,diagram:e}},"loader"),URe={id:eJ,detector:qRe,loader:HRe},GRe=URe,tJ="class",WRe=G((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),VRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-BAkP0AjJ.js");return{diagram:t}},__vite__mapDeps([30,31,9,7,10,11]));return{id:tJ,diagram:e}},"loader"),YRe={id:tJ,detector:WRe,loader:VRe},XRe=YRe,rJ="classDiagram",KRe=G((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),ZRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-BAkP0AjJ.js");return{diagram:t}},__vite__mapDeps([32,31,9,7,10,11]));return{id:rJ,diagram:e}},"loader"),QRe={id:rJ,detector:KRe,loader:ZRe},JRe=QRe,nJ="state",eOe=G((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),tOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-DKN69T9x.js");return{diagram:t}},__vite__mapDeps([33,34,10,11,1,2,3,4]));return{id:nJ,diagram:e}},"loader"),rOe={id:nJ,detector:eOe,loader:tOe},nOe=rOe,iJ="stateDiagram",iOe=G((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),aOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-CDDMZPwW.js");return{diagram:t}},__vite__mapDeps([35,34,10,11]));return{id:iJ,diagram:e}},"loader"),sOe={id:iJ,detector:iOe,loader:aOe},oOe=sOe,aJ="journey",lOe=G(e=>/^\s*journey/.test(e),"detector"),cOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-BgcWrIu0.js");return{diagram:t}},__vite__mapDeps([36,9,7,24]));return{id:aJ,diagram:e}},"loader"),uOe={id:aJ,detector:lOe,loader:cOe},hOe=uOe,dOe=G((e,t,r)=>{Ze.debug(`rendering svg for syntax error
|
|
1016
|
-
`);const n=OEe(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),LV(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),sJ={draw:dOe},fOe=sJ,pOe={db:{},renderer:sJ,parser:{parse:G(()=>{},"parse")}},gOe=pOe,oJ="flowchart-elk",mOe=G((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),vOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-
|
|
1015
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),vDe=G((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),yDe=G((e,t,r)=>{const n=fn(),{themeVariables:i}=n,{strokeWidth:a}=i,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),xDe={extension:ZBe,composition:QBe,aggregation:JBe,dependency:eDe,lollipop:tDe,point:rDe,circle:nDe,cross:iDe,barb:aDe,barbNeo:sDe,only_one:oDe,zero_or_one:lDe,one_or_more:cDe,zero_or_more:uDe,only_one_neo:hDe,zero_or_one_neo:dDe,one_or_more_neo:fDe,zero_or_more_neo:pDe,requirement_arrow:gDe,requirement_contains:vDe,requirement_arrow_neo:mDe,requirement_contains_neo:yDe},bDe=KBe,CDe={common:gg,getConfig:fn,insertCluster:yBe,insertEdge:XBe,insertEdgeLabel:HBe,insertMarkers:bDe,insertNode:DQ,interpolateToCurve:uB,labelHelper:jt,log:Ze,positionEdgeLabel:UBe},qp={},FQ=G(e=>{for(const t of e)qp[t.name]=t},"registerLayoutLoaders"),wDe=G(()=>{FQ([{name:"dagre",loader:G(async()=>await xr(()=>import("./dagre-KV5264BT-Cxy40gF8.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:G(async()=>await xr(()=>import("./cose-bilkent-S5V4N54A-D4WlxDuB.js"),[]),"loader")}])},"registerDefaultLayoutLoaders");wDe();var I6e=G(async(e,t)=>{if(!(e.layoutAlgorithm in qp))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const u of e.nodes){const h=u.domId||u.id;u.domId=`${e.diagramId}-${h}`}const r=qp[e.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),s){const u=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");u.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),u.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(e,t,CDe,{algorithm:r.algorithm})},"render"),F6e=G((e="",{fallback:t="dagre"}={})=>{if(e in qp)return e;if(t in qp)return Ze.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),jQ="comm",PQ="rule",zQ="decl",SDe="@import",kDe="@namespace",TDe="@keyframes",EDe="@layer",_De=Math.abs,fp=String.fromCharCode;function $Q(e){return e.trim()}function zN(e,t,r){return e.replace(t,r)}function mh(e,t){return e.charCodeAt(t)|0}function Vh(e,t,r){return e.slice(t,r)}function fs(e){return e.length}function ADe(e){return e.length}function vv(e,t){return t.push(e),e}var Fx=1,Yh=1,qQ=0,Ba=0,Ln=0,fd="";function MB(e,t,r,n,i,a,s,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Fx,column:Yh,length:s,return:"",siblings:o}}function NDe(){return Ln}function LDe(){return Ln=Ba>0?mh(fd,--Ba):0,Yh--,Ln===10&&(Yh=1,Fx--),Ln}function Ya(){return Ln=Ba<qQ?mh(fd,Ba++):0,Yh++,Ln===10&&(Yh=1,Fx++),Ln}function il(){return mh(fd,Ba)}function ny(){return Ba}function jx(e,t){return Vh(fd,e,t)}function Hp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function MDe(e){return Fx=Yh=1,qQ=fs(fd=e),Ba=0,[]}function BDe(e){return fd="",e}function U_(e){return $Q(jx(Ba-1,$N(e===91?e+2:e===40?e+1:e)))}function DDe(e){for(;(Ln=il())&&Ln<33;)Ya();return Hp(e)>2||Hp(Ln)>3?"":" "}function RDe(e,t){for(;--t&&Ya()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return jx(e,ny()+(t<6&&il()==32&&Ya()==32))}function $N(e){for(;Ya();)switch(Ln){case e:return Ba;case 34:case 39:e!==34&&e!==39&&$N(Ln);break;case 40:e===41&&$N(e);break;case 92:Ya();break}return Ba}function ODe(e,t){for(;Ya()&&e+Ln!==57;)if(e+Ln===84&&il()===47)break;return"/*"+jx(t,Ba-1)+"*"+fp(e===47?e:Ya())}function IDe(e){for(;!Hp(il());)Ya();return jx(e,Ba)}function FDe(e){return BDe(iy("",null,null,null,[""],e=MDe(e),0,[0],e))}function iy(e,t,r,n,i,a,s,o,l){for(var c=0,u=0,h=s,p=0,f=0,m=0,x=1,y=1,C=1,w=0,S=0,T="",_=i,A=a,E=n,L=T;y;)switch(m=S,S=Ya()){case 40:m!=108&&mh(L,h-1)==58?(w++,L+="("):L+=U_(S);break;case 41:w--,L+=")";break;case 34:case 39:case 91:L+=U_(S);break;case 9:case 10:case 13:case 32:if(w>0){L+=fp(S);break}L+=DDe(m);break;case 92:L+=RDe(ny()-1,7);continue;case 47:switch(il()){case 42:case 47:vv(jDe(ODe(Ya(),ny()),t,r,l),l),(Hp(m||1)==5||Hp(il()||1)==5)&&fs(L)&&Vh(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*x:o[c++]=fs(L)*C;case 125*x:case 59:case 0:if(w>0&&S){L+=fp(S);break}switch(S){case 0:case 125:y=0;case 59+u:C==-1&&(L=zN(L,/\f/g,"")),f>0&&(fs(L)-h||x===0)&&vv(f>32?j8(L+";",n,r,h-1,l):j8(zN(L," ","")+";",n,r,h-2,l),l);break;case 59:L+=";";default:if(vv(E=F8(L,t,r,c,u,i,o,T,_=[],A=[],h,a),a),S===123)if(u===0)iy(L,t,E,E,_,a,h,o,A);else{switch(p){case 99:if(mh(L,3)===110)break;case 108:if(mh(L,2)===97)break;default:u=0;case 100:case 109:case 115:}u?iy(e,E,E,n&&vv(F8(e,E,E,0,0,i,o,T,i,_=[],h,A),A),i,A,h,o,n?_:A):iy(L,E,E,E,[""],A,0,o,A)}}c=u=f=0,x=C=1,T=L="",h=s;break;case 58:h=1+fs(L),f=m;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&LDe()==125)continue}switch(L+=fp(S),S*x){case 38:C=u>0?1:(L+="\f",-1);break;case 44:if(w>0)break;o[c++]=(fs(L)-1)*C,C=1;break;case 64:il()===45&&(L+=U_(Ya())),p=il(),u=h=fs(T=L+=IDe(ny())),S++;break;case 45:m===45&&fs(L)==2&&(x=0)}}return a}function F8(e,t,r,n,i,a,s,o,l,c,u,h){for(var p=i-1,f=i===0?a:[""],m=ADe(f),x=0,y=0,C=0;x<n;++x)for(var w=0,S=Vh(e,p+1,p=_De(y=s[x])),T=e;w<m;++w)(T=$Q(y>0?f[w]+" "+S:zN(S,/&\f/g,f[w])))&&(l[C++]=T);return MB(e,t,r,i===0?PQ:o,l,c,u,h)}function jDe(e,t,r,n){return MB(e,t,r,jQ,fp(NDe()),Vh(e,2,-2),0,n)}function j8(e,t,r,n,i){return MB(e,t,r,zQ,Vh(e,0,n),Vh(e,n+1,-1),n,i)}function qN(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function PDe(e,t,r,n){switch(e.type){case EDe:if(e.children.length)break;case SDe:case kDe:case zQ:return e.return=e.return||e.value;case jQ:return"";case TDe:return e.return=e.value+"{"+qN(e.children,n)+"}";case PQ:if(!fs(e.value=e.props.join(",")))return""}return fs(r=qN(e.children,n))?e.return=e.value+"{"+r+"}":""}var zDe=dK(Object.keys,Object),$De=Object.prototype,qDe=$De.hasOwnProperty;function HDe(e){if(!Ax(e))return zDe(e);var t=[];for(var r in Object(e))qDe.call(e,r)&&r!="constructor"&&t.push(r);return t}var HN=Vc(Ns,"DataView"),UN=Vc(Ns,"Promise"),GN=Vc(Ns,"Set"),WN=Vc(Ns,"WeakMap"),P8="[object Map]",UDe="[object Object]",z8="[object Promise]",$8="[object Set]",q8="[object WeakMap]",H8="[object DataView]",GDe=Wc(HN),WDe=Wc(zp),VDe=Wc(UN),YDe=Wc(GN),XDe=Wc(WN),cc=cd;(HN&&cc(new HN(new ArrayBuffer(1)))!=H8||zp&&cc(new zp)!=P8||UN&&cc(UN.resolve())!=z8||GN&&cc(new GN)!=$8||WN&&cc(new WN)!=q8)&&(cc=function(e){var t=cd(e),r=t==UDe?e.constructor:void 0,n=r?Wc(r):"";if(n)switch(n){case GDe:return H8;case WDe:return P8;case VDe:return z8;case YDe:return $8;case XDe:return q8}return t});var KDe="[object Map]",ZDe="[object Set]",QDe=Object.prototype,JDe=QDe.hasOwnProperty;function U8(e){if(e==null)return!0;if(Nx(e)&&(s0(e)||typeof e=="string"||typeof e.splice=="function"||lB(e)||cB(e)||a0(e)))return!e.length;var t=cc(e);if(t==KDe||t==ZDe)return!e.size;if(Ax(e))return!HDe(e).length;for(var r in e)if(JDe.call(e,r))return!1;return!0}var HQ="c4",eRe=G(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),tRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-B9boaS51.js");return{diagram:t}},__vite__mapDeps([6,7]));return{id:HQ,diagram:e}},"loader"),rRe={id:HQ,detector:eRe,loader:tRe},nRe=rRe,UQ="flowchart",iRe=G((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),aRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-D1xz9OEI.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12]));return{id:UQ,diagram:e}},"loader"),sRe={id:UQ,detector:iRe,loader:aRe},oRe=sRe,GQ="flowchart-v2",lRe=G((e,t)=>{var r,n,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),cRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-D1xz9OEI.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12]));return{id:GQ,diagram:e}},"loader"),uRe={id:GQ,detector:lRe,loader:cRe},hRe=uRe,WQ="er",dRe=G(e=>/^\s*erDiagram/.test(e),"detector"),fRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-B64OWgdJ.js");return{diagram:t}},__vite__mapDeps([13,10,11,12]));return{id:WQ,diagram:e}},"loader"),pRe={id:WQ,detector:dRe,loader:fRe},gRe=pRe,VQ="gitGraph",mRe=G(e=>/^\s*gitGraph/.test(e),"detector"),vRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-SuSzzjKc.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,4,2]));return{id:VQ,diagram:e}},"loader"),yRe={id:VQ,detector:mRe,loader:vRe},xRe=yRe,YQ="gantt",bRe=G(e=>/^\s*gantt/.test(e),"detector"),CRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-LJ7catI8.js");return{diagram:t}},__vite__mapDeps([18,19,20,21]));return{id:YQ,diagram:e}},"loader"),wRe={id:YQ,detector:bRe,loader:CRe},SRe=wRe,XQ="info",kRe=G(e=>/^\s*info/.test(e),"detector"),TRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-BOiCQ4O9.js");return{diagram:t}},__vite__mapDeps([22,17,4,2]));return{id:XQ,diagram:e}},"loader"),ERe={id:XQ,detector:kRe,loader:TRe},KQ="pie",_Re=G(e=>/^\s*pie/.test(e),"detector"),ARe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-DDwSWF1-.js");return{diagram:t}},__vite__mapDeps([23,15,17,4,2,24,25,20]));return{id:KQ,diagram:e}},"loader"),NRe={id:KQ,detector:_Re,loader:ARe},ZQ="quadrantChart",LRe=G(e=>/^\s*quadrantChart/.test(e),"detector"),MRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-80DB4lrP.js");return{diagram:t}},__vite__mapDeps([26,19,20,21]));return{id:ZQ,diagram:e}},"loader"),BRe={id:ZQ,detector:LRe,loader:MRe},DRe=BRe,QQ="xychart",RRe=G(e=>/^\s*xychart(-beta)?/.test(e),"detector"),ORe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-D_80Cozs.js");return{diagram:t}},__vite__mapDeps([27,20,25,19,21]));return{id:QQ,diagram:e}},"loader"),IRe={id:QQ,detector:RRe,loader:ORe},FRe=IRe,JQ="requirement",jRe=G(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),PRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-DCWy3bbl.js");return{diagram:t}},__vite__mapDeps([28,10,11]));return{id:JQ,diagram:e}},"loader"),zRe={id:JQ,detector:jRe,loader:PRe},$Re=zRe,eJ="sequence",qRe=G(e=>/^\s*sequenceDiagram/.test(e),"detector"),HRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-LXReMph9.js");return{diagram:t}},__vite__mapDeps([29,7,16]));return{id:eJ,diagram:e}},"loader"),URe={id:eJ,detector:qRe,loader:HRe},GRe=URe,tJ="class",WRe=G((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),VRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-C6tyUFv_.js");return{diagram:t}},__vite__mapDeps([30,31,9,7,10,11]));return{id:tJ,diagram:e}},"loader"),YRe={id:tJ,detector:WRe,loader:VRe},XRe=YRe,rJ="classDiagram",KRe=G((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),ZRe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-C6tyUFv_.js");return{diagram:t}},__vite__mapDeps([32,31,9,7,10,11]));return{id:rJ,diagram:e}},"loader"),QRe={id:rJ,detector:KRe,loader:ZRe},JRe=QRe,nJ="state",eOe=G((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),tOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-NJR5tlgF.js");return{diagram:t}},__vite__mapDeps([33,34,10,11,1,2,3,4]));return{id:nJ,diagram:e}},"loader"),rOe={id:nJ,detector:eOe,loader:tOe},nOe=rOe,iJ="stateDiagram",iOe=G((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),aOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-Dsxw0ryZ.js");return{diagram:t}},__vite__mapDeps([35,34,10,11]));return{id:iJ,diagram:e}},"loader"),sOe={id:iJ,detector:iOe,loader:aOe},oOe=sOe,aJ="journey",lOe=G(e=>/^\s*journey/.test(e),"detector"),cOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-l-oZ48gd.js");return{diagram:t}},__vite__mapDeps([36,9,7,24]));return{id:aJ,diagram:e}},"loader"),uOe={id:aJ,detector:lOe,loader:cOe},hOe=uOe,dOe=G((e,t,r)=>{Ze.debug(`rendering svg for syntax error
|
|
1016
|
+
`);const n=OEe(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),LV(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),sJ={draw:dOe},fOe=sJ,pOe={db:{},renderer:sJ,parser:{parse:G(()=>{},"parse")}},gOe=pOe,oJ="flowchart-elk",mOe=G((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),vOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-D1xz9OEI.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12]));return{id:oJ,diagram:e}},"loader"),yOe={id:oJ,detector:mOe,loader:vOe},xOe=yOe,lJ="timeline",bOe=G(e=>/^\s*timeline/.test(e),"detector"),COe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-B7AQnJMp.js");return{diagram:t}},__vite__mapDeps([37,24]));return{id:lJ,diagram:e}},"loader"),wOe={id:lJ,detector:bOe,loader:COe},SOe=wOe,cJ="mindmap",kOe=G(e=>/^\s*mindmap/.test(e),"detector"),TOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-B65hCsHP.js");return{diagram:t}},__vite__mapDeps([38,10,11]));return{id:cJ,diagram:e}},"loader"),EOe={id:cJ,detector:kOe,loader:TOe},_Oe=EOe,uJ="kanban",AOe=G(e=>/^\s*kanban/.test(e),"detector"),NOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-kkjHOINe.js");return{diagram:t}},__vite__mapDeps([39,9]));return{id:uJ,diagram:e}},"loader"),LOe={id:uJ,detector:AOe,loader:NOe},MOe=LOe,hJ="sankey",BOe=G(e=>/^\s*sankey(-beta)?/.test(e),"detector"),DOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-O5Vbdhfr.js");return{diagram:t}},__vite__mapDeps([40,25,20]));return{id:hJ,diagram:e}},"loader"),ROe={id:hJ,detector:BOe,loader:DOe},OOe=ROe,dJ="packet",IOe=G(e=>/^\s*packet(-beta)?/.test(e),"detector"),FOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-B0uaLeTY.js");return{diagram:t}},__vite__mapDeps([41,15,17,4,2]));return{id:dJ,diagram:e}},"loader"),jOe={id:dJ,detector:IOe,loader:FOe},fJ="radar",POe=G(e=>/^\s*radar-beta/.test(e),"detector"),zOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-E2ViuYbh.js");return{diagram:t}},__vite__mapDeps([42,15,17,4,2]));return{id:fJ,diagram:e}},"loader"),$Oe={id:fJ,detector:POe,loader:zOe},pJ="block",qOe=G(e=>/^\s*block(-beta)?/.test(e),"detector"),HOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-BmwqqUy-.js");return{diagram:t}},__vite__mapDeps([43,9,5,1,2,12]));return{id:pJ,diagram:e}},"loader"),UOe={id:pJ,detector:qOe,loader:HOe},GOe=UOe,gJ="treeView",WOe=G(e=>/^\s*treeView-beta/.test(e),"detector"),VOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-3hdpmlac.js");return{diagram:t}},__vite__mapDeps([44,15,16,17,4,2]));return{id:gJ,diagram:e}},"loader"),YOe={id:gJ,detector:WOe,loader:VOe},XOe=YOe,mJ="architecture",KOe=G(e=>/^\s*architecture/.test(e),"detector"),ZOe=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-Y-5N13WI.js");return{diagram:t}},__vite__mapDeps([45,15,17,4,2]));return{id:mJ,diagram:e}},"loader"),QOe={id:mJ,detector:KOe,loader:ZOe},JOe=QOe,vJ="ishikawa",e5e=G(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),t5e=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-CBd1TU7N.js");return{diagram:t}},[]);return{id:vJ,diagram:e}},"loader"),r5e={id:vJ,detector:e5e,loader:t5e},yJ="venn",n5e=G(e=>/^\s*venn-beta/.test(e),"detector"),i5e=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-B3CXuGUi.js");return{diagram:t}},[]);return{id:yJ,diagram:e}},"loader"),a5e={id:yJ,detector:n5e,loader:i5e},s5e=a5e,xJ="treemap",o5e=G(e=>/^\s*treemap/.test(e),"detector"),l5e=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-DS0wd2r9.js");return{diagram:t}},__vite__mapDeps([46,11,15,17,4,2,21,25,20]));return{id:xJ,diagram:e}},"loader"),c5e={id:xJ,detector:o5e,loader:l5e},bJ="wardley-beta",u5e=G(e=>/^\s*wardley-beta/i.test(e),"detector"),h5e=G(async()=>{const{diagram:e}=await xr(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D-CzsLpFBJ.js");return{diagram:t}},__vite__mapDeps([47,15,17,4,2]));return{id:bJ,diagram:e}},"loader"),d5e={id:bJ,detector:u5e,loader:h5e},f5e=d5e,G8=!1,Px=G(()=>{G8||(G8=!0,$y("error",gOe,e=>e.toLowerCase().trim()==="error"),$y("---",{db:{clear:G(()=>{},"clear")},styles:{},renderer:{draw:G(()=>{},"draw")},parser:{parse:G(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:G(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),XA(xOe,_Oe,JOe),XA(nRe,MOe,JRe,XRe,gRe,SRe,ERe,NRe,$Re,GRe,hRe,oRe,SOe,xRe,oOe,nOe,hOe,DRe,OOe,jOe,FRe,GOe,XOe,$Oe,r5e,c5e,s5e,f5e))},"addDiagrams"),p5e=G(async()=>{Ze.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_c).map(async([r,{detector:n,loader:i}])=>{if(i)try{JA(r)}catch{try{const{diagram:a,id:s}=await i();$y(s,a,n)}catch(a){throw Ze.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete _c[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Ze.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Ze.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),g5e="graphics-document document";function CJ(e,t){e.attr("role",g5e),t!==""&&e.attr("aria-roledescription",t)}G(CJ,"setA11yDiagramInfo");function wJ(e,t,r,n){if(e.insert!==void 0){if(r){const i=`chart-desc-${n}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(r)}if(t){const i=`chart-title-${n}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}G(wJ,"addSVGa11yTitleDescription");var xc,VN=(xc=class{constructor(t,r,n,i,a){this.type=t,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(t,r={}){var c,u;const n=fn(),i=RM(t,n);t=jLe(t)+`
|
|
1017
1017
|
`;try{JA(i)}catch{const h=eSe(i);if(!h)throw new mV(`Diagram ${i} not found.`);const{id:p,diagram:f}=await h();$y(p,f)}const{db:a,parser:s,renderer:o,init:l}=JA(i);return s.parser&&(s.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(n),r.title&&((u=a.setDiagramTitle)==null||u.call(a,r.title)),await s.parse(t),new xc(i,t,a,s,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},G(xc,"Diagram"),xc),W8=[],m5e=G(()=>{W8.forEach(e=>{e()}),W8=[]},"attachFunctions"),v5e=G(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function SJ(e){const t=e.match(gV);if(!t)return{text:e,metadata:{}};let r=q_e(t[1],{schema:$_e})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}G(SJ,"extractFrontMatter");var y5e=G(e=>e.replace(/\r\n?/g,`
|
|
1018
1018
|
`).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),x5e=G(e=>{const{text:t,metadata:r}=SJ(e),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:t}},"processFrontmatter"),b5e=G(e=>{const t=Ua.detectInit(e)??{},r=Ua.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:TLe(e),directive:t}},"processDirectives");function BB(e){const t=y5e(e),r=x5e(t),n=b5e(r.text),i=gB(r.config,n.directive);return e=v5e(n.text),{code:e,title:r.title,config:i}}G(BB,"preprocessDiagram");function kJ(e){const t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}G(kJ,"toBase64");var C5e=5e4,w5e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",S5e="sandbox",k5e="loose",T5e="http://www.w3.org/2000/svg",E5e="http://www.w3.org/1999/xlink",_5e="http://www.w3.org/1999/xhtml",A5e="100%",N5e="100%",L5e="border:0;margin:0;",M5e="margin:0",B5e="allow-top-navigation-by-user-activation allow-popups",D5e='The "iframe" tag is not supported by your browser.',R5e=["foreignobject"],O5e=["dominant-baseline"];function DB(e){const t=BB(e);return Py(),ASe(t.config??{}),t}G(DB,"processAndSetConfigs");async function TJ(e,t){Px();try{const{code:r,config:n}=DB(e);return{diagramType:(await _J(r)).type,config:n}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}G(TJ,"parse");var V8=G((e,t,r=[])=>`
|
|
1019
1019
|
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),I5e=G((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|