@cyber-harbour/ui 2.1.18 → 2.1.20

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.
@@ -0,0 +1,2 @@
1
+ import {a,pb,Ya,z,la,ka,Pa,ma}from'./chunk-OXKOV5KN.mjs';import {useState,useRef,useCallback,useMemo,useEffect}from'react';import M from'lodash.debounce';import {pdfjs,Document,Page}from'react-pdf';import'react-pdf/dist/Page/AnnotationLayer.css';import'react-pdf/dist/Page/TextLayer.css';import {Virtuoso}from'react-virtuoso';import {jsx,jsxs}from'react/jsx-runtime';var f="/pdfjs";typeof window<"u"&&typeof document<"u"&&(pdfjs.GlobalWorkerOptions.workerSrc=`${f}/pdf.worker.min.js`);var ae=1e3,ie=400,le=150,ce=70,de=1.414,I=400,ye=a(({url:O})=>{let[s,k]=useState(0),[i,b]=useState(1),[H,T]=useState(true),[E,B]=useState(null),[v,F]=useState(I),[$,Z]=useState(I),[l,R]=useState(1),[x,G]=useState(I),[C,V]=useState(de),c=useRef(null),S=useRef(null),y=useRef(false),d=useRef(null),N=useRef(false),p=useCallback((e,r=true)=>{e<1||e>s||(y.current=true,S.current?.scrollToIndex({index:e-1,align:"start",behavior:r?"smooth":"auto"}),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{N.current&&(y.current=false);},ae));},[s]),w=useMemo(()=>M((e,r=false)=>{p(e,r);},ie),[p]),W=useCallback(()=>{R(e=>Math.min(e+.25,4));},[]),Y=useCallback(()=>{R(e=>Math.max(e-.25,.25));},[]);useEffect(()=>{if(!c.current)return;let e=M(()=>{c.current&&(F(c.current.offsetWidth-ce),Z(c.current.clientHeight));},le);e();let r=new ResizeObserver(e);return r.observe(c.current),()=>{r.disconnect(),e.cancel();}},[]);let J=useMemo(()=>({cMapPacked:true,cMapUrl:`${f}/cmaps/`,standardFontDataUrl:`${f}/standard_fonts/`,wasmUrl:`${f}/wasm/`,iccUrl:`${f}/icc/`}),[]),q=useCallback(({numPages:e})=>{k(e),T(false);},[]),K=useCallback(e=>{B(`Failed to load PDF: ${e.message}`),T(false);},[]),g=useCallback(e=>{let r=i+e;b(r),p(r);},[i,p]),Q=useCallback(()=>{g(-1);},[g]),X=useCallback(()=>{g(1);},[g]),ee=useCallback(e=>{if(y.current)return;let r=e.startIndex+1;r!==i&&b(r);},[i]);return useEffect(()=>(N.current=true,()=>{N.current=false,w.cancel(),d.current&&clearTimeout(d.current);}),[w]),useEffect(()=>{G(v*l*C);},[v,l,C]),E?jsx("div",{className:"flex items-center justify-center h-full w-full px-8.5",children:jsx("div",{className:"text-red-500 text-center",children:jsx("p",{children:E})})}):jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[H&&jsx("div",{className:"flex items-center justify-center h-full px-8.5",children:jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),s>0&&jsxs("div",{className:"flex items-center justify-center md:justify-between flex-wrap gap-3 px-8.5 py-3",children:[jsxs(pb,{py:4,px:8,className:"flex items-center justify-start gap-1 rounded-[5px]!",children:[jsx(Ya,{color:"text.lighter",style:{fontSize:10},children:"Page:"}),jsxs("span",{className:"flex items-center gap-2 text-[12px]",children:[jsx("input",{type:"number",min:1,max:s,value:i,onChange:e=>{let r=parseInt(e.target.value,10);r>=1&&r<=s&&(b(r),w(r,false));},className:"w-15 px-1 py-1 text-end text-[12px]"}),"/ ",s]}),jsxs("div",{className:"flex flex-col gap-0.25 pl-1",children:[jsx(z,{variant:"empty","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:i<=1,onClick:Q,icon:jsx(la,{style:{width:8,height:8}})}),jsx(z,{variant:"empty","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:i>=s,onClick:X,icon:jsx(ka,{style:{width:8,height:8}})})]})]}),jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsx(z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsx(Pa,{style:{width:20,height:20}}),onClick:Y,className:"bg-white! hover:bg-blue-50!",disabled:l<=.25,p:7}),jsxs(pb,{py:8,px:8,className:"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!",children:[jsx(Ya,{color:"text.lighter",style:{fontSize:10},children:"Scale:"}),jsxs(Ya,{children:[l*100,"%"]})]}),jsx(z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsx(ma,{style:{width:14,height:14}}),onClick:W,className:"bg-white! hover:bg-blue-50!",disabled:l>=4,p:10})]})]}),jsx("div",{ref:c,className:"flex-1 overflow-hidden min-h-0",children:jsx(Document,{options:J,file:O,onLoadSuccess:q,onLoadError:K,loading:jsx("div",{className:"flex items-center justify-center",style:{height:x},children:jsx("div",{className:"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent"})}),children:jsx(Virtuoso,{ref:S,style:{height:$||"calc(100dvh - 190px)",width:"100%",scrollbarGutter:"stable both-edges"},totalCount:s,rangeChanged:ee,defaultItemHeight:x,itemContent:e=>jsx("div",{className:"mx-auto w-fit mb-4 border border-1 border-gray-100",children:jsx(Page,{pageNumber:e+1,renderTextLayer:true,renderAnnotationLayer:true,width:v*l,onLoadSuccess:r=>{if(e===0){let te=r.height/r.width;V(te);}},loading:jsx("div",{className:"flex items-center justify-center",style:{height:x},children:jsx("div",{className:"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent"})}),className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})})})]})},"PdfDriver");export{ye as PdfDriver};//# sourceMappingURL=PdfDriver-4DI6FGGQ.mjs.map
2
+ //# sourceMappingURL=PdfDriver-4DI6FGGQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","SCROLL_ANIMATION_DURATION","INPUT_DEBOUNCE_DELAY","RESIZE_DEBOUNCE_DELAY","CONTAINER_PADDING","DEFAULT_RATIO_A4","DEFAULT_MIN_SIZE","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","height","setHeight","scale","setScale","defaultPageHeight","setDefaultPageHeight","pageAspectRatio","setPageAspectRatio","containerRef","useRef","virtuosoRef","isUserScrollingRef","scrollTimeoutRef","isMountedRef","scrollToPage","useCallback","page","smooth","debouncedScroll","useMemo","debounce","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","observer","options","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","newPage","previousPage","nextPage","handleRangeChanged","range","visiblePage","jsx","jsxs","Box","Typography","Button","ChevronUpIcon","ChevronDownIcon","MinusIcon","PlusIcon","Document","Virtuoso","index","Page","ratio"],"mappings":"+WAQA,IAAMA,CAAAA,CAAW,QAGb,CAAA,OAAO,OAAW,GAAe,EAAA,OAAO,QAAa,CAAA,GAAA,GACvDC,KAAM,CAAA,mBAAA,CAAoB,UAAY,CAAGD,EAAAA,CAAQ,CAMnD,kBAAA,CAAA,CAAA,CAAA,IAAME,EAA4B,CAAA,GAAA,CAC5BC,GAAuB,GACvBC,CAAAA,EAAAA,CAAwB,GACxBC,CAAAA,EAAAA,CAAoB,EACpBC,CAAAA,EAAAA,CAAmB,MACnBC,CAAmB,CAAA,GAAA,CAEZC,EAAsCC,CAAAA,CAAAA,CAAA,CAAC,CAAE,IAAAC,CAAI,CAAA,GAAM,CAC9D,GAAM,CAACC,CAAAA,CAAUC,CAAW,CAAIC,CAAAA,QAAAA,CAAiB,CAAC,CAAA,CAC5C,CAACC,CAAAA,CAAYC,CAAa,CAAIF,CAAAA,QAAAA,CAAiB,CAAC,CAAA,CAChD,CAACG,CAAAA,CAASC,CAAU,CAAIJ,CAAAA,QAAAA,CAAkB,IAAI,CAAA,CAC9C,CAACK,CAAAA,CAAOC,CAAQ,CAAIN,CAAAA,QAAAA,CAAwB,IAAI,CAAA,CAChD,CAACO,CAAAA,CAAOC,CAAQ,CAAIR,CAAAA,QAAAA,CAAiBN,CAAgB,CAAA,CACrD,CAACe,CAAAA,CAAQC,CA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Callback, useEffect, useMemo, useRef, useState } from 'react';\nimport debounce from 'lodash.debounce';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Virtuoso, VirtuosoHandle } from 'react-virtuoso';\nimport { Box, Button, ChevronDownIcon, ChevronUpIcon, MinusIcon, PlusIcon, Typography } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\nconst SCROLL_ANIMATION_DURATION = 1000;\nconst INPUT_DEBOUNCE_DELAY = 400;\nconst RESIZE_DEBOUNCE_DELAY = 150;\nconst CONTAINER_PADDING = 70;\nconst DEFAULT_RATIO_A4 = 1.414;\nconst DEFAULT_MIN_SIZE = 400;\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(DEFAULT_MIN_SIZE);\n const [height, setHeight] = useState<number>(DEFAULT_MIN_SIZE);\n const [scale, setScale] = useState(1);\n const [defaultPageHeight, setDefaultPageHeight] = useState(DEFAULT_MIN_SIZE);\n const [pageAspectRatio, setPageAspectRatio] = useState(DEFAULT_RATIO_A4);\n\n const containerRef = useRef<HTMLDivElement>(null);\n const virtuosoRef = useRef<VirtuosoHandle>(null);\n const isUserScrollingRef = useRef<boolean>(false);\n const scrollTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const isMountedRef = useRef(false);\n\n const scrollToPage = useCallback(\n (page: number, smooth = true) => {\n if (page < 1 || page > numPages) return;\n\n isUserScrollingRef.current = true;\n virtuosoRef.current?.scrollToIndex({\n index: page - 1,\n align: 'start',\n behavior: smooth ? 'smooth' : 'auto',\n });\n\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n\n scrollTimeoutRef.current = setTimeout(() => {\n if (isMountedRef.current) isUserScrollingRef.current = false;\n }, SCROLL_ANIMATION_DURATION);\n },\n [numPages]\n );\n\n const debouncedScroll = useMemo(() => {\n return debounce((page: number, smooth = false) => {\n scrollToPage(page, smooth);\n }, INPUT_DEBOUNCE_DELAY);\n }, [scrollToPage]);\n\n const handleZoomIn = useCallback(() => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n }, []);\n\n const handleZoomOut = useCallback(() => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n }, []);\n\n useEffect(() => {\n if (!containerRef.current) return;\n const updateSize = debounce(() => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - CONTAINER_PADDING);\n setHeight(containerRef.current.clientHeight);\n }\n }, RESIZE_DEBOUNCE_DELAY);\n updateSize();\n const observer = new ResizeObserver(updateSize);\n observer.observe(containerRef.current);\n return () => {\n observer.disconnect();\n updateSize.cancel();\n };\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n const onDocumentLoadSuccess = useCallback(({ numPages }: { numPages: number }): void => {\n setNumPages(numPages);\n setLoading(false);\n }, []);\n\n const onDocumentLoadError = useCallback((error: Error): void => {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }, []);\n\n const changePage = useCallback(\n (offset: number): void => {\n const newPage = pageNumber + offset;\n setPageNumber(newPage);\n scrollToPage(newPage);\n },\n [pageNumber, scrollToPage]\n );\n\n const previousPage = useCallback((): void => {\n changePage(-1);\n }, [changePage]);\n\n const nextPage = useCallback((): void => {\n changePage(1);\n }, [changePage]);\n\n const handleRangeChanged = useCallback(\n (range: { startIndex: number; endIndex: number }) => {\n if (isUserScrollingRef.current) {\n return;\n }\n const visiblePage = range.startIndex + 1;\n if (visiblePage !== pageNumber) {\n setPageNumber(visiblePage);\n }\n },\n [pageNumber]\n );\n\n useEffect(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n debouncedScroll.cancel();\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n };\n }, [debouncedScroll]);\n\n useEffect(() => {\n setDefaultPageHeight(width * scale * pageAspectRatio);\n }, [width, scale, pageAspectRatio]);\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full px-8.5\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full px-8.5\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-center md:justify-between flex-wrap gap-3 px-8.5 py-3\">\n <Box py={4} px={8} className=\"flex items-center justify-start gap-1 rounded-[5px]!\">\n <Typography color=\"text.lighter\" style={{ fontSize: 10 }}>\n Page:\n </Typography>\n <span className=\"flex items-center gap-2 text-[12px]\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n debouncedScroll(page, false);\n }\n }}\n className=\"w-15 px-1 py-1 text-end text-[12px]\"\n />\n / {numPages}\n </span>\n <div className=\"flex flex-col gap-0.25 pl-1\">\n <Button\n variant=\"empty\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n icon={<ChevronUpIcon style={{ width: 8, height: 8 }} />}\n />\n <Button\n variant=\"empty\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n icon={<ChevronDownIcon style={{ width: 8, height: 8 }} />}\n />\n </div>\n </Box>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"default\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n className=\"bg-white! hover:bg-blue-50!\"\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={8} px={8} className=\"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!\">\n <Typography color=\"text.lighter\" style={{ fontSize: 10 }}>\n Scale:\n </Typography>\n <Typography>{scale * 100}%</Typography>\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"default\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n className=\"bg-white! hover:bg-blue-50!\"\n disabled={scale >= 4}\n p={10}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 overflow-hidden min-h-0\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading={\n <div className=\"flex items-center justify-center\" style={{ height: defaultPageHeight }}>\n <div className=\"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent\" />\n </div>\n }\n >\n <Virtuoso\n ref={virtuosoRef}\n style={{ height: height || 'calc(100dvh - 190px)', width: '100%', scrollbarGutter: 'stable both-edges' }}\n totalCount={numPages}\n rangeChanged={handleRangeChanged}\n defaultItemHeight={defaultPageHeight}\n itemContent={(index) => (\n <div className=\"mx-auto w-fit mb-4 border border-1 border-gray-100\">\n <Page\n pageNumber={index + 1}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n onLoadSuccess={(page) => {\n if (index === 0) {\n const ratio = page.height / page.width;\n setPageAspectRatio(ratio);\n }\n }}\n loading={\n <div className=\"flex items-center justify-center\" style={{ height: defaultPageHeight }}>\n <div className=\"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent\" />\n </div>\n }\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </div>\n )}\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkM2BD4MK3_js=require('./chunk-M2BD4MK3.js'),react=require('react'),M=require('lodash.debounce'),reactPdf=require('react-pdf');require('react-pdf/dist/Page/AnnotationLayer.css'),require('react-pdf/dist/Page/TextLayer.css');var reactVirtuoso=require('react-virtuoso'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var M__default=/*#__PURE__*/_interopDefault(M);var f="/pdfjs";typeof window<"u"&&typeof document<"u"&&(reactPdf.pdfjs.GlobalWorkerOptions.workerSrc=`${f}/pdf.worker.min.js`);var ae=1e3,ie=400,le=150,ce=70,de=1.414,I=400,Ne=chunkM2BD4MK3_js.a(({url:O})=>{let[s,k]=react.useState(0),[i,b]=react.useState(1),[H,T]=react.useState(true),[E,B]=react.useState(null),[v,F]=react.useState(I),[$,Z]=react.useState(I),[l,R]=react.useState(1),[x,G]=react.useState(I),[C,V]=react.useState(de),c=react.useRef(null),S=react.useRef(null),y=react.useRef(false),d=react.useRef(null),N=react.useRef(false),p=react.useCallback((e,r=true)=>{e<1||e>s||(y.current=true,S.current?.scrollToIndex({index:e-1,align:"start",behavior:r?"smooth":"auto"}),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{N.current&&(y.current=false);},ae));},[s]),w=react.useMemo(()=>M__default.default((e,r=false)=>{p(e,r);},ie),[p]),W=react.useCallback(()=>{R(e=>Math.min(e+.25,4));},[]),Y=react.useCallback(()=>{R(e=>Math.max(e-.25,.25));},[]);react.useEffect(()=>{if(!c.current)return;let e=M__default.default(()=>{c.current&&(F(c.current.offsetWidth-ce),Z(c.current.clientHeight));},le);e();let r=new ResizeObserver(e);return r.observe(c.current),()=>{r.disconnect(),e.cancel();}},[]);let J=react.useMemo(()=>({cMapPacked:true,cMapUrl:`${f}/cmaps/`,standardFontDataUrl:`${f}/standard_fonts/`,wasmUrl:`${f}/wasm/`,iccUrl:`${f}/icc/`}),[]),q=react.useCallback(({numPages:e})=>{k(e),T(false);},[]),K=react.useCallback(e=>{B(`Failed to load PDF: ${e.message}`),T(false);},[]),g=react.useCallback(e=>{let r=i+e;b(r),p(r);},[i,p]),Q=react.useCallback(()=>{g(-1);},[g]),X=react.useCallback(()=>{g(1);},[g]),ee=react.useCallback(e=>{if(y.current)return;let r=e.startIndex+1;r!==i&&b(r);},[i]);return react.useEffect(()=>(N.current=true,()=>{N.current=false,w.cancel(),d.current&&clearTimeout(d.current);}),[w]),react.useEffect(()=>{G(v*l*C);},[v,l,C]),E?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full w-full px-8.5",children:jsxRuntime.jsx("div",{className:"text-red-500 text-center",children:jsxRuntime.jsx("p",{children:E})})}):jsxRuntime.jsxs("div",{className:"h-full w-full flex flex-col overflow-hidden pb-5",children:[H&&jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full px-8.5",children:jsxRuntime.jsx("div",{className:"text-gray-500",children:"Loading PDF..."})}),s>0&&jsxRuntime.jsxs("div",{className:"flex items-center justify-center md:justify-between flex-wrap gap-3 px-8.5 py-3",children:[jsxRuntime.jsxs(chunkM2BD4MK3_js.pb,{py:4,px:8,className:"flex items-center justify-start gap-1 rounded-[5px]!",children:[jsxRuntime.jsx(chunkM2BD4MK3_js.Ya,{color:"text.lighter",style:{fontSize:10},children:"Page:"}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2 text-[12px]",children:[jsxRuntime.jsx("input",{type:"number",min:1,max:s,value:i,onChange:e=>{let r=parseInt(e.target.value,10);r>=1&&r<=s&&(b(r),w(r,false));},className:"w-15 px-1 py-1 text-end text-[12px]"}),"/ ",s]}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.25 pl-1",children:[jsxRuntime.jsx(chunkM2BD4MK3_js.z,{variant:"empty","aria-label":"previous page",color:"secondary",size:"small",type:"button",disabled:i<=1,onClick:Q,icon:jsxRuntime.jsx(chunkM2BD4MK3_js.la,{style:{width:8,height:8}})}),jsxRuntime.jsx(chunkM2BD4MK3_js.z,{variant:"empty","aria-label":"next page",color:"secondary",size:"small",type:"button",disabled:i>=s,onClick:X,icon:jsxRuntime.jsx(chunkM2BD4MK3_js.ka,{style:{width:8,height:8}})})]})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-3",children:[jsxRuntime.jsx(chunkM2BD4MK3_js.z,{variant:"outlined","aria-label":"zoom-out",color:"default",size:"small",icon:jsxRuntime.jsx(chunkM2BD4MK3_js.Pa,{style:{width:20,height:20}}),onClick:Y,className:"bg-white! hover:bg-blue-50!",disabled:l<=.25,p:7}),jsxRuntime.jsxs(chunkM2BD4MK3_js.pb,{py:8,px:8,className:"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!",children:[jsxRuntime.jsx(chunkM2BD4MK3_js.Ya,{color:"text.lighter",style:{fontSize:10},children:"Scale:"}),jsxRuntime.jsxs(chunkM2BD4MK3_js.Ya,{children:[l*100,"%"]})]}),jsxRuntime.jsx(chunkM2BD4MK3_js.z,{variant:"outlined","aria-label":"zoom-in",size:"small",color:"default",icon:jsxRuntime.jsx(chunkM2BD4MK3_js.ma,{style:{width:14,height:14}}),onClick:W,className:"bg-white! hover:bg-blue-50!",disabled:l>=4,p:10})]})]}),jsxRuntime.jsx("div",{ref:c,className:"flex-1 overflow-hidden min-h-0",children:jsxRuntime.jsx(reactPdf.Document,{options:J,file:O,onLoadSuccess:q,onLoadError:K,loading:jsxRuntime.jsx("div",{className:"flex items-center justify-center",style:{height:x},children:jsxRuntime.jsx("div",{className:"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent"})}),children:jsxRuntime.jsx(reactVirtuoso.Virtuoso,{ref:S,style:{height:$||"calc(100dvh - 190px)",width:"100%",scrollbarGutter:"stable both-edges"},totalCount:s,rangeChanged:ee,defaultItemHeight:x,itemContent:e=>jsxRuntime.jsx("div",{className:"mx-auto w-fit mb-4 border border-1 border-gray-100",children:jsxRuntime.jsx(reactPdf.Page,{pageNumber:e+1,renderTextLayer:true,renderAnnotationLayer:true,width:v*l,onLoadSuccess:r=>{if(e===0){let te=r.height/r.width;V(te);}},loading:jsxRuntime.jsx("div",{className:"flex items-center justify-center",style:{height:x},children:jsxRuntime.jsx("div",{className:"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent"})}),className:"h-auto w-full transition-[width] duration-[600ms] ease-in-out"})})})})})]})},"PdfDriver");exports.PdfDriver=Ne;//# sourceMappingURL=PdfDriver-NQYULP2A.js.map
2
+ //# sourceMappingURL=PdfDriver-NQYULP2A.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/FileViewer/drivers/PdfDriver/PdfDriver.tsx"],"names":["BASE_DIR","pdfjs","SCROLL_ANIMATION_DURATION","INPUT_DEBOUNCE_DELAY","RESIZE_DEBOUNCE_DELAY","CONTAINER_PADDING","DEFAULT_RATIO_A4","DEFAULT_MIN_SIZE","PdfDriver","__name","url","numPages","setNumPages","useState","pageNumber","setPageNumber","loading","setLoading","error","setError","width","setWidth","height","setHeight","scale","setScale","defaultPageHeight","setDefaultPageHeight","pageAspectRatio","setPageAspectRatio","containerRef","useRef","virtuosoRef","isUserScrollingRef","scrollTimeoutRef","isMountedRef","scrollToPage","useCallback","page","smooth","debouncedScroll","useMemo","debounce","handleZoomIn","prev","handleZoomOut","useEffect","updateSize","observer","options","onDocumentLoadSuccess","onDocumentLoadError","changePage","offset","newPage","previousPage","nextPage","handleRangeChanged","range","visiblePage","jsx","jsxs","Box","Typography","Button","ChevronUpIcon","ChevronDownIcon","MinusIcon","PlusIcon","Document","Virtuoso","index","Page","ratio"],"mappings":"ubAQA,IAAMA,CAAAA,C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A,CACd,iBAAmB/B,CAAAA,CAAAA,CACnB,WAAc6C,CAAAA,CAAAA,EACZX,eAAC,KAAI,CAAA,CAAA,SAAA,CAAU,oDACb,CAAA,QAAA,CAAAA,cAACY,CAAAA,aAAAA,CAAA,CACC,UAAYD,CAAAA,CAAAA,CAAQ,CACpB,CAAA,eAAA,CAAiB,IACjB,CAAA,qBAAA,CAAuB,KACvB,KAAOnD,CAAAA,CAAAA,CAAQI,CACf,CAAA,aAAA,CAAgBc,CAAS,EAAA,CACvB,GAAIiC,CAAU,GAAA,CAAA,CAAG,CACf,IAAME,EAAQnC,CAAAA,CAAAA,CAAK,OAASA,CAAK,CAAA,KAAA,CACjCT,CAAmB4C,CAAAA,EAAK,EAC1B,CACF,EACA,OACEb,CAAAA,cAAAA,CAAC,KAAI,CAAA,CAAA,SAAA,CAAU,kCAAmC,CAAA,KAAA,CAAO,CAAE,MAAQlC,CAAAA,CAAkB,CACnF,CAAA,QAAA,CAAAkC,cAAC,CAAA,KAAA,CAAA,CAAI,UAAU,0FAA2F,CAAA,CAAA,CAC5G,CAEF,CAAA,SAAA,CAAU,+DACZ,CAAA,CAAA,CACF,EAEJ,CACF,CAAA,CAAA,CACF,CACF,CAAA,CAAA,CAEJ,CApRmD,CAAA,WAAA","file":"PdfDriver-NQYULP2A.js","sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport debounce from 'lodash.debounce';\nimport { Document, Page, pdfjs } from 'react-pdf';\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\nimport { Virtuoso, VirtuosoHandle } from 'react-virtuoso';\nimport { Box, Button, ChevronDownIcon, ChevronUpIcon, MinusIcon, PlusIcon, Typography } from '../../../Core';\n\nconst BASE_DIR = '/pdfjs';\n\n// Set up the worker - self-hosted configuration (client-side only)\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n pdfjs.GlobalWorkerOptions.workerSrc = `${BASE_DIR}/pdf.worker.min.js`;\n}\n\ninterface PdfDriverProps {\n url: string;\n}\nconst SCROLL_ANIMATION_DURATION = 1000;\nconst INPUT_DEBOUNCE_DELAY = 400;\nconst RESIZE_DEBOUNCE_DELAY = 150;\nconst CONTAINER_PADDING = 70;\nconst DEFAULT_RATIO_A4 = 1.414;\nconst DEFAULT_MIN_SIZE = 400;\n\nexport const PdfDriver: React.FC<PdfDriverProps> = ({ url }) => {\n const [numPages, setNumPages] = useState<number>(0);\n const [pageNumber, setPageNumber] = useState<number>(1);\n const [loading, setLoading] = useState<boolean>(true);\n const [error, setError] = useState<string | null>(null);\n const [width, setWidth] = useState<number>(DEFAULT_MIN_SIZE);\n const [height, setHeight] = useState<number>(DEFAULT_MIN_SIZE);\n const [scale, setScale] = useState(1);\n const [defaultPageHeight, setDefaultPageHeight] = useState(DEFAULT_MIN_SIZE);\n const [pageAspectRatio, setPageAspectRatio] = useState(DEFAULT_RATIO_A4);\n\n const containerRef = useRef<HTMLDivElement>(null);\n const virtuosoRef = useRef<VirtuosoHandle>(null);\n const isUserScrollingRef = useRef<boolean>(false);\n const scrollTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const isMountedRef = useRef(false);\n\n const scrollToPage = useCallback(\n (page: number, smooth = true) => {\n if (page < 1 || page > numPages) return;\n\n isUserScrollingRef.current = true;\n virtuosoRef.current?.scrollToIndex({\n index: page - 1,\n align: 'start',\n behavior: smooth ? 'smooth' : 'auto',\n });\n\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n\n scrollTimeoutRef.current = setTimeout(() => {\n if (isMountedRef.current) isUserScrollingRef.current = false;\n }, SCROLL_ANIMATION_DURATION);\n },\n [numPages]\n );\n\n const debouncedScroll = useMemo(() => {\n return debounce((page: number, smooth = false) => {\n scrollToPage(page, smooth);\n }, INPUT_DEBOUNCE_DELAY);\n }, [scrollToPage]);\n\n const handleZoomIn = useCallback(() => {\n setScale((prev) => Math.min(prev + 0.25, 4));\n }, []);\n\n const handleZoomOut = useCallback(() => {\n setScale((prev) => Math.max(prev - 0.25, 0.25));\n }, []);\n\n useEffect(() => {\n if (!containerRef.current) return;\n const updateSize = debounce(() => {\n if (containerRef.current) {\n setWidth(containerRef.current.offsetWidth - CONTAINER_PADDING);\n setHeight(containerRef.current.clientHeight);\n }\n }, RESIZE_DEBOUNCE_DELAY);\n updateSize();\n const observer = new ResizeObserver(updateSize);\n observer.observe(containerRef.current);\n return () => {\n observer.disconnect();\n updateSize.cancel();\n };\n }, []);\n\n const options = useMemo(\n () => ({\n cMapPacked: true,\n cMapUrl: `${BASE_DIR}/cmaps/`,\n standardFontDataUrl: `${BASE_DIR}/standard_fonts/`,\n wasmUrl: `${BASE_DIR}/wasm/`,\n iccUrl: `${BASE_DIR}/icc/`,\n }),\n []\n );\n\n const onDocumentLoadSuccess = useCallback(({ numPages }: { numPages: number }): void => {\n setNumPages(numPages);\n setLoading(false);\n }, []);\n\n const onDocumentLoadError = useCallback((error: Error): void => {\n setError(`Failed to load PDF: ${error.message}`);\n setLoading(false);\n }, []);\n\n const changePage = useCallback(\n (offset: number): void => {\n const newPage = pageNumber + offset;\n setPageNumber(newPage);\n scrollToPage(newPage);\n },\n [pageNumber, scrollToPage]\n );\n\n const previousPage = useCallback((): void => {\n changePage(-1);\n }, [changePage]);\n\n const nextPage = useCallback((): void => {\n changePage(1);\n }, [changePage]);\n\n const handleRangeChanged = useCallback(\n (range: { startIndex: number; endIndex: number }) => {\n if (isUserScrollingRef.current) {\n return;\n }\n const visiblePage = range.startIndex + 1;\n if (visiblePage !== pageNumber) {\n setPageNumber(visiblePage);\n }\n },\n [pageNumber]\n );\n\n useEffect(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n debouncedScroll.cancel();\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n };\n }, [debouncedScroll]);\n\n useEffect(() => {\n setDefaultPageHeight(width * scale * pageAspectRatio);\n }, [width, scale, pageAspectRatio]);\n\n if (error) {\n return (\n <div className=\"flex items-center justify-center h-full w-full px-8.5\">\n <div className=\"text-red-500 text-center\">\n <p>{error}</p>\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"h-full w-full flex flex-col overflow-hidden pb-5\">\n {loading && (\n <div className=\"flex items-center justify-center h-full px-8.5\">\n <div className=\"text-gray-500\">Loading PDF...</div>\n </div>\n )}\n {numPages > 0 && (\n <div className=\"flex items-center justify-center md:justify-between flex-wrap gap-3 px-8.5 py-3\">\n <Box py={4} px={8} className=\"flex items-center justify-start gap-1 rounded-[5px]!\">\n <Typography color=\"text.lighter\" style={{ fontSize: 10 }}>\n Page:\n </Typography>\n <span className=\"flex items-center gap-2 text-[12px]\">\n <input\n type=\"number\"\n min={1}\n max={numPages}\n value={pageNumber}\n onChange={(e) => {\n const page = parseInt(e.target.value, 10);\n if (page >= 1 && page <= numPages) {\n setPageNumber(page);\n debouncedScroll(page, false);\n }\n }}\n className=\"w-15 px-1 py-1 text-end text-[12px]\"\n />\n / {numPages}\n </span>\n <div className=\"flex flex-col gap-0.25 pl-1\">\n <Button\n variant=\"empty\"\n aria-label=\"previous page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber <= 1}\n onClick={previousPage}\n icon={<ChevronUpIcon style={{ width: 8, height: 8 }} />}\n />\n <Button\n variant=\"empty\"\n aria-label=\"next page\"\n color=\"secondary\"\n size=\"small\"\n type=\"button\"\n disabled={pageNumber >= numPages}\n onClick={nextPage}\n icon={<ChevronDownIcon style={{ width: 8, height: 8 }} />}\n />\n </div>\n </Box>\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-out\"\n color=\"default\"\n size=\"small\"\n icon={<MinusIcon style={{ width: 20, height: 20 }} />}\n onClick={handleZoomOut}\n className=\"bg-white! hover:bg-blue-50!\"\n disabled={scale <= 0.25}\n p={7}\n />\n <Box py={8} px={8} className=\"flex items-center justify-between gap-1.5 min-w-21 rounded-[5px]!\">\n <Typography color=\"text.lighter\" style={{ fontSize: 10 }}>\n Scale:\n </Typography>\n <Typography>{scale * 100}%</Typography>\n </Box>\n <Button\n variant=\"outlined\"\n aria-label=\"zoom-in\"\n size=\"small\"\n color=\"default\"\n icon={<PlusIcon style={{ width: 14, height: 14 }} />}\n onClick={handleZoomIn}\n className=\"bg-white! hover:bg-blue-50!\"\n disabled={scale >= 4}\n p={10}\n />\n </div>\n </div>\n )}\n <div ref={containerRef} className=\"flex-1 overflow-hidden min-h-0\">\n <Document\n options={options}\n file={url}\n onLoadSuccess={onDocumentLoadSuccess}\n onLoadError={onDocumentLoadError}\n loading={\n <div className=\"flex items-center justify-center\" style={{ height: defaultPageHeight }}>\n <div className=\"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent\" />\n </div>\n }\n >\n <Virtuoso\n ref={virtuosoRef}\n style={{ height: height || 'calc(100dvh - 190px)', width: '100%', scrollbarGutter: 'stable both-edges' }}\n totalCount={numPages}\n rangeChanged={handleRangeChanged}\n defaultItemHeight={defaultPageHeight}\n itemContent={(index) => (\n <div className=\"mx-auto w-fit mb-4 border border-1 border-gray-100\">\n <Page\n pageNumber={index + 1}\n renderTextLayer={true}\n renderAnnotationLayer={true}\n width={width * scale}\n onLoadSuccess={(page) => {\n if (index === 0) {\n const ratio = page.height / page.width;\n setPageAspectRatio(ratio);\n }\n }}\n loading={\n <div className=\"flex items-center justify-center\" style={{ height: defaultPageHeight }}>\n <div className=\"h-10 w-10 rounded-full border border-2 border-gray-200 animate-spin border-s-transparent\" />\n </div>\n }\n className=\"h-auto w-full transition-[width] duration-[600ms] ease-in-out\"\n />\n </div>\n )}\n />\n </Document>\n </div>\n </div>\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
- 'use strict';var I4=require('react'),t1=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),Z8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var I4__default=/*#__PURE__*/_interopDefault(I4);var t1__default=/*#__PURE__*/_interopDefault(t1);var Z8__default=/*#__PURE__*/_interopDefault(Z8);var w4=Object.defineProperty;var r=(o,e)=>w4(o,"name",{value:e,configurable:true});var S1=r((o,e)=>{if(!e||typeof e!="string")return;if(!(e.includes(".")||o.colors.hasOwnProperty(e)))return e;let i=e.split(".");if(i.length===1)return o.colors[i[0]];if(i.length===2){let[C,s]=i,l=o.colors[C];if(l&&typeof l=="object")return l[s]}},"resolveThemeColor"),p=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(t)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),K2=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(t)?0:t*e},"remToPx"),s2={contextMenu:["padding"],baseSize:true},I=r((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let t=typeof o=="string"?parseFloat(o):o;return isNaN(t)?`${o}`:`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),r1=r((o,e=14,t)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=r1(s,e,C):typeof s=="string"&&/^\d+(\.\d+)?px$/.test(s.trim())||typeof s=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(l=>C.toLowerCase().includes(l.toLowerCase()))&&!(t&&Array.isArray(s2[t])&&s2[t].includes(C))&&!s2[C]?i[C]=p(s,e):i[C]=s;}),i},"convertPaletteToRem"),z=r((o,e,t,i)=>o.button[e][t][i],"getButtonStyles"),D=r((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),q8=r((o,e,t)=>o.input[e][t],"getInputStyles"),J8=r((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),K8=r((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),w1=r((o,e)=>{try{let t=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${t}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var v1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},Y={xs:320,s:576,m:768,l:992,xl:1200},M1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var Q2={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:M1,breakpoints:Y,zIndex:v1,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:"#E17878",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#D85B5B",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:"#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 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:{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}},j2=r1(Q2,Q2.baseSize);var o5={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:M1,breakpoints:Y,zIndex:v1,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: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 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:{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}},e5=r1(o5,o5.baseSize);var l2=r(o=>{if(typeof window<"u"){let t=window.innerWidth;for(let[i,C]of Object.entries(o))if(t<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),r5=I4.createContext(l2(Y)),n5=r(({children:o})=>{let e=t1.useTheme(),[t,i]=I4.useState(l2(e.breakpoints));return I4.useEffect(()=>{if(typeof window>"u")return;let C=r(()=>{let s=l2(e.breakpoints);s!==t&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[t,e.breakpoints]),jsxRuntime.jsx(r5.Provider,{value:t,children:o})},"BreakpointProvider"),i5=r(()=>{let o=I4.useContext(r5),e=t1.useTheme(),t=I4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:t}},"useBreakpoint");var a5=t1.createGlobalStyle(({theme:o})=>`
1
+ 'use strict';var I4=require('react'),t1=require('styled-components'),jsxRuntime=require('react/jsx-runtime'),reactTinyPopover=require('react-tiny-popover'),reactDom=require('react-dom'),Z8=require('react-content-loader');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var I4__default=/*#__PURE__*/_interopDefault(I4);var t1__default=/*#__PURE__*/_interopDefault(t1);var Z8__default=/*#__PURE__*/_interopDefault(Z8);var w4=Object.defineProperty;var r=(o,e)=>w4(o,"name",{value:e,configurable:true});var S1=r((o,e)=>{if(!e||typeof e!="string")return;if(!(e.includes(".")||o.colors.hasOwnProperty(e)))return e;let i=e.split(".");if(i.length===1)return o.colors[i[0]];if(i.length===2){let[C,s]=i,l=o.colors[C];if(l&&typeof l=="object")return l[s]}},"resolveThemeColor"),p=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("px","")):o;return isNaN(t)?(console.warn(`Invalid pixel value: ${o}`),"0"):`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"pxToRem"),K2=r((o,e=16)=>{let t=typeof o=="string"?parseFloat(o.replace("rem","")):o;return isNaN(t)?0:t*e},"remToPx"),s2={contextMenu:["padding"],baseSize:true},I=r((o,e=16)=>{if(typeof o=="string"&&/(%|d?vh|d?vw|d?rem)$/.test(o.trim()))return o;let t=typeof o=="string"?parseFloat(o):o;return isNaN(t)?`${o}`:`${(t/e).toFixed(4).replace(/\.?0+$/,"")}rem`},"propToRem"),r1=r((o,e=14,t)=>{let i={};return Object.entries(o).forEach(([C,s])=>{s!==null&&typeof s=="object"&&!Array.isArray(s)?i[C]=r1(s,e,C):typeof s=="string"&&/^\d+(\.\d+)?px$/.test(s.trim())||typeof s=="number"&&["fontSize","width","height","padding","margin","gap","borderRadius","size"].some(l=>C.toLowerCase().includes(l.toLowerCase()))&&!(t&&Array.isArray(s2[t])&&s2[t].includes(C))&&!s2[C]?i[C]=p(s,e):i[C]=s;}),i},"convertPaletteToRem"),z=r((o,e,t,i)=>o.button[e][t][i],"getButtonStyles"),D=r((o,e)=>o.button.sizes[e],"getButtonSizeStyles"),q8=r((o,e,t)=>o.input[e][t],"getInputStyles"),J8=r((o,e="body")=>o.typography.variants[e]||o.typography.variants.body,"getTypographyStyles"),K8=r((o,e="m")=>`@media (min-width: ${o.breakpoints[e]}px)`,"getBreakpoint"),w1=r((o,e)=>{try{let t=parseInt(o.slice(1,3),16),i=parseInt(o.slice(3,5),16),C=parseInt(o.slice(5,7),16);return `rgba(${t}, ${i}, ${C}, ${e})`}catch{return o}},"hexToRgba");var v1={dropdown:1e3,sticky:1020,fixed:1030,backdrop:1040,modal:1050,popover:1060,tooltip:1070},Y={xs:320,s:576,m:768,l:992,xl:1200},M1={fontFamily:"var(--font-family)",lineHeight:1.49,variants:{h1:{fontSize:22},h2:{fontSize:16},h3:{fontSize:14},body:{fontSize:12}}};var Q2={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:M1,breakpoints:Y,zIndex:v1,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:"#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:"#E17878",border:"transparent",boxShadow:"none"},active:{background:"transparent",text:"#D85B5B",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:"#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 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:"#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}},j2=r1(Q2,Q2.baseSize);var o5={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:M1,breakpoints:Y,zIndex:v1,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: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 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:{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}},e5=r1(o5,o5.baseSize);var l2=r(o=>{if(typeof window<"u"){let t=window.innerWidth;for(let[i,C]of Object.entries(o))if(t<C)return i}let e=Object.keys(o);return e[e.length-1]},"getBreakpoint"),r5=I4.createContext(l2(Y)),n5=r(({children:o})=>{let e=t1.useTheme(),[t,i]=I4.useState(l2(e.breakpoints));return I4.useEffect(()=>{if(typeof window>"u")return;let C=r(()=>{let s=l2(e.breakpoints);s!==t&&i(s);},"handleResize");return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C);}},[t,e.breakpoints]),jsxRuntime.jsx(r5.Provider,{value:t,children:o})},"BreakpointProvider"),i5=r(()=>{let o=I4.useContext(r5),e=t1.useTheme(),t=I4.useMemo(()=>Object.keys(e.breakpoints),[e.breakpoints]);return {currentBreakpoint:o,breakpointsOrder:t}},"useBreakpoint");var a5=t1.createGlobalStyle(({theme:o})=>`
2
2
  *, *::before, *::after {
3
3
  box-sizing: border-box;
4
4
  }
@@ -1340,5 +1340,5 @@
1340
1340
  }
