@cyber-harbour/ui 1.1.34 → 1.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@
11
11
  font-family: ${e.typography.fontFamily};
12
12
  font-size: ${e.baseSize}px;
13
13
  }
14
- `);var o2=r((e,t)=>{if(!t||typeof t!="string")return;if(!(t.includes(".")||e.colors.hasOwnProperty(t)))return t;let d=t.split(".");if(d.length===1)return e.colors[d[0]];if(d.length===2){let[s,u]=d,b=e.colors[s];if(b&&typeof b=="object")return b[u]}},"resolveThemeColor"),V=r((e,t=16)=>{let n=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(n)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(n/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),d4=r((e,t=16)=>{let n=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(n)?0:n*t},"remToPx"),U2={contextMenu:["padding"],baseSize:true},p1=r((e,t=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let n=typeof e=="string"?parseFloat(e):e;return isNaN(n)?`${e}`:`${(n/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),R1=r((e,t=14,n)=>{let d={};return Object.entries(e).forEach(([s,u])=>{u!==null&&typeof u=="object"&&!Array.isArray(u)?d[s]=R1(u,t,s):typeof u=="string"&&/^\d+(\.\d+)?px$/.test(u.trim())||typeof u=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(b=>s.toLowerCase().includes(b.toLowerCase()))&&!(n&&Array.isArray(U2[n])&&U2[n].includes(s))&&!U2[s]?d[s]=V(u,t):d[s]=u;}),d},"convertPaletteToRem"),g1=r((e,t,n,d)=>e.button[t][n][d],"getButtonStyles"),f1=r((e,t)=>e.button.sizes[t],"getButtonSizeStyles"),Pe=r((e,t,n)=>e.input[t][n],"getInputStyles"),Ie=r((e,t="body")=>e.typography.variants[t]||e.typography.variants.body,"getTypographyStyles"),Ee=r((e,t="m")=>`@media (min-width: ${e.breakpoints[t]}px)`,"getBreakpoint"),V1=r((e,t)=>{try{let n=parseInt(e.slice(1,3),16),d=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return `rgba(${n}, ${d}, ${s}, ${t})`}catch{return e}},"hexToRgba");var r2={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},k1={xs:320,s:576,m:768,l:992,xl:1200},n2={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var l4={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#fbfafa",header:{background:"#f7f6f5"},primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#10253A"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:n2,breakpoints:k1,zIndex:r2,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#f7f6f5",border:"#EBEBEB",width:248,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#EBEBEB"},background:"#FFFFFF"},graph2D:{ring:{selectionFill:"rgb(255, 105, 0)",borderFill:"rgba(255, 255, 255, 0.25)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.15)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},c4=R1(l4,l4.baseSize);var C4={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",header:{background:"#0F1317"},primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#80A0F5"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:n2,breakpoints:k1,zIndex:r2,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#0F1317",border:"#1E2226",width:248,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{selectionFill:"rgb(100, 255, 255)",borderFill:"rgba(255, 255, 255, 0.75)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.15)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},p4=R1(C4,C4.baseSize);var q2=r(e=>{if(typeof window<"u"){let n=window.innerWidth;for(let[d,s]of Object.entries(e))if(n<s)return d}let t=Object.keys(e);return t[t.length-1]},"getBreakpoint"),g4=J6.createContext(q2(k1)),h4=r(({children:e})=>{let t=T1.useTheme(),[n,d]=J6.useState(q2(t.breakpoints));return J6.useEffect(()=>{if(typeof window>"u")return;let s=r(()=>{let u=q2(t.breakpoints);u!==n&&d(u);},"handleResize");return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s);}},[n,t.breakpoints]),jsxRuntime.jsx(g4.Provider,{value:n,children:e})},"BreakpointProvider"),b4=r(()=>{let e=J6.useContext(g4),t=T1.useTheme(),n=J6.useMemo(()=>Object.keys(t.breakpoints),[t.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:n}},"useBreakpoint");var lt=r(({children:e,mode:t})=>jsxRuntime.jsx(T1.StyleSheetManager,{shouldForwardProp:q6,children:jsxRuntime.jsx(T1.ThemeProvider,{theme:t=="light"||t==="LIGHT"?c4:p4,children:jsxRuntime.jsxs(h4,{children:[jsxRuntime.jsx(s4,{}),e]})})}),"ThemeProvider");function q6(e,t){return typeof t=="string"?!["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"].includes(e):true}r(q6,"shouldForwardProp");var e3=r(({ignoreStyles:e}={})=>T1.css(({theme:t,...n})=>`
14
+ `);var o2=r((e,t)=>{if(!t||typeof t!="string")return;if(!(t.includes(".")||e.colors.hasOwnProperty(t)))return t;let d=t.split(".");if(d.length===1)return e.colors[d[0]];if(d.length===2){let[s,u]=d,b=e.colors[s];if(b&&typeof b=="object")return b[u]}},"resolveThemeColor"),V=r((e,t=16)=>{let n=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(n)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(n/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),d4=r((e,t=16)=>{let n=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(n)?0:n*t},"remToPx"),U2={contextMenu:["padding"],baseSize:true},u1=r((e,t=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let n=typeof e=="string"?parseFloat(e):e;return isNaN(n)?`${e}`:`${(n/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),R1=r((e,t=14,n)=>{let d={};return Object.entries(e).forEach(([s,u])=>{u!==null&&typeof u=="object"&&!Array.isArray(u)?d[s]=R1(u,t,s):typeof u=="string"&&/^\d+(\.\d+)?px$/.test(u.trim())||typeof u=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(b=>s.toLowerCase().includes(b.toLowerCase()))&&!(n&&Array.isArray(U2[n])&&U2[n].includes(s))&&!U2[s]?d[s]=V(u,t):d[s]=u;}),d},"convertPaletteToRem"),g1=r((e,t,n,d)=>e.button[t][n][d],"getButtonStyles"),f1=r((e,t)=>e.button.sizes[t],"getButtonSizeStyles"),Pe=r((e,t,n)=>e.input[t][n],"getInputStyles"),Ie=r((e,t="body")=>e.typography.variants[t]||e.typography.variants.body,"getTypographyStyles"),Ee=r((e,t="m")=>`@media (min-width: ${e.breakpoints[t]}px)`,"getBreakpoint"),V1=r((e,t)=>{try{let n=parseInt(e.slice(1,3),16),d=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return `rgba(${n}, ${d}, ${s}, ${t})`}catch{return e}},"hexToRgba");var r2={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},k1={xs:320,s:576,m:768,l:992,xl:1200},n2={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var l4={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#fbfafa",header:{background:"#f7f6f5"},primary:{main:"#0042EC",light:"#80A0F5",lighter:"#E5ECFD",lightest:"#F3F7FF",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#10253A"},text:{main:"#101010",light:"#535353",lighter:"#99989C",invert:"#ffffff",success:"#31B083",error:"#C93939"},stroke:{main:"#C7C5C5",light:"#EBEBEB",lighter:"#F3F3F3"},disable:"#FAFAFA",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:n2,breakpoints:k1,zIndex:r2,line:{size:1,color:"#EBEBEB"},button:{fill:{default:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"#0042EC",text:"#FFFFFF",border:" #0042EC",boxShadow:"none"},hover:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},active:{background:"#4D7BF2",text:"#FFFFFF",border:" #4D7BF2",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #E5ECFD",boxShadow:"none"}},secondary:{default:{background:"#E8EAEE",text:"#101010",border:" #E8EAEE",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #E5ECFD",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},active:{background:"#C53939",text:"#FFFFFF",border:" #C53939",boxShadow:"none"},disabled:{background:"#FFCCCB",text:"#FFFFFF",border:" #FFCCCB",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},active:{background:"#0042EC",text:"#FFFFFF",border:"#0042EC",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:" #0042EC",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #0042EC",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},active:{background:"#FCF5F5",text:"#C93939",border:" #C93939",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#E5ECFD",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"#EBEBEB",boxShadow:"none"},hover:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},active:{background:"#EEEEEE",text:"#535353",border:"#EBEBEB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none",filledIcon:{background:"#E5ECFD",color:"#0042EC"}},hover:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},active:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none",filledIcon:{background:"#0042EC",color:"#ffffff"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#101010",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#FCF5F5",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#535353",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#f7f6f5",border:"#EBEBEB",width:248,collapsedWidth:65,text:{default:"#535353",active:"#0042EC",hover:"#0042EC"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#E5ECFD",borderLeft:"2px solid #0042EC",padding:"10px 16px",height:40},hover:{background:"#F3F7FF",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#99989C",fontSize:"12px",fontWeight:600}},delimeter:{color:"#C7C5C5",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#101010",border:" #EBEBEB",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" #EBEBEB",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},delimeter:{color:"#C7C5C5",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E8EAEE",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#0042EC",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#C7C5C5",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #0042EC",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:" #EBEBEB",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},focus:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#101010"},error:{background:"transparent",text:"#101010",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"#FAFAFA",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#EBEBEB"},background:"#FFFFFF"},graph2D:{ring:{selectionFill:"rgb(255, 105, 0)",borderFill:"rgba(255, 255, 255, 0.25)"},button:{stroke:"#e5e5e5",normalFill:"rgba(255, 255, 255, 0.8)",hoverFill:"rgba(230, 230, 230, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(0, 0, 0, 0.15)"},link:{normal:"#999",highlighted:"#ff9900",textColor:"#666",highlightedTextColor:"#663300",textBgColor:"rgba(255, 255, 255, 0.8)",highlightedTextBgColor:"rgba(255, 230, 204, 0.9)"}},contentLoader:{foreground:"#E2E2E2E2",background:"#F3F3F3"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#535353",primary:"#0042EC",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#101010",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#894B00",background:"#FFFBE0"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#101010",helpTextColor:"#99989C"},leanerProgress:{background:"#EBEBEB",progressColor:"#0042EC"},switch:{default:{background:"#C7C5C5",color:"#FFFFFF"},checked:{background:"#0042EC",color:"#FFFFFF"},disabled:{background:"#EBEBEB",color:"#FFFFFF"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#535353",background:"#EBEBEB"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(16, 16, 16, 0.1)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#EBEBEB",background:"#FFFFFF",borderRadius:8}},c4=R1(l4,l4.baseSize);var C4={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",header:{background:"#0F1317"},primary:{main:"#158EFF",light:"#80A0F5",lighter:"#10253A",lightest:"#020E19",lightest2:"rgba(0, 66, 236, 0.05)",dark:"#80A0F5"},text:{main:"#FFFFFF",light:"#99989C",lighter:"#535353",invert:"#101010",success:"#31B083",error:"#C93939"},stroke:{main:"#34404C",light:"#1E2226",lighter:"#333333"},disable:"#080A0C",success:"#27AE60",error:"#C93939",warning:"#F2994A",info:"#2F80ED"},typography:n2,breakpoints:k1,zIndex:r2,line:{size:1,color:"#1E2226"},button:{fill:{default:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"#158EFF",text:"#FFFFFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},active:{background:"#44a5ff",text:"#FFFFFF",border:" #44a5ff",boxShadow:"none"},disabled:{background:"#99989C",text:"#FFFFFF",border:" #10253A",boxShadow:"none"}},secondary:{default:{background:"#1E2226",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #10253A",boxShadow:"none"},disabled:{background:"#1E2226",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"#C93939",text:"#FFFFFF",border:" #C93939",boxShadow:"none"},hover:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},active:{background:"#d46161",text:"#FFFFFF",border:" #d46161",boxShadow:"none"},disabled:{background:"#511616",text:"#FFFFFF",border:" #511616",boxShadow:"none"}},soft:{default:{background:"#80A0F5",text:"#FFFFFF",border:"#80A0F5",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:"#10253A",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"#535353",text:"#FFFFFF",border:"#535353",boxShadow:"none"},hover:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},active:{background:"#99989C",text:"#FFFFFF",border:"#99989C",boxShadow:"none"},disabled:{background:"#EBEBEB",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},outlined:{default:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:" #158EFF",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #158EFF",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},secondary:{default:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},hover:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"#10253A",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #1E2226",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:" #C93939",boxShadow:"none"},hover:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},active:{background:"#290b0b",text:"#C93939",border:" #290b0b",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #99989C",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},hover:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},active:{background:"#1A212D",text:"#80A0F5",border:"#80A0F5",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},hover:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},active:{background:"#222A32",text:"#E8EAEE",border:"#34404C",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:" #EBEBEB",boxShadow:"none"}}},empty:{default:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},primary:{default:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none",filledIcon:{background:"#10253A",color:"#158EFF"}},hover:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},active:{background:"transparent",text:"#44a5ff",border:"transparent",boxShadow:"none",filledIcon:{background:"#158EFF",color:"#0F1317"}},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none",filledIcon:{background:"#BEBEBE",color:"#99989C"}}},secondary:{default:{background:"transparent",text:"#FFFFFF",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},error:{default:{background:"transparent",text:"#C93939",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#d46161",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},soft:{default:{background:"transparent",text:"#80A0F5",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#E5ECFD",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}},light:{default:{background:"transparent",text:"#E8EAEE",border:"transparent",boxShadow:"none"},hover:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#34404C",border:"transparent",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"transparent",boxShadow:"none"}}},sizes:{small:{fontSize:14,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10},medium:{fontSize:16,iconSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,borderWidth:1,gap:10}}},sidebar:{background:"#0F1317",border:"#1E2226",width:248,collapsedWidth:65,text:{default:"#99989C",active:"#158EFF",hover:"#158EFF"},item:{default:{background:"transparent",border:"transparent",padding:"10px 16px",height:40},active:{background:"#10253A",borderLeft:"2px solid #158EFF",padding:"10px 16px",height:40},hover:{background:"#020E19",border:"transparent",padding:"10px 16px",height:40}},section:{background:"transparent",padding:"16px 16px 8px",title:{color:"#020b14",fontSize:"12px",fontWeight:600}},delimeter:{color:"#34404C",thickness:1,margin:"8px 0"}},contextMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" #1E2226",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" #1E2226",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" #1E2226",boxShadow:"none"}},delimeter:{color:"#34404C",thickness:1,marginInline:12,marginBlock:3,style:"solid"},shadow:"0px 4px 16px rgba(255, 255, 255, 0.9), 0px 2px 4px rgba(0, 0, 0, 0.06)",padding:5,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:7,paddingInline:5,margin:2,padding:6},rowActionsMenu:{button:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},active:{background:"transparent",text:"#158EFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},delimiterColor:"#34404C",icon:{size:16}},input:{sizes:{empty:{fontSize:14,paddingInline:0,paddingBlock:0,borderRadius:0,iconSize:14,height:"auto",lineHeight:16},small:{fontSize:14,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:14,height:40,lineHeight:16},medium:{fontSize:16,paddingInline:10,paddingBlock:10,borderRadius:5,iconSize:16,height:40,lineHeight:18}},outlined:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #158EFF",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" #C93939",boxShadow:"none",icon:"#C93939"},disabled:{background:"#080A0C",text:"#99989C",placeholder:"#99989C",border:" #1E2226",boxShadow:"none",icon:"#99989C"}},empty:{default:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},focus:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#FFFFFF"},error:{background:"transparent",text:"#FFFFFF",placeholder:"#99989C",border:" transparent",boxShadow:"none",icon:"#C93939"},disabled:{background:"transparent",text:"#99989C",placeholder:"#99989C",border:"transparent",boxShadow:"none",icon:"#99989C"}}},box:{padding:20,borderRadius:8,border:{width:1,style:"solid",color:"#1E2226"},background:"#0F1317"},graph2D:{ring:{selectionFill:"rgb(100, 255, 255)",borderFill:"rgba(255, 255, 255, 0.75)"},button:{stroke:"#1A1A1A",normalFill:"rgba(0, 0, 0, 0.8)",hoverFill:"rgba(25, 25, 25, 0.9)",textColor:"#99989C",spinnerColor:"#80A0F5"},grid:{dotColor:"rgba(255, 255, 255, 0.15)"},link:{normal:"#666",highlighted:"#0066ff",textColor:"#999",highlightedTextColor:"#99ccff",textBgColor:"rgba(0, 0, 0, 0.8)",highlightedTextBgColor:"rgba(0, 25, 51, 0.9)"}},contentLoader:{foreground:"#99989C",background:"#535353"},tag:{outlined:{borderRadius:50,paddingBlock:5,paddingInline:10,borderWidth:1,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}},fill:{borderRadius:4,paddingBlock:5,paddingInline:10,borderWidth:0,color:{default:"#99989C",primary:"#3991FA",error:"#D82323",success:"#38A473",warning:"#DEB839",disabled:"#ebebeb",text:"#FFFFFF",orange:"#d3741b"}}},alert:{paddingBlock:16,paddingLeft:16,paddingRight:44,borderRadius:5,fontSize:14,gap:12,icon:{width:16,height:14,paddingTop:2},color:{icon:"#FDC700",text:"#FFEDD8",background:"#68550E"}},label:{sizes:{small:{fontSize:14,gap:10,marginBottom:20,helpText:{fontSize:12,marginTop:5}},medium:{fontSize:16,gap:10,marginBottom:25,helpText:{fontSize:14,marginTop:5}}},color:"#ffffff",helpTextColor:"#535353"},leanerProgress:{background:"#1E2226",progressColor:"#158EFF"},switch:{default:{background:"#34404C",color:"#0F1317"},checked:{background:"#158EFF",color:"#0F1317"},disabled:{background:"#1E2226",color:"#0F1317"}},drawer:{padding:20,width:573,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)"},tooltip:{fontSize:14,padding:10,borderRadius:6,maxWidth:240,shadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.25)",color:"#99989C",background:"#1E2226"},pagination:{fontSize:14,paddingBlock:4,paddingInline:8,borderRadius:3,gap:6,height:26,iconSize:8},overlay:{paddingBlock:40,gap:6,background:"rgba(0, 0, 0, 0.5)"},modal:{padding:20,width:545,shadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.25)",borderColor:"#1E2226",background:"#0F1317",borderRadius:8}},p4=R1(C4,C4.baseSize);var q2=r(e=>{if(typeof window<"u"){let n=window.innerWidth;for(let[d,s]of Object.entries(e))if(n<s)return d}let t=Object.keys(e);return t[t.length-1]},"getBreakpoint"),g4=J6.createContext(q2(k1)),h4=r(({children:e})=>{let t=T1.useTheme(),[n,d]=J6.useState(q2(t.breakpoints));return J6.useEffect(()=>{if(typeof window>"u")return;let s=r(()=>{let u=q2(t.breakpoints);u!==n&&d(u);},"handleResize");return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s);}},[n,t.breakpoints]),jsxRuntime.jsx(g4.Provider,{value:n,children:e})},"BreakpointProvider"),b4=r(()=>{let e=J6.useContext(g4),t=T1.useTheme(),n=J6.useMemo(()=>Object.keys(t.breakpoints),[t.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:n}},"useBreakpoint");var lt=r(({children:e,mode:t})=>jsxRuntime.jsx(T1.StyleSheetManager,{shouldForwardProp:q6,children:jsxRuntime.jsx(T1.ThemeProvider,{theme:t=="light"||t==="LIGHT"?c4:p4,children:jsxRuntime.jsxs(h4,{children:[jsxRuntime.jsx(s4,{}),e]})})}),"ThemeProvider");function q6(e,t){return typeof t=="string"?!["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"].includes(e):true}r(q6,"shouldForwardProp");var e3=r(({ignoreStyles:e}={})=>T1.css(({theme:t,...n})=>`
15
15
  ${G(t,"margin",n.m,e)}
16
16
  ${G(t,"margin-top",n.mt,e)}
17
17
  ${G(t,"margin-right",n.mr,e)}
@@ -454,7 +454,7 @@
454
454
  align-items: center;
455
455
  justify-content: flex-end;
456
456
  gap: ${e.pagination.gap};
457
- `);var l6=r(({isOpen:e,onClickOutside:t,onClick:n,anchor:d,label:s,size:u="medium",disabled:b,fullWidth:v,className:M,positions:H=["bottom"],align:P="start",children:Z,hasBorder:Y=true,maxHeight:R=500,maxWidth:i1,matchAnchorWidth:a1=false,anchorIcon:d1,hasShadow:l1=true})=>{let[c1,u1]=J6.useState(0),a=J6.useRef(null),U=T1.useTheme();return J6.useEffect(()=>{if(a.current&&typeof window<"u")if(typeof ResizeObserver<"u"){let s1=new ResizeObserver(n1=>{for(let R2 of n1){let K=R2.target.offsetWidth;u1(K);}});return s1.observe(a.current),()=>{s1.disconnect();}}else u1(a.current.offsetWidth);},[]),jsxRuntime.jsx(reactTinyPopover.Popover,{padding:U.contextMenu.padding,isOpen:e,positions:H,align:P,onClickOutside:t,content:Z,ref:a,containerStyle:{backgroundColor:U.colors.background,border:`1px solid ${U.colors.stroke.light}`,boxShadow:l1?"0px 0px 10px 0px rgba(0, 0, 0, 0.25)":void 0,borderRadius:"5px",overflow:"auto",maxHeight:`${R}px`,maxWidth:i1?`${i1}px`:void 0,zIndex:"9999",width:c1&&a1?`${c1}px`:void 0},containerClassName:"cb-ui-context-menu",children:jsxRuntime.jsxs(l8,{onClick:n,$disabled:b,$fullWidth:v,$size:u,className:M,type:"button",disabled:b,$hasBorder:Y,$label:s,children:[jsxRuntime.jsxs(d8,{children:[!!s&&jsxRuntime.jsx(s8,{children:s}),d]}),d1||(e?jsxRuntime.jsx(p5,{width:U.contextMenu.icon.size,height:U.contextMenu.icon.size}):jsxRuntime.jsx(C5,{width:U.contextMenu.icon.size,height:U.contextMenu.icon.size}))]})})},"ContextMenu"),s8=T1.styled.span`
457
+ `);var l6=r(({isOpen:e,onClickOutside:t,onClick:n,anchor:d,label:s,size:u="medium",disabled:b,fullWidth:v,className:M,positions:H=["bottom"],align:P="start",children:Z,hasBorder:Y=true,maxHeight:R=500,maxWidth:i1,matchAnchorWidth:a1=false,anchorIcon:l1,hasShadow:s1=true})=>{let[c1,C1]=J6.useState(0),a=J6.useRef(null),U=T1.useTheme();return J6.useEffect(()=>{if(a.current&&typeof window<"u")if(typeof ResizeObserver<"u"){let d1=new ResizeObserver(n1=>{for(let R2 of n1){let K=R2.target.offsetWidth;C1(K);}});return d1.observe(a.current),()=>{d1.disconnect();}}else C1(a.current.offsetWidth);},[]),jsxRuntime.jsx(reactTinyPopover.Popover,{padding:U.contextMenu.padding,isOpen:e,positions:H,align:P,onClickOutside:t,content:Z,ref:a,containerStyle:{backgroundColor:U.colors.background,border:`1px solid ${U.colors.stroke.light}`,boxShadow:s1?"0px 0px 10px 0px rgba(0, 0, 0, 0.25)":void 0,borderRadius:"5px",overflow:"auto",maxHeight:`${R}px`,maxWidth:i1?`${i1}px`:void 0,zIndex:"9999",width:c1&&a1?`${c1}px`:void 0},containerClassName:"cb-ui-context-menu",children:jsxRuntime.jsxs(l8,{onClick:n,$disabled:b,$fullWidth:v,$size:u,className:M,type:"button",disabled:b,$hasBorder:Y,$label:s,children:[jsxRuntime.jsxs(d8,{children:[!!s&&jsxRuntime.jsx(s8,{children:s}),d]}),l1||(e?jsxRuntime.jsx(p5,{width:U.contextMenu.icon.size,height:U.contextMenu.icon.size}):jsxRuntime.jsx(C5,{width:U.contextMenu.icon.size,height:U.contextMenu.icon.size}))]})})},"ContextMenu"),s8=T1.styled.span`
458
458
  color: ${({theme:e})=>e.colors.text.lighter};
459
459
  font-size: 10px;
460
460
  `,d8=T1.styled.div`
@@ -517,7 +517,7 @@
517
517
  border-top-width: ${e.contextMenu.delimeter.thickness};
518
518
  border-top-style: ${e.contextMenu.delimeter.style};
519
519
  border-top-color: ${e.contextMenu.delimeter.color};
520
- `);var c6=r(()=>{let[e,t]=J6.useState(false);return {isOpen:e,toggleMenu:r(()=>{t(u=>!u);},"toggleMenu"),closeMenu:r(()=>{t(false);},"closeMenu"),openMenu:r(()=>{t(true);},"openMenu")}},"useContextMenuControl");var EC=r(({options:e,selected:t,onSelect:n,placeholder:d,disabled:s=false,positions:u=["bottom"],align:b="start",size:v="small",hasBorder:M=true,maxHeight:H,matchAnchorWidth:P=true,isSearchable:Z=false,...Y})=>{let[R,i1]=J6.useState(false),[a1,d1]=J6.useState(""),l1=J6.useMemo(()=>{if(!Z)return e;let U=a1?.trim().toLocaleLowerCase()||"";return e.filter(({value:s1,inputDisplay:n1})=>String(n1||s1).toLocaleLowerCase().includes(U))},[e,a1,Z]),c1=J6.useCallback(()=>{s||i1(U=>!U);},[]),u1="noOptionsMessage"in Y?Y.noOptionsMessage:"",a="inputPlaceholder"in Y?Y.inputPlaceholder:"";return jsxRuntime.jsx(l6,{isOpen:R,onClickOutside:()=>i1(false),onClick:c1,disabled:s,anchor:Z&&R?jsxRuntime.jsx(g8,{type:"text",value:a1,onChange:U=>d1(U.target.value),placeholder:a,autoFocus:true,onClick:U=>U.stopPropagation(),$size:v}):t?e.find(U=>U.value===t)?.inputDisplay||t:d,fullWidth:true,positions:u,align:b,size:v,hasBorder:M,maxHeight:H,matchAnchorWidth:P,children:jsxRuntime.jsxs(b8,{children:[l1.map(U=>jsxRuntime.jsx(p6,{onClick:()=>{n(U.value),Z&&d1(""),i1(false);},type:"button",$selected:U.value===t,disabled:s,$size:v,children:U.inputDisplay||U.value},U.value)),!l1.length&&jsxRuntime.jsx(h8,{$size:v,children:u1})]})})},"Select"),g8=T1.styled.input(({theme:e,$size:t})=>`
520
+ `);var c6=r(()=>{let[e,t]=J6.useState(false);return {isOpen:e,toggleMenu:r(()=>{t(u=>!u);},"toggleMenu"),closeMenu:r(()=>{t(false);},"closeMenu"),openMenu:r(()=>{t(true);},"openMenu")}},"useContextMenuControl");var EC=r(({options:e,selected:t,onSelect:n,placeholder:d,disabled:s=false,positions:u=["bottom"],align:b="start",size:v="small",hasBorder:M=true,maxHeight:H,matchAnchorWidth:P=true,isSearchable:Z=false,...Y})=>{let[R,i1]=J6.useState(false),[a1,l1]=J6.useState(""),s1=J6.useMemo(()=>{if(!Z)return e;let U=a1?.trim().toLocaleLowerCase()||"";return e.filter(({value:d1,inputDisplay:n1})=>String(n1||d1).toLocaleLowerCase().includes(U))},[e,a1,Z]),c1=J6.useCallback(()=>{s||i1(U=>!U);},[]),C1="noOptionsMessage"in Y?Y.noOptionsMessage:"",a="inputPlaceholder"in Y?Y.inputPlaceholder:"";return jsxRuntime.jsx(l6,{isOpen:R,onClickOutside:()=>i1(false),onClick:c1,disabled:s,anchor:Z&&R?jsxRuntime.jsx(g8,{type:"text",value:a1,onChange:U=>l1(U.target.value),placeholder:a,autoFocus:true,onClick:U=>U.stopPropagation(),$size:v}):t?e.find(U=>U.value===t)?.inputDisplay||t:d,fullWidth:true,positions:u,align:b,size:v,hasBorder:M,maxHeight:H,matchAnchorWidth:P,children:jsxRuntime.jsxs(b8,{children:[s1.map(U=>jsxRuntime.jsx(p6,{onClick:()=>{n(U.value),Z&&l1(""),i1(false);},type:"button",$selected:U.value===t,disabled:s,$size:v,children:U.inputDisplay||U.value},U.value)),!s1.length&&jsxRuntime.jsx(h8,{$size:v,children:C1})]})})},"Select"),g8=T1.styled.input(({theme:e,$size:t})=>`
521
521
  outline: none;
522
522
  border: none;
523
523
  padding: 0;
@@ -886,7 +886,7 @@
886
886
  `),{ignoreStyles:["padding-block","padding-right","padding-left"]});var _u=W(({label:e,helpText:t,children:n,direction:d="column",size:s="small",errorText:u,fullWidth:b,...v})=>{let M=d==="row"||d==="row-reverse",H=M?v.childrenWidth||"50%":"100%";return jsxRuntime.jsxs(a9,{$size:s,$direction:d,$fullWidth:b,$isRow:M,...v,children:[!!(e||t)&&jsxRuntime.jsxs(o9,{$width:H,children:[!!e&&jsxRuntime.jsx(r9,{$size:s,children:e}),!!t&&jsxRuntime.jsx(n9,{$size:s,children:t})]}),jsxRuntime.jsxs(y6,{$width:H,children:[n,!!u&&jsxRuntime.jsx(i9,{$size:s,children:u})]})]})}),y6=T1__default.default.div(({theme:e,$width:t})=>`
887
887
  flex-basis: 100%;
888
888
  @media (min-width: ${e.breakpoints.m}px) {
889
- flex-basis: ${p1(t,e.baseSize)};
889
+ flex-basis: ${u1(t,e.baseSize)};
890
890
  }
891
891
  `),o9=T1__default.default(y6)`
892
892
  align-self: flex-start;
@@ -966,8 +966,8 @@
966
966
  background-color: ${e.colors.disable};
967
967
  }
968
968
  `));var pg=W(({height:e=21,width:t="100%",direction:n="horizontal",value:d,...s})=>jsxRuntime.jsx(C9,{...s,$height:e,$value:d,$width:t,$direction:n})),C9=X(T1.styled.div(({theme:e,$height:t,$value:n,$width:d,$direction:s})=>`
969
- width: ${p1(d,e.baseSize)};
970
- height: ${p1(t,e.baseSize)};
969
+ width: ${u1(d,e.baseSize)};
970
+ height: ${u1(t,e.baseSize)};
971
971
  background-color: ${e.leanerProgress.background};
972
972
  position: relative;
973
973
  overflow: hidden;
@@ -977,7 +977,7 @@
977
977
  content: '';
978
978
  left: 0;
979
979
  bottom: 0;
980
- width: ${s==="horizontal"?`${n}%`:p1(d,e.baseSize)};
980
+ width: ${s==="horizontal"?`${n}%`:u1(d,e.baseSize)};
981
981
  height: ${s==="horizontal"?"100%":`${n}%`};
982
982
  background-color: ${e.leanerProgress.progressColor};
983
983
  border-radius: ${V(2,e.baseSize)};
@@ -1047,7 +1047,7 @@
1047
1047
  top: ${V(t||0,e.baseSize)};
1048
1048
  bottom: 0;
1049
1049
  ${d==="left"?"left: 0;":"right: 0;"}
1050
- width: ${n?p1(n,e.baseSize):e.drawer.width};
1050
+ width: ${n?u1(n,e.baseSize):e.drawer.width};
1051
1051
  max-width: 100%;
1052
1052
  background-color: ${e.colors.background};
1053
1053
  box-shadow: ${e.drawer.shadow};
@@ -1166,7 +1166,7 @@
1166
1166
  transform: translate(-50%, -50%);
1167
1167
  height: auto;
1168
1168
  max-height: 90dvh;
1169
- width: ${p1(t,e.baseSize)};
1169
+ width: ${u1(t,e.baseSize)};
1170
1170
  max-width: 90vw;
1171
1171
  border: 1px solid ${e.modal.borderColor};
1172
1172
  box-shadow: ${e.modal.shadow};
@@ -1219,7 +1219,7 @@
1219
1219
  align-items: center;
1220
1220
  justify-content: center;
1221
1221
  `,Q9=r(({width:e=280,height:t=280})=>{let n=T1.useTheme();return jsxRuntime.jsx(J9,{children:jsxRuntime.jsxs(H9__default.default,{foregroundColor:n.contentLoader.foreground,backgroundColor:n.contentLoader.background,width:e,height:t,viewBox:"0 0 280 280",children:[jsxRuntime.jsx("path",{d:"m55 38-0.97266 0.22852 7.0801 30.092-18.355-20.979-0.75195 0.6582 19.596 22.395 0.43164 1.834 0.97266-0.22852 0.75195-0.6582-0.37695-0.42969 9.625-27.912-0.94531-0.32617-9.4375 27.371-0.10547-0.12109zm8 34-0.78516 0.61914 0.0957 0.12305-12.311 13.258 0.73242 0.67969 12.205-13.145 14.277 18.084 0.78516-0.61914-14.373-18.207 0.10547-0.11328zm15 19-0.48438 0.875 46.992 25.996 8e-3 4e-3 20.506 11.592-28.182 4.5449 0.15998 0.98819 29.418-4.7441 0.25 0.14062-12.555 24.143 0.88672 0.46094 13-25 15 25 26 30v18l-11 18 0.85352 0.52148 9.8008-16.039-4.6543 33.518 0.99023 0.13867 4.7793-34.408 7.2305 16.27 0.91406-0.40625-7.9141-17.807v-17.104l18 12.316 0.56445-0.82617-18.896-12.928-25.855-29.836-14.633-24.387 0.01562-0.02344h23.805v-1h-23.152l13.848-21.234 55.201-28.791-0.45898-0.88476 0.77734 0.62305 11.402-14.25 16.668-11.842-0.58008-0.81641-16.785 11.928-11.486 14.355-55.434 28.912-14.277 21.893-7.7617-27.166-0.96094 0.27344 7.7227 27.031-1.1191 0.17969-21.604-12.211zm140.43-12.912-6.957-17.338-0.92773 0.37305 6.957 17.338zm-6.957-17.338 0.72266 0.69336 16.232-16.896-0.7207-0.69336zm-3.4766 137.25 5 15 0.94922-0.31641-5-15zm-91-63-0.48047-0.87695-31 17 0.48047 0.87695zm-31 17 5 18 0.96289-0.26758-5-18zm0 0-0.70703-0.70703-12.898 12.898-17.881 9.9336 0.48633 0.875 18-10zm5 18-0.64062-0.76758-18 15 0.64062 0.76758z"}),jsxRuntime.jsx("circle",{cx:"229.92",cy:"63.7318",r:"5",transform:"rotate(173.661 229.92 63.7318)"}),jsxRuntime.jsx("circle",{cx:"227.711",cy:"43.8541",r:"5",transform:"rotate(173.661 227.711 43.8541)"}),jsxRuntime.jsx("circle",{cx:"211.478",cy:"60.7499",r:"5",transform:"rotate(173.661 211.478 60.7499)"}),jsxRuntime.jsx("circle",{cx:"218.434",cy:"78.0877",r:"5",transform:"rotate(173.661 218.434 78.0877)"}),jsxRuntime.jsx("circle",{cx:"246.705",cy:"51.8054",r:"5",transform:"rotate(173.661 246.705 51.8054)"}),jsxRuntime.jsx("circle",{cx:"42",cy:"48",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"38",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"43",r:"5"}),jsxRuntime.jsx("circle",{cx:"63",cy:"72",r:"5"}),jsxRuntime.jsx("circle",{cx:"50",cy:"86",r:"5"}),jsxRuntime.jsx("circle",{cx:"78",cy:"91",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"165",r:"5"}),jsxRuntime.jsx("circle",{cx:"73",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"91",cy:"170",r:"5"}),jsxRuntime.jsx("circle",{cx:"86",cy:"152",r:"5"}),jsxRuntime.jsx("circle",{cx:"148",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"185",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"107",r:"5"}),jsxRuntime.jsx("circle",{cx:"140",cy:"102",r:"5"}),jsxRuntime.jsx("circle",{cx:"117",cy:"135",r:"5"}),jsxRuntime.jsx("circle",{cx:"125",cy:"117",r:"5"}),jsxRuntime.jsx("circle",{cx:"208",cy:"198",r:"5"}),jsxRuntime.jsx("circle",{cx:"189",cy:"203",r:"5"}),jsxRuntime.jsx("circle",{cx:"198",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"178",cy:"221",r:"5"}),jsxRuntime.jsx("circle",{cx:"184",cy:"239",r:"5"}),jsxRuntime.jsx("circle",{cx:"213",cy:"213",r:"5"}),jsxRuntime.jsx("circle",{cx:"173",cy:"130",r:"5"}),jsxRuntime.jsx("circle",{cx:"163",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"135",cy:"155",r:"5"}),jsxRuntime.jsx("circle",{cx:"55",cy:"175",r:"5"})]})})},"GraphLoader"),V6=Q9;function k6(e,t,n){let d=t.split(`
1222
- `),s=[];return d.forEach(u=>{let b=u.split(" "),v="";for(let M=0;M<b.length;M++){let H=v+(v?" ":"")+b[M];e.measureText(H).width>n&&v?(s.push(v),v=b[M]):v=H;}s.push(v);}),s}r(k6,"wrapText");var G2=typeof window<"u"&&window.devicePixelRatio||1;function he(e){return !e||e.length===0?[]:e.map(t=>({...t,imageCache:new Map}))}r(he,"prepareButtonImages");var o1={fontSize:4,nodeSizeBase:30,nodeAreaFactor:2,nodeBorderWidth:1,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},m1=r(e=>e.size??o1.nodeSizeBase,"getNodeSize"),be=r((e,t)=>e.width!==void 0?t?e.width*2:e.width:t?1.5:.5,"getLinkWidth"),fe=J6.forwardRef(({loading:e,width:t,height:n,graphData:d,buttons:s=[],enableGrid:u=true,onNodeClick:b,onBackgroundClick:v,onNodeHover:M,onLinkHover:H,onLinkClick:P,onChangeSelectedNodeIds:Z},Y)=>{let R=T1.useTheme(),[i1,a1]=J6.useState(true),[d1,l1]=J6.useState(null),[c1,u1]=J6.useState(null),a=J6.useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNodeIds:new Set,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:t*G2,height:n*G2,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:U,links:s1}=J6.useMemo(()=>ie__default.default(d),[d]),[n1,R2]=J6.useState([]),K=J6.useRef(null),D=J6.useRef(null),w1=J6.useRef(null),E6=d3$1.scaleOrdinal(d3$1.schemeCategory10),$6=J6.useCallback(()=>{if(!K.current)return false;try{let o=K.current.getContext("2d");return o?(w1.current=o,!0):(console.error("Failed to get 2D context"),!1)}catch(o){return console.error("Error initializing Canvas 2D context:",o),false}},[]),J=J6.useCallback(()=>D.current?D.current.nodes():null,[]),C1=J6.useCallback(()=>{if(!D.current)return null;let o=D.current.force("link");return o?o.links():null},[]),G5=J6.useCallback(o=>{if(!u)return;o.save(),o.setTransform(1,0,0,1,0,0);let{width:C,height:c}=a.current,p=o1.gridSpacing,m=o1.dotSize;o.fillStyle=R.graph2D.grid.dotColor;for(let S=p/2;S<=C;S+=p)for(let h=p/2;h<=c;h+=p)o.beginPath(),o.arc(S,h,m,0,2*Math.PI),o.fill();o.restore();},[u,R.graph2D.grid.dotColor,o1.gridSpacing,o1.dotSize]),Z6=J6.useCallback((o,C,c)=>{if(!o)return "";if(c.measureText(o).width<=C)return o;let m=o,S="...";for(;c.measureText(m+S).width>C&&m.length>0;)m=m.slice(0,-1);return m+S},[]),A2=r(o=>{let c=Math.min(o,o1.maxZoom)/o1.maxZoom;return Math.max(o1.fontSize*c,o1.fontSize)},"calculateFontSize"),R5=J6.useCallback(o=>{let C=C1(),c=J();!C||C.length===0||!c||c.length===0||(o.lineWidth=.5,o.globalAlpha=1,C.forEach(p=>{let m=typeof p.source=="object"?p.source:c.find(r1=>r1.id===p.source),S=typeof p.target=="object"?p.target:c.find(r1=>r1.id===p.target);if(!m||!S)return;let h={x:m.x||0,y:m.y||0},w={x:S.x||0,y:S.y||0},g=w.x-h.x,f=w.y-h.y,x=Math.sqrt(g*g+f*f),L=g/x,$=f/x,k=m1(m)/2,I=m1(S)/2,q=4,N={x:h.x+L*k,y:h.y+$*k},y={x:w.x-L*(I+q),y:w.y-$*(I+q)},z={x:w.x-L*(I+1),y:w.y-$*(I+1)},B=a.current.highlightLinks.has(p),F=B?R.graph2D.link.highlighted:p.color||R.graph2D.link.normal,E=be(p,B),O=h.x+(w.x-h.x)/2,Q=h.y+(w.y-h.y)/2,e1=Math.atan2(f,g);if(p.label){let r1=a.current.transform.k,b1=A2(r1);o.font=`${b1}px Sans-Serif`;let M1=o.measureText(p.label).width,L1=10;o.beginPath(),o.moveTo(N.x,N.y);let H1=x/2-(M1+L1)/2,x1={x:h.x+L*H1,y:h.y+$*H1};o.lineTo(x1.x,x1.y),o.strokeStyle=F,o.lineWidth=E,o.stroke(),o.beginPath();let G1=x/2+(M1+L1)/2,t2={x:h.x+L*G1,y:h.y+$*G1};o.moveTo(t2.x,t2.y),o.lineTo(y.x,y.y),o.strokeStyle=F,o.lineWidth=E,o.stroke();}else o.beginPath(),o.moveTo(N.x,N.y),o.lineTo(y.x,y.y),o.strokeStyle=F,o.lineWidth=E,o.stroke();let j=Math.max(2,E*2),t1=Math.max(4,E*4);if(o.save(),o.translate(z.x,z.y),o.rotate(e1),o.beginPath(),o.moveTo(0,0),o.lineTo(-t1,j),o.lineTo(-t1,0),o.lineTo(-t1,-j),o.closePath(),o.fillStyle=F,o.fill(),o.restore(),p.label){let r1=a.current.transform.k,b1=A2(r1);o.font=`${b1}px Sans-Serif`,o.textAlign="center",o.textBaseline="middle",o.save(),o.translate(O,Q),Math.abs(e1)>Math.PI/2?o.rotate(e1+Math.PI):o.rotate(e1),o.fillStyle=B?R.graph2D.link.highlightedTextColor:R.graph2D.link.textColor,o.fillText(p.label,0,0),o.restore();}}));},[o1,R.graph2D.link]),A5=r((o,C,c,p,m,S,h)=>{try{if(S!=null){let w=m*.8;o.font=`${w}px sans-serif`,o.textBaseline="middle",o.textAlign="left";let g=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(S),f=o.measureText(g).width,x=m*.3,$=(m+x+f)/2;o.drawImage(C,c-$,p-m/2,m,m),o.fillStyle=h||"#99989C",o.fillText(g,c-$+m+x,p);}else o.drawImage(C,c-m/2,p-m/2,m,m);}catch(w){console.warn("Error rendering icon:",w);}},"drawIconWithOptionalCounter"),D5=J6.useCallback((o,C)=>{if(!n1||n1.length===0||!o||!o.x||!o.y)return;let{x:c,y:p}=o,m=m1(o),S=m*o1.nodeAreaFactor/2;C.save();let h=Math.min(n1.length,8),w=Math.min(Math.PI*2/h,Math.PI);for(let g=0;g<h;g++){let f=g*w,x=(g+1)*w,L=a.current.hoveredButtonIndex===g;C.beginPath(),C.arc(c,p,S,f,x,false),C.lineTo(c,p),C.closePath(),C.lineWidth=1,C.strokeStyle=R.graph2D?.button?.stroke||"#FFFFFF",C.stroke(),C.fillStyle=L?R.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":R.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",C.fill();let $=S*.2,k=(f+x)/2,I=S-m/2+$,q=c+Math.cos(k)*I,N=p+Math.sin(k)*I,y=n1[g],z=typeof y.loading=="function"?y.loading(o):y.loading,B=r(j=>typeof j=="function"?j(o):j,"getImageUrl"),F=B(y.img),E=B(y.hoverImg),O=r(j=>{if(!y.imageCache.has(j)){let t1=new Image;t1.src=j,y.imageCache.set(j,t1);}return y.imageCache.get(j)},"getOrCreateImage"),Q=O(F),e1=O(E);if(z){let j=$/2,t1=$/12;C.save(),C.translate(q,N),C.rotate(a.current.spinnerAngle);for(let r1=0;r1<12;r1++){let b1=Math.PI*2*r1/12,M1=r1/12,L1=Math.cos(b1)*j,H1=Math.sin(b1)*j;C.beginPath(),C.fillStyle=V1(R.graph2D?.button?.spinnerColor,M1),C.arc(L1,H1,t1,0,Math.PI*2),C.fill();}C.restore(),a.current.spinnerAngle+=.1,a.current.spinnerAngle>Math.PI*2&&(a.current.spinnerAngle-=Math.PI*2),a.current.animation.id!==null&&(cancelAnimationFrame(a.current.animation.id),a.current.animation.id=null,a.current.animation.buttonIndex=null),a.current.animation.id=requestAnimationFrame(T),a.current.animation.buttonIndex=g;}else {a.current.animation.id&&a.current.animation.buttonIndex===g&&(cancelAnimationFrame(a.current.animation.id),a.current.animation.id=null,a.current.animation.buttonIndex=null);let j=L?e1:Q,t1=y.getCount?y.getCount(o):null;j.complete?A5(C,j,q,N,$,t1,R.graph2D?.button?.textColor):j.onload=()=>{w1.current&&A5(C,j,q,N,$,t1,R.graph2D?.button?.textColor);};}}C.restore();},[n1,R.graph2D?.button]),N5=J6.useCallback(o=>{if(!c1||!d1)return;let C=Number(R.tooltip.padding)||10,c=Number(R.tooltip.maxWidth)||200,p=Number(R.tooltip.fontSize)||14,m=Number(R.tooltip.borderRadius)||4,S=1.4,h=10;o.save(),o.font=`${p}px Sans-Serif`;let w=typeof c1=="string"?c1:String(c1),g=k6(o,w,c),f=Math.min(c,Math.max(...g.map(y=>o.measureText(y).width))),x=g.length*p*S,L=f+C*2,$=x+C*2,k=d1.x-L/2,I=d1.y-$-h,q=K.current?.getBoundingClientRect();q&&(k<5&&(k=5),k+L>q.width-5&&(k=q.width-L-5),I<5&&(I=d1.y+h));let N=R.tooltip.shadow?.match(/(-?\d+(?:\.\d+)?(?:px)?)\s+(-?\d+(?:\.\d+)?(?:px)?)\s+(-?\d+(?:\.\d+)?(?:px)?)(?:\s+(-?\d+(?:\.\d+)?(?:px)?))?\s+(rgba?\([^)]+\)|#[0-9a-fA-F]{3,8}|\w+)/);N&&(o.shadowOffsetX=parseFloat(N[1]),o.shadowOffsetY=parseFloat(N[2]),o.shadowBlur=parseFloat(N[3]),o.shadowColor=N[5]),o.fillStyle=R.tooltip.background,o.beginPath(),o.roundRect(k,I,L,$,m),o.fill(),o.shadowColor="transparent",o.shadowBlur=0,o.shadowOffsetX=0,o.shadowOffsetY=0,o.fillStyle=R.tooltip.color,o.textAlign="left",o.textBaseline="top",g.forEach((y,z)=>{o.fillText(y,k+C,I+p/4+C+z*p*S);}),o.restore();},[c1,d1,R.tooltip]),W5=J6.useCallback(o=>{let C=J();!C||C.length===0||(o.globalAlpha=1,C.forEach(c=>{let{x:p,y:m,color:S,fontColor:h,label:w}=c,g=c.id&&a.current.selectedNodeIds.has(c.id),f=c.id&&a.current.hoveredNode?.id===c.id,x=m1(c),L=x/2;if(f&&s&&s.length>0&&D5(c,o),g){let $=x/2+o1.nodeBorderWidth,k=x/2+o1.nodeBorderWidth/2;o.save(),o.shadowBlur=o1.nodeBorderWidth*10,o.shadowColor=R.graph2D.ring.selectionFill,o.beginPath(),o.arc(p,m,$,0,2*Math.PI,false),o.fillStyle=R.graph2D.ring.selectionFill,o.fill(),o.restore(),o.beginPath(),o.arc(p,m,k,0,2*Math.PI,false),o.fillStyle=R.graph2D.ring.borderFill,o.fill();}if(o.beginPath(),o.arc(p,m,L,0,2*Math.PI),o.fillStyle=S||E6(c.group||"0"),o.fill(),w){o.save(),o.translate(p,m);let $=a.current.transform.k,k=A2($),I=x*o1.textPaddingFactor;o.font=`${k}px Sans-Serif`,o.textAlign="center",o.textBaseline="middle",o.fillStyle=h||"#000";let q=Z6(w,I,o);o.fillText(q,0,0),o.restore();}}));},[R.graph2D.ring,s,D5]),T=J6.useCallback(()=>{let o=w1.current;o&&(o.clearRect(0,0,a.current.width,a.current.height),G5(o),o.save(),o.setTransform(a.current.transform.k,0,0,a.current.transform.k,a.current.transform.x,a.current.transform.y),R5(o),W5(o),o.restore(),N5(o));},[R5,W5,G5,N5]),O5=J6.useCallback((o,C=[],c,p)=>{let m=C1()||[],S=J()||[];if(!D.current||!o.length)return;let{width:h,height:w}=a.current,g=c?.smoothAppearance??false,f=c?.transitionDuration??1e3,x=new Set(S.map(y=>y.id)),L=o.filter(y=>!x.has(y.id)),$=new Set(m.map(y=>`${typeof y.source=="object"?y.source.id:y.source}-${typeof y.target=="object"?y.target.id:y.target}`)),k=C.filter(y=>{let z=`${typeof y.source=="object"?y.source.id:y.source}-${typeof y.target=="object"?y.target.id:y.target}`;return !$.has(z)});if(L.length===0&&k.length===0)return;let I=[...S,...L],q=[...m,...k];g&&(L.forEach(y=>{let z=k.filter(B=>{let F=typeof B.source=="object"?B.source.id:B.source,E=typeof B.target=="object"?B.target.id:B.target;return F===y.id&&x.has(E)||E===y.id&&x.has(F)});if(z.length>0){let B=z[0],F=typeof B.source=="object"?B.source.id===y.id?B.target:B.source.id:B.source===y.id?B.target:B.source,E=I.find(O=>O.id===F);if(E&&E.x!==void 0&&E.y!==void 0){let O=30+Math.random()*20,Q=Math.random()*Math.PI*2;y.x=E.x+Math.cos(Q)*O,y.y=E.y+Math.sin(Q)*O,y.vx=0,y.vy=0;}}else {let B=h/2,F=w/2,E=Math.min(h,w)/4,O=Math.random()*Math.PI*2;y.x=B+Math.cos(O)*(E*Math.random()),y.y=F+Math.sin(O)*(E*Math.random()),y.vx=0,y.vy=0;}}),S.forEach(y=>{y.fx=y.x,y.fy=y.y;})),D.current.nodes(I);let N=D.current.force("link");N&&N.links(q),k.forEach(y=>{let z=typeof y.source=="object"?y.source:I.find(F=>F.id===y.source),B=typeof y.target=="object"?y.target:I.find(F=>F.id===y.target);!z||!B||(!z.neighbors&&(z.neighbors=[]),!B.neighbors&&(B.neighbors=[]),z.neighbors.push(B),B.neighbors.push(z),!z.links&&(z.links=[]),!B.links&&(B.links=[]),z.links.push(y),B.links.push(y));}),g?(D.current.alphaTarget(.3),D.current.alpha(.3),D.current.velocityDecay(.7),D.current.restart(),setTimeout(()=>{S.forEach(y=>{y.fx=void 0,y.fy=void 0;}),D.current?.alphaTarget(0),D.current?.alpha(.1),D.current?.velocityDecay(.6);},f)):D.current.alpha(.1).restart(),T(),p?.();},[U,T]),Y5=J6.useCallback(o=>{let C=J(),c=C1();if(!D.current||!o.length||!C||C.length===0||!c||c.length===0)return;let p=new Set(o);if(o.forEach(g=>a.current.selectedNodeIds.delete(g)),a.current.hoveredNode&&a.current.hoveredNode.id!==void 0&&p.has(a.current.hoveredNode.id)&&(a.current.hoveredNode=null),a.current.hoveredLink){let g=typeof a.current.hoveredLink.source=="object"?a.current.hoveredLink.source.id:a.current.hoveredLink.source,f=typeof a.current.hoveredLink.target=="object"?a.current.hoveredLink.target.id:a.current.hoveredLink.target;(g!==void 0&&p.has(g)||f!==void 0&&p.has(f))&&(a.current.hoveredLink=null);}a.current.draggedNode&&a.current.draggedNode.id!==void 0&&p.has(a.current.draggedNode.id)&&(a.current.draggedNode=null);let m=C.filter(g=>g.id!==void 0&&!p.has(g.id)),S=c.filter(g=>{let f=typeof g.source=="object"?g.source.id:g.source,x=typeof g.target=="object"?g.target.id:g.target;return f!==void 0&&!p.has(f)&&x!==void 0&&!p.has(x)}),h=[];a.current.highlightLinks.forEach(g=>{let f=typeof g.source=="object"?g.source.id:g.source,x=typeof g.target=="object"?g.target.id:g.target;(f!==void 0&&p.has(f)||x!==void 0&&p.has(x))&&h.push(g);}),h.forEach(g=>a.current.highlightLinks.delete(g)),m.forEach(g=>{g.neighbors=[],g.links=[];}),S.forEach(g=>{let f=typeof g.source=="object"?g.source:m.find(L=>L.id===g.source),x=typeof g.target=="object"?g.target:m.find(L=>L.id===g.target);!f||!x||(f.neighbors=f.neighbors||[],x.neighbors=x.neighbors||[],f.neighbors.push(x),x.neighbors.push(f),f.links=f.links||[],x.links=x.links||[],f.links.push(g),x.links.push(g));}),D.current.nodes(m);let w=D.current.force("link");w&&w.links(S),Z?.(a.current.selectedNodeIds),T();},[T,Z]),v1=J6.useCallback((o=0,C=20)=>{let c=J();if(!w1.current||!K.current||!c||!c.length)return;let m=1/0,S=1/0,h=-1/0,w=-1/0;if(c.forEach(g=>{if(g.x===void 0||g.y===void 0)return;let f=g.x,x=g.y;m=Math.min(m,f),S=Math.min(S,x),h=Math.max(h,f),w=Math.max(w,x);}),isFinite(m)&&isFinite(h)&&isFinite(S)&&isFinite(w)){let{width:g,height:f}=a.current;m-=C,S-=C,h+=C,w+=C;let x=h-m,L=w-S,$=x>0?g/x:1,k=L>0?f/L:1,I=Math.min($,k,10),q=m+x/2,N=S+L/2,y={k:I,x:g/2-q*I,y:f/2-N*I};if(o>0){let z={...a.current.transform},B=Date.now(),F=r(()=>{let E=Math.min(1,(Date.now()-B)/o),O=E===1?1:1-Math.pow(1-E,3),Q={k:z.k+(y.k-z.k)*O,x:z.x+(y.x-z.x)*O,y:z.y+(y.y-z.y)*O};a.current.transform=Q,T(),E<1&&requestAnimationFrame(F);},"animateZoom");requestAnimationFrame(F);}else a.current.transform=y,T();}},[]),X5=J6.useCallback((o=0,C=20)=>{let c=J(),p=w1.current,m=a.current.selectedNodeIds;if(!p||!K.current||!c||!c.length||m.size===0)return;let S=c.filter(x=>x.id&&m.has(x.id));if(S.length===0)return;let h=1/0,w=1/0,g=-1/0,f=-1/0;if(S.forEach(x=>{x.x===void 0||x.y===void 0||(h=Math.min(h,x.x),w=Math.min(w,x.y),g=Math.max(g,x.x),f=Math.max(f,x.y));}),h===g&&w===f&&(h-=100,w-=100,g+=100,f+=100),isFinite(h)&&isFinite(g)&&isFinite(w)&&isFinite(f)){let{width:x,height:L}=a.current;h-=C,w-=C,g+=C,f+=C;let $=g-h,k=f-w,I=$>0?x/$:1,q=k>0?L/k:1,N=Math.min(I,q,o1.maxZoom),y=h+$/2,z=w+k/2,B={k:N,x:x/2-y*N,y:L/2-z*N};if(o>0){let F={...a.current.transform},E=Date.now(),O=r(()=>{let Q=Math.min(1,(Date.now()-E)/o),e1=Q===1?1:1-Math.pow(1-Q,3),j={k:F.k+(B.k-F.k)*e1,x:F.x+(B.x-F.x)*e1,y:F.y+(B.y-F.y)*e1};a.current.transform=j,T(),Q<1&&requestAnimationFrame(O);},"animateZoom");requestAnimationFrame(O);}else a.current.transform=B,T();}},[J,T]),_5=J6.useCallback((o,C=0,c=20)=>{let p=J();if(!w1.current||!K.current||!p||!p.length||!o||o.length===0)return;let S=new Set(o),h=p.filter(L=>L.id&&S.has(L.id));if(h.length===0)return;let w=1/0,g=1/0,f=-1/0,x=-1/0;if(h.forEach(L=>{L.x===void 0||L.y===void 0||(w=Math.min(w,L.x),g=Math.min(g,L.y),f=Math.max(f,L.x),x=Math.max(x,L.y));}),w===f&&g===x&&(w-=100,g-=100,f+=100,x+=100),isFinite(w)&&isFinite(f)&&isFinite(g)&&isFinite(x)){let{width:L,height:$}=a.current;w-=c,g-=c,f+=c,x+=c;let k=f-w,I=x-g,q=k>0?L/k:1,N=I>0?$/I:1,y=Math.min(q,N,o1.maxZoom),z=w+k/2,B=g+I/2,F={k:y,x:L/2-z*y,y:$/2-B*y};if(C>0){let E={...a.current.transform},O=Date.now(),Q=r(()=>{let e1=Math.min(1,(Date.now()-O)/C),j=e1===1?1:1-Math.pow(1-e1,3),t1={k:E.k+(F.k-E.k)*j,x:E.x+(F.x-E.x)*j,y:E.y+(F.y-E.y)*j};a.current.transform=t1,T(),e1<1&&requestAnimationFrame(Q);},"animateZoom");requestAnimationFrame(Q);}else a.current.transform=F,T();}},[J,T]),z1=J6.useCallback(o=>{a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),o.forEach(C=>a.current.selectedNodeIds.add(C)),Z?.(a.current.selectedNodeIds),T();},[T,Z]),U5=J6.useCallback((o,C)=>{let c=J();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.size=C);}),D.current&&(D.current.force("collide",d3$1.forceCollide().radius(p=>m1(p)).iterations(2).strength(1)),D.current.alpha(.2).restart()),T());},[J,T]),q5=J6.useCallback((o,C)=>{let c=J();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.color=C);}),T());},[J,T]),j5=J6.useCallback((o,C)=>{let c=C1();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.width=C);}),T());},[C1,T]),K5=J6.useCallback((o,C)=>{let c=C1();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.color=C);}),T());},[C1,T]),J5=J6.useCallback((o,C)=>{let c=J(),p=C1();if(!c||!p||c.length===0||p.length===0)return 0;let m=c.find(f=>f.id===o),S=c.find(f=>f.id===C);if(!m||!S)return console.warn("Source or target node not found"),0;if(o===C)return z1([o]),1;let h=new Map;p.forEach(f=>{let x=typeof f.source=="object"?f.source.id:f.source,L=typeof f.target=="object"?f.target.id:f.target;x===void 0||L===void 0||(h.has(x)||h.set(x,[]),h.has(L)||h.set(L,[]),h.get(x).push({nodeId:L,link:f}),h.get(L).push({nodeId:x,link:f}));});let w=[{nodeId:o,path:[o],links:[]}],g=new Set([o]);for(;w.length>0;){let f=w.shift();if(f.nodeId===C)return z1(f.path),a.current.highlightLinks.clear(),f.links.forEach(L=>{a.current.highlightLinks.add(L);}),T(),f.path.length;(h.get(f.nodeId)||[]).forEach(({nodeId:L,link:$})=>{g.has(L)||(g.add(L),w.push({nodeId:L,path:[...f.path,L],links:[...f.links,$]}));});}return console.warn("No path found between nodes"),0},[J,C1,z1,T]),Q5=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0||o.size===0)return;let p=C?.spacing??100,m=c.filter(k=>k.id!==void 0&&o.has(k.id));if(m.length===0){console.warn("No nodes found with provided IDs");return}let S=C?.columns??Math.ceil(Math.sqrt(m.length)),h=m.reduce((k,I)=>k+(I.x??0),0)/m.length,w=m.reduce((k,I)=>k+(I.y??0),0)/m.length,g=Math.ceil(m.length/S),f=(S-1)*p,x=(g-1)*p,L=h-f/2,$=w-x/2;m.forEach((k,I)=>{let q=I%S,N=Math.floor(I/S),y=L+q*p,z=$+N*p;k.x=y,k.y=z,k.fx=y,k.fy=z;}),D.current&&D.current.alpha(.3).restart(),T();},[J,T]),e4=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0)return;let p=C?.spacing??100,m=C?.groupSpacing??200,S=C?.columns,h=new Map;c.forEach(F=>{let E=F[o],O;Array.isArray(E)?O=E.length>0?String(E[0]):"undefined":typeof E=="string"?O=E:O="undefined",h.has(O)||h.set(O,[]),h.get(O).push(F);});let w=h.size,g=Math.ceil(Math.sqrt(w)),f=c.reduce((F,E)=>F+(E.x??0),0)/c.length,x=c.reduce((F,E)=>F+(E.y??0),0)/c.length,L=0,$=[];h.forEach(F=>{let E=S??Math.ceil(Math.sqrt(F.length)),O=Math.ceil(F.length/E),Q=(E-1)*p,e1=(O-1)*p;$.push({width:Q,height:e1});});let k=Math.max(...$.map(F=>F.width),0),I=Math.max(...$.map(F=>F.height),0),q=Math.ceil(w/g),N=(g-1)*(k+m),y=(q-1)*(I+m),z=f-N/2,B=x-y/2;h.forEach((F,E)=>{if(F.length===0){L++;return}let O=L%g,Q=Math.floor(L/g),e1=z+O*(k+m),j=B+Q*(I+m),t1=S??Math.ceil(Math.sqrt(F.length)),r1=Math.ceil(F.length/t1),b1=(t1-1)*p,M1=(r1-1)*p,L1=e1-b1/2,H1=j-M1/2;F.forEach((x1,G1)=>{let t2=G1%t1,G6=Math.floor(G1/t1),i4=L1+t2*p,a4=H1+G6*p;x1.x=i4,x1.y=a4,x1.fx=i4,x1.fy=a4;}),L++;}),D.current&&D.current.alpha(.3).restart(),T(),v1(300,50);},[J,T,v1]),K1=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0)return null;let p=typeof window<"u"&&window.devicePixelRatio||1,m=(o*p-a.current.transform.x)/a.current.transform.k,S=(C*p-a.current.transform.y)/a.current.transform.k;return c.find(h=>{let w=m1(h)/2,g=(h.x||0)-m,f=(h.y||0)-S;return Math.sqrt(g*g+f*f)<=w})||null},[]),J1=J6.useCallback((o,C)=>{let c=C1(),p=J();if(!c||c.length===0||!p||p.length===0)return null;let m=typeof window<"u"&&window.devicePixelRatio||1,S=(o*m-a.current.transform.x)/a.current.transform.k,h=(C*m-a.current.transform.y)/a.current.transform.k,w=5;return c.find(g=>{let f=typeof g.source=="object"?g.source:p.find(r1=>r1.id===g.source),x=typeof g.target=="object"?g.target:p.find(r1=>r1.id===g.target);if(!f||!x)return false;let L=f.x||0,$=f.y||0,k=x.x||0,I=x.y||0,q=S-L,N=h-$,y=k-L,z=I-$,B=q*y+N*z,F=y*y+z*z;if(F===0)return false;let E=B/F;E=Math.max(0,Math.min(1,E));let O=L+E*y,Q=$+E*z,e1=S-O,j=h-Q;return Math.sqrt(e1*e1+j*j)<=w})||null},[]),t4=J6.useCallback((o,C,c,p,m,S,h)=>{let w=o-c,g=C-p,f=Math.sqrt(w*w+g*g),x=Math.atan2(g,w);x<0&&(x+=2*Math.PI);let k=f>=m*.5&&f<=m*1,I=false;return S===Math.PI&&h===Math.PI*2?I=x>=Math.PI&&x<=Math.PI*2:S===0&&h===Math.PI?I=x>=0&&x<=Math.PI:I=S<=h&&x>=S&&x<=h||S>h&&(x>=S||x<=h),k&&I},[]),D2=J6.useCallback(o=>{o!==a.current.hoveredNode&&(a.current.hoveredNode=o,M&&M(o));},[M]),N2=J6.useCallback((o,C)=>{if(C===a.current.hoveredLink)return;let c=new Set,p=new Set;if(C){p.add(C);let m=J();if(m){let S=typeof C.source=="object"?C.source:m.find(w=>w.id===C.source),h=typeof C.target=="object"?C.target:m.find(w=>w.id===C.target);S&&c.add(S),h&&c.add(h);}}a.current.hoveredLink=C,H&&H(C,o);},[H,J]),o4=J6.useCallback(o=>{P&&P(o);},[P]),r4=J6.useCallback((o,C)=>{C.id&&(o.ctrlKey||o.metaKey?(a.current.selectedNodeIds.has(C.id)?a.current.selectedNodeIds.delete(C.id):a.current.selectedNodeIds.add(C.id),a.current.highlightLinks.clear()):(a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),a.current.selectedNodeIds.add(C.id)),Z?.(a.current.selectedNodeIds),T()),b&&b(C);},[b,Z,T]),n4=J6.useCallback(()=>{a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),Z?.(a.current.selectedNodeIds),T(),v&&v();},[v,Z,T]),W2=J6.useCallback(o=>{if(!K.current||!D.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top;a.current.mouseStartPos={x:c,y:p},a.current.isDragging=false;let m=K1(c,p);m?(a.current.draggedNode=m,m.fx=m.x,m.fy=m.y):(a.current.isPanning=true,a.current.lastMousePos={x:c,y:p});},[K1]),Q1=J6.useCallback((o,C)=>{let c=null;if(K.current&&a.current&&n1.length>0&&a.current.hoveredNode){let m=m1(a.current.hoveredNode)*o1.nodeAreaFactor/2,S=K.current.getBoundingClientRect(),h=K.current.width/S.width,w=K.current.height/S.height,g=o*h,f=C*w,x=(g-a.current.transform.x)/a.current.transform.k,L=(f-a.current.transform.y)/a.current.transform.k,$=a.current.hoveredNode?.x||0,k=a.current.hoveredNode?.y||0,I=Math.min(n1.length,8),q=Math.min(Math.PI*2/I,Math.PI);for(let N=0;N<I;N++){let y=N*q,z=(N+1)*q;if(t4(x,L,$,k,m,y,z)){c=N;break}}}return c},[n1]),O2=J6.useCallback(o=>{if(!K.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top;if(a.current.draggedNode&&a.current.mouseStartPos&&D.current){let h=a.current.mouseStartPos.x,w=a.current.mouseStartPos.y,g=c-h,f=p-w;Math.sqrt(g*g+f*f)>3&&(a.current.isDragging=true,D.current.alphaTarget()===0&&D.current.alphaTarget(0).restart());let $=typeof window<"u"&&window.devicePixelRatio||1,k=(c*$-a.current.transform.x)/a.current.transform.k,I=(p*$-a.current.transform.y)/a.current.transform.k;a.current.draggedNode.fx=k,a.current.draggedNode.fy=I;return}if(a.current.isPanning&&a.current.mouseStartPos){let h=c-a.current.lastMousePos.x,w=p-a.current.lastMousePos.y,g=a.current.mouseStartPos.x,f=a.current.mouseStartPos.y;Math.sqrt(Math.pow(c-g,2)+Math.pow(p-f,2))>3&&(a.current.isDragging=true),a.current.transform={...a.current.transform,x:a.current.transform.x+h,y:a.current.transform.y+w},a.current.lastMousePos={x:c,y:p},T();return}let m,S;if(a.current.hoveredNode&&K.current&&n1.length>0){let h=Q1(c,p);if(h!==null&&(S=a.current.hoveredNode),h!==null&&a.current.hoveredButtonIndex===h&&l1({x:c,y:p}),h!==a.current.hoveredButtonIndex){if(m=true,h!==null){let w=n1[h];if(w?.tooltip){let g=typeof w.tooltip=="function"?w.tooltip(a.current.hoveredNode):w.tooltip;u1(g),l1({x:c,y:p});}else u1(null),l1(null);}else u1(null),l1(null);a.current.hoveredButtonIndex=h;}}else a.current.hoveredButtonIndex!==null&&(a.current.hoveredButtonIndex=null,u1(null),l1(null));if(!S&&(S=K1(c,p),!S)){let h=J1(c,p),w=h!==a.current.hoveredLink;if(h&&a.current.hoveredNode&&D2(null),N2(o,h),K.current&&(K.current.style.cursor=h?"pointer":"default"),w){T();return}}S&&a.current.hoveredLink&&N2(o,null),S!==a.current.hoveredNode&&(m=true),D2(S),K.current&&(K.current.style.cursor=S?"pointer":"default"),m&&T();},[n1,K1,J1,D2,N2,T,t4,Q1]),B6=J6.useCallback(o=>{a.current.mustBeStoppedPropagation&&(o.stopPropagation(),o.preventDefault()),a.current.mustBeStoppedPropagation=false;},[]),e2=J6.useCallback(o=>{let C=a.current.isDragging;if(C&&(a.current.mustBeStoppedPropagation=true),!C&&a.current.mouseStartPos){let c=K.current?.getBoundingClientRect();if(c){let p=o.clientX-c.left,m=o.clientY-c.top;if(n1.length>0&&a.current.hoveredButtonIndex===null){let h=Q1(p,m);a.current.hoveredButtonIndex=h;}let S=false;if(a.current.hoveredNode&&a.current.hoveredButtonIndex!==null&&s[a.current.hoveredButtonIndex]){let h=s[a.current.hoveredButtonIndex];h&&h.onClick&&(h.onClick(a.current.hoveredNode),S=true,a.current.hoveredButtonIndex=null);}if(!S&&a.current.draggedNode)r4(o,a.current.draggedNode);else if(!S&&!a.current.draggedNode){let h=J1(p,m);h?o4(h):n4();}}}if(a.current.draggedNode&&D.current){if(C){D.current.alphaTarget(0);let c=.05,p=.04,m=.6;D.current.alpha(c).alphaDecay(p),D.current.velocityDecay(m);}else D.current.alphaTarget(0);a.current.draggedNode.fx=void 0,a.current.draggedNode.fy=void 0,a.current.draggedNode=null;}a.current.isDragging=false,a.current.mouseStartPos=null,a.current.isPanning&&(a.current.isPanning=false),T();},[s,T,r4,n4,J1,o4,Q1,n1]),Y2=J6.useCallback(o=>{if(o.stopPropagation(),o.preventDefault(),!K.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top,S=-o.deltaY>0?1.1:1/1.1,h=a.current.transform,w=h.k*S;if(w<.01||w>10)return;let g=h.k*S,f=c-(c-h.x)*S,x=p-(p-h.y)*S;a.current.transform={k:g,x:f,y:x},T();},[T]),X2=r((o,C)=>{let c=o.touches[0];if(c){let p={clientX:c.clientX,clientY:c.clientY};C(p);}},"convertTouchToMouseEvent"),T6=J6.useCallback(o=>{X2(o,W2);},[W2]),_2=J6.useCallback(o=>{a.current.mustBeStoppedPropagation&&(o.preventDefault(),o.stopPropagation()),a.current.mustBeStoppedPropagation=false,X2(o,e2);},[e2]),z6=J6.useCallback(o=>{X2(o,O2);},[O2]);return J6.useImperativeHandle(Y,()=>({zoomToFit:v1,zoomToSelected:X5,zoomToNodes:_5,addNodes:O5,removeNodes:Y5,setSelectedNodes:z1,setNodeSizes:U5,setNodeColors:q5,setLinkWidths:j5,setLinkColors:K5,findShortestPath:J5,arrangeSelectedInGrid:Q5,arrangeNodesByTypeInGrid:e4}),[v1,X5,_5,O5,Y5,z1,U5,q5,j5,K5,J5,Q5,e4]),J6.useEffect(()=>{let o=K.current,{width:C,height:c}=a.current;if(!o)return;$6(),a1(true);let p=C/2,m=c/2,S=o1.nodeSizeBase,w=S*2.5;D.current&&D.current.stop();let g=D.current=d3$1.forceSimulation(U).force("link",d3$1.forceLink(s1).id(f=>f.id).distance(w).strength(.9)).force("charge",d3$1.forceManyBody().strength(-S/10*200).theta(.5).distanceMin(S*2)).force("x",d3$1.forceX().strength(.03)).force("y",d3$1.forceY().strength(.03)).force("center",d3$1.forceCenter(p,m).strength(.05)).force("collide",d3$1.forceCollide().radius(f=>m1(f)).iterations(2).strength(1)).velocityDecay(.6);return ()=>{g.stop();}},[U,s1]),J6.useLayoutEffect(()=>{let o=K.current;o&&(a.current.width=t*G2,a.current.height=n*G2,o.width=a.current.width,o.height=a.current.height);},[t,n]),J6.useEffect(()=>{if(D.current){let o=D.current;o.on("tick",()=>{T();}),o.on("end",()=>{i1&&(v1(0,20),setTimeout(()=>{a1(false);},200));});}i1||T();},[U,s1,i1,T,v1]),J6.useEffect(()=>{!U||!s1||s1.forEach(o=>{let C=typeof o.source=="object"?o.source:U.find(p=>p.id===o.source),c=typeof o.target=="object"?o.target:U.find(p=>p.id===o.target);!C||!c||(!C.neighbors&&(C.neighbors=[]),!c.neighbors&&(c.neighbors=[]),C.neighbors.push(c),c.neighbors.push(C),!C.links&&(C.links=[]),!c.links&&(c.links=[]),C.links.push(o),c.links.push(o));});},[U,s1]),J6.useEffect(()=>{s&&s.length>0&&R2(he(s));},[s]),J6.useEffect(()=>{let o=K.current;if(!(!o||typeof window>"u"))return o.addEventListener("wheel",Y2,{passive:false}),o.addEventListener("touchend",_2,{passive:false}),()=>{o.removeEventListener("wheel",Y2),o.removeEventListener("touchend",_2);}},[Y2,_2]),jsxRuntime.jsx(me,{children:jsxRuntime.jsxs(xe,{children:[(e||i1)&&jsxRuntime.jsx(V6,{width:t,height:n}),jsxRuntime.jsx(Se,{ref:K,style:{width:t,height:n,display:e||i1?"none":"block"},onMouseDown:W2,onMouseMove:O2,onMouseUp:e2,onMouseLeave:e2,onClick:B6,onTouchStart:T6,onTouchMove:z6})]})})}),me=T1.styled.div`
1222
+ `),s=[];return d.forEach(u=>{let b=u.split(" "),v="";for(let M=0;M<b.length;M++){let H=v+(v?" ":"")+b[M];e.measureText(H).width>n&&v?(s.push(v),v=b[M]):v=H;}s.push(v);}),s}r(k6,"wrapText");var G2=typeof window<"u"&&window.devicePixelRatio||1;function he(e){return !e||e.length===0?[]:e.map(t=>({...t,imageCache:new Map}))}r(he,"prepareButtonImages");var o1={fontSize:4,nodeSizeBase:30,nodeAreaFactor:2,nodeBorderWidth:1,textPaddingFactor:.9,gridSpacing:20,dotSize:1,maxZoom:4},m1=r(e=>e.size??o1.nodeSizeBase,"getNodeSize"),be=r((e,t)=>e.width!==void 0?t?e.width*2:e.width:t?1.5:.5,"getLinkWidth"),fe=J6.forwardRef(({loading:e,width:t,height:n,graphData:d,buttons:s=[],enableGrid:u=true,onNodeClick:b,onBackgroundClick:v,onNodeHover:M,onLinkHover:H,onLinkClick:P,onChangeSelectedNodeIds:Z},Y)=>{let R=T1.useTheme(),[i1,a1]=J6.useState(true),[l1,s1]=J6.useState(null),[c1,C1]=J6.useState(null),a=J6.useRef({transform:{x:0,y:0,k:1},isPanning:false,hoveredNode:null,hoveredLink:null,draggedNode:null,selectedNodeIds:new Set,hoveredButtonIndex:null,highlightNodes:new Set,highlightLinks:new Set,lastMousePos:{x:0,y:0},mustBeStoppedPropagation:false,mouseStartPos:null,isDragging:false,width:t*G2,height:n*G2,animation:{id:null,buttonIndex:null},spinnerAngle:0}),{nodes:U,links:d1}=J6.useMemo(()=>ie__default.default(d),[d]),[n1,R2]=J6.useState([]),K=J6.useRef(null),D=J6.useRef(null),w1=J6.useRef(null),E6=d3$1.scaleOrdinal(d3$1.schemeCategory10),$6=J6.useCallback(()=>{if(!K.current)return false;try{let o=K.current.getContext("2d");return o?(w1.current=o,!0):(console.error("Failed to get 2D context"),!1)}catch(o){return console.error("Error initializing Canvas 2D context:",o),false}},[]),J=J6.useCallback(()=>D.current?D.current.nodes():null,[]),p1=J6.useCallback(()=>{if(!D.current)return null;let o=D.current.force("link");return o?o.links():null},[]),G5=J6.useCallback(o=>{if(!u)return;o.save(),o.setTransform(1,0,0,1,0,0);let{width:C,height:c}=a.current,p=o1.gridSpacing,m=o1.dotSize;o.fillStyle=R.graph2D.grid.dotColor;for(let S=p/2;S<=C;S+=p)for(let h=p/2;h<=c;h+=p)o.beginPath(),o.arc(S,h,m,0,2*Math.PI),o.fill();o.restore();},[u,R.graph2D.grid.dotColor,o1.gridSpacing,o1.dotSize]),Z6=J6.useCallback((o,C,c)=>{if(!o)return "";if(c.measureText(o).width<=C)return o;let m=o,S="...";for(;c.measureText(m+S).width>C&&m.length>0;)m=m.slice(0,-1);return m+S},[]),A2=r(o=>{let c=Math.min(o,o1.maxZoom)/o1.maxZoom;return Math.max(o1.fontSize*c,o1.fontSize)},"calculateFontSize"),R5=J6.useCallback(o=>{let C=p1(),c=J();!C||C.length===0||!c||c.length===0||(o.lineWidth=.5,o.globalAlpha=1,C.forEach(p=>{let m=typeof p.source=="object"?p.source:c.find(r1=>r1.id===p.source),S=typeof p.target=="object"?p.target:c.find(r1=>r1.id===p.target);if(!m||!S)return;let h={x:m.x||0,y:m.y||0},w={x:S.x||0,y:S.y||0},g=w.x-h.x,f=w.y-h.y,x=Math.sqrt(g*g+f*f),L=g/x,$=f/x,k=m1(m)/2,I=m1(S)/2,q=4,N={x:h.x+L*k,y:h.y+$*k},y={x:w.x-L*(I+q),y:w.y-$*(I+q)},z={x:w.x-L*(I+1),y:w.y-$*(I+1)},B=a.current.highlightLinks.has(p),F=B?R.graph2D.link.highlighted:p.color||R.graph2D.link.normal,E=be(p,B),O=h.x+(w.x-h.x)/2,Q=h.y+(w.y-h.y)/2,e1=Math.atan2(f,g);if(p.label){let r1=a.current.transform.k,b1=A2(r1);o.font=`${b1}px Sans-Serif`;let M1=o.measureText(p.label).width,L1=10;o.beginPath(),o.moveTo(N.x,N.y);let H1=x/2-(M1+L1)/2,x1={x:h.x+L*H1,y:h.y+$*H1};o.lineTo(x1.x,x1.y),o.strokeStyle=F,o.lineWidth=E,o.stroke(),o.beginPath();let G1=x/2+(M1+L1)/2,t2={x:h.x+L*G1,y:h.y+$*G1};o.moveTo(t2.x,t2.y),o.lineTo(y.x,y.y),o.strokeStyle=F,o.lineWidth=E,o.stroke();}else o.beginPath(),o.moveTo(N.x,N.y),o.lineTo(y.x,y.y),o.strokeStyle=F,o.lineWidth=E,o.stroke();let j=Math.max(2,E*2),t1=Math.max(4,E*4);if(o.save(),o.translate(z.x,z.y),o.rotate(e1),o.beginPath(),o.moveTo(0,0),o.lineTo(-t1,j),o.lineTo(-t1,0),o.lineTo(-t1,-j),o.closePath(),o.fillStyle=F,o.fill(),o.restore(),p.label){let r1=a.current.transform.k,b1=A2(r1);o.font=`${b1}px Sans-Serif`,o.textAlign="center",o.textBaseline="middle",o.save(),o.translate(O,Q),Math.abs(e1)>Math.PI/2?o.rotate(e1+Math.PI):o.rotate(e1),o.fillStyle=B?R.graph2D.link.highlightedTextColor:R.graph2D.link.textColor,o.fillText(p.label,0,0),o.restore();}}));},[o1,R.graph2D.link]),A5=r((o,C,c,p,m,S,h)=>{try{if(S!=null){let w=m*.8;o.font=`${w}px sans-serif`,o.textBaseline="middle",o.textAlign="left";let g=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0,compactDisplay:"short"}).format(S),f=o.measureText(g).width,x=m*.3,$=(m+x+f)/2;o.drawImage(C,c-$,p-m/2,m,m),o.fillStyle=h||"#99989C",o.fillText(g,c-$+m+x,p);}else o.drawImage(C,c-m/2,p-m/2,m,m);}catch(w){console.warn("Error rendering icon:",w);}},"drawIconWithOptionalCounter"),D5=J6.useCallback((o,C)=>{if(!n1||n1.length===0||!o||!o.x||!o.y)return;let{x:c,y:p}=o,m=m1(o),S=m*o1.nodeAreaFactor/2;C.save();let h=Math.min(n1.length,8),w=Math.min(Math.PI*2/h,Math.PI);for(let g=0;g<h;g++){let f=g*w,x=(g+1)*w,L=a.current.hoveredButtonIndex===g;C.beginPath(),C.arc(c,p,S,f,x,false),C.lineTo(c,p),C.closePath(),C.lineWidth=1,C.strokeStyle=R.graph2D?.button?.stroke||"#FFFFFF",C.stroke(),C.fillStyle=L?R.graph2D?.button?.hoverFill||"rgba(255, 255, 255, 0.3)":R.graph2D?.button?.normalFill||"rgba(255, 255, 255, 0.1)",C.fill();let $=S*.2,k=(f+x)/2,I=S-m/2+$,q=c+Math.cos(k)*I,N=p+Math.sin(k)*I,y=n1[g],z=typeof y.loading=="function"?y.loading(o):y.loading,B=r(j=>typeof j=="function"?j(o):j,"getImageUrl"),F=B(y.img),E=B(y.hoverImg),O=r(j=>{if(!y.imageCache.has(j)){let t1=new Image;t1.src=j,y.imageCache.set(j,t1);}return y.imageCache.get(j)},"getOrCreateImage"),Q=O(F),e1=O(E);if(z){let j=$/2,t1=$/12;C.save(),C.translate(q,N),C.rotate(a.current.spinnerAngle);for(let r1=0;r1<12;r1++){let b1=Math.PI*2*r1/12,M1=r1/12,L1=Math.cos(b1)*j,H1=Math.sin(b1)*j;C.beginPath(),C.fillStyle=V1(R.graph2D?.button?.spinnerColor,M1),C.arc(L1,H1,t1,0,Math.PI*2),C.fill();}C.restore(),a.current.spinnerAngle+=.1,a.current.spinnerAngle>Math.PI*2&&(a.current.spinnerAngle-=Math.PI*2),a.current.animation.id!==null&&(cancelAnimationFrame(a.current.animation.id),a.current.animation.id=null,a.current.animation.buttonIndex=null),a.current.animation.id=requestAnimationFrame(T),a.current.animation.buttonIndex=g;}else {a.current.animation.id&&a.current.animation.buttonIndex===g&&(cancelAnimationFrame(a.current.animation.id),a.current.animation.id=null,a.current.animation.buttonIndex=null);let j=L?e1:Q,t1=y.getCount?y.getCount(o):null;j.complete?A5(C,j,q,N,$,t1,R.graph2D?.button?.textColor):j.onload=()=>{w1.current&&A5(C,j,q,N,$,t1,R.graph2D?.button?.textColor);};}}C.restore();},[n1,R.graph2D?.button]),N5=J6.useCallback(o=>{if(!c1||!l1)return;let C=Number(R.tooltip.padding)||10,c=Number(R.tooltip.maxWidth)||200,p=Number(R.tooltip.fontSize)||14,m=Number(R.tooltip.borderRadius)||4,S=1.4,h=10;o.save(),o.font=`${p}px Sans-Serif`;let w=typeof c1=="string"?c1:String(c1),g=k6(o,w,c),f=Math.min(c,Math.max(...g.map(y=>o.measureText(y).width))),x=g.length*p*S,L=f+C*2,$=x+C*2,k=l1.x-L/2,I=l1.y-$-h,q=K.current?.getBoundingClientRect();q&&(k<5&&(k=5),k+L>q.width-5&&(k=q.width-L-5),I<5&&(I=l1.y+h));let N=R.tooltip.shadow?.match(/(-?\d+(?:\.\d+)?(?:px)?)\s+(-?\d+(?:\.\d+)?(?:px)?)\s+(-?\d+(?:\.\d+)?(?:px)?)(?:\s+(-?\d+(?:\.\d+)?(?:px)?))?\s+(rgba?\([^)]+\)|#[0-9a-fA-F]{3,8}|\w+)/);N&&(o.shadowOffsetX=parseFloat(N[1]),o.shadowOffsetY=parseFloat(N[2]),o.shadowBlur=parseFloat(N[3]),o.shadowColor=N[5]),o.fillStyle=R.tooltip.background,o.beginPath(),o.roundRect(k,I,L,$,m),o.fill(),o.shadowColor="transparent",o.shadowBlur=0,o.shadowOffsetX=0,o.shadowOffsetY=0,o.fillStyle=R.tooltip.color,o.textAlign="left",o.textBaseline="top",g.forEach((y,z)=>{o.fillText(y,k+C,I+p/4+C+z*p*S);}),o.restore();},[c1,l1,R.tooltip]),W5=J6.useCallback(o=>{let C=J();!C||C.length===0||(o.globalAlpha=1,C.forEach(c=>{let{x:p,y:m,color:S,fontColor:h,label:w}=c,g=c.id&&a.current.selectedNodeIds.has(c.id),f=c.id&&a.current.hoveredNode?.id===c.id,x=m1(c),L=x/2;if(f&&s&&s.length>0&&D5(c,o),g){let $=x/2+o1.nodeBorderWidth,k=x/2+o1.nodeBorderWidth/2;o.save(),o.shadowBlur=o1.nodeBorderWidth*10,o.shadowColor=R.graph2D.ring.selectionFill,o.beginPath(),o.arc(p,m,$,0,2*Math.PI,false),o.fillStyle=R.graph2D.ring.selectionFill,o.fill(),o.restore(),o.beginPath(),o.arc(p,m,k,0,2*Math.PI,false),o.fillStyle=R.graph2D.ring.borderFill,o.fill();}if(o.beginPath(),o.arc(p,m,L,0,2*Math.PI),o.fillStyle=S||E6(c.group||"0"),o.fill(),w){o.save(),o.translate(p,m);let $=a.current.transform.k,k=A2($),I=x*o1.textPaddingFactor;o.font=`${k}px Sans-Serif`,o.textAlign="center",o.textBaseline="middle",o.fillStyle=h||"#000";let q=Z6(w,I,o);o.fillText(q,0,0),o.restore();}}));},[R.graph2D.ring,s,D5]),T=J6.useCallback(()=>{let o=w1.current;o&&(o.clearRect(0,0,a.current.width,a.current.height),G5(o),o.save(),o.setTransform(a.current.transform.k,0,0,a.current.transform.k,a.current.transform.x,a.current.transform.y),R5(o),W5(o),o.restore(),N5(o));},[R5,W5,G5,N5]),O5=J6.useCallback((o,C=[],c,p)=>{let m=p1()||[],S=J()||[];if(!D.current||!o.length)return;let{width:h,height:w}=a.current,g=c?.smoothAppearance??false,f=c?.transitionDuration??1e3,x=new Set(S.map(y=>y.id)),L=o.filter(y=>!x.has(y.id)),$=new Set(m.map(y=>`${typeof y.source=="object"?y.source.id:y.source}-${typeof y.target=="object"?y.target.id:y.target}`)),k=C.filter(y=>{let z=`${typeof y.source=="object"?y.source.id:y.source}-${typeof y.target=="object"?y.target.id:y.target}`;return !$.has(z)});if(L.length===0&&k.length===0)return;let I=[...S,...L],q=[...m,...k];g&&(L.forEach(y=>{let z=k.filter(B=>{let F=typeof B.source=="object"?B.source.id:B.source,E=typeof B.target=="object"?B.target.id:B.target;return F===y.id&&x.has(E)||E===y.id&&x.has(F)});if(z.length>0){let B=z[0],F=typeof B.source=="object"?B.source.id===y.id?B.target:B.source.id:B.source===y.id?B.target:B.source,E=I.find(O=>O.id===F);if(E&&E.x!==void 0&&E.y!==void 0){let O=30+Math.random()*20,Q=Math.random()*Math.PI*2;y.x=E.x+Math.cos(Q)*O,y.y=E.y+Math.sin(Q)*O,y.vx=0,y.vy=0;}}else {let B=h/2,F=w/2,E=Math.min(h,w)/4,O=Math.random()*Math.PI*2;y.x=B+Math.cos(O)*(E*Math.random()),y.y=F+Math.sin(O)*(E*Math.random()),y.vx=0,y.vy=0;}}),S.forEach(y=>{y.fx=y.x,y.fy=y.y;})),D.current.nodes(I);let N=D.current.force("link");N&&N.links(q),k.forEach(y=>{let z=typeof y.source=="object"?y.source:I.find(F=>F.id===y.source),B=typeof y.target=="object"?y.target:I.find(F=>F.id===y.target);!z||!B||(!z.neighbors&&(z.neighbors=[]),!B.neighbors&&(B.neighbors=[]),z.neighbors.push(B),B.neighbors.push(z),!z.links&&(z.links=[]),!B.links&&(B.links=[]),z.links.push(y),B.links.push(y));}),g?(D.current.alphaTarget(.3),D.current.alpha(.3),D.current.velocityDecay(.7),D.current.restart(),setTimeout(()=>{S.forEach(y=>{y.fx=void 0,y.fy=void 0;}),D.current?.alphaTarget(0),D.current?.alpha(.1),D.current?.velocityDecay(.6);},f)):D.current.alpha(.1).restart(),T(),p?.();},[U,T]),Y5=J6.useCallback(o=>{let C=J(),c=p1();if(!D.current||!o.length||!C||C.length===0||!c||c.length===0)return;let p=new Set(o);if(o.forEach(g=>a.current.selectedNodeIds.delete(g)),a.current.hoveredNode&&a.current.hoveredNode.id!==void 0&&p.has(a.current.hoveredNode.id)&&(a.current.hoveredNode=null,C1(null),s1(null)),a.current.hoveredLink){let g=typeof a.current.hoveredLink.source=="object"?a.current.hoveredLink.source.id:a.current.hoveredLink.source,f=typeof a.current.hoveredLink.target=="object"?a.current.hoveredLink.target.id:a.current.hoveredLink.target;(g!==void 0&&p.has(g)||f!==void 0&&p.has(f))&&(a.current.hoveredLink=null);}a.current.draggedNode&&a.current.draggedNode.id!==void 0&&p.has(a.current.draggedNode.id)&&(a.current.draggedNode=null);let m=C.filter(g=>g.id!==void 0&&!p.has(g.id)),S=c.filter(g=>{let f=typeof g.source=="object"?g.source.id:g.source,x=typeof g.target=="object"?g.target.id:g.target;return f!==void 0&&!p.has(f)&&x!==void 0&&!p.has(x)}),h=[];a.current.highlightLinks.forEach(g=>{let f=typeof g.source=="object"?g.source.id:g.source,x=typeof g.target=="object"?g.target.id:g.target;(f!==void 0&&p.has(f)||x!==void 0&&p.has(x))&&h.push(g);}),h.forEach(g=>a.current.highlightLinks.delete(g)),m.forEach(g=>{g.neighbors=[],g.links=[];}),S.forEach(g=>{let f=typeof g.source=="object"?g.source:m.find(L=>L.id===g.source),x=typeof g.target=="object"?g.target:m.find(L=>L.id===g.target);!f||!x||(f.neighbors=f.neighbors||[],x.neighbors=x.neighbors||[],f.neighbors.push(x),x.neighbors.push(f),f.links=f.links||[],x.links=x.links||[],f.links.push(g),x.links.push(g));}),D.current.nodes(m);let w=D.current.force("link");w&&w.links(S),Z?.(a.current.selectedNodeIds),T();},[T,Z]),v1=J6.useCallback((o=0,C=20)=>{let c=J();if(!w1.current||!K.current||!c||!c.length)return;let m=1/0,S=1/0,h=-1/0,w=-1/0;if(c.forEach(g=>{if(g.x===void 0||g.y===void 0)return;let f=g.x,x=g.y;m=Math.min(m,f),S=Math.min(S,x),h=Math.max(h,f),w=Math.max(w,x);}),isFinite(m)&&isFinite(h)&&isFinite(S)&&isFinite(w)){let{width:g,height:f}=a.current;m-=C,S-=C,h+=C,w+=C;let x=h-m,L=w-S,$=x>0?g/x:1,k=L>0?f/L:1,I=Math.min($,k,10),q=m+x/2,N=S+L/2,y={k:I,x:g/2-q*I,y:f/2-N*I};if(o>0){let z={...a.current.transform},B=Date.now(),F=r(()=>{let E=Math.min(1,(Date.now()-B)/o),O=E===1?1:1-Math.pow(1-E,3),Q={k:z.k+(y.k-z.k)*O,x:z.x+(y.x-z.x)*O,y:z.y+(y.y-z.y)*O};a.current.transform=Q,T(),E<1&&requestAnimationFrame(F);},"animateZoom");requestAnimationFrame(F);}else a.current.transform=y,T();}},[]),X5=J6.useCallback((o=0,C=20)=>{let c=J(),p=w1.current,m=a.current.selectedNodeIds;if(!p||!K.current||!c||!c.length||m.size===0)return;let S=c.filter(x=>x.id&&m.has(x.id));if(S.length===0)return;let h=1/0,w=1/0,g=-1/0,f=-1/0;if(S.forEach(x=>{x.x===void 0||x.y===void 0||(h=Math.min(h,x.x),w=Math.min(w,x.y),g=Math.max(g,x.x),f=Math.max(f,x.y));}),h===g&&w===f&&(h-=100,w-=100,g+=100,f+=100),isFinite(h)&&isFinite(g)&&isFinite(w)&&isFinite(f)){let{width:x,height:L}=a.current;h-=C,w-=C,g+=C,f+=C;let $=g-h,k=f-w,I=$>0?x/$:1,q=k>0?L/k:1,N=Math.min(I,q,o1.maxZoom),y=h+$/2,z=w+k/2,B={k:N,x:x/2-y*N,y:L/2-z*N};if(o>0){let F={...a.current.transform},E=Date.now(),O=r(()=>{let Q=Math.min(1,(Date.now()-E)/o),e1=Q===1?1:1-Math.pow(1-Q,3),j={k:F.k+(B.k-F.k)*e1,x:F.x+(B.x-F.x)*e1,y:F.y+(B.y-F.y)*e1};a.current.transform=j,T(),Q<1&&requestAnimationFrame(O);},"animateZoom");requestAnimationFrame(O);}else a.current.transform=B,T();}},[J,T]),_5=J6.useCallback((o,C=0,c=20)=>{let p=J();if(!w1.current||!K.current||!p||!p.length||!o||o.length===0)return;let S=new Set(o),h=p.filter(L=>L.id&&S.has(L.id));if(h.length===0)return;let w=1/0,g=1/0,f=-1/0,x=-1/0;if(h.forEach(L=>{L.x===void 0||L.y===void 0||(w=Math.min(w,L.x),g=Math.min(g,L.y),f=Math.max(f,L.x),x=Math.max(x,L.y));}),w===f&&g===x&&(w-=100,g-=100,f+=100,x+=100),isFinite(w)&&isFinite(f)&&isFinite(g)&&isFinite(x)){let{width:L,height:$}=a.current;w-=c,g-=c,f+=c,x+=c;let k=f-w,I=x-g,q=k>0?L/k:1,N=I>0?$/I:1,y=Math.min(q,N,o1.maxZoom),z=w+k/2,B=g+I/2,F={k:y,x:L/2-z*y,y:$/2-B*y};if(C>0){let E={...a.current.transform},O=Date.now(),Q=r(()=>{let e1=Math.min(1,(Date.now()-O)/C),j=e1===1?1:1-Math.pow(1-e1,3),t1={k:E.k+(F.k-E.k)*j,x:E.x+(F.x-E.x)*j,y:E.y+(F.y-E.y)*j};a.current.transform=t1,T(),e1<1&&requestAnimationFrame(Q);},"animateZoom");requestAnimationFrame(Q);}else a.current.transform=F,T();}},[J,T]),z1=J6.useCallback(o=>{a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),o.forEach(C=>a.current.selectedNodeIds.add(C)),Z?.(a.current.selectedNodeIds),T();},[T,Z]),U5=J6.useCallback((o,C)=>{let c=J();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.size=C);}),D.current&&(D.current.force("collide",d3$1.forceCollide().radius(p=>m1(p)).iterations(2).strength(1)),D.current.alpha(.2).restart()),T());},[J,T]),q5=J6.useCallback((o,C)=>{let c=J();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.color=C);}),T());},[J,T]),j5=J6.useCallback((o,C)=>{let c=p1();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.width=C);}),T());},[p1,T]),K5=J6.useCallback((o,C)=>{let c=p1();!c||c.length===0||(c.forEach(p=>{p.id&&o.includes(p.id)&&(p.color=C);}),T());},[p1,T]),J5=J6.useCallback((o,C)=>{let c=J(),p=p1();if(!c||!p||c.length===0||p.length===0)return 0;let m=c.find(f=>f.id===o),S=c.find(f=>f.id===C);if(!m||!S)return console.warn("Source or target node not found"),0;if(o===C)return z1([o]),1;let h=new Map;p.forEach(f=>{let x=typeof f.source=="object"?f.source.id:f.source,L=typeof f.target=="object"?f.target.id:f.target;x===void 0||L===void 0||(h.has(x)||h.set(x,[]),h.has(L)||h.set(L,[]),h.get(x).push({nodeId:L,link:f}),h.get(L).push({nodeId:x,link:f}));});let w=[{nodeId:o,path:[o],links:[]}],g=new Set([o]);for(;w.length>0;){let f=w.shift();if(f.nodeId===C)return z1(f.path),a.current.highlightLinks.clear(),f.links.forEach(L=>{a.current.highlightLinks.add(L);}),T(),f.path.length;(h.get(f.nodeId)||[]).forEach(({nodeId:L,link:$})=>{g.has(L)||(g.add(L),w.push({nodeId:L,path:[...f.path,L],links:[...f.links,$]}));});}return console.warn("No path found between nodes"),0},[J,p1,z1,T]),Q5=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0||o.size===0)return;let p=C?.spacing??100,m=c.filter(k=>k.id!==void 0&&o.has(k.id));if(m.length===0){console.warn("No nodes found with provided IDs");return}let S=C?.columns??Math.ceil(Math.sqrt(m.length)),h=m.reduce((k,I)=>k+(I.x??0),0)/m.length,w=m.reduce((k,I)=>k+(I.y??0),0)/m.length,g=Math.ceil(m.length/S),f=(S-1)*p,x=(g-1)*p,L=h-f/2,$=w-x/2;m.forEach((k,I)=>{let q=I%S,N=Math.floor(I/S),y=L+q*p,z=$+N*p;k.x=y,k.y=z,k.fx=y,k.fy=z;}),D.current&&D.current.alpha(.3).restart(),T();},[J,T]),e4=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0)return;let p=C?.spacing??100,m=C?.groupSpacing??200,S=C?.columns,h=new Map;c.forEach(F=>{let E=F[o],O;Array.isArray(E)?O=E.length>0?String(E[0]):"undefined":typeof E=="string"?O=E:O="undefined",h.has(O)||h.set(O,[]),h.get(O).push(F);});let w=h.size,g=Math.ceil(Math.sqrt(w)),f=c.reduce((F,E)=>F+(E.x??0),0)/c.length,x=c.reduce((F,E)=>F+(E.y??0),0)/c.length,L=0,$=[];h.forEach(F=>{let E=S??Math.ceil(Math.sqrt(F.length)),O=Math.ceil(F.length/E),Q=(E-1)*p,e1=(O-1)*p;$.push({width:Q,height:e1});});let k=Math.max(...$.map(F=>F.width),0),I=Math.max(...$.map(F=>F.height),0),q=Math.ceil(w/g),N=(g-1)*(k+m),y=(q-1)*(I+m),z=f-N/2,B=x-y/2;h.forEach((F,E)=>{if(F.length===0){L++;return}let O=L%g,Q=Math.floor(L/g),e1=z+O*(k+m),j=B+Q*(I+m),t1=S??Math.ceil(Math.sqrt(F.length)),r1=Math.ceil(F.length/t1),b1=(t1-1)*p,M1=(r1-1)*p,L1=e1-b1/2,H1=j-M1/2;F.forEach((x1,G1)=>{let t2=G1%t1,G6=Math.floor(G1/t1),i4=L1+t2*p,a4=H1+G6*p;x1.x=i4,x1.y=a4,x1.fx=i4,x1.fy=a4;}),L++;}),D.current&&D.current.alpha(.3).restart(),T(),v1(300,50);},[J,T,v1]),K1=J6.useCallback((o,C)=>{let c=J();if(!c||c.length===0)return null;let p=typeof window<"u"&&window.devicePixelRatio||1,m=(o*p-a.current.transform.x)/a.current.transform.k,S=(C*p-a.current.transform.y)/a.current.transform.k;return c.find(h=>{let w=m1(h)/2,g=(h.x||0)-m,f=(h.y||0)-S;return Math.sqrt(g*g+f*f)<=w})||null},[]),J1=J6.useCallback((o,C)=>{let c=p1(),p=J();if(!c||c.length===0||!p||p.length===0)return null;let m=typeof window<"u"&&window.devicePixelRatio||1,S=(o*m-a.current.transform.x)/a.current.transform.k,h=(C*m-a.current.transform.y)/a.current.transform.k,w=5;return c.find(g=>{let f=typeof g.source=="object"?g.source:p.find(r1=>r1.id===g.source),x=typeof g.target=="object"?g.target:p.find(r1=>r1.id===g.target);if(!f||!x)return false;let L=f.x||0,$=f.y||0,k=x.x||0,I=x.y||0,q=S-L,N=h-$,y=k-L,z=I-$,B=q*y+N*z,F=y*y+z*z;if(F===0)return false;let E=B/F;E=Math.max(0,Math.min(1,E));let O=L+E*y,Q=$+E*z,e1=S-O,j=h-Q;return Math.sqrt(e1*e1+j*j)<=w})||null},[]),t4=J6.useCallback((o,C,c,p,m,S,h)=>{let w=o-c,g=C-p,f=Math.sqrt(w*w+g*g),x=Math.atan2(g,w);x<0&&(x+=2*Math.PI);let k=f>=m*.5&&f<=m*1,I=false;return S===Math.PI&&h===Math.PI*2?I=x>=Math.PI&&x<=Math.PI*2:S===0&&h===Math.PI?I=x>=0&&x<=Math.PI:I=S<=h&&x>=S&&x<=h||S>h&&(x>=S||x<=h),k&&I},[]),D2=J6.useCallback(o=>{o!==a.current.hoveredNode&&(a.current.hoveredNode=o,M&&M(o));},[M]),N2=J6.useCallback((o,C)=>{if(C===a.current.hoveredLink)return;let c=new Set,p=new Set;if(C){p.add(C);let m=J();if(m){let S=typeof C.source=="object"?C.source:m.find(w=>w.id===C.source),h=typeof C.target=="object"?C.target:m.find(w=>w.id===C.target);S&&c.add(S),h&&c.add(h);}}a.current.hoveredLink=C,H&&H(C,o);},[H,J]),o4=J6.useCallback(o=>{P&&P(o);},[P]),r4=J6.useCallback((o,C)=>{C.id&&(o.ctrlKey||o.metaKey?(a.current.selectedNodeIds.has(C.id)?a.current.selectedNodeIds.delete(C.id):a.current.selectedNodeIds.add(C.id),a.current.highlightLinks.clear()):(a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),a.current.selectedNodeIds.add(C.id)),Z?.(a.current.selectedNodeIds),T()),b&&b(C);},[b,Z,T]),n4=J6.useCallback(()=>{a.current.selectedNodeIds.clear(),a.current.highlightLinks.clear(),Z?.(a.current.selectedNodeIds),T(),v&&v();},[v,Z,T]),W2=J6.useCallback(o=>{if(!K.current||!D.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top;a.current.mouseStartPos={x:c,y:p},a.current.isDragging=false;let m=K1(c,p);m?(a.current.draggedNode=m,m.fx=m.x,m.fy=m.y):(a.current.isPanning=true,a.current.lastMousePos={x:c,y:p});},[K1]),Q1=J6.useCallback((o,C)=>{let c=null;if(K.current&&a.current&&n1.length>0&&a.current.hoveredNode){let m=m1(a.current.hoveredNode)*o1.nodeAreaFactor/2,S=K.current.getBoundingClientRect(),h=K.current.width/S.width,w=K.current.height/S.height,g=o*h,f=C*w,x=(g-a.current.transform.x)/a.current.transform.k,L=(f-a.current.transform.y)/a.current.transform.k,$=a.current.hoveredNode?.x||0,k=a.current.hoveredNode?.y||0,I=Math.min(n1.length,8),q=Math.min(Math.PI*2/I,Math.PI);for(let N=0;N<I;N++){let y=N*q,z=(N+1)*q;if(t4(x,L,$,k,m,y,z)){c=N;break}}}return c},[n1]),O2=J6.useCallback(o=>{if(!K.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top;if(a.current.draggedNode&&a.current.mouseStartPos&&D.current){let h=a.current.mouseStartPos.x,w=a.current.mouseStartPos.y,g=c-h,f=p-w;Math.sqrt(g*g+f*f)>3&&(a.current.isDragging=true,D.current.alphaTarget()===0&&D.current.alphaTarget(0).restart());let $=typeof window<"u"&&window.devicePixelRatio||1,k=(c*$-a.current.transform.x)/a.current.transform.k,I=(p*$-a.current.transform.y)/a.current.transform.k;a.current.draggedNode.fx=k,a.current.draggedNode.fy=I;return}if(a.current.isPanning&&a.current.mouseStartPos){let h=c-a.current.lastMousePos.x,w=p-a.current.lastMousePos.y,g=a.current.mouseStartPos.x,f=a.current.mouseStartPos.y;Math.sqrt(Math.pow(c-g,2)+Math.pow(p-f,2))>3&&(a.current.isDragging=true),a.current.transform={...a.current.transform,x:a.current.transform.x+h,y:a.current.transform.y+w},a.current.lastMousePos={x:c,y:p},T();return}let m,S;if(a.current.hoveredNode&&K.current&&n1.length>0){let h=Q1(c,p);if(h!==null&&(S=a.current.hoveredNode),h!==null&&a.current.hoveredButtonIndex===h&&s1({x:c,y:p}),h!==a.current.hoveredButtonIndex){if(m=true,h!==null){let w=n1[h];if(w?.tooltip){let g=typeof w.tooltip=="function"?w.tooltip(a.current.hoveredNode):w.tooltip;C1(g),s1({x:c,y:p});}else C1(null),s1(null);}else C1(null),s1(null);a.current.hoveredButtonIndex=h;}}else a.current.hoveredButtonIndex!==null&&(a.current.hoveredButtonIndex=null,C1(null),s1(null));if(!S&&(S=K1(c,p),!S)){let h=J1(c,p),w=h!==a.current.hoveredLink;if(h&&a.current.hoveredNode&&D2(null),N2(o,h),K.current&&(K.current.style.cursor=h?"pointer":"default"),w){T();return}}S&&a.current.hoveredLink&&N2(o,null),S!==a.current.hoveredNode&&(m=true),D2(S),K.current&&(K.current.style.cursor=S?"pointer":"default"),m&&T();},[n1,K1,J1,D2,N2,T,t4,Q1]),B6=J6.useCallback(o=>{a.current.mustBeStoppedPropagation&&(o.stopPropagation(),o.preventDefault()),a.current.mustBeStoppedPropagation=false;},[]),e2=J6.useCallback(o=>{let C=a.current.isDragging;if(C&&(a.current.mustBeStoppedPropagation=true),!C&&a.current.mouseStartPos){let c=K.current?.getBoundingClientRect();if(c){let p=o.clientX-c.left,m=o.clientY-c.top;if(n1.length>0&&a.current.hoveredButtonIndex===null){let h=Q1(p,m);a.current.hoveredButtonIndex=h;}let S=false;if(a.current.hoveredNode&&a.current.hoveredButtonIndex!==null&&s[a.current.hoveredButtonIndex]){let h=s[a.current.hoveredButtonIndex];h&&h.onClick&&(h.onClick(a.current.hoveredNode),S=true,a.current.hoveredButtonIndex=null);}if(!S&&a.current.draggedNode)r4(o,a.current.draggedNode);else if(!S&&!a.current.draggedNode){let h=J1(p,m);h?o4(h):n4();}}}if(a.current.draggedNode&&D.current){if(C){D.current.alphaTarget(0);let c=.05,p=.04,m=.6;D.current.alpha(c).alphaDecay(p),D.current.velocityDecay(m);}else D.current.alphaTarget(0);a.current.draggedNode.fx=void 0,a.current.draggedNode.fy=void 0,a.current.draggedNode=null;}a.current.isDragging=false,a.current.mouseStartPos=null,a.current.isPanning&&(a.current.isPanning=false),T();},[s,T,r4,n4,J1,o4,Q1,n1]),Y2=J6.useCallback(o=>{if(o.stopPropagation(),o.preventDefault(),!K.current)return;let C=K.current.getBoundingClientRect(),c=o.clientX-C.left,p=o.clientY-C.top,S=-o.deltaY>0?1.1:1/1.1,h=a.current.transform,w=h.k*S;if(w<.01||w>10)return;let g=h.k*S,f=c-(c-h.x)*S,x=p-(p-h.y)*S;a.current.transform={k:g,x:f,y:x},T();},[T]),X2=r((o,C)=>{let c=o.touches[0];if(c){let p={clientX:c.clientX,clientY:c.clientY};C(p);}},"convertTouchToMouseEvent"),T6=J6.useCallback(o=>{X2(o,W2);},[W2]),_2=J6.useCallback(o=>{a.current.mustBeStoppedPropagation&&(o.preventDefault(),o.stopPropagation()),a.current.mustBeStoppedPropagation=false,X2(o,e2);},[e2]),z6=J6.useCallback(o=>{X2(o,O2);},[O2]);return J6.useImperativeHandle(Y,()=>({zoomToFit:v1,zoomToSelected:X5,zoomToNodes:_5,addNodes:O5,removeNodes:Y5,setSelectedNodes:z1,setNodeSizes:U5,setNodeColors:q5,setLinkWidths:j5,setLinkColors:K5,findShortestPath:J5,arrangeSelectedInGrid:Q5,arrangeNodesByTypeInGrid:e4}),[v1,X5,_5,O5,Y5,z1,U5,q5,j5,K5,J5,Q5,e4]),J6.useEffect(()=>{let o=K.current,{width:C,height:c}=a.current;if(!o)return;$6(),a1(true);let p=C/2,m=c/2,S=o1.nodeSizeBase,w=S*2.5;D.current&&D.current.stop();let g=D.current=d3$1.forceSimulation(U).force("link",d3$1.forceLink(d1).id(f=>f.id).distance(w).strength(.9)).force("charge",d3$1.forceManyBody().strength(-S/10*200).theta(.5).distanceMin(S*2)).force("x",d3$1.forceX().strength(.03)).force("y",d3$1.forceY().strength(.03)).force("center",d3$1.forceCenter(p,m).strength(.05)).force("collide",d3$1.forceCollide().radius(f=>m1(f)).iterations(2).strength(1)).velocityDecay(.6);return ()=>{g.stop();}},[U,d1]),J6.useLayoutEffect(()=>{let o=K.current;o&&(a.current.width=t*G2,a.current.height=n*G2,o.width=a.current.width,o.height=a.current.height);},[t,n]),J6.useEffect(()=>{if(D.current){let o=D.current;o.on("tick",()=>{T();}),o.on("end",()=>{i1&&(v1(0,20),setTimeout(()=>{a1(false);},200));});}i1||T();},[U,d1,i1,T,v1]),J6.useEffect(()=>{!U||!d1||d1.forEach(o=>{let C=typeof o.source=="object"?o.source:U.find(p=>p.id===o.source),c=typeof o.target=="object"?o.target:U.find(p=>p.id===o.target);!C||!c||(!C.neighbors&&(C.neighbors=[]),!c.neighbors&&(c.neighbors=[]),C.neighbors.push(c),c.neighbors.push(C),!C.links&&(C.links=[]),!c.links&&(c.links=[]),C.links.push(o),c.links.push(o));});},[U,d1]),J6.useEffect(()=>{s&&s.length>0&&R2(he(s));},[s]),J6.useEffect(()=>{let o=K.current;if(!(!o||typeof window>"u"))return o.addEventListener("wheel",Y2,{passive:false}),o.addEventListener("touchend",_2,{passive:false}),()=>{o.removeEventListener("wheel",Y2),o.removeEventListener("touchend",_2);}},[Y2,_2]),jsxRuntime.jsx(me,{children:jsxRuntime.jsxs(xe,{children:[(e||i1)&&jsxRuntime.jsx(V6,{width:t,height:n}),jsxRuntime.jsx(Se,{ref:K,style:{width:t,height:n,display:e||i1?"none":"block"},onMouseDown:W2,onMouseMove:O2,onMouseUp:e2,onMouseLeave:e2,onClick:B6,onTouchStart:T6,onTouchMove:z6})]})})}),me=T1.styled.div`
1223
1223
  display: flex;
1224
1224
  align-items: center;
1225
1225
  justify-content: center;
@@ -1246,5 +1246,5 @@ ${e?`
1246
1246
  `:""}
1247
1247
 
1248
1248
  min-width: 0;
1249
- `);Object.defineProperty(exports,"ServerStyleSheet",{enumerable:true,get:function(){return T1.ServerStyleSheet}});Object.defineProperty(exports,"StyleSheetManager",{enumerable:true,get:function(){return T1.StyleSheetManager}});exports.Alert=Tu;exports.AlertIcon=J2;exports.AndroidIcon=B0;exports.ApiIcon=d3;exports.ArrowCircleTopRightIcon=c3;exports.ArrowRightIcon=C3;exports.BallsMenu=c5;exports.Box=Yp;exports.BreakpointProvider=h4;exports.BugReportIcon=u3;exports.BurgerMenuIcon=n7;exports.BusIcon=v0;exports.Button=x4;exports.CalendarIcon=g3;exports.CarIcon=L0;exports.CheckIcon=g0;exports.Checkbox=og;exports.ChevronDownIcon=C5;exports.ChevronLeftIcon=Q2;exports.ChevronRightIcon=e5;exports.ChevronUpIcon=p5;exports.ClockIcon=i7;exports.CloseCircleIcon=m3;exports.ClosedLockIcon=S3;exports.Container=qb;exports.ContentLoader=ph;exports.ContextMenu=l6;exports.ContextMenuDelimiter=hC;exports.Counter=q4;exports.CrossIcon=g5;exports.DataSetsIcon=w3;exports.DeepSearchIcon=M3;exports.DisabledVisibleIcon=L3;exports.DocsIcon=V3;exports.DownloadIcon=F3;exports.Drawer=Ag;exports.DrawerBody=Ng;exports.DrawerHeader=Dg;exports.EditUserIcon=I3;exports.EmptyData=cu;exports.EnableVisibleIcon=$3;exports.EnterArrowLeftIcon=B3;exports.FileIcon=E0;exports.FiltersIcon=T3;exports.FlashIcon=K0;exports.FlexContainer=$8;exports.FlexItem=z8;exports.FolderAlertIcon=R0;exports.FolderInfoIcon=J0;exports.FullscreenCard=Tf;exports.GlobalStyle=s4;exports.Graph2D=fe;exports.Header=tc;exports.HeaderDelimeter=ac;exports.HeaderSection=pc;exports.HomepageIcon=G3;exports.InfoCircleFilledIcon=u5;exports.InfoCircleIcon=R3;exports.Input=gp;exports.IosIcon=$0;exports.Label=_u;exports.Line=ou;exports.LinerProgress=pg;exports.ListMenu=wl;exports.ListMenuItem=zl;exports.ListMenuSection=Wl;exports.MapRadarIcon=D3;exports.MaximizeIcon=y0;exports.MicrosoftIcon=z0;exports.Modal=Th;exports.ModalBody=Gh;exports.ModalFooter=Rh;exports.ModalHeader=zh;exports.MoonIcon=W3;exports.OpenLockIcon=O3;exports.OrganizationIcon=X3;exports.Overlay=L6;exports.PageContent=Pb;exports.PageLayout=Mb;exports.Pagination=_c;exports.PassportIcon=Y0;exports.PasswordFinderIcon=U3;exports.PencilIcon=U0;exports.PhonebookIcon=j3;exports.PlaneIcon=k0;exports.PlusIcon=h0;exports.PointIcon=_0;exports.PrintIcon=J3;exports.Profiler2Icon=Q3;exports.ProfilerIcon=t0;exports.RelationIcon=D0;exports.RelationPointsIcon=W0;exports.RotateLeftIcon=e7;exports.RotateRightIcon=o7;exports.RowActionsMenu=KC;exports.SandBoxIcon=r0;exports.SearchIcon=n0;exports.Select=EC;exports.ShipIcon=P0;exports.Sidebar=Hd;exports.SidebarContext=E1;exports.SidebarDelimeter=Nd;exports.SidebarItem=Zd;exports.SidebarSection=qd;exports.StatisticIcon=a0;exports.Styled=O9;exports.StyledContainer=G9;exports.StyledMain=D9;exports.SubNav=Tb;exports.SunIcon=d0;exports.Switch=wg;exports.Table=Zc;exports.Tag=Mu;exports.ThemeProvider=lt;exports.Tooltip=oh;exports.Typography=gl;exports.UnfoldIcon=x0;exports.UpRightArrowCircleIcon=c0;exports.UserInCircleIcon=q0;exports.UsersIcon=f0;exports.VectorIcon=p0;exports.WayIcon=H0;exports.convertPaletteToRem=R1;exports.createComponent=W;exports.createStyledComponent=X;exports.darkTheme=p4;exports.darkThemePx=C4;exports.destructSpaceProps=i2;exports.generatePropertySpaceStyle=G;exports.getBreakpoint=Ee;exports.getButtonSizeStyles=f1;exports.getButtonStyles=g1;exports.getInputStyles=Pe;exports.getResponsiveProps=o3;exports.getTypographyStyles=Ie;exports.hexToRgba=V1;exports.lightTheme=c4;exports.lightThemePx=l4;exports.propToRem=p1;exports.pxToRem=V;exports.remToPx=d4;exports.resolveThemeColor=o2;exports.useBreakpoint=b4;exports.useContextMenuControl=c6;exports.useTheme=Lt;//# sourceMappingURL=index.js.map
1249
+ `);Object.defineProperty(exports,"ServerStyleSheet",{enumerable:true,get:function(){return T1.ServerStyleSheet}});Object.defineProperty(exports,"StyleSheetManager",{enumerable:true,get:function(){return T1.StyleSheetManager}});exports.Alert=Tu;exports.AlertIcon=J2;exports.AndroidIcon=B0;exports.ApiIcon=d3;exports.ArrowCircleTopRightIcon=c3;exports.ArrowRightIcon=C3;exports.BallsMenu=c5;exports.Box=Yp;exports.BreakpointProvider=h4;exports.BugReportIcon=u3;exports.BurgerMenuIcon=n7;exports.BusIcon=v0;exports.Button=x4;exports.CalendarIcon=g3;exports.CarIcon=L0;exports.CheckIcon=g0;exports.Checkbox=og;exports.ChevronDownIcon=C5;exports.ChevronLeftIcon=Q2;exports.ChevronRightIcon=e5;exports.ChevronUpIcon=p5;exports.ClockIcon=i7;exports.CloseCircleIcon=m3;exports.ClosedLockIcon=S3;exports.Container=qb;exports.ContentLoader=ph;exports.ContextMenu=l6;exports.ContextMenuDelimiter=hC;exports.Counter=q4;exports.CrossIcon=g5;exports.DataSetsIcon=w3;exports.DeepSearchIcon=M3;exports.DisabledVisibleIcon=L3;exports.DocsIcon=V3;exports.DownloadIcon=F3;exports.Drawer=Ag;exports.DrawerBody=Ng;exports.DrawerHeader=Dg;exports.EditUserIcon=I3;exports.EmptyData=cu;exports.EnableVisibleIcon=$3;exports.EnterArrowLeftIcon=B3;exports.FileIcon=E0;exports.FiltersIcon=T3;exports.FlashIcon=K0;exports.FlexContainer=$8;exports.FlexItem=z8;exports.FolderAlertIcon=R0;exports.FolderInfoIcon=J0;exports.FullscreenCard=Tf;exports.GlobalStyle=s4;exports.Graph2D=fe;exports.Header=tc;exports.HeaderDelimeter=ac;exports.HeaderSection=pc;exports.HomepageIcon=G3;exports.InfoCircleFilledIcon=u5;exports.InfoCircleIcon=R3;exports.Input=gp;exports.IosIcon=$0;exports.Label=_u;exports.Line=ou;exports.LinerProgress=pg;exports.ListMenu=wl;exports.ListMenuItem=zl;exports.ListMenuSection=Wl;exports.MapRadarIcon=D3;exports.MaximizeIcon=y0;exports.MicrosoftIcon=z0;exports.Modal=Th;exports.ModalBody=Gh;exports.ModalFooter=Rh;exports.ModalHeader=zh;exports.MoonIcon=W3;exports.OpenLockIcon=O3;exports.OrganizationIcon=X3;exports.Overlay=L6;exports.PageContent=Pb;exports.PageLayout=Mb;exports.Pagination=_c;exports.PassportIcon=Y0;exports.PasswordFinderIcon=U3;exports.PencilIcon=U0;exports.PhonebookIcon=j3;exports.PlaneIcon=k0;exports.PlusIcon=h0;exports.PointIcon=_0;exports.PrintIcon=J3;exports.Profiler2Icon=Q3;exports.ProfilerIcon=t0;exports.RelationIcon=D0;exports.RelationPointsIcon=W0;exports.RotateLeftIcon=e7;exports.RotateRightIcon=o7;exports.RowActionsMenu=KC;exports.SandBoxIcon=r0;exports.SearchIcon=n0;exports.Select=EC;exports.ShipIcon=P0;exports.Sidebar=Hd;exports.SidebarContext=E1;exports.SidebarDelimeter=Nd;exports.SidebarItem=Zd;exports.SidebarSection=qd;exports.StatisticIcon=a0;exports.Styled=O9;exports.StyledContainer=G9;exports.StyledMain=D9;exports.SubNav=Tb;exports.SunIcon=d0;exports.Switch=wg;exports.Table=Zc;exports.Tag=Mu;exports.ThemeProvider=lt;exports.Tooltip=oh;exports.Typography=gl;exports.UnfoldIcon=x0;exports.UpRightArrowCircleIcon=c0;exports.UserInCircleIcon=q0;exports.UsersIcon=f0;exports.VectorIcon=p0;exports.WayIcon=H0;exports.convertPaletteToRem=R1;exports.createComponent=W;exports.createStyledComponent=X;exports.darkTheme=p4;exports.darkThemePx=C4;exports.destructSpaceProps=i2;exports.generatePropertySpaceStyle=G;exports.getBreakpoint=Ee;exports.getButtonSizeStyles=f1;exports.getButtonStyles=g1;exports.getInputStyles=Pe;exports.getResponsiveProps=o3;exports.getTypographyStyles=Ie;exports.hexToRgba=V1;exports.lightTheme=c4;exports.lightThemePx=l4;exports.propToRem=u1;exports.pxToRem=V;exports.remToPx=d4;exports.resolveThemeColor=o2;exports.useBreakpoint=b4;exports.useContextMenuControl=c6;exports.useTheme=Lt;//# sourceMappingURL=index.js.map
1250
1250
  //# sourceMappingURL=index.js.map