@cyber-harbour/ui 2.2.42 → 2.2.43
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/{PdfDriver-WC4VPQWZ.js → PdfDriver-54FN6DBI.js} +2 -2
- package/dist/{PdfDriver-WC4VPQWZ.js.map → PdfDriver-54FN6DBI.js.map} +1 -1
- package/dist/{PdfDriver-GLFIED7A.mjs → PdfDriver-AVC3OSKE.mjs} +2 -2
- package/dist/{PdfDriver-GLFIED7A.mjs.map → PdfDriver-AVC3OSKE.mjs.map} +1 -1
- package/dist/{chunk-T6XGVEPQ.mjs → chunk-EGCG27KL.mjs} +3 -3
- package/dist/{chunk-T6XGVEPQ.mjs.map → chunk-EGCG27KL.mjs.map} +1 -1
- package/dist/{chunk-3MGYAJ6C.js → chunk-WRBRJBUL.js} +3 -3
- package/dist/{chunk-3MGYAJ6C.js.map → chunk-WRBRJBUL.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +44 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles/tailwind.css +1 -1
- package/dist/styles/tailwind.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a,c,b}from'./chunk-T6XGVEPQ.mjs';import z2,{useTheme,createGlobalStyle,StyleSheetManager,ThemeProvider,css,styled,keyframes}from'styled-components';export{ServerStyleSheet,StyleSheetManager}from'styled-components';import we,{createContext,useState,useEffect,useContext,useMemo,forwardRef,useCallback,useRef,useLayoutEffect,Fragment as Fragment$1,useImperativeHandle,memo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Popover}from'react-tiny-popover';import {createPortal}from'react-dom';import h9 from'react-content-loader';import co from'lodash.clonedeep';import {scaleOrdinal,schemeCategory10,forceSimulation,forceLink,forceManyBody,forceX,forceY,forceCenter,forceCollide}from'd3';import {renderAsync}from'docx-preview';import Bo from'lodash.throttle';import No from'@uiw/react-codemirror';import {vscodeDark,vscodeLight}from'@uiw/codemirror-theme-vscode';import {javascript}from'@codemirror/lang-javascript';import {html}from'@codemirror/lang-html';import {css as css$1}from'@codemirror/lang-css';import {python}from'@codemirror/lang-python';import {java}from'@codemirror/lang-java';import {cpp}from'@codemirror/lang-cpp';import {php}from'@codemirror/lang-php';import {rust}from'@codemirror/lang-rust';import {xml}from'@codemirror/lang-xml';import {yaml}from'@codemirror/lang-yaml';import {markdown}from'@codemirror/lang-markdown';import {sql}from'@codemirror/lang-sql';import Ko from'react-markdown';import Jo from'remark-gfm';import {TableVirtuoso,Virtuoso}from'react-virtuoso';import C5 from'papaparse';import pn from'chardet';import {darkStyles,defaultStyles,JsonView,allExpanded}from'react-json-view-lite';import'react-json-view-lite/dist/index.css';import ca from'copy-to-clipboard';import {parse,isValid,getYear,format,getMonth,startOfWeek,startOfMonth,endOfMonth,getDay,previousSunday,nextSaturday,differenceInDays}from'date-fns';var v5=a((e,t)=>{if(!t||typeof t!="string")return;if(!(t.includes(".")||e.colors.hasOwnProperty(t)))return t;let n=t.split(".");if(n.length===1)return e.colors[n[0]];if(n.length===2){let[i,a]=n,c=e.colors[i];if(c&&typeof c=="object")return c[a]}},"resolveThemeColor"),I=a((e,t=16)=>{let r=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(r)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(r/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),N6=a((e,t=16)=>{let r=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(r)?0:r*t},"remToPx"),L4={contextMenu:["padding"],baseSize:true},Q1=a((e,t=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let r=typeof e=="string"?parseFloat(e):e;return isNaN(r)?`${e}`:`${(r/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),W2=a((e,t=14,r)=>{let n={};return Object.entries(e).forEach(([i,a])=>{a!==null&&typeof a=="object"&&!Array.isArray(a)?n[i]=W2(a,t,i):typeof a=="string"&&/^\d+(\.\d+)?px$/.test(a.trim())||typeof a=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(c=>i.toLowerCase().includes(c.toLowerCase()))&&!(r&&Array.isArray(L4[r])&&L4[r].includes(i))&&!L4[i]?n[i]=I(a,t):n[i]=a;}),n},"convertPaletteToRem"),C2=a((e,t,r,n)=>e.button[t][r][n],"getButtonStyles"),m2=a((e,t)=>e.button.sizes[t],"getButtonSizeStyles"),Ba=a((e,t,r)=>e.input[t][r],"getInputStyles"),Ra=a((e,t="body")=>e.typography.variants[t]||e.typography.variants.body,"getTypographyStyles"),za=a((e,t="m")=>`@media (min-width: ${e.breakpoints[t]}px)`,"getBreakpoint"),F2=a((e,t)=>{try{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return `rgba(${r}, ${n}, ${i}, ${t})`}catch{return e}},"hexToRgba");var w5={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},E2={xs:320,s:576,m:768,l:992,xl:1200},y5={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var G6={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",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:y5,breakpoints:E2,zIndex:w5,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:"#E06060",text:"#FFFFFF",border:" #E06060",boxShadow:"none"},active:{background:"#A82E2E",text:"#FFFFFF",border:" #A82E2E",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:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",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:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",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:"#E06060",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#A82E2E",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:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:242,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 10px 40px -4px rgba(0, 0, 0, 0.06), 0px 2px 8px -2px rgba(0, 0, 0, 0.04)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#F3F4F6",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},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:"#E6E7EB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},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.5)"},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}},O6=W2(G6,G6.baseSize);var _6={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",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:y5,breakpoints:E2,zIndex:w5,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:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#0F1317",border:"#1E2226",width:242,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 10px 40px -4px rgba(0, 0, 0, 0.5), 0px 2px 8px -2px rgba(0, 0, 0, 0.3)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},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:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},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.5)"},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}},W6=W2(_6,_6.baseSize);var P4=a(e=>{if(typeof window<"u"){let r=window.innerWidth;for(let[n,i]of Object.entries(e))if(r<i)return n}let t=Object.keys(e);return t[t.length-1]},"getBreakpoint"),j6=createContext(P4(E2)),X6=a(({children:e})=>{let t=useTheme(),[r,n]=useState(P4(t.breakpoints));return useEffect(()=>{if(typeof window>"u")return;let i=a(()=>{let a=P4(t.breakpoints);a!==r&&n(a);},"handleResize");return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i);}},[r,t.breakpoints]),jsx(j6.Provider,{value:r,children:e})},"BreakpointProvider"),Y6=a(()=>{let e=useContext(j6),t=useTheme(),r=useMemo(()=>Object.keys(t.breakpoints),[t.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:r}},"useBreakpoint");var q6=createGlobalStyle(({theme:e})=>`
|
|
1
|
+
import {a,c,b}from'./chunk-EGCG27KL.mjs';import z2,{useTheme,createGlobalStyle,StyleSheetManager,ThemeProvider,css,styled,keyframes}from'styled-components';export{ServerStyleSheet,StyleSheetManager}from'styled-components';import we,{createContext,useState,useEffect,useContext,useMemo,forwardRef,useCallback,useRef,useLayoutEffect,Fragment as Fragment$1,useImperativeHandle,memo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Popover}from'react-tiny-popover';import {createPortal}from'react-dom';import h9 from'react-content-loader';import co from'lodash.clonedeep';import {scaleOrdinal,schemeCategory10,forceSimulation,forceLink,forceManyBody,forceX,forceY,forceCenter,forceCollide}from'd3';import {renderAsync}from'docx-preview';import Bo from'lodash.throttle';import No from'@uiw/react-codemirror';import {vscodeDark,vscodeLight}from'@uiw/codemirror-theme-vscode';import {javascript}from'@codemirror/lang-javascript';import {html}from'@codemirror/lang-html';import {css as css$1}from'@codemirror/lang-css';import {python}from'@codemirror/lang-python';import {java}from'@codemirror/lang-java';import {cpp}from'@codemirror/lang-cpp';import {php}from'@codemirror/lang-php';import {rust}from'@codemirror/lang-rust';import {xml}from'@codemirror/lang-xml';import {yaml}from'@codemirror/lang-yaml';import {markdown}from'@codemirror/lang-markdown';import {sql}from'@codemirror/lang-sql';import Ko from'react-markdown';import Jo from'remark-gfm';import {TableVirtuoso,Virtuoso}from'react-virtuoso';import C5 from'papaparse';import pn from'chardet';import {darkStyles,defaultStyles,JsonView,allExpanded}from'react-json-view-lite';import'react-json-view-lite/dist/index.css';import ca from'copy-to-clipboard';import {parse,isValid,getYear,format,getMonth,startOfWeek,startOfMonth,endOfMonth,getDay,previousSunday,nextSaturday,differenceInDays}from'date-fns';var v5=a((e,t)=>{if(!t||typeof t!="string")return;if(!(t.includes(".")||e.colors.hasOwnProperty(t)))return t;let n=t.split(".");if(n.length===1)return e.colors[n[0]];if(n.length===2){let[i,a]=n,c=e.colors[i];if(c&&typeof c=="object")return c[a]}},"resolveThemeColor"),I=a((e,t=16)=>{let r=typeof e=="string"?parseFloat(e.replace("px","")):e;return isNaN(r)?(console.warn(`Invalid pixel value: ${e}`),"0"):`${(r/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),N6=a((e,t=16)=>{let r=typeof e=="string"?parseFloat(e.replace("rem","")):e;return isNaN(r)?0:r*t},"remToPx"),L4={contextMenu:["padding"],baseSize:true},Q1=a((e,t=16)=>{if(typeof e=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(e.trim()))return e;let r=typeof e=="string"?parseFloat(e):e;return isNaN(r)?`${e}`:`${(r/t).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),W2=a((e,t=14,r)=>{let n={};return Object.entries(e).forEach(([i,a])=>{a!==null&&typeof a=="object"&&!Array.isArray(a)?n[i]=W2(a,t,i):typeof a=="string"&&/^\d+(\.\d+)?px$/.test(a.trim())||typeof a=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(c=>i.toLowerCase().includes(c.toLowerCase()))&&!(r&&Array.isArray(L4[r])&&L4[r].includes(i))&&!L4[i]?n[i]=I(a,t):n[i]=a;}),n},"convertPaletteToRem"),C2=a((e,t,r,n)=>e.button[t][r][n],"getButtonStyles"),m2=a((e,t)=>e.button.sizes[t],"getButtonSizeStyles"),Ba=a((e,t,r)=>e.input[t][r],"getInputStyles"),Ra=a((e,t="body")=>e.typography.variants[t]||e.typography.variants.body,"getTypographyStyles"),za=a((e,t="m")=>`@media (min-width: ${e.breakpoints[t]}px)`,"getBreakpoint"),F2=a((e,t)=>{try{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return `rgba(${r}, ${n}, ${i}, ${t})`}catch{return e}},"hexToRgba");var w5={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},E2={xs:320,s:576,m:768,l:992,xl:1200},y5={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var G6={mode:"light",baseSize:14,colors:{background:"#ffffff",backgroundBase:"#F7F8FC",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:y5,breakpoints:E2,zIndex:w5,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:"#E06060",text:"#FFFFFF",border:" #E06060",boxShadow:"none"},active:{background:"#A82E2E",text:"#FFFFFF",border:" #A82E2E",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:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",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:"#E6E7EB",boxShadow:"none"},hover:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},active:{background:"#E5ECFD",text:"#0042EC",border:"#E6E7EB",boxShadow:"none"},disabled:{background:"transparent",text:"#99989C",border:"#E6E7EB",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:"#E06060",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#A82E2E",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:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#FFFFFF",border:"#EBEBEB",width:242,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 10px 40px -4px rgba(0, 0, 0, 0.06), 0px 2px 8px -2px rgba(0, 0, 0, 0.04)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#101010",border:" none",boxShadow:"none"},hover:{background:"#F3F4F6",text:"#101010",border:" none",boxShadow:"none"},active:{background:"#E5ECFD",text:"#101010",border:" none",boxShadow:"none"},disabled:{background:"#FAFAFA",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},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:"#E6E7EB"},background:"#FFFFFF"},graph2D:{ring:{highlightFill:"rgba(255, 165, 0, 0.3)",selectionFill:"rgba(0, 66, 236, 0.3)"},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.5)"},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}},O6=W2(G6,G6.baseSize);var _6={mode:"dark",baseSize:14,colors:{background:"#0F1317",backgroundBase:"#000000",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:y5,breakpoints:E2,zIndex:w5,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:12,paddingBlock:8,borderRadius:8,borderWidth:1,gap:8},medium:{fontSize:16,iconSize:16,paddingInline:14,paddingBlock:10,borderRadius:10,borderWidth:1,gap:8}}},sidebar:{background:"#0F1317",border:"#1E2226",width:242,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 10px 40px -4px rgba(0, 0, 0, 0.5), 0px 2px 8px -2px rgba(0, 0, 0, 0.3)",padding:6,icon:{size:7}},select:{item:{default:{background:"transparent",text:"#FFFFFF",border:" none",boxShadow:"none"},hover:{background:"#1E2226",text:"#FFFFFF",border:" none",boxShadow:"none"},active:{background:"#10253A",text:"#FFFFFF",border:" none",boxShadow:"none"},disabled:{background:"#080A0C",text:"#99989C",border:" none",boxShadow:"none"}},paddingBlock:6,paddingInline:6,margin:2,padding:8},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:{highlightFill:"rgba(0, 90, 255, 0.3)",selectionFill:"rgba(0, 90, 255, 0.5)"},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.5)"},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}},W6=W2(_6,_6.baseSize);var P4=a(e=>{if(typeof window<"u"){let r=window.innerWidth;for(let[n,i]of Object.entries(e))if(r<i)return n}let t=Object.keys(e);return t[t.length-1]},"getBreakpoint"),j6=createContext(P4(E2)),X6=a(({children:e})=>{let t=useTheme(),[r,n]=useState(P4(t.breakpoints));return useEffect(()=>{if(typeof window>"u")return;let i=a(()=>{let a=P4(t.breakpoints);a!==r&&n(a);},"handleResize");return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i);}},[r,t.breakpoints]),jsx(j6.Provider,{value:r,children:e})},"BreakpointProvider"),Y6=a(()=>{let e=useContext(j6),t=useTheme(),r=useMemo(()=>Object.keys(t.breakpoints),[t.breakpoints]);return {currentBreakpoint:e,breakpointsOrder:r}},"useBreakpoint");var q6=createGlobalStyle(({theme:e})=>`
|
|
2
2
|
*, *::before, *::after {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
@@ -1455,7 +1455,7 @@ ${e?`
|
|
|
1455
1455
|
`:""}
|
|
1456
1456
|
|
|
1457
1457
|
min-width: 0;
|
|
1458
|
-
`);var Fo=[.1,.25,.5,.75,1,1.5,2,3,4,5],Eo=5,Io=.1,$o=120;function l5(e,t,r,n){return {x:e<r?(r-e)/2:0,y:t<n?(n-t)/2:0}}a(l5,"computePadding");var x0=a(({url:e,alt:t="image",naturalWidth:r,naturalHeight:n,zoomSteps:i=Fo,maxZoom:a$1=Eo,minZoom:c$1=Io,showMinimap:p=true,minimapWidth:C=$o,className:g,onZoomChange:h})=>{let[u,f]=useState("adaptive"),[v,s]=useState(1),[S,P]=useState(0),[k,w]=useState(false),H=useRef(false),[x,n1]=useState(false),[A,G]=useState(false),[N,Q]=useState({left:0,top:0}),a1=useRef(0),[f1,x1]=useState({width:0,height:0}),h1=useRef({width:0,height:0}),d1=useRef(null),R=useRef(null),t1=useRef({x:0,y:0,scrollLeft:0,scrollTop:0}),T=useRef(u),j=useRef(v),O=useRef(S),K=useRef(h);T.current=u,j.current=v,O.current=S,K.current=h;let o1=r||h1.current.width,D=n||h1.current.height,U=S===90||S===270,W=U?D:o1,p1=U?o1:D,H1=useMemo(()=>[...i].sort((E,z)=>E-z),[i]),I1=useCallback(()=>f1.width===0||W===0?1:Math.min(f1.width/W,f1.height/p1,1),[f1,W,p1]),V1=useCallback((E,z)=>{if(z==="in"){let i1=H1.find(s1=>s1>E+.001);return i1!==void 0?Math.min(i1,a$1):E}let q=H1.findLast(i1=>i1<E-.001);return q!==void 0?Math.max(q,c$1):E},[H1,a$1,c$1]),z1=useCallback(()=>T.current==="adaptive"?I1():j.current,[I1]),$1=useCallback(E=>{f("manual"),s(E),K.current?.(E,"manual");},[]),S1=useCallback(()=>{f("adaptive"),K.current?.(I1(),"adaptive");},[I1]),M1=useCallback(E=>{requestAnimationFrame(()=>{let z=R.current;if(!z)return;let q=z.getBoundingClientRect(),i1=W*E,s1=p1*E,y1=l5(i1,s1,q.width,q.height);z.scrollLeft=i1/2+y1.x-q.width/2,z.scrollTop=s1/2+y1.y-q.height/2;});},[W,p1]);useEffect(()=>{f("adaptive"),s(1),P(0),n1(false),G(false),h1.current={width:0,height:0};},[e]),useEffect(()=>{let E=R.current;if(!E)return;let z=new ResizeObserver(q=>{let i1=q[0];if(!i1)return;let{width:s1,height:y1}=i1.contentRect;x1(F1=>F1.width===s1&&F1.height===y1?F1:{width:s1,height:y1});});return z.observe(E),()=>z.disconnect()},[]),useEffect(()=>{let E=R.current;if(!E)return;let z=a(()=>{cancelAnimationFrame(a1.current),a1.current=requestAnimationFrame(()=>{let q=E.scrollLeft,i1=E.scrollTop;Q(s1=>s1.left===q&&s1.top===i1?s1:{left:q,top:i1});});},"handleScroll");return E.addEventListener("scroll",z,{passive:true}),()=>{E.removeEventListener("scroll",z),cancelAnimationFrame(a1.current);}},[]),useEffect(()=>{let E=R.current;if(!E||!x)return;let z=a(q=>{if(!(q.ctrlKey||q.metaKey))return;q.preventDefault();let i1=z1(),s1=q.deltaY>0?"out":"in",y1=V1(i1,s1),F1=I1();if(s1==="out"&&y1<=F1){S1();return}let T1=E.getBoundingClientRect(),j1=O.current,J1=j1===90||j1===270,f2=h1.current.width||1,h2=h1.current.height||1,c2=J1?h2:f2,V2=J1?f2:h2,S4,k4;if(T.current==="adaptive"){let d2=d1.current;if(!d2)return;let p2=d2.getBoundingClientRect();S4=(q.clientX-p2.left)/(p2.width/c2),k4=(q.clientY-p2.top)/(p2.height/V2);}else {let d2=c2*i1,p2=V2*i1,A6=l5(d2,p2,T1.width,T1.height);S4=(E.scrollLeft+q.clientX-T1.left-A6.x)/i1,k4=(E.scrollTop+q.clientY-T1.top-A6.y)/i1;}$1(y1),requestAnimationFrame(()=>{let d2=E.getBoundingClientRect(),p2=l5(c2*y1,V2*y1,d2.width,d2.height);E.scrollLeft=S4*y1+p2.x-(q.clientX-d2.left),E.scrollTop=k4*y1+p2.y-(q.clientY-d2.top);});},"handleWheel");return E.addEventListener("wheel",z,{passive:false}),()=>E.removeEventListener("wheel",z)},[x,z1,V1,I1,$1,S1]),useEffect(()=>{if(u!=="manual")return;let E=R.current;if(!E)return;let z=a(s1=>{s1.button===0&&(s1.preventDefault(),H.current=true,w(true),t1.current={x:s1.clientX,y:s1.clientY,scrollLeft:E.scrollLeft,scrollTop:E.scrollTop});},"handleMouseDown"),q=a(s1=>{if(!H.current)return;let{x:y1,y:F1,scrollLeft:T1,scrollTop:j1}=t1.current;E.scrollLeft=T1-(s1.clientX-y1),E.scrollTop=j1-(s1.clientY-F1);},"handleMouseMove"),i1=a(()=>{H.current=false,w(false);},"handleMouseUp");return E.addEventListener("mousedown",z),window.addEventListener("mousemove",q),window.addEventListener("mouseup",i1),()=>{E.removeEventListener("mousedown",z),window.removeEventListener("mousemove",q),window.removeEventListener("mouseup",i1);}},[u]);let L1=useCallback(()=>{u==="manual"&&S1();},[u,S1]),W1=useCallback(()=>{let E=z1(),z=V1(E,"in");z!==E&&($1(z),M1(z));},[z1,V1,$1,M1]),U1=useCallback(()=>{let E=z1(),z=V1(E,"out");if(z<=I1()){S1();return}$1(z),M1(z);},[z1,V1,I1,S1,$1,M1]),_2=useCallback(()=>{$1(1),M1(1);},[$1,M1]),B1=useCallback(()=>{P(E=>{let z=(E+90)%360;if(T.current==="manual"){let q=h1.current.width,i1=h1.current.height,s1=z===90||z===270,y1=s1?i1:q,F1=s1?q:i1,T1=j.current;requestAnimationFrame(()=>{let j1=R.current;if(!j1)return;let J1=j1.getBoundingClientRect(),f2=y1*T1,h2=F1*T1,c2=l5(f2,h2,J1.width,J1.height);j1.scrollLeft=f2/2+c2.x-J1.width/2,j1.scrollTop=h2/2+c2.y-J1.height/2;});}return z});},[]),Z1=useCallback(()=>{let E=d1.current;E&&(h1.current={width:E.naturalWidth,height:E.naturalHeight},n1(true),G(false));},[]),l=u==="adaptive"?I1():v,m=W*l,b$1=p1*l,y=f1.width,M=f1.height,F=u==="manual"?l5(m,b$1,y,M):{x:0,y:0},V=p&&u==="manual"&&(m>y||b$1>M),L=W>0?C/W:0,$=p1*L,B=y>0?y/v*L:0,_=M>0?M/v*L:0,C1=Math.max(0,N.left-F.x)/v*L,r1=Math.max(0,N.top-F.y)/v*L,v1=u==="adaptive"?"Fit":`${Math.round(v*100)}%`,u1=V1(l,"in")!==l,m1=u==="manual"||l>c$1,Z=u==="adaptive"?{width:W?m:void 0,height:p1?b$1:void 0,position:"relative",flexShrink:0}:{width:m,height:b$1,marginLeft:F.x,marginTop:F.y,flexShrink:0,position:"relative"},J={width:o1*l,height:D*l,maxWidth:"none",maxHeight:"none",position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${S}deg)`},X={cursor:u==="manual"?k?"grabbing":"grab":"default"},w1={width:o1*L,height:D*L,position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${S}deg)`};return jsxs("div",{className:`h-full w-full flex flex-col min-h-0 min-w-0 overflow-hidden ${g??""}`,children:[jsxs("div",{className:"flex-1 min-h-0 min-w-0 relative",children:[jsx("div",{ref:R,className:`h-full w-full ${u==="adaptive"?"flex items-center justify-center overflow-hidden":"overflow-auto"}`,style:X,onDoubleClick:L1,children:A?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx(E1,{color:"text.lighter",children:"Failed to load image"})}):jsx("div",{style:Z,children:jsx("img",{ref:d1,src:e,alt:t,draggable:false,className:"block select-none",style:J,onLoad:Z1,onError:()=>G(true)})})}),V&&jsxs("div",{className:"absolute bottom-3 right-3 rounded-lg overflow-hidden shadow-lg pointer-events-none",style:{width:C,height:$,backdropFilter:"blur(8px)",background:"rgba(255,255,255,0.75)"},children:[jsx("div",{style:w1,children:jsx("img",{src:e,alt:"",draggable:false,className:"block w-full h-full object-fill"})}),jsx("div",{className:"absolute border-2 border-blue-500 rounded-sm",style:{width:Math.min(B,C),height:Math.min(_,$),left:Math.max(0,Math.min(C1,C-B)),top:Math.max(0,Math.min(r1,$-_)),background:"rgba(59,130,246,0.1)"}})]})]}),x&&!A&&jsx(c,{zoom:{displayText:v1,onZoomIn:W1,onZoomOut:U1,onReset:S1,resetActive:u==="adaptive",resetLabel:"fit to screen",canZoomIn:u1,canZoomOut:m1},rightExtra:jsxs(Fragment,{children:[jsx(b,{icon:jsx(K4,{style:{width:16,height:16}}),label:"rotate right",onClick:B1}),jsx(b,{icon:jsx("span",{className:"text-[11px] font-semibold leading-none",children:"1:1"}),label:"original size",onClick:_2,active:u==="manual"&&v===1})]})})]})},"ImageDriver");var w0=a(({url:e})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full py-5.5 px-8.5",children:jsx("audio",{controls:true,src:e,className:"w-full"})}),"AudioDriver");var b6=a(({url:e,initialPage:t,seamless:r})=>{let[n,i]=useState(null),[a$1,c]=useState(false),[p,C]=useState(true),[g,h]=useState(null);return useEffect(()=>{c(true);},[]),useEffect(()=>{if(!a$1)return;a(async()=>{try{let f=await import('./PdfDriver-GLFIED7A.mjs');i(()=>f.PdfDriver),C(!1);}catch(f){console.error("Failed to load PDF driver:",f),h("Failed to load PDF viewer"),C(false);}},"loadPdfDriver")();},[a$1]),a$1?p?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})}):g||!n?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:g||"PDF viewer unavailable"})})}):jsx(n,{url:e,initialPage:t,seamless:r}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var To=new Set(["http:","https:","mailto:","tel:"]);function S0(e){e.querySelectorAll("a[href]").forEach(t=>{let r=t.getAttribute("href")??"";if(r.startsWith("#"))return;let n;try{n=new URL(r,document.baseURI).protocol;}catch{t.removeAttribute("href");return}To.has(n)||t.removeAttribute("href");});}a(S0,"sanitizeRenderedDocx");var M0=50,Ro=1e4,L0=a(({url:e,blob:t,labels:r={}})=>{let{loading:n="\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}=r,i=useRef(null),a$1=useRef(null),[c$1,p]=useState(null),[C,g]=useState(true),[h,u]=useState(1),f=useRef(false),[v,s]=useState({width:0,height:0}),S=useRef(0),P=a(()=>{f.current=true,u(H=>Math.min(H+.25,4));},"handleZoomIn"),k=a(()=>{f.current=true,u(H=>Math.max(H-.25,.25));},"handleZoomOut");useEffect(()=>{a(async()=>{if(a$1.current)try{g(!0),p(null);let x=t;if(!x&&e&&(x=await(await fetch(e)).blob()),!x){p({type:"render_error",originalMessage:"No source"}),g(!1);return}if(x.size/(1024*1024)>M0){p({type:"file_too_large"}),g(!1);return}a$1.current.innerHTML="";let A=renderAsync(x,a$1.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0,breakPages:!0,ignoreLastRenderedPageBreak:!1}).then(()=>{a$1.current&&S0(a$1.current);}),G=new Promise((Q,a1)=>setTimeout(()=>a1({isTimeout:!0}),Ro));await Promise.race([A,G]),await new Promise(Q=>requestAnimationFrame(Q));let N=a$1.current.querySelector(".docx-wrapper");if(N&&(S.current=N.offsetWidth,s({width:N.offsetWidth,height:N.offsetHeight})),i.current&&S.current>0){let Q=i.current.clientWidth,a1=Math.min(Q/S.current,1);u(a1);}g(!1);}catch(x){p(x?.isTimeout?{type:"timeout"}:{type:"render_error",originalMessage:x?.message??""}),g(false);}},"renderDocument")();},[e,t]),useEffect(()=>{if(!i.current)return;let H=Bo(n1=>{if(!(f.current||S.current===0))for(let A of n1){let G=A.contentRect.width,N=Math.min(G/S.current,1);u(N);}},150),x=new ResizeObserver(H);return x.observe(i.current),()=>{x.disconnect(),H.cancel();}},[]);let w=(()=>{if(!c$1)return null;switch(c$1.type){case "file_too_large":return r.errorFileTooLarge??`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${M0} \u041C\u0411)`;case "timeout":return r.errorTimeout??"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443";default:return (r.errorRender??c$1.originalMessage)||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"}})();return jsxs("div",{className:"h-full w-full flex flex-col px-0.5",children:[!!w&&!C&&jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(t2,{className:"mx-5",children:jsx(E1,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:w})})}),C&&jsx("div",{className:"flex items-center justify-center p-8",children:n}),jsx("div",{ref:i,className:`w-full flex-1 min-h-0 overflow-auto bg-neutral-400 dark:bg-neutral-800
|
|
1458
|
+
`);var Fo=[.1,.25,.5,.75,1,1.5,2,3,4,5],Eo=5,Io=.1,$o=120;function l5(e,t,r,n){return {x:e<r?(r-e)/2:0,y:t<n?(n-t)/2:0}}a(l5,"computePadding");var x0=a(({url:e,alt:t="image",naturalWidth:r,naturalHeight:n,zoomSteps:i=Fo,maxZoom:a$1=Eo,minZoom:c$1=Io,showMinimap:p=true,minimapWidth:C=$o,className:g,onZoomChange:h})=>{let[u,f]=useState("adaptive"),[v,s]=useState(1),[S,P]=useState(0),[k,w]=useState(false),H=useRef(false),[x,n1]=useState(false),[A,G]=useState(false),[N,Q]=useState({left:0,top:0}),a1=useRef(0),[f1,x1]=useState({width:0,height:0}),h1=useRef({width:0,height:0}),d1=useRef(null),R=useRef(null),t1=useRef({x:0,y:0,scrollLeft:0,scrollTop:0}),T=useRef(u),j=useRef(v),O=useRef(S),K=useRef(h);T.current=u,j.current=v,O.current=S,K.current=h;let o1=r||h1.current.width,D=n||h1.current.height,U=S===90||S===270,W=U?D:o1,p1=U?o1:D,H1=useMemo(()=>[...i].sort((E,z)=>E-z),[i]),I1=useCallback(()=>f1.width===0||W===0?1:Math.min(f1.width/W,f1.height/p1,1),[f1,W,p1]),V1=useCallback((E,z)=>{if(z==="in"){let i1=H1.find(s1=>s1>E+.001);return i1!==void 0?Math.min(i1,a$1):E}let q=H1.findLast(i1=>i1<E-.001);return q!==void 0?Math.max(q,c$1):E},[H1,a$1,c$1]),z1=useCallback(()=>T.current==="adaptive"?I1():j.current,[I1]),$1=useCallback(E=>{f("manual"),s(E),K.current?.(E,"manual");},[]),S1=useCallback(()=>{f("adaptive"),K.current?.(I1(),"adaptive");},[I1]),M1=useCallback(E=>{requestAnimationFrame(()=>{let z=R.current;if(!z)return;let q=z.getBoundingClientRect(),i1=W*E,s1=p1*E,y1=l5(i1,s1,q.width,q.height);z.scrollLeft=i1/2+y1.x-q.width/2,z.scrollTop=s1/2+y1.y-q.height/2;});},[W,p1]);useEffect(()=>{f("adaptive"),s(1),P(0),n1(false),G(false),h1.current={width:0,height:0};},[e]),useEffect(()=>{let E=R.current;if(!E)return;let z=new ResizeObserver(q=>{let i1=q[0];if(!i1)return;let{width:s1,height:y1}=i1.contentRect;x1(F1=>F1.width===s1&&F1.height===y1?F1:{width:s1,height:y1});});return z.observe(E),()=>z.disconnect()},[]),useEffect(()=>{let E=R.current;if(!E)return;let z=a(()=>{cancelAnimationFrame(a1.current),a1.current=requestAnimationFrame(()=>{let q=E.scrollLeft,i1=E.scrollTop;Q(s1=>s1.left===q&&s1.top===i1?s1:{left:q,top:i1});});},"handleScroll");return E.addEventListener("scroll",z,{passive:true}),()=>{E.removeEventListener("scroll",z),cancelAnimationFrame(a1.current);}},[]),useEffect(()=>{let E=R.current;if(!E||!x)return;let z=a(q=>{if(!(q.ctrlKey||q.metaKey))return;q.preventDefault();let i1=z1(),s1=q.deltaY>0?"out":"in",y1=V1(i1,s1),F1=I1();if(s1==="out"&&y1<=F1){S1();return}let T1=E.getBoundingClientRect(),j1=O.current,J1=j1===90||j1===270,f2=h1.current.width||1,h2=h1.current.height||1,c2=J1?h2:f2,V2=J1?f2:h2,S4,k4;if(T.current==="adaptive"){let d2=d1.current;if(!d2)return;let p2=d2.getBoundingClientRect();S4=(q.clientX-p2.left)/(p2.width/c2),k4=(q.clientY-p2.top)/(p2.height/V2);}else {let d2=c2*i1,p2=V2*i1,A6=l5(d2,p2,T1.width,T1.height);S4=(E.scrollLeft+q.clientX-T1.left-A6.x)/i1,k4=(E.scrollTop+q.clientY-T1.top-A6.y)/i1;}$1(y1),requestAnimationFrame(()=>{let d2=E.getBoundingClientRect(),p2=l5(c2*y1,V2*y1,d2.width,d2.height);E.scrollLeft=S4*y1+p2.x-(q.clientX-d2.left),E.scrollTop=k4*y1+p2.y-(q.clientY-d2.top);});},"handleWheel");return E.addEventListener("wheel",z,{passive:false}),()=>E.removeEventListener("wheel",z)},[x,z1,V1,I1,$1,S1]),useEffect(()=>{if(u!=="manual")return;let E=R.current;if(!E)return;let z=a(s1=>{s1.button===0&&(s1.preventDefault(),H.current=true,w(true),t1.current={x:s1.clientX,y:s1.clientY,scrollLeft:E.scrollLeft,scrollTop:E.scrollTop});},"handleMouseDown"),q=a(s1=>{if(!H.current)return;let{x:y1,y:F1,scrollLeft:T1,scrollTop:j1}=t1.current;E.scrollLeft=T1-(s1.clientX-y1),E.scrollTop=j1-(s1.clientY-F1);},"handleMouseMove"),i1=a(()=>{H.current=false,w(false);},"handleMouseUp");return E.addEventListener("mousedown",z),window.addEventListener("mousemove",q),window.addEventListener("mouseup",i1),()=>{E.removeEventListener("mousedown",z),window.removeEventListener("mousemove",q),window.removeEventListener("mouseup",i1);}},[u]);let L1=useCallback(()=>{u==="manual"&&S1();},[u,S1]),W1=useCallback(()=>{let E=z1(),z=V1(E,"in");z!==E&&($1(z),M1(z));},[z1,V1,$1,M1]),U1=useCallback(()=>{let E=z1(),z=V1(E,"out");if(z<=I1()){S1();return}$1(z),M1(z);},[z1,V1,I1,S1,$1,M1]),_2=useCallback(()=>{$1(1),M1(1);},[$1,M1]),B1=useCallback(()=>{P(E=>{let z=(E+90)%360;if(T.current==="manual"){let q=h1.current.width,i1=h1.current.height,s1=z===90||z===270,y1=s1?i1:q,F1=s1?q:i1,T1=j.current;requestAnimationFrame(()=>{let j1=R.current;if(!j1)return;let J1=j1.getBoundingClientRect(),f2=y1*T1,h2=F1*T1,c2=l5(f2,h2,J1.width,J1.height);j1.scrollLeft=f2/2+c2.x-J1.width/2,j1.scrollTop=h2/2+c2.y-J1.height/2;});}return z});},[]),Z1=useCallback(()=>{let E=d1.current;E&&(h1.current={width:E.naturalWidth,height:E.naturalHeight},n1(true),G(false));},[]),l=u==="adaptive"?I1():v,m=W*l,b$1=p1*l,y=f1.width,M=f1.height,F=u==="manual"?l5(m,b$1,y,M):{x:0,y:0},V=p&&u==="manual"&&(m>y||b$1>M),L=W>0?C/W:0,$=p1*L,B=y>0?y/v*L:0,_=M>0?M/v*L:0,C1=Math.max(0,N.left-F.x)/v*L,r1=Math.max(0,N.top-F.y)/v*L,v1=u==="adaptive"?"Fit":`${Math.round(v*100)}%`,u1=V1(l,"in")!==l,m1=u==="manual"||l>c$1,Z=u==="adaptive"?{width:W?m:void 0,height:p1?b$1:void 0,position:"relative",flexShrink:0}:{width:m,height:b$1,marginLeft:F.x,marginTop:F.y,flexShrink:0,position:"relative"},J={width:o1*l,height:D*l,maxWidth:"none",maxHeight:"none",position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${S}deg)`},X={cursor:u==="manual"?k?"grabbing":"grab":"default"},w1={width:o1*L,height:D*L,position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) rotate(${S}deg)`};return jsxs("div",{className:`h-full w-full flex flex-col min-h-0 min-w-0 overflow-hidden ${g??""}`,children:[jsxs("div",{className:"flex-1 min-h-0 min-w-0 relative",children:[jsx("div",{ref:R,className:`h-full w-full ${u==="adaptive"?"flex items-center justify-center overflow-hidden":"overflow-auto"}`,style:X,onDoubleClick:L1,children:A?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx(E1,{color:"text.lighter",children:"Failed to load image"})}):jsx("div",{style:Z,children:jsx("img",{ref:d1,src:e,alt:t,draggable:false,className:"block select-none",style:J,onLoad:Z1,onError:()=>G(true)})})}),V&&jsxs("div",{className:"absolute bottom-3 right-3 rounded-lg overflow-hidden shadow-lg pointer-events-none",style:{width:C,height:$,backdropFilter:"blur(8px)",background:"rgba(255,255,255,0.75)"},children:[jsx("div",{style:w1,children:jsx("img",{src:e,alt:"",draggable:false,className:"block w-full h-full object-fill"})}),jsx("div",{className:"absolute border-2 border-blue-500 rounded-sm",style:{width:Math.min(B,C),height:Math.min(_,$),left:Math.max(0,Math.min(C1,C-B)),top:Math.max(0,Math.min(r1,$-_)),background:"rgba(59,130,246,0.1)"}})]})]}),x&&!A&&jsx(c,{zoom:{displayText:v1,onZoomIn:W1,onZoomOut:U1,onReset:S1,resetActive:u==="adaptive",resetLabel:"fit to screen",canZoomIn:u1,canZoomOut:m1},rightExtra:jsxs(Fragment,{children:[jsx(b,{icon:jsx(K4,{style:{width:15,height:15}}),label:"rotate right",onClick:B1}),jsx(b,{icon:jsx("span",{className:"text-[11px] font-semibold leading-none",children:"1:1"}),label:"original size",onClick:_2,active:u==="manual"&&v===1})]})})]})},"ImageDriver");var w0=a(({url:e})=>jsx("div",{className:"flex flex-col justify-center items-center w-full h-full py-5.5 px-8.5",children:jsx("audio",{controls:true,src:e,className:"w-full"})}),"AudioDriver");var b6=a(({url:e,initialPage:t,seamless:r})=>{let[n,i]=useState(null),[a$1,c]=useState(false),[p,C]=useState(true),[g,h]=useState(null);return useEffect(()=>{c(true);},[]),useEffect(()=>{if(!a$1)return;a(async()=>{try{let f=await import('./PdfDriver-AVC3OSKE.mjs');i(()=>f.PdfDriver),C(!1);}catch(f){console.error("Failed to load PDF driver:",f),h("Failed to load PDF viewer"),C(false);}},"loadPdfDriver")();},[a$1]),a$1?p?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})}):g||!n?jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:g||"PDF viewer unavailable"})})}):jsx(n,{url:e,initialPage:t,seamless:r}):jsx("div",{className:"flex items-center justify-center h-full w-full",children:jsx("div",{className:"text-gray-500 dark:text-gray-400",children:"Loading PDF viewer..."})})},"PdfDriverWrapper");var To=new Set(["http:","https:","mailto:","tel:"]);function S0(e){e.querySelectorAll("a[href]").forEach(t=>{let r=t.getAttribute("href")??"";if(r.startsWith("#"))return;let n;try{n=new URL(r,document.baseURI).protocol;}catch{t.removeAttribute("href");return}To.has(n)||t.removeAttribute("href");});}a(S0,"sanitizeRenderedDocx");var M0=50,Ro=1e4,L0=a(({url:e,blob:t,labels:r={}})=>{let{loading:n="\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F..."}=r,i=useRef(null),a$1=useRef(null),[c$1,p]=useState(null),[C,g]=useState(true),[h,u]=useState(1),f=useRef(false),[v,s]=useState({width:0,height:0}),S=useRef(0),P=a(()=>{f.current=true,u(H=>Math.min(H+.25,4));},"handleZoomIn"),k=a(()=>{f.current=true,u(H=>Math.max(H-.25,.25));},"handleZoomOut");useEffect(()=>{a(async()=>{if(a$1.current)try{g(!0),p(null);let x=t;if(!x&&e&&(x=await(await fetch(e)).blob()),!x){p({type:"render_error",originalMessage:"No source"}),g(!1);return}if(x.size/(1024*1024)>M0){p({type:"file_too_large"}),g(!1);return}a$1.current.innerHTML="";let A=renderAsync(x,a$1.current,void 0,{debug:!0,experimental:!0,hideWrapperOnPrint:!0,breakPages:!0,ignoreLastRenderedPageBreak:!1}).then(()=>{a$1.current&&S0(a$1.current);}),G=new Promise((Q,a1)=>setTimeout(()=>a1({isTimeout:!0}),Ro));await Promise.race([A,G]),await new Promise(Q=>requestAnimationFrame(Q));let N=a$1.current.querySelector(".docx-wrapper");if(N&&(S.current=N.offsetWidth,s({width:N.offsetWidth,height:N.offsetHeight})),i.current&&S.current>0){let Q=i.current.clientWidth,a1=Math.min(Q/S.current,1);u(a1);}g(!1);}catch(x){p(x?.isTimeout?{type:"timeout"}:{type:"render_error",originalMessage:x?.message??""}),g(false);}},"renderDocument")();},[e,t]),useEffect(()=>{if(!i.current)return;let H=Bo(n1=>{if(!(f.current||S.current===0))for(let A of n1){let G=A.contentRect.width,N=Math.min(G/S.current,1);u(N);}},150),x=new ResizeObserver(H);return x.observe(i.current),()=>{x.disconnect(),H.cancel();}},[]);let w=(()=>{if(!c$1)return null;switch(c$1.type){case "file_too_large":return r.errorFileTooLarge??`\u0424\u0430\u0439\u043B \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0438\u0439 (> ${M0} \u041C\u0411)`;case "timeout":return r.errorTimeout??"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 DOCX \u0437\u0430\u0439\u043D\u044F\u0432 \u043D\u0430\u0434\u0442\u043E \u0431\u0430\u0433\u0430\u0442\u043E \u0447\u0430\u0441\u0443";default:return (r.errorRender??c$1.originalMessage)||"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 DOCX \u0444\u0430\u0439\u043B"}})();return jsxs("div",{className:"h-full w-full flex flex-col px-0.5",children:[!!w&&!C&&jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsx(t2,{className:"mx-5",children:jsx(E1,{variant:"h2",color:"text.light",weight:500,className:"text-center",children:w})})}),C&&jsx("div",{className:"flex items-center justify-center p-8",children:n}),jsx("div",{ref:i,className:`w-full flex-1 min-h-0 overflow-auto bg-neutral-400 dark:bg-neutral-800
|
|
1459
1459
|
[&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar]:h-2.5 [&::-webkit-scrollbar-thumb]:rounded-full
|
|
1460
1460
|
[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500
|
|
1461
1461
|
[&::-webkit-scrollbar-track]:bg-neutral-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700
|