1341
1341
  }
1342
1342
  animation: move 1.5s linear infinite;
1343
- `;exports.$=E6;exports.$a=cs;exports.A=c2;exports.Aa=m3;exports.Ab=Ic;exports.B=O4;exports.Ba=S3;exports.Bb=_c;exports.C=_4;exports.Ca=v3;exports.Cb=jc;exports.D=g2;exports.Da=V3;exports.Db=f4;exports.E=Y4;exports.Ea=y3;exports.Eb=Sg;exports.F=q4;exports.Fa=F3;exports.Fb=wg;exports.G=b2;exports.Ga=k3;exports.Gb=vg;exports.H=u2;exports.Ha=P3;exports.Hb=Mg;exports.I=j4;exports.Ia=$3;exports.Ib=N8;exports.J=e6;exports.Ja=E3;exports.Jb=Xg;exports.K=r6;exports.Ka=B3;exports.Kb=jg;exports.L=i6;exports.La=T3;exports.M=a6;exports.Ma=R3;exports.N=s6;exports.Na=A3;exports.O=d6;exports.Oa=D3;exports.P=c6;exports.Pa=W3;exports.Q=b6;exports.Qa=E2;exports.R=h6;exports.Ra=I2;exports.S=f6;exports.Sa=U3;exports.T=x6;exports.Ta=Q;exports.U=S6;exports.Ua=uC;exports.V=v6;exports.Va=MC;exports.W=V6;exports.Wa=ZC;exports.X=L6;exports.Xa=GC;exports.Y=H6;exports.Ya=N5;exports.Z=k6;exports.Za=os;exports._=Z6;exports._a=as;exports.a=r;exports.aa=I6;exports.ab=xs;exports.b=S1;exports.ba=z6;exports.bb=Vs;exports.c=p;exports.ca=G6;exports.cb=Ps;exports.d=K2;exports.da=R6;exports.db=Ys;exports.e=I;exports.ea=D6;exports.eb=rl;exports.f=r1;exports.fa=W6;exports.fb=K5;exports.g=z;exports.ga=U6;exports.gb=wl;exports.h=D;exports.ha=X6;exports.hb=Q5;exports.i=q8;exports.ia=L2;exports.ib=Gl;exports.j=J8;exports.ja=q6;exports.jb=rd;exports.k=K8;exports.ka=y2;exports.kb=r4;exports.l=w1;exports.la=H2;exports.lb=a4;exports.m=Q2;exports.ma=J6;exports.mb=Td;exports.n=j2;exports.na=Q6;exports.nb=z7;exports.o=o5;exports.oa=d1;exports.ob=A7;exports.p=e5;exports.pa=o3;exports.pb=pp;exports.q=n5;exports.qa=p1;exports.qb=xp;exports.r=i5;exports.ra=t3;exports.rb=Vp;exports.s=Z9;exports.sa=n3;exports.sb=Bp;exports.t=V1;exports.ta=a3;exports.tb=Op;exports.u=f;exports.ua=C3;exports.ub=Qp;exports.v=G4;exports.va=l3;exports.vb=nc;exports.w=w;exports.wa=p3;exports.wb=pc;exports.x=v;exports.xa=g3;exports.xb=Sc;exports.y=_9;exports.ya=b3;exports.yb=$c;exports.z=W;exports.za=h3;exports.zb=Ec;//# sourceMappingURL=chunk-MSAZ7WH2.js.map
1344
- //# sourceMappingURL=chunk-MSAZ7WH2.js.map
1343
+ `;exports.$=E6;exports.$a=cs;exports.A=c2;exports.Aa=m3;exports.Ab=Ic;exports.B=O4;exports.Ba=S3;exports.Bb=_c;exports.C=_4;exports.Ca=v3;exports.Cb=jc;exports.D=g2;exports.Da=V3;exports.Db=f4;exports.E=Y4;exports.Ea=y3;exports.Eb=Sg;exports.F=q4;exports.Fa=F3;exports.Fb=wg;exports.G=b2;exports.Ga=k3;exports.Gb=vg;exports.H=u2;exports.Ha=P3;exports.Hb=Mg;exports.I=j4;exports.Ia=$3;exports.Ib=N8;exports.J=e6;exports.Ja=E3;exports.Jb=Xg;exports.K=r6;exports.Ka=B3;exports.Kb=jg;exports.L=i6;exports.La=T3;exports.M=a6;exports.Ma=R3;exports.N=s6;exports.Na=A3;exports.O=d6;exports.Oa=D3;exports.P=c6;exports.Pa=W3;exports.Q=b6;exports.Qa=E2;exports.R=h6;exports.Ra=I2;exports.S=f6;exports.Sa=U3;exports.T=x6;exports.Ta=Q;exports.U=S6;exports.Ua=uC;exports.V=v6;exports.Va=MC;exports.W=V6;exports.Wa=ZC;exports.X=L6;exports.Xa=GC;exports.Y=H6;exports.Ya=N5;exports.Z=k6;exports.Za=os;exports._=Z6;exports._a=as;exports.a=r;exports.aa=I6;exports.ab=xs;exports.b=S1;exports.ba=z6;exports.bb=Vs;exports.c=p;exports.ca=G6;exports.cb=Ps;exports.d=K2;exports.da=R6;exports.db=Ys;exports.e=I;exports.ea=D6;exports.eb=rl;exports.f=r1;exports.fa=W6;exports.fb=K5;exports.g=z;exports.ga=U6;exports.gb=wl;exports.h=D;exports.ha=X6;exports.hb=Q5;exports.i=q8;exports.ia=L2;exports.ib=Gl;exports.j=J8;exports.ja=q6;exports.jb=rd;exports.k=K8;exports.ka=y2;exports.kb=r4;exports.l=w1;exports.la=H2;exports.lb=a4;exports.m=Q2;exports.ma=J6;exports.mb=Td;exports.n=j2;exports.na=Q6;exports.nb=z7;exports.o=o5;exports.oa=d1;exports.ob=A7;exports.p=e5;exports.pa=o3;exports.pb=pp;exports.q=n5;exports.qa=p1;exports.qb=xp;exports.r=i5;exports.ra=t3;exports.rb=Vp;exports.s=Z9;exports.sa=n3;exports.sb=Bp;exports.t=V1;exports.ta=a3;exports.tb=Op;exports.u=f;exports.ua=C3;exports.ub=Qp;exports.v=G4;exports.va=l3;exports.vb=nc;exports.w=w;exports.wa=p3;exports.wb=pc;exports.x=v;exports.xa=g3;exports.xb=Sc;exports.y=_9;exports.ya=b3;exports.yb=$c;exports.z=W;exports.za=h3;exports.zb=Ec;//# sourceMappingURL=chunk-M2BD4MK3.js.map
1344
+ //# sourceMappingURL=chunk-M2BD4MK3.js.map