@zjlab-fe/data-hub-ui 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={868:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-default-drag-area {margin-bottom: 1.25rem;display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 1rem;border-radius: 10px;border-width: 1px;border-style: dashed;border-color: rgb(23 117 254 / 0.4);padding-top: 1rem;padding-bottom: 1rem\n}.zjlab-fe-data-hub-ui-default-drag-area:hover {--tw-border-opacity: 1;border-color: rgb(23 117 254 / var(--tw-border-opacity))\n}",""]);const s=i},884:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.zjlab-fe-data-hub-ui-file-uploader .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.zjlab-fe-data-hub-ui-file-uploader .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .absolute{\nposition: absolute;}.zjlab-fe-data-hub-ui-file-uploader .relative{\nposition: relative;}.zjlab-fe-data-hub-ui-file-uploader .sticky{\nposition: sticky;}.zjlab-fe-data-hub-ui-file-uploader .right-0{\nright: 0px;}.zjlab-fe-data-hub-ui-file-uploader .z-10{\nz-index: 10;}.zjlab-fe-data-hub-ui-file-uploader .m-0{\nmargin: 0px;}.zjlab-fe-data-hub-ui-file-uploader .m-1{\nmargin: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.zjlab-fe-data-hub-ui-file-uploader .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-0{\nmargin-bottom: 0px;}.zjlab-fe-data-hub-ui-file-uploader .mb-2{\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-4{\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-5{\nmargin-bottom: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mr-1{\nmargin-right: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-20{\nmargin-top: 5rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-4{\nmargin-top: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .block{\ndisplay: block;}.zjlab-fe-data-hub-ui-file-uploader .\\!inline{\ndisplay: inline !important;}.zjlab-fe-data-hub-ui-file-uploader .inline{\ndisplay: inline;}.zjlab-fe-data-hub-ui-file-uploader .flex{\ndisplay: flex;}.zjlab-fe-data-hub-ui-file-uploader .table{\ndisplay: table;}.zjlab-fe-data-hub-ui-file-uploader .flow-root{\ndisplay: flow-root;}.zjlab-fe-data-hub-ui-file-uploader .hidden{\ndisplay: none;}.zjlab-fe-data-hub-ui-file-uploader .h-4{\nheight: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .h-5{\nheight: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .h-6{\nheight: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .h-8{\nheight: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .h-auto{\nheight: auto;}.zjlab-fe-data-hub-ui-file-uploader .max-h-72{\nmax-height: 18rem;}.zjlab-fe-data-hub-ui-file-uploader .min-h-\\[20rem\\]{\nmin-height: 20rem;}.zjlab-fe-data-hub-ui-file-uploader .w-4{\nwidth: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .w-40{\nwidth: 10rem;}.zjlab-fe-data-hub-ui-file-uploader .w-5{\nwidth: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .w-6{\nwidth: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-96{\nmax-width: 24rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-none{\nmax-width: none;}.zjlab-fe-data-hub-ui-file-uploader .flex-shrink-0{\nflex-shrink: 0;}.zjlab-fe-data-hub-ui-file-uploader .cursor-pointer{\ncursor: pointer;}.zjlab-fe-data-hub-ui-file-uploader .items-center{\nalign-items: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-center{\njustify-content: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-between{\njustify-content: space-between;}.zjlab-fe-data-hub-ui-file-uploader .gap-1{\ngap: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .gap-4{\ngap: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .overflow-y-auto{\noverflow-y: auto;}.zjlab-fe-data-hub-ui-file-uploader .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.zjlab-fe-data-hub-ui-file-uploader .rounded{\nborder-radius: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .rounded-md{\nborder-radius: 0.375rem;}.zjlab-fe-data-hub-ui-file-uploader .border{\nborder-width: 1px;}.zjlab-fe-data-hub-ui-file-uploader .border-solid{\nborder-style: solid;}.zjlab-fe-data-hub-ui-file-uploader .border-dashed{\nborder-style: dashed;}.zjlab-fe-data-hub-ui-file-uploader .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .p-1{\npadding: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .p-2{\npadding: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .p-4{\npadding: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.zjlab-fe-data-hub-ui-file-uploader .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .pr-2{\npadding-right: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-center{\ntext-align: center;}.zjlab-fe-data-hub-ui-file-uploader .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.zjlab-fe-data-hub-ui-file-uploader .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.zjlab-fe-data-hub-ui-file-uploader .italic{\nfont-style: italic;}.zjlab-fe-data-hub-ui-file-uploader .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .underline{\ntext-decoration-line: underline;}.zjlab-fe-data-hub-ui-file-uploader .opacity-0{\nopacity: 0;}.zjlab-fe-data-hub-ui-file-uploader .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.zjlab-fe-data-hub-ui-file-uploader .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.zjlab-fe-data-hub-ui-file-uploader .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.zjlab-fe-data-hub-ui-file-uploader .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.zjlab-fe-data-hub-ui-file-uploader *, .zjlab-fe-data-hub-ui-file-uploader ::before, .zjlab-fe-data-hub-ui-file-uploader ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.zjlab-fe-data-hub-ui-file-uploader ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader *,\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader html,\n.zjlab-fe-data-hub-ui-file-uploader :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader b,\n.zjlab-fe-data-hub-ui-file-uploader strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader code,\n.zjlab-fe-data-hub-ui-file-uploader kbd,\n.zjlab-fe-data-hub-ui-file-uploader samp,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader sub,\n.zjlab-fe-data-hub-ui-file-uploader sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sub {\n bottom: -0.25em;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input,\n.zjlab-fe-data-hub-ui-file-uploader optgroup,\n.zjlab-fe-data-hub-ui-file-uploader select,\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'button\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'reset\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-inner-spin-button,\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader blockquote,\n.zjlab-fe-data-hub-ui-file-uploader dl,\n.zjlab-fe-data-hub-ui-file-uploader dd,\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6,\n.zjlab-fe-data-hub-ui-file-uploader hr,\n.zjlab-fe-data-hub-ui-file-uploader figure,\n.zjlab-fe-data-hub-ui-file-uploader p,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n margin: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader fieldset {\n margin: 0;\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader legend {\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ol,\n.zjlab-fe-data-hub-ui-file-uploader ul,\n.zjlab-fe-data-hub-ui-file-uploader menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.zjlab-fe-data-hub-ui-file-uploader dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader input::-moz-placeholder, .zjlab-fe-data-hub-ui-file-uploader textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader input::placeholder,\n.zjlab-fe-data-hub-ui-file-uploader textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.zjlab-fe-data-hub-ui-file-uploader :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader svg,\n.zjlab-fe-data-hub-ui-file-uploader video,\n.zjlab-fe-data-hub-ui-file-uploader canvas,\n.zjlab-fe-data-hub-ui-file-uploader audio,\n.zjlab-fe-data-hub-ui-file-uploader iframe,\n.zjlab-fe-data-hub-ui-file-uploader embed,\n.zjlab-fe-data-hub-ui-file-uploader object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.zjlab-fe-data-hub-ui-file-uploader [hidden] {\n display: none;\n}}@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-65-Medium";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-65-Medium.ttf") format("truetype")}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},915:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-modal .ant-modal-title,.zjlab-fe-data-hub-ui-modal .ant-modal-confirm-title {\n font-family: AlibabaPuHuiTi-3-65-Medium;\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem\n}",""]);const s=i},150:(e,t,n)=>{n.d(t,{Ay:()=>p,Og:()=>d,Rp:()=>c,_b:()=>l,cQ:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".QmFviLMZ5ad2m0mLbKkP{width:349px;height:280px;border-radius:10px 10px 10px 10px}.ZJu8EO9kRspWAqZAD0d_{background:linear-gradient(to top, #ffffff 0%, #f6f9fe 100%);border:1px solid #edf2fc;-o-border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1;border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1}.ZJu8EO9kRspWAqZAD0d_:hover{background:linear-gradient(to top, #ffffff 0%, #ecf4ff 100%);box-shadow:0px 8px 16px 0px rgba(7,35,76,.1);border:1px solid #afcfff;-o-border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1}.KS7Y4rDVUCfP7qjdPZap{background:linear-gradient(to top, #ffffff 0%, #f7f5ff 100%);border:1px solid #ebe6ff;-o-border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1;border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1}.KS7Y4rDVUCfP7qjdPZap:hover{background:linear-gradient(to top, #ffffff 0%, #e3dcff 100%);box-shadow:0px 8px 16px 0px rgba(40,23,92,.1);border:1px solid #c5b4ff;-o-border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1}.mZ5nSrfxkgv2ivcg_v21{width:472px;height:148px;border-radius:10px 10px 10px 10px;position:relative}",""]);var s="QmFviLMZ5ad2m0mLbKkP",l="ZJu8EO9kRspWAqZAD0d_",d="KS7Y4rDVUCfP7qjdPZap",c="mZ5nSrfxkgv2ivcg_v21";const p=i},100:(e,t,n)=>{n.d(t,{Ay:()=>d,DE:()=>l,wm:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-45-Light";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-45-Light.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-75-SemiBold";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-75-SemiBold.ttf") format("truetype")}.EybT8LL35ZAAECD9qKQX .ant-modal-content{padding:0 24px}.EybT8LL35ZAAECD9qKQX .ant-modal-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-body{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-footer{text-align:center;padding:16px 0}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-content{padding:0 24px}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-body{text-align:center}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-content{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-btns{text-align:center;padding:16px 0}',""]);var s="EybT8LL35ZAAECD9qKQX",l="F2kZbP7G9NKG9lg8O_b1";const d=i},860:(e,t,n)=>{n.d(t,{A:()=>l,K:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.aTTl5tM6IlquA6EPUX_w{font-family:"hub-iconfont";color:#545b64;font-size:12px;cursor:pointer}.aTTl5tM6IlquA6EPUX_w:hover{color:#1775fe}',""]);var s="aTTl5tM6IlquA6EPUX_w";const l=i},328:(e,t,n)=>{n.d(t,{Ay:()=>u,Hn:()=>l,P_:()=>d,UA:()=>p,X$:()=>c,tp:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".eKExJAv72oIPXwTqwpgU td{border-top:none !important;border-left:none !important;border-right:none !important}.eKExJAv72oIPXwTqwpgU th.ant-table-cell{height:55px;padding:5px 16px !important}.eKExJAv72oIPXwTqwpgU td.ant-table-cell{padding:5px 16px !important;font-size:14px;line-height:22px;letter-spacing:0}.eKExJAv72oIPXwTqwpgU div{scrollbar-width:thin;scrollbar-color:#eaeaea rgba(0,0,0,0);box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV{display:flex;flex-direction:column;justify-content:center}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH:hover{display:block;overflow:auto}.b2mlkkE1gDbFwo4_42Kc{position:relative}.Vh5uhm2m3HksYuSIjwQj{position:absolute;left:16px;color:#89909d;font-size:14px}",""]);var s="eKExJAv72oIPXwTqwpgU",l="SJWFZYuxuri8ceYzxmsV",d="CDb4Loro5cBpX56QzatH",c="b2mlkkE1gDbFwo4_42Kc",p="Vh5uhm2m3HksYuSIjwQj";const u=i},685:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".cJmcPSn5LN2GH9HqTvEQ{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="cJmcPSn5LN2GH9HqTvEQ";const l=i},913:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,_8:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zuabV0gpCkaY8pSYtOSL{display:flex;align-items:center;justify-content:center;height:100%}.i2GFC308F3s1lGENOI5l{max-width:100%;max-height:100%}",""]);var s="zuabV0gpCkaY8pSYtOSL",l="i2GFC308F3s1lGENOI5l";const d=i},690:(e,t,n)=>{n.d(t,{Ay:()=>c,D5:()=>l,LV:()=>s,qf:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".EVmfUlSj2zzl7igeqp6N{display:flex;align-items:center;justify-content:center;height:100%;overflow:auto;padding-top:16px;padding-bottom:16px}.Z65yBBsFLSWF70wfWwgA{display:flex;align-items:center;justify-content:center;padding-top:16px;padding-bottom:16px}.QSsGpXvLzOYpHSNncjpj .ant-modal-body{height:calc(100vh - 200px);overflow-y:auto}.QSsGpXvLzOYpHSNncjpj .ant-modal-content{padding-top:44px}",""]);var s="EVmfUlSj2zzl7igeqp6N",l="Z65yBBsFLSWF70wfWwgA",d="QSsGpXvLzOYpHSNncjpj";const c=i},555:(e,t,n)=>{n.d(t,{A:()=>h,L:()=>u});var o=n(245),r=n.n(o),a=n(526),i=n.n(a),s=n(405),l=n.n(s),d=new URL(n(840),n.b),c=i()(r()),p=l()(d);c.push([e.id,`.axAZtM5WKNopJEBNra2i .markdown-body{--base-size-4: 0.25rem;--base-size-8: 0.5rem;--base-size-16: 1rem;--base-size-24: 1.5rem;--base-size-40: 2.5rem;--base-text-weight-normal: 400;--base-text-weight-medium: 500;--base-text-weight-semibold: 600;--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent: Highlight}@media(prefers-color-scheme: dark){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=dark]{color-scheme:dark;--focus-outlineColor: #1f6feb;--fgColor-default: #f0f6fc;--fgColor-muted: #9198a1;--fgColor-accent: #4493f8;--fgColor-success: #3fb950;--fgColor-attention: #d29922;--fgColor-danger: #f85149;--fgColor-done: #ab7df8;--bgColor-default: #0d1117;--bgColor-muted: #151b23;--bgColor-neutral-muted: #656c7633;--bgColor-attention-muted: #bb800926;--borderColor-default: #3d444d;--borderColor-muted: #3d444db3;--borderColor-neutral-muted: #3d444db3;--borderColor-accent-emphasis: #1f6feb;--borderColor-success-emphasis: #238636;--borderColor-attention-emphasis: #9e6a03;--borderColor-danger-emphasis: #da3633;--borderColor-done-emphasis: #8957e5;--color-prettylights-syntax-comment: #9198a1;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #f0f6fc;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-brackethighlighter-angle: #9198a1;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #f0f6fc;--color-prettylights-syntax-markup-bold: #f0f6fc;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #f0f6fc;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d}}@media(prefers-color-scheme: light){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=light]{color-scheme:light;--focus-outlineColor: #0969da;--fgColor-default: #1f2328;--fgColor-muted: #59636e;--fgColor-accent: #0969da;--fgColor-success: #1a7f37;--fgColor-attention: #9a6700;--fgColor-danger: #d1242f;--fgColor-done: #8250df;--bgColor-default: #ffffff;--bgColor-muted: #f6f8fa;--bgColor-neutral-muted: #818b981f;--bgColor-attention-muted: #fff8c5;--borderColor-default: #d1d9e0;--borderColor-muted: #d1d9e0b3;--borderColor-neutral-muted: #d1d9e0b3;--borderColor-accent-emphasis: #0969da;--borderColor-success-emphasis: #1a7f37;--borderColor-attention-emphasis: #9a6700;--borderColor-danger-emphasis: #cf222e;--borderColor-done-emphasis: #8250df;--color-prettylights-syntax-comment: #59636e;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #1f2328;--color-prettylights-syntax-entity-tag: #0550ae;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-brackethighlighter-angle: #59636e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #1f2328;--color-prettylights-syntax-markup-bold: #1f2328;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #d1d9e0;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-sublimelinter-gutter-mark: #818b98}}.axAZtM5WKNopJEBNra2i .markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--fgColor-default);background-color:var(--bgColor-default);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url(${p});mask-image:url(${p})}.axAZtM5WKNopJEBNra2i .markdown-body details,.axAZtM5WKNopJEBNra2i .markdown-body figcaption,.axAZtM5WKNopJEBNra2i .markdown-body figure{display:block}.axAZtM5WKNopJEBNra2i .markdown-body summary{display:list-item}.axAZtM5WKNopJEBNra2i .markdown-body [hidden]{display:none !important}.axAZtM5WKNopJEBNra2i .markdown-body a{background-color:rgba(0,0,0,0);color:var(--fgColor-accent);text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.axAZtM5WKNopJEBNra2i .markdown-body b,.axAZtM5WKNopJEBNra2i .markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dfn{font-style:italic}.axAZtM5WKNopJEBNra2i .markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body small{font-size:90%}.axAZtM5WKNopJEBNra2i .markdown-body sub,.axAZtM5WKNopJEBNra2i .markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.axAZtM5WKNopJEBNra2i .markdown-body sub{bottom:-0.25em}.axAZtM5WKNopJEBNra2i .markdown-body sup{top:-0.5em}.axAZtM5WKNopJEBNra2i .markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body kbd,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:monospace;font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body figure{margin:1em var(--base-size-40)}.axAZtM5WKNopJEBNra2i .markdown-body hr{box-sizing:content-box;overflow:hidden;background:rgba(0,0,0,0);border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.axAZtM5WKNopJEBNra2i .markdown-body [type=button],.axAZtM5WKNopJEBNra2i .markdown-body [type=reset],.axAZtM5WKNopJEBNra2i .markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.axAZtM5WKNopJEBNra2i .markdown-body [type=checkbox],.axAZtM5WKNopJEBNra2i .markdown-body [type=radio]{box-sizing:border-box;padding:0}.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-inner-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-cancel-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.axAZtM5WKNopJEBNra2i .markdown-body a:hover{text-decoration:underline}.axAZtM5WKNopJEBNra2i .markdown-body ::-moz-placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body hr::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body hr::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.axAZtM5WKNopJEBNra2i .markdown-body td,.axAZtM5WKNopJEBNra2i .markdown-body th{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body details summary{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body a:focus,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body a:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus,.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.axAZtM5WKNopJEBNra2i .markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h1,.axAZtM5WKNopJEBNra2i .markdown-body h2,.axAZtM5WKNopJEBNra2i .markdown-body h3,.axAZtM5WKNopJEBNra2i .markdown-body h4,.axAZtM5WKNopJEBNra2i .markdown-body h5,.axAZtM5WKNopJEBNra2i .markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.axAZtM5WKNopJEBNra2i .markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.axAZtM5WKNopJEBNra2i .markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.axAZtM5WKNopJEBNra2i .markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--fgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body p{margin-top:0;margin-bottom:10px}.axAZtM5WKNopJEBNra2i .markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ul ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol ol{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body dd{margin-left:0}.axAZtM5WKNopJEBNra2i .markdown-body tt,.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.axAZtM5WKNopJEBNra2i .markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-outer-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.axAZtM5WKNopJEBNra2i .markdown-body::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body>*:last-child{margin-bottom:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body a:not([href]){color:inherit;text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body .absent{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .anchor:focus{outline:none}.axAZtM5WKNopJEBNra2i .markdown-body p,.axAZtM5WKNopJEBNra2i .markdown-body blockquote,.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol,.axAZtM5WKNopJEBNra2i .markdown-body dl,.axAZtM5WKNopJEBNra2i .markdown-body table,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body details{margin-top:0;margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body h1 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor{text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link{visibility:visible}.axAZtM5WKNopJEBNra2i .markdown-body h1 tt,.axAZtM5WKNopJEBNra2i .markdown-body h1 code,.axAZtM5WKNopJEBNra2i .markdown-body h2 tt,.axAZtM5WKNopJEBNra2i .markdown-body h2 code,.axAZtM5WKNopJEBNra2i .markdown-body h3 tt,.axAZtM5WKNopJEBNra2i .markdown-body h3 code,.axAZtM5WKNopJEBNra2i .markdown-body h4 tt,.axAZtM5WKNopJEBNra2i .markdown-body h4 code,.axAZtM5WKNopJEBNra2i .markdown-body h5 tt,.axAZtM5WKNopJEBNra2i .markdown-body h5 code,.axAZtM5WKNopJEBNra2i .markdown-body h6 tt,.axAZtM5WKNopJEBNra2i .markdown-body h6 code{padding:0 .2em;font-size:inherit}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2,.axAZtM5WKNopJEBNra2i .markdown-body summary h3,.axAZtM5WKNopJEBNra2i .markdown-body summary h4,.axAZtM5WKNopJEBNra2i .markdown-body summary h5,.axAZtM5WKNopJEBNra2i .markdown-body summary h6{display:inline-block}.axAZtM5WKNopJEBNra2i .markdown-body summary h1 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h2 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h3 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h4 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h5 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h6 .anchor{margin-left:-40px}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2{padding-bottom:0;border-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body ul.no-list,.axAZtM5WKNopJEBNra2i .markdown-body ol.no-list{padding:0;list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="a s"]{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="A s"]{list-style-type:upper-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="i s"]{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="I s"]{list-style-type:upper-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="1"]{list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body div>ol:not([type]){list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body ul ul,.axAZtM5WKNopJEBNra2i .markdown-body ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul{margin-top:0;margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body li>p{margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body li+li{margin-top:.25em}.axAZtM5WKNopJEBNra2i .markdown-body dl{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body table th,.axAZtM5WKNopJEBNra2i .markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body table td>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table img{background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body img[align=right]{padding-left:20px}.axAZtM5WKNopJEBNra2i .markdown-body img[align=left]{padding-right:20px}.axAZtM5WKNopJEBNra2i .markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame{display:block;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span img{display:block;float:left}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center span img{margin:0 auto;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right span img{margin:0;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left span{margin:13px 0 0}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body code br,.axAZtM5WKNopJEBNra2i .markdown-body tt br{display:none}.axAZtM5WKNopJEBNra2i .markdown-body del code{text-decoration:inherit}.axAZtM5WKNopJEBNra2i .markdown-body samp{font-size:85%}.axAZtM5WKNopJEBNra2i .markdown-body pre code{font-size:100%}.axAZtM5WKNopJEBNra2i .markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .highlight{margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre{margin-bottom:0;word-break:normal}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre,.axAZtM5WKNopJEBNra2i .markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body pre code,.axAZtM5WKNopJEBNra2i .markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data td,.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data tr{border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::before{content:"["}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::after{content:"]"}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol{padding-left:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li{position:relative}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:"";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target{color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.axAZtM5WKNopJEBNra2i .markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-e,.axAZtM5WKNopJEBNra2i .markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-smi,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-s,.axAZtM5WKNopJEBNra2i .markdown-body .pl-pds,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-pse .pl-s1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sre,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-v,.axAZtM5WKNopJEBNra2i .markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh,.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh .pl-en,.axAZtM5WKNopJEBNra2i .markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body button:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body summary:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body [tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body details-dialog:focus:not(:focus-visible){outline:none}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji img{width:1em;height:1em}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item{list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item.enabled label{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item .handle{display:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.axAZtM5WKNopJEBNra2i .markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:hover .task-list-item-convert-container,.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}`,""]);var u="axAZtM5WKNopJEBNra2i";const h=c},482:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".GmPZonLTI3KWU6TQWQSo{display:flex;flex-direction:column;align-items:center;height:100%;overflow:auto}.GmPZonLTI3KWU6TQWQSo canvas{max-width:100%}",""]);var s="GmPZonLTI3KWU6TQWQSo";const l=i},708:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".w5U1Ig2Vx60xYRW90g33{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="w5U1Ig2Vx60xYRW90g33";const l=i},519:(e,t,n)=>{n.d(t,{Ay:()=>p,J2:()=>d,T1:()=>c,eo:()=>l,hF:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://test-open-sci-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}.wrtosveS1b5SlKe4fIGL{position:relative}.sD_Dvah97w0cPqUJsOhX{font-family:"AlibabaPuHuiTi-3-55-RegularL3";font-size:12px;position:absolute;top:-11px;left:11px;background:#fff;padding-left:2px;padding-right:2px}.PHh7Qm9ojRZiWFl8OlpT{display:none}.FinJFG8VkAu4WdZFDb3U{width:400px}',""]);var s="wrtosveS1b5SlKe4fIGL",l="sD_Dvah97w0cPqUJsOhX",d="PHh7Qm9ojRZiWFl8OlpT",c="FinJFG8VkAu4WdZFDb3U";const p=i},989:(e,t,n)=>{n.d(t,{Ay:()=>c,Kk:()=>l,LV:()=>s,NI:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".s1DE3bXbSR3WMxOHGhL4{width:244px;min-height:89px;background:#fff;box-shadow:0px 12px 30px 0px rgba(32,60,48,.2);border-radius:10px 10px 10px 10px;border:1px solid #d9e0ed;z-index:100;position:fixed;bottom:180px;left:calc(50% - 122px)}.ickkjG9C47RxHTbOAWXw{width:16px;height:16px;z-index:101;display:inline-block;border-radius:50%;position:absolute;top:17px;right:17px;cursor:pointer}.dWjTN1AD2WJesHevGU09{padding:17px 10px}",""]);var s="s1DE3bXbSR3WMxOHGhL4",l="ickkjG9C47RxHTbOAWXw",d="dWjTN1AD2WJesHevGU09";const c=i},280:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,wm:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".wkk6Lnco5rQ5DK_Bojaj{display:flex;justify-content:space-between;align-items:center;padding:0 16px;background-color:#000}.wkk6Lnco5rQ5DK_Bojaj .H3Num6yF3Ox32Pb6Occg{width:200px}",""]);var s="wkk6Lnco5rQ5DK_Bojaj",l="H3Num6yF3Ox32Pb6Occg";const d=i},109:(e,t,n)=>{n.d(t,{Ay:()=>d,Lr:()=>s,a9:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".Nt_3DTIzVtNu3K1bdGvU{color:rgba(0,0,0,.88) !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable-checked{background-color:#1775fe !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable{cursor:default !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable:not(.ant-tag-checkable-checked):hover{background-color:rgba(0,0,0,0) !important;color:rgba(0,0,0,.88) !important}",""]);var s="Nt_3DTIzVtNu3K1bdGvU",l="LRwXIt4UyW_emXiNds9w";const d=i},255:(e,t,n)=>{n.d(t,{Ay:()=>p,Bu:()=>l,Lt:()=>s,eb:()=>d,lY:()=>c});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".TlJNZcZcmmP6z2ZEuXVh{position:relative}.jlfRlYEd363O6zz8LzHG.U_nf4tR4EBBbc350fb4r{opacity:0;transform:translateY(-10px);animation:KeGDXXLq4ov1RpFxstIA .1s ease-in-out forwards}@keyframes KeGDXXLq4ov1RpFxstIA{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.jlfRlYEd363O6zz8LzHG{position:absolute;top:37px;z-index:6000;color:#666;background-color:#e0e0e0;width:200px;height:256px;padding:4px;border-radius:8px;opacity:0;transform:translateY(-10px);transition:all .3s ease-in-out;animation:U4WuhNMVo6V0NTLeHqJp .3s ease-in-out forwards}@keyframes U4WuhNMVo6V0NTLeHqJp{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.iFMf87iEHVoZIgZXmFII{height:264px}",""]);var s="TlJNZcZcmmP6z2ZEuXVh",l="jlfRlYEd363O6zz8LzHG",d="U_nf4tR4EBBbc350fb4r",c="iFMf87iEHVoZIgZXmFII";const p=i},512:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tiptap pre{margin-top:1.5rem;margin-bottom:1.5rem;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tiptap pre code{background-image:none;padding:0px;font-size:0.875rem;line-height:1.25rem}.tiptap pre .hljs-comment,.tiptap pre .hljs-quote{color:#6a9955}.tiptap pre .hljs-variable,.tiptap pre .hljs-template-variable,.tiptap pre .hljs-attribute,.tiptap pre .hljs-tag,.tiptap pre .hljs-name,.tiptap pre .hljs-regexp,.tiptap pre .hljs-link,.tiptap pre .hljs-selector-id,.tiptap pre .hljs-selector-class{color:#4fc1ff}.tiptap pre .hljs-number,.tiptap pre .hljs-meta,.tiptap pre .hljs-built_in,.tiptap pre .hljs-builtin-name,.tiptap pre .hljs-literal,.tiptap pre .hljs-type,.tiptap pre .hljs-params{color:#dcdcaa}.tiptap pre .hljs-string,.tiptap pre .hljs-symbol,.tiptap pre .hljs-bullet{color:#ce9178}.tiptap pre .hljs-title,.tiptap pre .hljs-section{color:#dcdcaa}.tiptap pre .hljs-keyword,.tiptap pre .hljs-selector-tag{color:#c586c0}.tiptap pre .hljs-emphasis{font-style:italic}.tiptap pre .hljs-strong{font-weight:700}",""]);const s=i},383:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.tiptap-container .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.tiptap-container .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.tiptap-container .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.tiptap-container .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.tiptap-container .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.tiptap-container .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.tiptap-container .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.tiptap-container .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.tiptap-container .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.tiptap-container .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.tiptap-container .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.tiptap-container .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.tiptap-container .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.tiptap-container .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.tiptap-container .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.tiptap-container .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.tiptap-container .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.tiptap-container .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.tiptap-container .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.tiptap-container .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.tiptap-container .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.tiptap-container .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.tiptap-container .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.tiptap-container .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.tiptap-container .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.tiptap-container .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.tiptap-container .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.tiptap-container .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.tiptap-container .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.tiptap-container .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.tiptap-container .absolute{\nposition: absolute;}.tiptap-container .relative{\nposition: relative;}.tiptap-container .sticky{\nposition: sticky;}.tiptap-container .right-0{\nright: 0px;}.tiptap-container .z-10{\nz-index: 10;}.tiptap-container .m-0{\nmargin: 0px;}.tiptap-container .m-1{\nmargin: 0.25rem;}.tiptap-container .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.tiptap-container .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.tiptap-container .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.tiptap-container .mb-0{\nmargin-bottom: 0px;}.tiptap-container .mb-2{\nmargin-bottom: 0.5rem;}.tiptap-container .mb-4{\nmargin-bottom: 1rem;}.tiptap-container .mb-5{\nmargin-bottom: 1.25rem;}.tiptap-container .mr-1{\nmargin-right: 0.25rem;}.tiptap-container .mt-20{\nmargin-top: 5rem;}.tiptap-container .mt-4{\nmargin-top: 1rem;}.tiptap-container .block{\ndisplay: block;}.tiptap-container .\\!inline{\ndisplay: inline !important;}.tiptap-container .inline{\ndisplay: inline;}.tiptap-container .flex{\ndisplay: flex;}.tiptap-container .table{\ndisplay: table;}.tiptap-container .flow-root{\ndisplay: flow-root;}.tiptap-container .hidden{\ndisplay: none;}.tiptap-container .h-4{\nheight: 1rem;}.tiptap-container .h-5{\nheight: 1.25rem;}.tiptap-container .h-6{\nheight: 1.5rem;}.tiptap-container .h-8{\nheight: 2rem;}.tiptap-container .h-auto{\nheight: auto;}.tiptap-container .max-h-72{\nmax-height: 18rem;}.tiptap-container .min-h-\\[20rem\\]{\nmin-height: 20rem;}.tiptap-container .w-4{\nwidth: 1rem;}.tiptap-container .w-40{\nwidth: 10rem;}.tiptap-container .w-5{\nwidth: 1.25rem;}.tiptap-container .w-6{\nwidth: 1.5rem;}.tiptap-container .max-w-96{\nmax-width: 24rem;}.tiptap-container .max-w-none{\nmax-width: none;}.tiptap-container .flex-shrink-0{\nflex-shrink: 0;}.tiptap-container .cursor-pointer{\ncursor: pointer;}.tiptap-container .items-center{\nalign-items: center;}.tiptap-container .justify-center{\njustify-content: center;}.tiptap-container .justify-between{\njustify-content: space-between;}.tiptap-container .gap-1{\ngap: 0.25rem;}.tiptap-container .gap-4{\ngap: 1rem;}.tiptap-container .overflow-y-auto{\noverflow-y: auto;}.tiptap-container .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.tiptap-container .rounded{\nborder-radius: 0.25rem;}.tiptap-container .rounded-md{\nborder-radius: 0.375rem;}.tiptap-container .border{\nborder-width: 1px;}.tiptap-container .border-solid{\nborder-style: solid;}.tiptap-container .border-dashed{\nborder-style: dashed;}.tiptap-container .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.tiptap-container .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.tiptap-container .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.tiptap-container .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.tiptap-container .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.tiptap-container .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.tiptap-container .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.tiptap-container .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.tiptap-container .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.tiptap-container .p-1{\npadding: 0.25rem;}.tiptap-container .p-2{\npadding: 0.5rem;}.tiptap-container .p-4{\npadding: 1rem;}.tiptap-container .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.tiptap-container .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.tiptap-container .pr-2{\npadding-right: 0.5rem;}.tiptap-container .text-center{\ntext-align: center;}.tiptap-container .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.tiptap-container .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.tiptap-container .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.tiptap-container .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.tiptap-container .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.tiptap-container .italic{\nfont-style: italic;}.tiptap-container .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.tiptap-container .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.tiptap-container .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.tiptap-container .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.tiptap-container .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.tiptap-container .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.tiptap-container .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.tiptap-container .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.tiptap-container .underline{\ntext-decoration-line: underline;}.tiptap-container .opacity-0{\nopacity: 0;}.tiptap-container .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.tiptap-container .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.tiptap-container .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.tiptap-container .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.tiptap-container *, .tiptap-container ::before, .tiptap-container ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.tiptap-container ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.tiptap-container *,\n.tiptap-container ::before,\n.tiptap-container ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.tiptap-container ::before,\n.tiptap-container ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.tiptap-container html,\n.tiptap-container :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.tiptap-container body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.tiptap-container hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.tiptap-container abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.tiptap-container a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.tiptap-container b,\n.tiptap-container strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.tiptap-container code,\n.tiptap-container kbd,\n.tiptap-container samp,\n.tiptap-container pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.tiptap-container small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.tiptap-container sub,\n.tiptap-container sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.tiptap-container sub {\n bottom: -0.25em;\n}\n\n.tiptap-container sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.tiptap-container table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.tiptap-container button,\n.tiptap-container input,\n.tiptap-container optgroup,\n.tiptap-container select,\n.tiptap-container textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.tiptap-container button,\n.tiptap-container select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.tiptap-container button,\n.tiptap-container input:where([type=\'button\']),\n.tiptap-container input:where([type=\'reset\']),\n.tiptap-container input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.tiptap-container :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.tiptap-container :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.tiptap-container progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.tiptap-container ::-webkit-inner-spin-button,\n.tiptap-container ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.tiptap-container [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.tiptap-container ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.tiptap-container ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.tiptap-container summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.tiptap-container blockquote,\n.tiptap-container dl,\n.tiptap-container dd,\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6,\n.tiptap-container hr,\n.tiptap-container figure,\n.tiptap-container p,\n.tiptap-container pre {\n margin: 0;\n}\n\n.tiptap-container fieldset {\n margin: 0;\n padding: 0;\n}\n\n.tiptap-container legend {\n padding: 0;\n}\n\n.tiptap-container ol,\n.tiptap-container ul,\n.tiptap-container menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.tiptap-container dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.tiptap-container textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.tiptap-container input::-moz-placeholder, .tiptap-container textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.tiptap-container input::placeholder,\n.tiptap-container textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.tiptap-container button,\n.tiptap-container [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.tiptap-container :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.tiptap-container img,\n.tiptap-container svg,\n.tiptap-container video,\n.tiptap-container canvas,\n.tiptap-container audio,\n.tiptap-container iframe,\n.tiptap-container embed,\n.tiptap-container object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.tiptap-container img,\n.tiptap-container video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.tiptap-container [hidden] {\n display: none;\n}}.tiptap>*:first-child{\nmargin-top: 0px;}.tiptap[contenteditable=true]{\noutline-width: 0px;}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},444:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tippy-box{max-width:100% !important}",""]);const s=i},311:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.tiptap table{margin:0px;width:100%;table-layout:fixed;border-collapse:collapse;overflow:hidden}.tiptap table td,.tiptap table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding:0.5rem;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-block:0px}.tiptap table th{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));text-align:left;font-weight:700}.tiptap table .selectedCell:after{pointer-events:none;position:absolute;inset:0px;z-index:10;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity:0.25;--tw-content:"";content:var(--tw-content)}.tiptap table .column-resize-handle{pointer-events:none;position:absolute;bottom:-0.25rem;top:0px;right:0px;width:0.25rem;--tw-bg-opacity:1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.tiptap .tableWrapper{margin-top:1.5rem;margin-bottom:1.5rem;overflow-x:auto}.tiptap.resize-cursor{cursor:col-resize}.tiptap code{margin:0.25rem}',""]);const s=i},588:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.mylib-upload-drawer *, .mylib-upload-drawer ::before, .mylib-upload-drawer ::after{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}.mylib-upload-drawer ::backdrop{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/.mylib-upload-drawer *,\n.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n --tw-content: \'\';\n}/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/.mylib-upload-drawer html,\n.mylib-upload-drawer :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/.mylib-upload-drawer body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/.mylib-upload-drawer hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/.mylib-upload-drawer abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}/*\nRemove the default font size and weight for headings.\n*/.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6 {\n font-size: inherit;\n font-weight: inherit;\n}/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/.mylib-upload-drawer a {\n color: inherit;\n text-decoration: inherit;\n}/*\nAdd the correct font weight in Edge and Safari.\n*/.mylib-upload-drawer b,\n.mylib-upload-drawer strong {\n font-weight: bolder;\n}/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/.mylib-upload-drawer code,\n.mylib-upload-drawer kbd,\n.mylib-upload-drawer samp,\n.mylib-upload-drawer pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}/*\nAdd the correct font size in all browsers.\n*/.mylib-upload-drawer small {\n font-size: 80%;\n}/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/.mylib-upload-drawer sub,\n.mylib-upload-drawer sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}.mylib-upload-drawer sub {\n bottom: -0.25em;\n}.mylib-upload-drawer sup {\n top: -0.5em;\n}/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/.mylib-upload-drawer table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input,\n.mylib-upload-drawer optgroup,\n.mylib-upload-drawer select,\n.mylib-upload-drawer textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer select {\n text-transform: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input:where([type=\'button\']),\n.mylib-upload-drawer input:where([type=\'reset\']),\n.mylib-upload-drawer input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}/*\nUse the modern Firefox focus style for all focusable elements.\n*/.mylib-upload-drawer :-moz-focusring {\n outline: auto;\n}/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/.mylib-upload-drawer :-moz-ui-invalid {\n box-shadow: none;\n}/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/.mylib-upload-drawer progress {\n vertical-align: baseline;\n}/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/.mylib-upload-drawer ::-webkit-inner-spin-button,\n.mylib-upload-drawer ::-webkit-outer-spin-button {\n height: auto;\n}/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/.mylib-upload-drawer [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/.mylib-upload-drawer ::-webkit-search-decoration {\n -webkit-appearance: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/.mylib-upload-drawer ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}/*\nAdd the correct display in Chrome and Safari.\n*/.mylib-upload-drawer summary {\n display: list-item;\n}/*\nRemoves the default spacing and border for appropriate elements.\n*/.mylib-upload-drawer blockquote,\n.mylib-upload-drawer dl,\n.mylib-upload-drawer dd,\n.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6,\n.mylib-upload-drawer hr,\n.mylib-upload-drawer figure,\n.mylib-upload-drawer p,\n.mylib-upload-drawer pre {\n margin: 0;\n}.mylib-upload-drawer fieldset {\n margin: 0;\n padding: 0;\n}.mylib-upload-drawer legend {\n padding: 0;\n}.mylib-upload-drawer ol,\n.mylib-upload-drawer ul,\n.mylib-upload-drawer menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}/*\nReset default styling for dialogs.\n*/.mylib-upload-drawer dialog {\n padding: 0;\n}/*\nPrevent resizing textareas horizontally by default.\n*/.mylib-upload-drawer textarea {\n resize: vertical;\n}/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/.mylib-upload-drawer input::-moz-placeholder, .mylib-upload-drawer textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}.mylib-upload-drawer input::placeholder,\n.mylib-upload-drawer textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}/*\nSet the default cursor for buttons.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer [role="button"] {\n cursor: pointer;\n}/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/.mylib-upload-drawer :disabled {\n cursor: default;\n}/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer svg,\n.mylib-upload-drawer video,\n.mylib-upload-drawer canvas,\n.mylib-upload-drawer audio,\n.mylib-upload-drawer iframe,\n.mylib-upload-drawer embed,\n.mylib-upload-drawer object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer video {\n max-width: 100%;\n height: auto;\n}/* Make elements with the HTML hidden attribute stay hidden by default */.mylib-upload-drawer [hidden] {\n display: none;\n}.mylib-upload-drawer .prose{\n color: var(--tw-prose-body);\n max-width: 65ch;\n}.mylib-upload-drawer .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}.mylib-upload-drawer .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}.mylib-upload-drawer .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-bold);\n font-weight: 600;\n}.mylib-upload-drawer .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n}.mylib-upload-drawer .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n font-weight: 400;\n color: var(--tw-prose-counters);\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n color: var(--tw-prose-bullets);\n}.mylib-upload-drawer .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}.mylib-upload-drawer .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}.mylib-upload-drawer .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: open-quote;\n}.mylib-upload-drawer .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: close-quote;\n}.mylib-upload-drawer .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}.mylib-upload-drawer .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 900;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}.mylib-upload-drawer .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 800;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}.mylib-upload-drawer .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}.mylib-upload-drawer .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: "`";\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: "`";\n}.mylib-upload-drawer .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.9em;\n}.mylib-upload-drawer .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: none;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: none;\n}.mylib-upload-drawer .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}.mylib-upload-drawer .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}.mylib-upload-drawer .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 0;\n}.mylib-upload-drawer .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: baseline;\n}.mylib-upload-drawer .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: top;\n}.mylib-upload-drawer .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n text-align: start;\n}.mylib-upload-drawer .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}.mylib-upload-drawer .prose{\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}.mylib-upload-drawer .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 0;\n}.mylib-upload-drawer .absolute{\n position: absolute;\n}.mylib-upload-drawer .relative{\n position: relative;\n}.mylib-upload-drawer .sticky{\n position: sticky;\n}.mylib-upload-drawer .right-0{\n right: 0px;\n}.mylib-upload-drawer .z-10{\n z-index: 10;\n}.mylib-upload-drawer .m-0{\n margin: 0px;\n}.mylib-upload-drawer .m-1{\n margin: 0.25rem;\n}.mylib-upload-drawer .my-2{\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .my-2\\.5{\n margin-top: 0.625rem;\n margin-bottom: 0.625rem;\n}.mylib-upload-drawer .my-4{\n margin-top: 1rem;\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-0{\n margin-bottom: 0px;\n}.mylib-upload-drawer .mb-2{\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .mb-4{\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-5{\n margin-bottom: 1.25rem;\n}.mylib-upload-drawer .mr-1{\n margin-right: 0.25rem;\n}.mylib-upload-drawer .mt-20{\n margin-top: 5rem;\n}.mylib-upload-drawer .mt-4{\n margin-top: 1rem;\n}.mylib-upload-drawer .block{\n display: block;\n}.mylib-upload-drawer .\\!inline{\n display: inline !important;\n}.mylib-upload-drawer .inline{\n display: inline;\n}.mylib-upload-drawer .flex{\n display: flex;\n}.mylib-upload-drawer .table{\n display: table;\n}.mylib-upload-drawer .flow-root{\n display: flow-root;\n}.mylib-upload-drawer .hidden{\n display: none;\n}.mylib-upload-drawer .h-4{\n height: 1rem;\n}.mylib-upload-drawer .h-5{\n height: 1.25rem;\n}.mylib-upload-drawer .h-6{\n height: 1.5rem;\n}.mylib-upload-drawer .h-8{\n height: 2rem;\n}.mylib-upload-drawer .h-auto{\n height: auto;\n}.mylib-upload-drawer .max-h-72{\n max-height: 18rem;\n}.mylib-upload-drawer .min-h-\\[20rem\\]{\n min-height: 20rem;\n}.mylib-upload-drawer .w-4{\n width: 1rem;\n}.mylib-upload-drawer .w-40{\n width: 10rem;\n}.mylib-upload-drawer .w-5{\n width: 1.25rem;\n}.mylib-upload-drawer .w-6{\n width: 1.5rem;\n}.mylib-upload-drawer .max-w-96{\n max-width: 24rem;\n}.mylib-upload-drawer .max-w-none{\n max-width: none;\n}.mylib-upload-drawer .flex-shrink-0{\n flex-shrink: 0;\n}.mylib-upload-drawer .cursor-pointer{\n cursor: pointer;\n}.mylib-upload-drawer .items-center{\n align-items: center;\n}.mylib-upload-drawer .justify-center{\n justify-content: center;\n}.mylib-upload-drawer .justify-between{\n justify-content: space-between;\n}.mylib-upload-drawer .gap-1{\n gap: 0.25rem;\n}.mylib-upload-drawer .gap-4{\n gap: 1rem;\n}.mylib-upload-drawer .overflow-y-auto{\n overflow-y: auto;\n}.mylib-upload-drawer .truncate{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}.mylib-upload-drawer .rounded{\n border-radius: 0.25rem;\n}.mylib-upload-drawer .rounded-md{\n border-radius: 0.375rem;\n}.mylib-upload-drawer .border{\n border-width: 1px;\n}.mylib-upload-drawer .border-solid{\n border-style: solid;\n}.mylib-upload-drawer .border-dashed{\n border-style: dashed;\n}.mylib-upload-drawer .border-\\[\\#1775FE\\]{\n --tw-border-opacity: 1;\n border-color: rgb(23 117 254 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-200{\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-3{\n --tw-border-opacity: 1;\n border-color: rgb(217 224 237 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-300{\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-green-600{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.mylib-upload-drawer .bg-\\[\\#F5F7FA\\]{\n --tw-bg-opacity: 1;\n background-color: rgb(245 247 250 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-blue-5{\n --tw-bg-opacity: 1;\n background-color: rgb(23 117 254 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-gray-50{\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-white{\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .p-1{\n padding: 0.25rem;\n}.mylib-upload-drawer .p-2{\n padding: 0.5rem;\n}.mylib-upload-drawer .p-4{\n padding: 1rem;\n}.mylib-upload-drawer .px-3{\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}.mylib-upload-drawer .px-4{\n padding-left: 1rem;\n padding-right: 1rem;\n}.mylib-upload-drawer .pr-2{\n padding-right: 0.5rem;\n}.mylib-upload-drawer .text-center{\n text-align: center;\n}.mylib-upload-drawer .text-2xl{\n font-size: 1.5rem;\n line-height: 2rem;\n}.mylib-upload-drawer .text-5xl{\n font-size: 3rem;\n line-height: 1;\n}.mylib-upload-drawer .text-base{\n font-size: 1rem;\n line-height: 1.5rem;\n}.mylib-upload-drawer .text-sm{\n font-size: 0.875rem;\n line-height: 1.25rem;\n}.mylib-upload-drawer .text-xl{\n font-size: 1.25rem;\n line-height: 1.75rem;\n}.mylib-upload-drawer .italic{\n font-style: italic;\n}.mylib-upload-drawer .text-gray-5{\n --tw-text-opacity: 1;\n color: rgb(135 144 158 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-gray-7{\n --tw-text-opacity: 1;\n color: rgb(84 91 100 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-600{\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-green{\n --tw-text-opacity: 1;\n color: rgb(83 195 27 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-600{\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-red{\n --tw-text-opacity: 1;\n color: rgb(254 77 79 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-white{\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-yellow-500{\n --tw-text-opacity: 1;\n color: rgb(234 179 8 / var(--tw-text-opacity));\n}.mylib-upload-drawer .underline{\n text-decoration-line: underline;\n}.mylib-upload-drawer .opacity-0{\n opacity: 0;\n}.mylib-upload-drawer .shadow-sm{\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}.mylib-upload-drawer .filter{\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}.mylib-upload-drawer .transition-opacity{\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.mylib-upload-drawer .transition-transform{\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.last\\:mb-0:last-child{\n margin-bottom: 0px;\n}.hover\\:border-green-600:hover{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.hover\\:bg-assist-bg-blue:hover{\n --tw-bg-opacity: 1;\n background-color: rgb(244 246 250 / var(--tw-bg-opacity));\n}.group:hover .group-hover\\:-translate-x-10{\n --tw-translate-x: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:-translate-x-6{\n --tw-translate-x: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:opacity-100{\n opacity: 1;\n}',""]);const s=i},526:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);o&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},405:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},245:e=>{e.exports=function(e){return e[1]}},438:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],d=o.base?l[0]+o.base:l[0],c=a[d]||0,p="".concat(d," ").concat(c);a[d]=c+1;var u=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var m=r(h,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var a=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=o(e,r),d=0;d<a.length;d++){var c=n(a[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},413:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},50:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},598:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},119:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},615:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},840:e=>{e.exports="data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 version=%271.1%27 aria-hidden=%27true%27><path fill-rule=%27evenodd%27 d=%27M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z%27></path></svg>"}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={id:o,exports:{}};return e[o](a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};n.r(o),n.d(o,{AuthTag:()=>Go,BenchCard:()=>Vo,ConfirmAgain:()=>Lo,Copy:()=>Ko,FilePreview:()=>Eo,FileUploadDrawer:()=>We,FileUploadModal:()=>vn,FileUploader:()=>jn,FloatingLabelInput:()=>or,FloatingLayer:()=>Uo,Header:()=>v,InputTag:()=>N,PermissionEditModal:()=>Xa,PermissionEditor:()=>Qa,PermissionViewPopover:()=>Ya,PopoverSelect:()=>lr,StatusTag:()=>Yo,TipTapReader:()=>Ra,Tiptap:()=>Ha,UploadDrawerUploadStoreProvider:()=>X,UploadStoreProvider:()=>ht,copy:()=>Jo});var r={};n.r(r),n.d(r,{default:()=>tr,input:()=>Qo.hF,"input-label":()=>Qo.eo,"input-label-hinden":()=>Qo.J2,"slide-input-wrapper":()=>Qo.T1});const a=require("react/jsx-runtime"),i=require("antd");var s=n(438),l=n.n(s),d=n(119),c=n.n(d),p=n(413),u=n.n(p),h=n(598),m=n.n(h),b=n(50),f=n.n(b),w=n(615),g=n.n(w),y=n(280),x={};function v(e){const{showLogin:t}=e;return(0,a.jsxs)("div",{className:y.LV,children:[(0,a.jsx)("img",{src:"https://www.unpkg.com/@zjlab-fe/fe-assets/logo-white.png",className:y.wm}),t&&(0,a.jsx)(i.Button,{ghost:!0,children:"登录"})]})}x.styleTagTransform=g(),x.setAttributes=m(),x.insert=u().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=f(),l()(y.Ay,x),y.Ay&&y.Ay.locals&&y.Ay.locals;const j=require("react");var k=n.n(j);function N(e){const{value:t,onChange:n,placeholder:o="请输入关键字",valueType:r,deduplicated:s=!0,size:l,maxLength:d,disabled:c}=e,[p,u]=(0,j.useState)([]),[h,m]=(0,j.useState)(1),b=(0,j.useRef)(null);(0,j.useEffect)((()=>{if(Array.isArray(t))u(t);else if("string"==typeof t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e));u(e)}}),[t]),(0,j.useEffect)((()=>{1!==h&&(null==b?void 0:b.current)&&b.current.focus()}),[h]);const f=e=>{if(s&&(e=Array.from(new Set(e))),u(e),"array"===r)null==n||n(e.length>0?e:void 0);else{const t=e.join(";");null==n||n(t||void 0)}};let w;return(null==p?void 0:p.length)>0&&(w=p.map(((e,t)=>(0,a.jsx)(i.Tag,{closeIcon:!c,onClose:()=>(e=>{const t=p.filter(((t,n)=>n!==e));f(t),m(h+1)})(t),children:e},t)))),(0,a.jsx)(i.Input,{disabled:c,size:l,ref:b,placeholder:o,prefix:w,onPressEnter:e=>{const t=e.target.value.trim();if(""!==t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e)),n=[...p,...e];f(n),m(h+1)}},maxLength:d},h)}const A=1024,z=1048576,E=1073741824;var C,S;(S=C||(C={}))[S.INIT=1]="INIT",S[S.UPLOADING=2]="UPLOADING",S[S.FINISHED=3]="FINISHED",S[S.FAILED=4]="FAILED",S[S.PAUSED=5]="PAUSED",S[S.CANCELED=6]="CANCELED";const M=1,B=2;var O=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function W(e,t,n){return O(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=Object.assign(Object.assign({},{fileStatus:C.INIT,percentage:0,uploadId:"",expiryTime:"",uploadUrls:[],completeSeq:[],failSeq:[],cancelControllers:{},uploadStatus:[],chunkSize:0,displaySize:"",fileName:"",partCount:0,raw:void 0}),{fileName:a,raw:new File([e],a,{type:e.type}),partCount:K(r),chunkSize:Z(r),displaySize:U(r)}),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:C.FAILED})}))}function Z(e){return e<10*z?10*z:Math.ceil(e/10)}function K(e){const t=Z(e);return Math.floor(e/t)+1}function J(e,t,n,o){D(e);try{e.createObjectStore(t,{}),e.onversionchange=t=>{null===t.newVersion&&e.close()},n([])}catch(e){o(Error(`升级数据库异常: ${e.message}`))}}function P(e,t,n){const o=I.version+1;I.close();const r=window.indexedDB.open(T,o);r.onupgradeneeded=()=>J(r.result,e,t,n)}function F(e,t,n){(function(e){return new Promise((function(t,n){let o;try{o=I.transaction(e,"readonly");try{const n=o.objectStore(e),r=[],a=n.openCursor();a.onsuccess=()=>{const e=a.result;e?(r.push(e.value),e.continue()):t(r)},a.onerror=()=>{console.warn(`在handleFileRetrieve()中游标操作失败 - 错误代码: ${a.error}`,a.error)}}catch(e){n(Error(`在handleFileRetrieve()中执行事务或打开游标时发生异常 - ${e.message}`))}}catch(e){n(Error(`在handleFileRetrieve()中创建数据库事务时发生异常 - ${e.message}`))}}))})(e).then(t).catch(n)}var L=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const T="uploadStore";let I;function D(e){I=e}function U(e){const t=[{value:E,label:"GB"},{value:z,label:"MB"},{value:A,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}var q=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function H(e,t,n){return q(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return q(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>H(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return q(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[R(o,n)]:[]}))}(e,n,o):[]}))}function R(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}function _(e){return e.map((({completeSeq:e,uploadId:t,uploadStatus:n,uploadUrls:o,percentage:r,fileName:a,failSeq:i})=>({fileName:a,uploadId:t,completeSeq:e,uploadStatus:n,percentage:r,uploadUrls:[...o,...i]})))}const V={},$=(0,j.createContext)(V),G=(0,j.createContext)((()=>null));function X({children:e}){const[t,n]=(0,j.useReducer)(Y,{});return function(e){(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){const t=[];for(const[n,o]of Object.entries(e)){const e=o.filter((e=>e.fileStatus!==C.FINISHED));e.length?localStorage.setItem(n,JSON.stringify(_(e))):t.push(n)}t.length&&function(e){L(this,void 0,void 0,(function*(){const t=I.version+1;return I.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(T,t);r.onupgradeneeded=()=>{const t=r.result;e.forEach((e=>{t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)}))},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(t)}}),[e])}(t),(0,a.jsx)($.Provider,{value:t,children:(0,a.jsx)(G.Provider,{value:n,children:e})})}function Y(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==C.FINISHED))})}default:throw Error("Unknown action")}}const Q=require("@ant-design/icons");var ee=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const te="border-dashed rounded border bg-gray-50 p-4 hover:border-green-600 border-gray-300";function ne({accept:e="",directory:t=!0,dragAreaDescription:n,onFileReceived:o}){const r=(0,j.useMemo)((()=>new Set(e?e.split(","):[])),[e]),s=(0,j.useRef)(null),[l,d]=(0,j.useState)(!1),c={onDragLeave:()=>d(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),d(!0)},onDrop:function(e){return ee(this,void 0,void 0,(function*(){e.preventDefault(),d(!1);const n=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>H(e,t,r))),a=(yield Promise.allSettled(n)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value));a.length&&o(a)}))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.Flex,Object.assign({vertical:!0,gap:"1rem",align:"center",className:`${l?"border-green-600":""} ${te}`},c,{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.click()},children:[(0,a.jsx)("p",{className:"text-5xl text-green-600 m-0",children:(0,a.jsx)(Q.InboxOutlined,{})}),(0,a.jsx)("div",{className:"text-base text-center",children:n?Array.isArray(n)?n.map(((e,t)=>(0,a.jsx)("p",{className:"text-base m-0",children:e},t))):(0,a.jsx)("p",{className:"text-base m-0",children:n}):(0,a.jsx)("p",{className:"text-base m-0",children:"点击或拖拽上传文件"})})]})),(0,a.jsx)("input",{ref:s,type:"file",accept:e,hidden:!0,multiple:!0,onChange:function(){var e;const t=null===(e=s.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&o(Array.from(t))},onClick:()=>{s.current&&(s.current.value="")}})]})}const oe={size:32,strokeWidth:12,type:"circle",strokeLinecap:"butt"};function re({percent:e,status:t,onClick:n}){const{progressButtonRef:o,buttonInHover:r}=function(){const e=(0,j.useRef)(null),[t,n]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{const t=e.current;if(!t)return;const o=()=>n(!0),r=()=>n(!1);return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",r),()=>{t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",r)}}),[]),{progressButtonRef:e,buttonInHover:t}}(),[s,l]=(0,j.useState)(!1);return t===C.FINISHED?(0,a.jsx)(Q.CheckOutlined,{className:"text-green-600 text-2xl h-8"}):t===C.FAILED?(0,a.jsx)(a.Fragment,{children:s?(0,a.jsx)(Q.LoadingOutlined,{className:"text-red-600 text-2xl h-8"}):(0,a.jsx)(Q.CloseOutlined,{className:"text-red-600 text-2xl h-8",onClick:()=>{n(),l(!0)}})}):(0,a.jsx)(i.Button,{type:"text",shape:"circle",disabled:s,ref:o,title:t===C.PAUSED?"继续下载":"取消下载",onClick:()=>{n(),t===C.UPLOADING&&l(!0)},children:(0,a.jsx)(i.Progress,Object.assign({percent:e},oe,{strokeColor:s?"#f0a020":"#19a1fe",format:function(){return t===C.PAUSED?(0,a.jsx)(Q.PauseOutlined,{}):s?(0,a.jsx)(Q.LoadingOutlined,{className:"text-yellow-500"}):r?(0,a.jsx)(Q.CloseOutlined,{}):void 0}}))})}var ae=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ie(){const{identifier:e,root:t,getUploadUrls:n}=(0,j.useContext)(Oe),o=(0,j.useContext)(G);return(0,j.useCallback)((r=>ae(this,void 0,void 0,(function*(){const a=function(e){if(!e.expiryTime)return M;const t=new Date;return new Date(e.expiryTime)<t?M:B}(r)===M;if(a){const a=yield W(r.raw,t,n);o({type:"edit_file",identifier:e,file:a})}else{const t=Object.assign(Object.assign({},r),{fileStatus:C.INIT,uploadUrls:[...r.failSeq,...r.uploadUrls],failSeq:[],cancelControllers:{}});o({type:"edit_file",identifier:e,file:t})}}))),[e,t,n,o])}var se=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function le(){const{message:e}=i.App.useApp(),{identifier:t,onCancelUpload:n}=(0,j.useContext)(Oe),o=(0,j.useContext)(G);return function(t){return se(this,void 0,void 0,(function*(){const{fileName:o,uploadId:a}=t;if(!a)return void r(t);const i=yield n(o,a);i.status?r(t):e.error(i.reason||"取消失败")}))};function r(e){e.fileStatus=C.CANCELED,function(e,t){let n;try{n=I.transaction(e,"readwrite")}catch(e){return void console.warn("db.transaction() exception in deleteFileInStore() - "+e.message)}try{const o=n.objectStore(e).delete(t);o.onsuccess=()=>!0,o.onerror=e=>{console.warn("deleteReq.onerror fired in deleteFileInStore() - error code: "+o.error)}}catch(e){return void console.warn("Transaction and/or put() exception in deleteFileInStore() - "+e.message)}}(String(t),e.fileName),Object.values(e.cancelControllers).forEach((e=>e.abort())),o({type:"remove_file",identifier:t,file:e})}}var de=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ce({identifier:e,showFinished:t}){const n=(0,j.useContext)($),o=le(),r=ie(),[i,s]=(0,j.useState)([]);return(0,j.useEffect)((()=>{const o=n[e].filter((e=>e.fileStatus!==C.CANCELED&&(!1!==t||e.fileStatus!==C.FINISHED)));s(o)}),[e,t,n]),(0,a.jsx)("div",{className:"my-4",children:i.map((n=>(0,a.jsx)(pe,{identifier:e,file:n,showFinished:t,onButtonClick:l},n.fileName)))});function l(e){e.fileStatus===C.PAUSED?r(e):o(e)}}function pe({identifier:e,file:t,showFinished:n,onButtonClick:o}){const r=(0,j.useContext)(G),s="object"==typeof n&&n.withDelete;return(0,a.jsx)("div",{className:"mb-2 last:mb-0",children:(0,a.jsxs)("div",{className:"px-4 my-2 relative flex justify-between items-center",children:[(0,a.jsxs)(i.Flex,{align:"center",gap:".5rem",title:t.fileName,children:[(0,a.jsx)(Q.FileTextOutlined,{}),(0,a.jsx)("span",{className:"truncate w-40",children:t.fileName})]}),(0,a.jsxs)(i.Flex,{align:"center",gap:".5rem",children:[(0,a.jsx)(re,{status:t.fileStatus,percent:Number(t.percentage.toFixed(0)),onClick:()=>o(t)}),t.fileStatus===C.FINISHED&&s&&(0,a.jsx)(i.Button,{type:"text",size:"large",className:"px-3",disabled:s.disabled,title:s.disabled?"删除-已禁用":"删除",onClick:()=>function(t,n){return de(this,void 0,void 0,(function*(){(yield n(t.fileName))&&r({type:"remove_file",identifier:e,file:t})}))}(t,s.onDelete),children:(0,a.jsx)(Q.DeleteOutlined,{})})]})]})})}var ue=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function he(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function me(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var be=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function fe(){const{message:e}=i.App.useApp(),{identifier:t,root:n,getUploadUrls:o}=(0,j.useContext)(Oe),r=(0,j.useContext)(G),a=function(){const{message:e,modal:t}=i.App.useApp(),n=(0,j.useContext)($),{identifier:o,maxSizePerFile:r=10*E,uploadHistory:a=[],root:s}=(0,j.useContext)(Oe);return function(i){return ue(this,void 0,void 0,(function*(){const l=function(t){const n=t.filter((e=>e.size>r)).map((e=>e.name));if(n.length){const t=U(r);e.warning(`以下文件大小超过${t}:${n.join(", ")}`)}return n}(i),[d,c]=yield function(e){return ue(this,void 0,void 0,(function*(){const r=[...he(e,n[o],s),...me(e,a)];return r.length?[yield t.confirm({title:"发现同名文件,是否覆盖?",okText:"覆盖",cancelText:"取消"}),r]:[!0,[]]}))}(i);return d?[new Set(l),new Set(c)]:[new Set([...l,...c]),new Set]}))}}(),s=function(){const e=(0,j.useContext)($),{identifier:t}=(0,j.useContext)(Oe),n=le();return function(o){const r=e[t];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return function(i){return be(this,void 0,void 0,(function*(){const l=yield function(e){return be(this,void 0,void 0,(function*(){const t=new Map(e.map((e=>[e.name,e]))),[n,o]=yield a(e);return n.forEach((e=>t.delete(e))),s(o),Array.from(t.values())}))}(i),d=yield function(e){return be(this,void 0,void 0,(function*(){const t=e.map((e=>W(e,n,o)));return(yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}))}(l);d.forEach((e=>{r({type:"add_file",identifier:t,file:e})})),function(e,t){try{const n=function(e){const t=I.transaction(e,"readwrite");return t.onerror=()=>console.warn(`添加文件事务错误: ${t.error}`),t.onabort=()=>console.warn("添加文件事务已中止"),t.oncomplete=()=>console.warn("添加文件事务已完成"),t}(e);!function(e,t){t.map((t=>function(e,t){try{e.put(t,t.fileName),console.warn(`文件 "${t.fileName}" 添加成功`)}catch(e){console.warn(`添加文件 "${t.fileName}" 时出错: ${e.message}`)}}(e,t)))}(n.objectStore(e),t)}catch(e){console.warn(`批量添加文件时出错: ${e.message}`)}}(t,d),d.length<l.length&&e.info("部分文件获取上传地址失败")}))}}const we=require("axios");var ge=n.n(we),ye=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function xe(e,t=1e3){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}function ve(e,t,n){const o=e.uploadUrls.findIndex((e=>e===t));e.uploadUrls.splice(o,1),e["complete"===n?"completeSeq":"failSeq"].push(t)}var je=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},ke=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ne(){const e=function(){const{identifier:e,onOnePartDone:t}=(0,j.useContext)(Oe),n=(0,j.useContext)(G),o=(0,j.useCallback)(((t,o,r)=>{o.fileStatus===C.UPLOADING&&(o.uploadStatus[r]=Number(t.progress),o.percentage=o.uploadStatus.reduce(((e,t)=>e+t))*(100/o.partCount),n({type:"edit_file",identifier:e,file:o}))}),[e,n]),r=(0,j.useCallback)(((e,t,n)=>ye(this,void 0,void 0,(function*(){const r=ge().create({});yield r.put(e.uploadUrl,t,{signal:n.cancelControllers[e.partNum].signal,withCredentials:!1,timeout:18e5,headers:{"Content-Type":"application/octet-stream"},onUploadProgress:xe((t=>o(t,n,e.partNum)))})}))),[o]),a=(0,j.useCallback)(((e,n)=>ye(this,void 0,void 0,(function*(){const{fileName:o,uploadId:r}=e,a=yield t(o,r,n.partNum);if(!a.status)throw new Error(a.reason);ve(e,n,"complete")}))),[t]),i=(0,j.useCallback)(((e,t,n)=>ye(this,void 0,void 0,(function*(){try{return yield r(e,t,n),yield a(n,e),n.fileStatus}catch(t){return ve(n,e,"fail"),n.fileStatus}}))),[r,a]);return(0,j.useCallback)((t=>ye(this,void 0,void 0,(function*(){t.fileStatus=C.UPLOADING,n({type:"edit_file",identifier:e,file:t});const o=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(t);for(const{url:r,chunk:a}of o){if(t.cancelControllers[r.partNum]=new AbortController,(yield i(r,a,t))===C.CANCELED)return!1;n({type:"edit_file",identifier:e,file:t})}}))),[e,n,i])}(),t=function(){const{identifier:e,onAllPartDone:t}=(0,j.useContext)(Oe),n=(0,j.useContext)(G);return(0,j.useCallback)((o=>je(this,void 0,void 0,(function*(){try{const{fileName:e,uploadId:n}=o;if(0!==o.failSeq.length)throw new Error("partial failed");{const r=yield t(e,n);if(!r.status)throw new Error(r.reason);o.fileStatus=C.FINISHED}}catch(e){o.fileStatus=C.FAILED}finally{n({type:"edit_file",identifier:e,file:o})}}))),[e,t,n])}();return(0,j.useCallback)(((n,o)=>ke(this,void 0,void 0,(function*(){yield e(n),n.fileStatus!==C.CANCELED&&(yield t(n),n.fileStatus===C.FINISHED&&o&&o(n))}))),[e,t])}var Ae=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ze(e){const{message:t,modal:n}=i.App.useApp(),o=(0,j.useContext)(G),r=ie();return(0,j.useCallback)((()=>Ae(this,void 0,void 0,(function*(){const a=yield function(e){return Ae(this,void 0,void 0,(function*(){const t=yield(o=e,new Promise(((e,t)=>{I?function(e,t,n){I.objectStoreNames.contains(e)?F(e,t,n):P(e,t,n)}(o,e,t):function(e,t,n){try{const o=window.indexedDB.open(T);o.onupgradeneeded=()=>J(o.result,e,t,n),o.onsuccess=()=>function(e,t,n,o){D(e),e.objectStoreNames.contains(t)?F(t,n,o):P(t,n,o)}(o.result,e,t,n),o.onerror=()=>n(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>n(Error(`数据库被阻塞: ${o.error}`))}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),n(e)}}(o,e,t)}))),n=JSON.parse(localStorage.getItem(e)||"[]").map((e=>{const n=t.find((t=>t.fileName===e.fileName));return Object.assign(Object.assign(Object.assign({},n),e),{fileStatus:C.PAUSED})}));var o;return localStorage.removeItem(e),n}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm({title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach(r)},onCancel(){t.info("点击上传按钮手动继续")}})}))),[e,o,r,n,t])}var Ee=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ce({open:e,identifier:t,accept:n,dragAreaDescription:o,footer:r,title:s="数据上传",showFinished:l=!1,directory:d=!1,onClose:c}){var p,u;const h=(0,j.useContext)($),m=(0,j.useContext)(G),{onSuccess:b}=(0,j.useContext)(Oe),f=fe(),w=Ne(),g=ze(t),[y,x]=(0,j.useState)([]),v=(0,j.useRef)("");return(0,j.useEffect)((()=>{v.current!==t&&(h&&m?(v.current=t,h[t]||m({type:"add",identifier:t}),g()):console.warn("FileUploadDrawer 必须在 UploadStoreProvider 内使用"))}),[t,g,h,m]),(0,j.useEffect)((()=>{const e=h[t];if(!e)return;const n=!e.some((e=>e.fileStatus===C.UPLOADING)),o=e.find((e=>e.fileStatus===C.INIT));n&&o&&w(o,b)}),[t,b,w,h]),(0,a.jsxs)(i.Drawer,{className:"mylib-upload-drawer",open:e,title:s,width:480,onClose:c,footer:r,children:[(0,a.jsx)(ne,{directory:d,accept:n,dragAreaDescription:o,onFileReceived:function(e){return Ee(this,void 0,void 0,(function*(){x((t=>[...t,...e])),yield f(e),x((t=>{const n=new Set(t);for(const t of e)n.delete(t);return[...n]}))}))}}),0===y.length&&0===(null===(p=h[t])||void 0===p?void 0:p.length)&&(0,a.jsx)(i.Empty,{className:"mt-20",description:"暂无上传内容"}),y.length>0&&(0,a.jsxs)("div",{className:"flex justify-center gap-4 mt-4",children:[(0,a.jsx)(Q.LoadingOutlined,{}),"预检上传文件中(",y.length,")"]}),(null===(u=h[t])||void 0===u?void 0:u.length)>0&&(0,a.jsx)(ce,{showFinished:l,identifier:t})]})}var Se=n(588),Me={};Me.styleTagTransform=g(),Me.setAttributes=m(),Me.insert=u().bind(null,"head"),Me.domAPI=c(),Me.insertStyleElement=f(),l()(Se.A,Me),Se.A&&Se.A.locals&&Se.A.locals;var Be=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Oe=(0,j.createContext)({identifier:"",getUploadUrls:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onCancelUpload:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onOnePartDone:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onAllPartDone:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}}))});function We(e){if((0,j.useContext)($)===V)return(0,a.jsx)(i.Drawer,{open:e.open,onClose:e.onClose,title:"数据上传",children:(0,a.jsx)(i.Alert,{message:"FileUploadDrawer 必须在 UploadStoreProvider 内使用",type:"warning"})});const{identifier:t,maxSizePerFile:n=10*E,directory:o=!1,root:r="",uploadHistory:s=[],onSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onClose:h,dragAreaDescription:m,accept:b,open:f,footer:w,title:g,showFinished:y}=e,x={identifier:t,maxSizePerFile:n,directory:o,root:r,uploadHistory:s,onSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u};return(0,a.jsx)(Oe.Provider,{value:x,children:(0,a.jsx)(Ce,{open:f,accept:b,footer:w,title:g,showFinished:y,directory:o,identifier:t,dragAreaDescription:m,onClose:h})})}var Ze,Ke=n(884),Je={};Je.styleTagTransform=g(),Je.setAttributes=m(),Je.insert=u().bind(null,"head"),Je.domAPI=c(),Je.insertStyleElement=f(),l()(Ke.A,Je),Ke.A&&Ke.A.locals&&Ke.A.locals,function(e){e[e.SHOULD_CREATE_NEW_FILE=0]="SHOULD_CREATE_NEW_FILE",e[e.SHOULD_USE_OLD_INFO=1]="SHOULD_USE_OLD_INFO"}(Ze||(Ze={}));const Pe=1024,Fe=1048576,Le=1073741824;var Te;!function(e){e[e.INIT=1]="INIT",e[e.UPLOADING=2]="UPLOADING",e[e.ALL_UPLOADED=3]="ALL_UPLOADED",e[e.MERGING=4]="MERGING",e[e.FINISHED=5]="FINISHED",e[e.FAILED=6]="FAILED",e[e.PAUSED=7]="PAUSED",e[e.CANCELED=8]="CANCELED"}(Te||(Te={}));var Ie=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function De(e,t,n){return Ie(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=function(e,t,n){return{fileName:e,uploadId:"",percentage:0,expiryTime:"",failSeq:[],uploadUrls:[],completeSeq:[],uploadStatus:[],cancelControllers:[],fileStatus:Te.INIT,partCount:qe(t),chunkSize:Ue(t),raw:new File([n],e,{type:n.type})}}(a,r,e),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:Te.FAILED})}))}function Ue(e){return e<10*Fe?10*Fe:Math.ceil(e/10)}function qe(e){const t=Ue(e);return Math.floor(e/t)+1}function He(e,t){try{const n=Ve.transaction(e,"readwrite").objectStore(e).delete(t);n.onsuccess=()=>console.info("在 deleteFileInStore 中 deleteReq.onsuccess 触发"),n.onerror=()=>console.warn("在 deleteFileInStore 中 deleteReq.onerror 触发 - 错误代码: "+n.error)}catch(e){return void console.warn("在 deleteFileInStore 中, db.transaction/transaction.objectStore/objectStore.delete 异常 - "+e.message)}}var Re=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const _e="uploadStore";let Ve;function $e(e){Ve=e}var Ge=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Xe(e,t,n){return Ge(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Ge(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Xe(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Ge(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[Ye(o,n)]:[]}))}(e,n,o):[]}))}function Ye(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}var Qe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function et(e){const t=e.map((e=>{var{raw:t}=e,n=Qe(e,["raw"]);const{uploadUrls:o,failSeq:r}=n;return Object.assign(Object.assign({},n),{failSeq:[],cancelControllers:{},uploadUrls:[...o,...r]})}));return JSON.stringify(t)}const tt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader must be used within UploadStoreProvider","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal must be used within UploadStoreProvider",文件上传:"File Upload",确定:"Confirm",等待上传:"Waiting for upload",已取消:"Cancelled",上传中:"Uploading",上传失败:"Upload failed",已上传:"Uploaded",分块合并中:"Merging parts",以下文件大小超过:"The following files exceed the size",已删除:"Deleted",点击或拖拽上传文件:"Click or drag to upload files","发现同名文件,是否覆盖?":"Duplicate file found, overwrite?",覆盖:"Overwrite",取消:"Cancel",正在上传:"Uploading",取消失败:"Cancel failed",当前上传:"Current Upload",已暂停:"Paused",上传成功:"Upload successful",校验中:"Calibrating",合并中:"Merging"},nt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader 必须在 UploadStoreProvider 内使用","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal 必须在 UploadStoreProvider 内使用",文件上传:"文件上传",确定:"确定",等待上传:"等待上传",已取消:"已取消",上传中:"上传中",上传失败:"上传失败",已上传:"已上传",分块合并中:"分块合并中",以下文件大小超过:"以下文件大小超过",已删除:"已删除",点击或拖拽上传文件:"点击或拖拽上传文件","发现同名文件,是否覆盖?":"发现同名文件,是否覆盖?",覆盖:"覆盖",取消:"取消",正在上传:"正在上传",取消失败:"取消失败",当前上传:"当前上传",已暂停:"已暂停",上传成功:"上传成功",校验中:"校验中",合并中:"合并中"};var ot=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function rt(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==Te.FINISHED))})}case"edit_files":return Object.entries(t.files).reduce(((t,[n,o])=>{const r=e[n];return o.forEach((e=>{const t=r.findIndex((t=>t.fileName===e.fileName));-1!==t?r[t]=e:r.push(e)})),t}),Object.assign({},e));default:throw Error("Unknown action")}}const at=(0,j.createContext)(nt),it=(0,j.createContext)({}),st=(0,j.createContext)((()=>null)),lt=(0,j.createContext)({}),dt=(0,j.createContext)((()=>null)),ct={},pt=(0,j.createContext)(ct),ut=(0,j.createContext)((()=>null));function ht({locale:e="zh",children:t}){const n="zh"===e?nt:tt,[o,r]=(0,j.useReducer)(rt,{}),[i,s]=(0,j.useState)({}),[l,d]=(0,j.useState)({});return function(e){(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){Object.entries(e).forEach((([e,t])=>{const n=t.filter((e=>e.fileStatus!==Te.FINISHED));n.length?localStorage.setItem(e,et(n)):function(e){Re(this,void 0,void 0,(function*(){const t=Ve.version+1;return Ve.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(_e,t);r.onupgradeneeded=()=>{const t=r.result;t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(e)}))}}),[e])}(o),function(e,t){(0,j.useEffect)((()=>{const n=Object.keys(e).reduce(((t,n)=>{const o=e[n],r=o.filter((e=>e.fileStatus===Te.ALL_UPLOADED)),a=r.filter((e=>0===e.failSeq.length)),i=r.filter((e=>e.failSeq.length>0)),s=o.find((e=>e.fileStatus===Te.UPLOADING)),l=o.find((e=>e.fileStatus===Te.INIT)),d=s?void 0:l,c=[...i.map((e=>Object.assign(Object.assign({},e),{fileStatus:Te.FAILED}))),...a.map((e=>Object.assign(Object.assign({},e),{fileStatus:Te.MERGING}))),d?Object.assign(Object.assign({},d),{fileStatus:Te.UPLOADING}):void 0].filter((e=>!!e));return c.length?Object.assign(Object.assign({},t),{[n]:c}):t}),{});Object.keys(n).length&&t({type:"edit_files",files:n})}),[t,e])}(o,r),function(e,t,n,o){const r=(0,j.useRef)({}),a=(0,j.useCallback)((function(e,a){return ot(this,void 0,void 0,(function*(){const{onAllPartDone:i}=t[e],s=n[e],l=yield Promise.all(a.map((t=>ot(this,void 0,void 0,(function*(){return(yield i(t.fileName,t.uploadId)).status?(null==s||s(t),r.current[e].delete(t.uploadId),Object.assign(Object.assign({},t),{percentage:100,fileStatus:Te.FINISHED})):Object.assign(Object.assign({},t),{fileStatus:Te.FAILED})})))));o({type:"edit_files",files:{[e]:l}})}))}),[t,n,o]);(0,j.useEffect)((()=>{Object.keys(e).forEach((t=>{const n=e[t].filter((e=>e.fileStatus===Te.MERGING));if(n.length>0){const e=r.current[t]||new Set,o=n.filter((t=>!e.has(t.uploadId)));o.forEach((t=>e.add(t.uploadId))),r.current[t]=e,a(t,o)}}))}),[e,a])}(o,i,l,r),(0,a.jsx)(at.Provider,{value:n,children:(0,a.jsx)(it.Provider,{value:i,children:(0,a.jsx)(st.Provider,{value:s,children:(0,a.jsx)(lt.Provider,{value:l,children:(0,a.jsx)(dt.Provider,{value:d,children:(0,a.jsx)(pt.Provider,{value:o,children:(0,a.jsx)(ut.Provider,{value:r,children:t})})})})})})})}var mt=n(868),bt={};function ft(){const e=(0,j.useContext)(at);return(0,j.useCallback)((t=>e[t]||(console.warn(`Translation key not found: ${t}`),t)),[e])}function wt(e){return(0,a.jsx)("svg",Object.assign({width:"34",height:"31",viewBox:"0 0 34 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsxs)("g",{id:"上传插图",children:[(0,a.jsx)("path",{id:"Vector",d:"M26 8.66665V29.7043C26.0013 29.867 25.9705 30.0284 25.9094 30.1792C25.8483 30.33 25.7581 30.4672 25.6439 30.5831C25.5297 30.699 25.3938 30.7913 25.244 30.8547C25.0941 30.918 24.9332 30.9512 24.7705 30.9523H1.22943C0.903577 30.9523 0.591055 30.823 0.360528 30.5927C0.130002 30.3624 0.000328142 30.05 0 29.7241V1.22819C0 0.563332 0.553428 0 1.23562 0H17.3333V7.42856C17.3333 7.75692 17.4638 8.07184 17.6959 8.30402C17.9281 8.53621 18.243 8.66665 18.5714 8.66665H26ZM26 6.19047H19.8095V0.00371423L26 6.19047Z",fill:"#B9D6FF"}),(0,a.jsxs)("g",{id:"Group 1000006993",children:[(0,a.jsx)("circle",{id:"Ellipse 87",cx:"26",cy:"23",r:"8",fill:"#1775FE"}),(0,a.jsx)("path",{id:"Vector_2",d:"M26.4545 24.315V27.5714H25.5455V24.315L24.3034 25.2023L23.775 24.4625L26 22.8732L28.225 24.4625L27.6966 25.2023L26.4545 24.315ZM31 24.4545C31 25.7098 29.9825 26.7273 28.7273 26.7273H27.3636V25.8182H28.7273C29.0749 25.8184 29.4094 25.6858 29.6625 25.4476C29.9156 25.2094 30.0682 24.8835 30.0891 24.5365C30.11 24.1896 29.9976 23.8477 29.7749 23.5808C29.5522 23.314 29.236 23.1422 28.8909 23.1007L28.4568 23.0489L28.4918 22.6127C28.4973 22.5455 28.5 22.4775 28.5 22.4091C28.5 21.0284 27.3807 19.9091 26 19.9091C25.4245 19.9091 24.8666 20.1077 24.4205 20.4712C23.9744 20.8347 23.6672 21.3409 23.5509 21.9045L23.4955 22.175L23.2295 22.2507C22.8492 22.3591 22.5146 22.5885 22.2763 22.9042C22.038 23.2198 21.9091 23.6045 21.9091 24C21.9091 24.4822 22.1006 24.9447 22.4416 25.2856C22.7826 25.6266 23.2451 25.8182 23.7273 25.8182H24.6364V26.7273H23.7273C22.2211 26.7273 21 25.5061 21 24C21 22.8655 21.6989 21.8682 22.7239 21.4632C22.9292 20.753 23.3598 20.1288 23.9506 19.6846C24.5415 19.2403 25.2607 19.0001 26 19C27.8414 19 29.3416 20.4598 29.4068 22.2852C29.8687 22.4302 30.2723 22.7187 30.5588 23.1089C30.8453 23.499 30.9999 23.9705 31 24.4545Z",fill:"white"})]})]})}))}function gt({description:e}){const t=ft();return(0,a.jsx)("div",{className:"text-gray-5 text-center",children:e?Array.isArray(e)?e.map(((e,t)=>(0,a.jsx)("p",{className:"m-0",children:e},t))):(0,a.jsx)("div",{className:"m-0",children:e}):(0,a.jsx)("p",{className:"m-0",children:t("点击或拖拽上传文件")})})}function yt({className:e,description:t,onClick:n,handleDrop:o}){const[r,i]=(0,j.useState)(!1),s={onDrop:e=>{e.preventDefault(),i(!1),o(e)},onDragLeave:()=>i(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),i(!0)}};return(0,a.jsxs)("div",Object.assign({},s,{className:`zjlab-fe-data-hub-ui-default-drag-area ${r?"border-[#1775FE]":""} ${e}`,onClick:n,children:[(0,a.jsx)(wt,{}),(0,a.jsx)(gt,{description:t})]}))}bt.styleTagTransform=g(),bt.setAttributes=m(),bt.insert=u().bind(null,"head"),bt.domAPI=c(),bt.insertStyleElement=f(),l()(mt.A,bt),mt.A&&mt.A.locals&&mt.A.locals;var xt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function vt({accept:e="",className:t="",directory:n=!0,dragAreaDescription:o,maxSizePerFile:r=10*Le,onFileReceived:s}){const l=ft(),{message:d}=i.App.useApp(),c=(0,j.useRef)(null),p=(0,j.useMemo)((()=>new Set(e?e.split(","):[])),[e]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(yt,{className:t,description:o,handleDrop:function(e){return xt(this,void 0,void 0,(function*(){const t=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Xe(e,n,p)));u((yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value)))}))},onClick:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.click()}}),(0,a.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:e,ref:c,onChange:function(){var e;const t=null===(e=c.current)||void 0===e?void 0:e.files;u(Array.from(null!=t?t:[]))},onClick:()=>{c.current&&(c.current.value="")}})]});function u(e){const t=e.filter((e=>e.size<=r));if(t.length<e.length){const e=function(e){const t=[{value:Le,label:"GB"},{value:Fe,label:"MB"},{value:Pe,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}(r);d.warning(l("以下文件大小超过")+e+","+l("已删除"))}t.length&&s(t)}}function jt(e){return(0,a.jsx)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsx)("g",{id:"icon/关闭按钮",children:(0,a.jsx)("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8.49967C14.6668 12.1816 11.6821 15.1663 8.00016 15.1663C4.31826 15.1663 1.3335 12.1816 1.3335 8.49967C1.3335 4.81777 4.31826 1.83301 8.00016 1.83301C11.6821 1.83301 14.6668 4.81777 14.6668 8.49967ZM10.239 6.26052C10.4343 6.45578 10.4343 6.77237 10.239 6.96763L8.70698 8.49969L10.239 10.0318C10.4343 10.227 10.4343 10.5436 10.239 10.7389C10.0438 10.9341 9.7272 10.9341 9.53194 10.7389L7.99987 9.2068L6.46781 10.7389C6.27255 10.9341 5.95597 10.9341 5.7607 10.7389C5.56544 10.5436 5.56544 10.227 5.7607 10.0318L7.29277 8.49969L5.7607 6.96763C5.56544 6.77237 5.56544 6.45578 5.7607 6.26052C5.95597 6.06526 6.27255 6.06526 6.46781 6.26052L7.99987 7.79258L9.53194 6.26052C9.7272 6.06526 10.0438 6.06526 10.239 6.26052Z",fill:"currentColor"})})}))}const kt=require("jotai");var Nt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const At=ge().create();function zt(e,t=500){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}var Et=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},Ct=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const St=(0,kt.atom)(null),Mt=(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.fileName})),Bt=((0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.expiryTime})),(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.uploadId}))),Ot=((0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.raw})),(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.percentage}))),Wt=(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.cancelControllers}));function Zt(){const e=(0,j.useRef)(!1),t=(0,j.useRef)([]),n=(0,j.useContext)(Pt),[o,r]=(0,kt.useAtom)(St),a=(0,j.useContext)(ut);!function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=(0,kt.useAtomValue)(St),o=(0,kt.useSetAtom)(St);(0,j.useEffect)((()=>{const n=t[e];if(!n||0===n.length)return;const r=n.find((e=>e.fileStatus===Te.UPLOADING));r&&o(Object.assign(Object.assign({},r),{fileStatus:Te.INIT}))}),[e,o,t]),(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){n&&n.fileStatus===Te.UPLOADING&&localStorage.setItem(e+"_uploading",et([n]))}}),[n,e])}();const i=function(){const e=(0,j.useContext)(Pt),t=(0,kt.useSetAtom)(St),n=(0,j.useContext)(ut),o=function(){const e=(0,j.useContext)(It),t=(0,kt.useAtomValue)(Wt),n=(0,kt.useSetAtom)(St),o=(0,j.useCallback)(((e,t)=>{n((n=>{if(!n||n.fileStatus!==Te.UPLOADING)return n;const o=1!==n.uploadStatus[t]?n.uploadStatus.toSpliced(t,1,Number(e.progress)):n.uploadStatus,r=n.uploadStatus.reduce(((e,t)=>e+(t||0)),0)*(100/n.partCount);return Object.assign(Object.assign({},n),{percentage:r,uploadStatus:o})}))}),[n]);return(0,j.useCallback)(((n,r)=>Nt(this,void 0,void 0,(function*(){t&&(yield At.put(n.uploadUrl,r,Object.assign(Object.assign({},e),{withCredentials:(null==e?void 0:e.withCredentials)||!1,timeout:(null==e?void 0:e.timeout)||18e5,headers:Object.assign({"Content-Type":"application/octet-stream"},null==e?void 0:e.headers),signal:t[n.partNum].signal,onUploadProgress:zt((e=>o(e,n.partNum)))})))}))),[t,e,o])}(),r=function(e){const t=(0,kt.useAtomValue)(Mt),n=(0,kt.useAtomValue)(Bt),o=(0,j.useContext)(it),r=(0,kt.useSetAtom)(St),a=o[e],{onOnePartDone:i}=a;return(0,j.useCallback)((e=>Et(this,void 0,void 0,(function*(){if(!t||!n)return;const o=yield i(t,n,e.partNum);if(!o.status)throw new Error(o.reason);r((t=>{if(!t)return t;const n=[...t.uploadStatus];return n[e.partNum]=1,Object.assign(Object.assign({},t),{uploadStatus:n,uploadUrls:t.uploadUrls.filter((t=>t.partNum!==e.partNum)),completeSeq:[...t.completeSeq,e]})}))}))),[t,n,i,r])}(e),a=(0,j.useCallback)(((e,n)=>Ct(this,void 0,void 0,(function*(){try{yield o(e,n),yield r(e)}catch(n){if(n instanceof Error&&"canceled"===n.message)return;t((t=>t?Object.assign(Object.assign({},t),{failSeq:[...t.failSeq,e],uploadUrls:t.uploadUrls.filter((t=>t!==e))}):t))}}))),[o,r,t]);return(0,j.useCallback)((function(o){return Ct(this,void 0,void 0,(function*(){for(const{url:e,chunk:t}of o)yield a(e,t);t((t=>t?(n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},t),{fileStatus:Te.ALL_UPLOADED})}),null):t))}))}),[e,a,t,n])}();(0,j.useEffect)((()=>{o?(o.fileStatus===Te.INIT&&(t.current=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(o),r((e=>e?Object.assign(Object.assign({},e),{fileStatus:Te.UPLOADING,cancelControllers:new Array(t.current.length).fill(new AbortController)}):e))),o.fileStatus!==Te.UPLOADING||e.current||(e.current=!0,i(t.current)),o.fileStatus===Te.CANCELED&&(Object.values(o.cancelControllers).forEach((e=>e.abort())),a({type:"remove_file",identifier:n,fileName:o.fileName}),r(null)),o.fileStatus===Te.FAILED&&(a({type:"edit_file",identifier:n,file:o}),r(null))):e.current=!1}),[o,n,i,r,a])}const Kt=require("jotai-scope"),Jt=(0,j.createContext)(void 0),Pt=(0,j.createContext)(""),Ft=(0,j.createContext)(void 0),Lt=(0,j.createContext)(void 0),Tt=(0,j.createContext)(!1),It=(0,j.createContext)(void 0);function Dt({children:e,root:t,identifier:n,showFinished:o,uploadRequestConfig:r,externalUploadContext:i,externalUploadContextOnly:s=!1,onUploadSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onDeleteFile:h}){const m=(0,j.useContext)(it),b=(0,j.useContext)(st),f=(0,j.useContext)(dt);return(0,j.useEffect)((()=>{b((e=>Object.assign(Object.assign({},e),{[n]:{getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onDeleteFile:h}})))}),[d,c,p,u,h,b,n]),(0,j.useEffect)((()=>{f((e=>Object.assign(Object.assign({},e),{[n]:l})))}),[n,l,f]),m[n]?(0,a.jsx)(Kt.ScopeProvider,{atoms:[St],children:(0,a.jsx)(Jt.Provider,{value:t,children:(0,a.jsx)(Pt.Provider,{value:n,children:(0,a.jsx)(Ft.Provider,{value:o,children:(0,a.jsx)(Lt.Provider,{value:i,children:(0,a.jsx)(Tt.Provider,{value:s,children:(0,a.jsx)(It.Provider,{value:r,children:e})})})})})})}):(0,a.jsx)(a.Fragment,{})}var Ut=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function qt(){const e=ft(),{message:t}=i.App.useApp(),n=(0,j.useContext)(Pt),o=(0,j.useContext)(it),r=(0,j.useContext)(ut);return function(r){return Ut(this,void 0,void 0,(function*(){const{onCancelUpload:i}=o[n];if(!r.uploadId)return void a(r.fileName);const s=yield i(r.fileName,r.uploadId);s.status?a(r.fileName):t.error(s.reason||e("取消失败"))}))};function a(e){He(String(n),e),r({type:"remove_file",identifier:n,fileName:e})}}function Ht(e){return(0,a.jsx)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsxs)("g",{id:"Component 56",children:[(0,a.jsx)("path",{id:"Subtract",d:"M10.1988 5.9923V1.50071L5.00029 1.5C4.44796 1.49992 4.00016 1.94765 4.00015 2.49999L4 13.4998C3.99999 14.0521 4.44771 14.4999 5 14.4999H13.5068C14.0591 14.4999 14.5068 14.0522 14.5068 13.4999L14.507 5.9923H10.1988Z",fill:"currentColor"}),(0,a.jsx)("path",{id:"Subtract_2",d:"M14.507 4.82148H11.3911V1.5L14.507 4.82148Z",fill:"currentColor",fillOpacity:"0.4"})]})}))}const Rt={size:12,type:"circle",strokeWidth:16,showInfo:!1,strokeLinecap:"butt"},_t={[Te.INIT]:"等待上传",[Te.MERGING]:"合并中",[Te.CANCELED]:"已取消",[Te.ALL_UPLOADED]:"校验中",[Te.PAUSED]:"已暂停",[Te.FAILED]:"上传失败",[Te.UPLOADING]:"上传中",[Te.FINISHED]:"上传成功"},Vt=(0,j.memo)((function({file:e}){const t=ft(),n=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{children:[(0,a.jsx)(Gt,{fileName:e.fileName}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:t(_t[e.fileStatus]),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function $t({children:e,className:t}){return(0,a.jsx)("div",{className:`p-2 relative flex justify-between items-center rounded group ${t}`,children:e})}function Gt({fileName:e,className:t}){return(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",children:[(0,a.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-[#F5F7FA]",children:(0,a.jsx)(Ht,{className:`text-gray-5 h-5 w-5 ${t}`})}),(0,a.jsx)("span",{className:`truncate w-40 text-gray-5 ${t}`,children:e})]})}function Xt({className:e="",fileStatus:t,percentage:n,strokeColor:o="#1775FE"}){return(0,a.jsxs)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-gray-5 ${e}`,children:[t,(0,a.jsx)(i.Progress,Object.assign({percent:n},Rt,{strokeColor:o}))]})}function Yt({onDelete:e,extraActions:t,className:n=""}){return(0,a.jsxs)("div",{className:`flex items-center justify-center h-6 gap-1 text-gray-5 ${n}`,children:[t,(0,a.jsx)(jt,{onClick:e,className:"h-4 w-4 cursor-pointer"})]})}const Qt=(0,j.memo)((function(){const e=ft(),t=(0,j.useContext)(Pt),n=(0,kt.useAtomValue)(Mt),o=(0,kt.useAtomValue)(Ot),r=(0,kt.useAtomValue)(Bt),s=(0,j.useContext)(it),{onCancelUpload:l}=s[t],d=(0,kt.useSetAtom)(St);return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:n}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:e("正在上传"),percentage:Number(o.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:function(){return o=this,a=void 0,c=function*(){const o=yield l(n,r);o.status?(He(String(t),n),d((e=>e?Object.assign(Object.assign({},e),{fileStatus:Te.CANCELED}):e))):i.message.error(o.reason||e("取消失败"))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}i((c=c.apply(o,a||[])).next())}));var o,a,s,c},className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));const en=(0,j.memo)((function({file:e}){const t=ft(),n=(0,j.useContext)(ut),o=(0,j.useContext)(Pt),r=(0,j.useContext)(it),{onDeleteFile:s}=r[o],l=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:e.fileName,className:"text-green-green"}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{percentage:100,fileStatus:t("上传成功"),strokeColor:"#53C31B",className:"text-green-green group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>function(e){return t=this,r=void 0,i=function*(){if(!s)return l(e);(yield s(e.fileName))&&n({type:"remove_file",identifier:o,fileName:e.fileName})},new((a=void 0)||(a=Promise))((function(e,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,s)}l((i=i.apply(t,r||[])).next())}));var t,r,a,i}(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})})),tn=(0,j.memo)((function({file:e}){const t=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"bg-red/10",children:[(0,a.jsx)((function(){return(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",children:[(0,a.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-red/10",children:(0,a.jsx)(Ht,{className:"text-red-red h-5 w-5"})}),(0,a.jsx)("span",{className:"truncate w-40 text-red-red",children:e.fileName})]})}),{}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)((function({className:e=""}){const t=ft();return(0,a.jsx)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-red-red ${e}`,children:t("上传失败")})}),{className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>t(e),className:"text-red-red absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));var nn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function on(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(it),n=(0,j.useContext)(ut);return(0,j.useCallback)((o=>nn(this,void 0,void 0,(function*(){const r=t[e];if(function(e){if(!e)return Ze.SHOULD_CREATE_NEW_FILE;const t=new Date;return new Date(e)<t?Ze.SHOULD_CREATE_NEW_FILE:Ze.SHOULD_USE_OLD_INFO}(o.expiryTime)===Ze.SHOULD_CREATE_NEW_FILE){const t=yield De(o.raw,void 0,r.getUploadUrls);n({type:"edit_file",identifier:e,file:t})}else{const t=[...o.failSeq,...o.uploadUrls];n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},o),{uploadUrls:t,failSeq:[],cancelControllers:[],fileStatus:Te.INIT})})}}))),[e,t,n])}const rn=(0,j.memo)((function({file:e}){const t=ft(),n=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:e.fileName}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:t("已暂停"),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-10 transition-transform"}),(0,a.jsx)(Yt,{extraActions:(0,a.jsx)((function(){const t=on();return(0,a.jsx)(Q.PlayCircleFilled,{className:"text-gray-5 h-4 w-4 cursor-pointer",onClick:()=>t(e)})}),{}),onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function an(){const e=ft(),t=(0,j.useContext)(Pt),n=(0,j.useContext)(pt),o=(0,j.useContext)(Ft),r=(0,kt.useAtomValue)(Mt),i=(0,j.useMemo)((()=>{var e;return null===(e=n[t])||void 0===e?void 0:e.filter((e=>!(!o&&e.fileStatus===Te.FINISHED)))}),[t,o,n]);return Zt(),i&&0!==i.length?(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("div",{className:"text-sm text-gray-7",children:e("当前上传")}),(0,a.jsx)("div",{className:"max-h-72 overflow-y-auto",children:i.map((e=>{if(e.fileName===r)return(0,a.jsx)(Qt,{},e.fileName);switch(e.fileStatus){case Te.FINISHED:return(0,a.jsx)(en,{file:e},e.fileName);case Te.FAILED:return(0,a.jsx)(tn,{file:e},e.fileName);case Te.PAUSED:return(0,a.jsx)(rn,{file:e},e.fileName);default:return(0,a.jsx)(Vt,{file:e},e.fileName)}}))})]}):(0,a.jsx)(a.Fragment,{})}const sn={icon:null,centered:!0,closable:!0,styles:{mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},body:{marginTop:"24px",textAlign:"center"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},footer:e=>(0,a.jsx)(i.Flex,{justify:"center",align:"center",children:e}),className:"zjlab-fe-data-hub-ui-modal"},ln={width:600,centered:!0,closable:!0,styles:{body:{display:"flow-root"},footer:{textAlign:"center"},header:{marginBlockEnd:"16px"},mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},className:"zjlab-fe-data-hub-ui-file-uploader zjlab-fe-data-hub-ui-modal"};var dn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function cn(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function pn(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};var hn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function mn(e){const{message:t,modal:n}=i.App.useApp(),o=(0,j.useContext)(ut),r=on();return(0,j.useCallback)((()=>hn(this,void 0,void 0,(function*(){const a=yield function(e){return hn(this,void 0,void 0,(function*(){const t=yield(i=e,new Promise(((e,t)=>{function n(n){Ve.objectStoreNames.contains(n)?function(e){return new Promise((function(t,n){try{const n=Ve.transaction(e,"readonly").objectStore(e),o=[],r=n.openCursor();r.onsuccess=()=>{const e=r.result;e?(o.push(e.value),e.continue()):t(o)},r.onerror=()=>console.warn(`retrieveExistingData 中游标操作失败 - 错误代码: ${r.error}`)}catch(e){n(Error(`retrieveExistingData 中执行事务或打开游标时发生异常 - ${e.message}`))}}))}(n).then(e).catch(t):function(n){const o=Ve.version+1;Ve.close();const r=window.indexedDB.open(_e,o);r.onerror=()=>t(Error(`打开数据库失败: ${r.error}`)),r.onblocked=()=>t(Error(`数据库被阻塞: ${r.error}`)),r.onsuccess=()=>console.info("openRequest.onsuccess 在 triggerDatabaseUpgrade 中被触发"),r.onupgradeneeded=()=>{$e(r.result);try{r.result.createObjectStore(n,{}),r.result.onversionchange=e=>{null===e.newVersion&&r.result.close()},e([])}catch(e){t(Error(`升级数据库异常: ${e.message}`))}}}(n)}Ve?n(i):function(e){try{const o=window.indexedDB.open(_e);o.onsuccess=()=>{$e(o.result),n(e)},o.onerror=()=>t(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>t(Error(`数据库被阻塞: ${o.error}`)),o.onupgradeneeded=()=>console.info("openRequest.onupgradeneeded(SHOULD NOT BE CALLED)")}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),t(e)}}(i)}))),n=JSON.parse(localStorage.getItem(e)||"[]"),o=JSON.parse(localStorage.getItem(e+"_uploading")||"[]"),r=function(){if(o.length){const e=n.findIndex((e=>e.fileName===o[0].fileName));-1!==e&&n.splice(e,1,o[0])}return n}(),a=t.map((e=>{const t=r.find((t=>t.fileName===e.name));return t?Object.assign(Object.assign({},t),{raw:e,fileStatus:Te.PAUSED}):null})).filter((e=>null!==e));var i;return localStorage.removeItem(e),localStorage.removeItem(e+"_uploading"),a}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm(Object.assign(Object.assign({},sn),{title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach((e=>r(e)))},onCancel(){t.info("点击上传按钮手动继续")}}))}))),[e,o,r,n,t])}var bn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function fn(e){var{extra:t,dragAreaConfig:n}=e,o=bn(e,["extra","dragAreaConfig"]);return(0,a.jsx)(Dt,Object.assign({},o,{children:(0,a.jsx)(wn,{extra:t,dragAreaConfig:n})}))}function wn({extra:e,dragAreaConfig:t}){const n=(0,j.useContext)(Pt),o=(0,j.useContext)(pt),r=(0,j.useContext)(ut),s=(0,j.useContext)(Tt);!function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=(0,j.useContext)(ut),o=(0,j.useRef)(""),r=mn(e);(0,j.useEffect)((()=>{o.current!==e&&(o.current=e,t[e]||n({type:"add",identifier:e}),r())}),[e,r,t,n])}();const{isFormatingFiles:l,formatFiles:d}=function(){const e=ft(),{message:t}=i.App.useApp(),n=(0,j.useContext)(Jt),o=(0,j.useContext)(Pt),r=(0,j.useContext)(it),a=(0,j.useContext)(ut),{getUploadUrls:s}=r[o],[l,d]=(0,j.useState)(!1),c=function(){const{modal:e}=i.App.useApp(),t=ft(),n=(0,j.useContext)(Jt),o=(0,j.useContext)(Pt),r=(0,j.useContext)(pt),a=(0,j.useContext)(Lt),s=(0,j.useContext)(Tt);return function(i){return dn(this,void 0,void 0,(function*(){const l=s?pn(i,null!=a?a:[]):[...cn(i,r[o],n),...pn(i,null!=a?a:[])];return l.length?[yield e.confirm(Object.assign(Object.assign({},sn),{okText:t("覆盖"),cancelText:t("取消"),title:t("发现同名文件,是否覆盖?")})),new Set(l)]:[!0,new Set]}))}}(),p=function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=qt();return function(o){const r=t[e];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return{isFormatingFiles:l,formatFiles:function(r){return un(this,void 0,void 0,(function*(){d(!0);const i=yield function(e){return un(this,void 0,void 0,(function*(){const[t,n]=yield c(e);return t?(p(n),e):e.filter((e=>!n.has(e.name)))}))}(r),l=yield function(o){return un(this,void 0,void 0,(function*(){const r=o.map((e=>De(e,n,s))),a=(yield Promise.allSettled(r)).filter((e=>"fulfilled"===e.status)).map((e=>e.value));return(a.some((e=>e.fileStatus===Te.FAILED))||a.length<o.length)&&t.info(e("部分文件获取上传地址失败")),a}))}(i);a({type:"add_files",identifier:o,files:l}),function(e,t){try{const n=Ve.transaction(e,"readwrite").objectStore(e);t.forEach((e=>n.put(e,e.name)))}catch(e){console.warn(`在 addFilesToIndexdb 中, db.transaction/transaction.objectStore/objectStore.put 异常 - ${e.message}`)}}(o,l.map((e=>e.raw))),d(!1)}))}}}();return(0,j.useEffect)((()=>{var e;const t=null===(e=o[n])||void 0===e?void 0:e.find((e=>e.fileStatus===Te.FINISHED));s&&t&&r({type:"clear_finished",identifier:n})}),[s,n,r,o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Spin,{spinning:l,children:(0,a.jsx)(vt,Object.assign({},t,{onFileReceived:d}))}),e&&(0,a.jsx)("div",{className:"mb-4",children:e}),(0,a.jsx)(an,{})]})}var gn=n(915),yn={};yn.styleTagTransform=g(),yn.setAttributes=m(),yn.insert=u().bind(null,"head"),yn.domAPI=c(),yn.insertStyleElement=f(),l()(gn.A,yn),gn.A&&gn.A.locals&&gn.A.locals;var xn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function vn(e){var{config:{modal:t,dragArea:n,uploadRequest:o}}=e,r=xn(e,["config"]);const s=ft();return(0,j.useContext)(pt)===ct?(0,a.jsx)(i.Modal,Object.assign({},ln,{title:s("文件上传")},t,{children:(0,a.jsx)(i.Alert,{message:s("FileUploadModal 必须在 UploadStoreProvider 内使用"),type:"warning"})})):(0,a.jsx)(i.Modal,Object.assign({},ln,{forceRender:!0,title:s("文件上传"),footer:(0,a.jsx)(i.Button,{type:"primary",onClick:t.onCancel,children:s("确定")})},t,{children:(0,a.jsx)(fn,Object.assign({},r,{dragAreaConfig:n,uploadRequestConfig:o}))}))}const jn=function(e){const t=ft();return(0,j.useContext)(pt)===ct?(0,a.jsx)(i.Alert,{message:t("FileUploader 必须在 UploadStoreProvider 内使用"),type:"warning"}):(0,a.jsx)("div",{className:"zjlab-fe-data-hub-ui-file-uploader",children:(0,a.jsx)(fn,Object.assign({},e))})},kn=require("@zjlab-fe/util");function Nn(e){return new Promise((t=>{if(e&&e.length>0){const n=[...e];function o(){n.length>0?setTimeout(r):setTimeout((()=>{t(null)}))}function r(){const e=n.shift(),t=(0,kn.getFileExt)(e);if("js"===t||"mjs"===t){if(!document.querySelector(`script[src="${e}"]`)){const n=document.createElement("script");return n.src=e,"mjs"===t&&(n.type="module"),document.head.appendChild(n),n.onload=o,void(n.onerror=o)}}else if("css"===t&&!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,document.head.appendChild(t),t.onload=o,void(t.onerror=o)}o()}r()}else t(null)}))}var An=n(482),zn={};zn.styleTagTransform=g(),zn.setAttributes=m(),zn.insert=u().bind(null,"head"),zn.domAPI=c(),zn.insertStyleElement=f(),l()(An.A,zn),An.A&&An.A.locals&&An.A.locals;class En{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}}function Cn(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let o,r=0,a=1,i=1,s=1;for(;;){const e=r+i,t=a+s;if(t>8)break;n<=e/t?(i=e,s=t):(r=e,a=t)}return o=n-r/a<i/s-n?n===e?[r,a]:[a,r]:n===e?[i,s]:[s,i],o}function Sn(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)}function Mn(e){const{filePath:t}=e,n=(0,j.useRef)(null),o=(0,j.useRef)(0),r=(0,j.useRef)(null),i=(0,j.useRef)(0),s=(0,j.useRef)(0),l=(0,j.useRef)(0),d=(0,j.useRef)(!1),c=()=>{if(d.current)return Promise.resolve();d.current=!0;const e=l.current+3>i.current?i.current:l.current+3;return new Promise((t=>{if(r.current){const o=n.current;let a=e-l.current;for(let d=l.current+1;d<=e;d++)r.current.getPage(d).then((e=>{const t=e.getViewport({scale:window.devicePixelRatio||1}),n=document.createElement("canvas");n.setAttribute("id","the-canvas"+d);const r=n.getContext("2d"),a=new En,{width:i,height:l}=t;{const e=i*l,t=Math.sqrt(16777216/e);(a.sx>t||a.sy>t)&&(a.sx=t,a.sy=t)}const c=Cn(a.sx),p=Cn(a.sy);n.width=Sn(i*a.sx,c[0]),n.height=Sn(l*a.sy,p[0]);const{style:u}=n;u.width=Sn(i,c[1])+"px",u.height=Sn(l,p[1])+"px";const h={canvasContext:r,transform:a.scaled?[a.sx,0,0,a.sy,0,0]:null,viewport:t};return o.appendChild(n),e.render(h).promise.then((()=>new Promise((e=>{setTimeout((()=>{s.current=s.current+n.clientHeight,e(1)}))}))))})).catch((e=>{})).finally((()=>{a--,0===a&&(s.current<n.current.clientHeight&&e<i.current&&setTimeout(c),t(1))}))}else t(0)})).then((()=>{d.current=!1,l.current=e}))};return(0,j.useEffect)((()=>{Nn(["https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.min.mjs","https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.worker.min.mjs"]).then((()=>{window.pdfjsLib.getDocument({url:t,cMapUrl:"https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/cmaps/",cMapPacked:!0}).promise.then((t=>{var n;r.current=t,i.current=t.numPages,c(),null===(n=null==e?void 0:e.onSuccess)||void 0===n||n.call(e)})).catch((t=>{var n;null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))}),[t]),(0,a.jsx)("div",{ref:n,className:An.L,onScroll:e=>{const t=e.target.scrollTop;t>o.current&&l.current<i.current&&t>s.current-200-n.current.clientHeight&&c(),o.current=t}})}const Bn=require("i18next");var On=n.n(Bn),Wn=n(328),Zn={};function Kn(e){return e?e-55-64-16:550}function Jn(e,t=2){if(e){const n=Kn(e);return Math.floor(n/(10+22*t))}return 10}Zn.styleTagTransform=g(),Zn.setAttributes=m(),Zn.insert=u().bind(null,"head"),Zn.domAPI=c(),Zn.insertStyleElement=f(),l()(Wn.Ay,Zn),Wn.Ay&&Wn.Ay.locals&&Wn.Ay.locals;const Pn={fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:"14px",lineHeight:"22px",letterSpacing:0};function Fn(e){const{maxLines:t=2}=e,n=(0,j.useRef)([]),o=On().resolvedLanguage||localStorage.getItem("i18nextLng")||"zh";0===n.current.length&&e.head.forEach((e=>{n.current.push(function(e,t={}){const n=document.createElement("span");n.textContent=e,Object.assign(n.style,Object.assign({position:"absolute",visibility:"hidden",whiteSpace:"nowrap"},t)),document.body.appendChild(n);const o=n.offsetWidth;return document.body.removeChild(n),o}(e))}));const r=e.head.map(((e,o)=>({title:(0,a.jsx)("div",{title:e,style:Pn,children:e}),dataIndex:e,key:o,render:e=>{const r="object"==typeof e?JSON.stringify(e):e;return(0,a.jsx)("div",{className:Wn.Hn,style:{height:22*t,maxWidth:400,minWidth:n.current[o]},children:(0,a.jsx)("div",{className:Wn.P_,style:{WebkitLineClamp:t},onMouseLeave:e=>{e.currentTarget.scrollTop=0},children:r})})}}))),s={className:Wn.X$,pageSize:Jn(e.containerHeight,t),showSizeChanger:!1,onChange:e.onPageChange,showTotal:()=>e.total&&e.total>e.data.length?(0,a.jsxs)("div",{className:Wn.UA,children:[(0,a.jsx)(Q.InfoCircleOutlined,{})," ","zh"===o?"请下载查看完整内容":"Please download to view the full content"]}):null};return(0,a.jsx)(i.Table,{tableLayout:"auto",className:Wn.tp,columns:r,dataSource:e.data,scroll:{x:"max-content",y:Kn(e.containerHeight)},pagination:s})}const Ln=require("chardet");var Tn=n.n(Ln),In=n(685),Dn={};Dn.styleTagTransform=g(),Dn.setAttributes=m(),Dn.insert=u().bind(null,"head"),Dn.domAPI=c(),Dn.insertStyleElement=f(),l()(In.A,Dn),In.A&&In.A.locals&&In.A.locals;var Un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function qn(e){var t;const n=(0,j.useRef)(null),o=(0,kn.getFileExt)(e.filePath),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{Nn(["https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.js","https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.css","https://fastly.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js","https://fastly.jsdelivr.net/npm/papaparse@5.5.2/papaparse.min.js"]).then((()=>Un(this,void 0,void 0,(function*(){fetch(e.filePath).then((t=>Un(this,void 0,void 0,(function*(){if("csv"===o){const o=yield t.blob(),r=new File([o],"test.csv",{type:o.type});(function(e){return Un(this,void 0,void 0,(function*(){return new Promise((t=>{try{const n=new FileReader;n.onload=function(e){const n=e.target.result,o=Tn().detect(new Uint8Array(n.slice(0,1024)));console.log("+++ encoding",o),t(o)},n.readAsArrayBuffer(e)}catch(e){console.log("+++ getEncoding error",e),t("UTF-8")}}))}))})(o).then((t=>{window.Papa.parse(r,{encoding:t,complete:t=>{var o,r,a;const s=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o[0],d=[];null===(r=null==t?void 0:t.data)||void 0===r||r.forEach(((e,t)=>{if(0!==t){const n={key:t.toString()};s.forEach(((t,o)=>{n[t]=e[o]})),d.push(n)}})),i({head:s,data:d}),l(n.current.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e)},error:t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}})}))}else t.arrayBuffer().then((function(t){var o;const r=function(e){const t=[];return e.SheetNames.forEach((function(n){const o={name:n,rows:{}},r=e.Sheets[n];if(!r||!r["!ref"])return;const a=XLSX.utils.decode_range(r["!ref"]);a.s={r:0,c:0};const i=XLSX.utils.sheet_to_json(r,{raw:!1,header:1,range:a});i.forEach((function(e,t){const n={};e.forEach((function(e,o){n[o]={text:e||String(e)};const a=XLSX.utils.encode_cell({r:t,c:o});null!=r[a]&&null!=r[a].f&&(n[o].text="="+r[a].f)})),o.rows[t]={cells:n}})),o.rows.len=i.length,o.merges=[],(r["!merges"]||[]).forEach((function(e,t){null==o.rows[e.s.r]&&(o.rows[e.s.r]={cells:{}}),null==o.rows[e.s.r].cells[e.s.c]&&(o.rows[e.s.r].cells[e.s.c]={}),o.rows[e.s.r].cells[e.s.c].merge=[e.e.r-e.s.r,e.e.c-e.s.c],o.merges[t]=XLSX.utils.encode_range(e)})),t.push(o)})),t}(window.XLSX.read(t));window.x_spreadsheet(n.current,{mode:"read",showToolbar:!1,showContextmenu:!1,view:{height:()=>n.current.clientHeight,width:()=>n.current.clientWidth}}).loadData(r),null===(o=null==e?void 0:e.onSuccess)||void 0===o||o.call(e)})).catch((e=>{throw e}))})))).catch((t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))))}),[]),(0,a.jsx)("div",{ref:n,className:In.L,children:"csv"===o&&r?(0,a.jsx)(Fn,{head:r.head,data:r.data,containerHeight:s,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines}):null})}var Hn=n(913),Rn={};function _n(e){return(0,a.jsx)("div",{className:Hn.LV,children:(0,a.jsx)("img",{src:e.filePath,onError:t=>{var n;console.log("+++ img error"),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},onLoad:()=>{var t;null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)},className:Hn._8})})}Rn.styleTagTransform=g(),Rn.setAttributes=m(),Rn.insert=u().bind(null,"head"),Rn.domAPI=c(),Rn.insertStyleElement=f(),l()(Hn.Ay,Rn),Hn.Ay&&Hn.Ay.locals&&Hn.Ay.locals;const Vn=require("react-markdown");var $n=n.n(Vn);const Gn=require("rehype-raw");var Xn=n.n(Gn);const Yn=require("remark-gfm");var Qn=n.n(Yn);const eo=require("remark-math");var to=n.n(eo);const no=require("rehype-mathjax");var oo=n.n(no),ro=n(555),ao={};ao.styleTagTransform=g(),ao.setAttributes=m(),ao.insert=u().bind(null,"head"),ao.domAPI=c(),ao.insertStyleElement=f(),l()(ro.A,ao),ro.A&&ro.A.locals&&ro.A.locals;var io=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function so(e){const t=(0,j.useRef)(null),[n,o]=(0,j.useState)("");return(0,j.useEffect)((()=>{(()=>{io(this,void 0,void 0,(function*(){var t,n;try{let n=yield fetch(e.filePath).then((e=>e.text()));n=n.replace(/!\[(.*?)\]\((.*?)\)/g,((e,t,n)=>n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?e:"")),o(n),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{ref:t,style:{height:"100%",overflow:"auto"},className:ro.L,children:n?(0,a.jsx)($n(),{className:"markdown-body",remarkPlugins:[to(),Qn()],rehypePlugins:[Xn(),oo()],children:n}):null})}var lo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function co(e){const[t,n]=(0,j.useState)("");return(0,j.useEffect)((()=>{(()=>{lo(this,void 0,void 0,(function*(){var t,o;try{const o=yield fetch(e.filePath).then((e=>e.text()));n(o),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(o=null==e?void 0:e.onError)||void 0===o||o.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})}const po=require("react-json-view");var uo=n.n(po);const ho=require("react-error-boundary");var mo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function bo(e){const t=(0,j.useRef)(null),[n,o]=(0,j.useState)(),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{(()=>{mo(this,void 0,void 0,(function*(){var n,r,a,s;try{let s;s=e.jsonConfig?e.jsonConfig.data:yield fetch(e.filePath).then((e=>e.text()));try{const e="string"==typeof s?JSON.parse(s):s;o(e)}catch(e){const o=function(e,t){const{trim:n=!0,skipEmpty:o=!0}={};if(!e)return[];const r=[];let a="",i=!1,s=!1;for(let t=0;t<e.length;t++){const l=e[t];if(s)a+=l,s=!1;else if("\\"!==l)if('"'!==l)if("\n"!==l&&"\r"!==l||i)a+=l;else{if("\r"===l&&t+1<e.length&&"\n"===e[t+1])continue;const i=n?a.trim():a;(!o||i.length>0)&&r.push(i),a=""}else i=!i,a+=l;else a+=l,s=!0}if(a){const e=n?a.trim():a;(!o||e.length>0)&&r.push(e)}return r}(s);if(o.length>0){const e=[];let a=0;if(o.forEach((t=>{try{const n=JSON.parse(t);"object"==typeof n?Array.isArray(n)?n.forEach((t=>{e.push(Object.assign(Object.assign({},t),{key:a.toString()})),a++})):(e.push(Object.assign(Object.assign({},n),{key:a.toString()})),a++):(e.push({content:t,key:a.toString()}),a++)}catch(e){console.log("+++ e",e)}})),e.length>0){const o=Object.keys(e[0]).filter((e=>"key"!==e));i({head:o,data:e}),l(null===(n=t.current)||void 0===n?void 0:n.clientHeight)}else{e.push({content:s,key:"0"});const n=Object.keys(e[0]).filter((e=>"key"!==e));i({head:n,data:e}),l(null===(r=t.current)||void 0===r?void 0:r.clientHeight)}}}null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e)}catch(t){null===(s=null==e?void 0:e.onError)||void 0===s||s.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:t,children:n?(0,a.jsx)(ho.ErrorBoundary,{fallback:JSON.stringify(n),children:(0,a.jsx)(uo(),{name:!1,src:n,iconStyle:"triangle",collapsed:2,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,collapseStringsAfterLength:140,style:{fontFamily:"Monaco, Menlo, Consolas, monospace",backgroundColor:"rgba(0, 0, 0, 0)",color:"rgb(155, 12, 121)"}})}):r?(0,a.jsx)(Fn,{head:r.head,data:r.data,containerHeight:s,maxLines:null===(d=e.tableConfig)||void 0===d?void 0:d.maxLines}):null});var d}const fo=require("arrow-js-ffi"),wo=require("parquet-wasm");var go=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};let yo;function xo(e){var t;const n=(0,j.useRef)(null),[o,r]=(0,j.useState)(),[i,s]=(0,j.useState)();return(0,j.useEffect)((()=>{let t;yo||(yo=(0,wo.wasmMemory)()),(()=>{go(this,void 0,void 0,(function*(){var o,a,i;try{const i=yield fetch(e.filePath),l=new Uint8Array(yield i.arrayBuffer());t=(0,wo.readParquet)(l).intoFFI();const d=(0,fo.parseTable)(yo.buffer,t.arrayAddrs(),t.schemaAddr()),c=d.schema.fields.map((e=>e.name)),p=[];console.log("+++ arrowTable.numRows",d.numRows);for(let e=0;e<d.numRows;e++)p.push(Object.assign(Object.assign({},d.get(e).toJSON()),{key:e.toString()}));r({head:c,data:p}),s(null===(o=n.current)||void 0===o?void 0:o.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e),t.drop()}catch(t){null===(i=null==e?void 0:e.onError)||void 0===i||i.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:n,children:o&&(0,a.jsx)(Fn,{head:o.head,data:o.data,containerHeight:i,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines})})}n.n(wo)()();var vo=n(708),jo={};function ko(e){var t,n;const o=(0,j.useRef)(null),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{var t,n;const{tableConfig:r}=e,{header:a,rows:s=[]}=r||{};if(a){const n=a,r=[];s.forEach(((e,t)=>{const o={key:t.toString()};n.forEach(((t,n)=>{o[t]=e[n]})),r.push(o)})),i({head:n,data:r}),l(o.current.clientHeight),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}else null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,new Error("tableConfig.header is required"))}),[]),(0,a.jsx)("div",{ref:o,className:vo.L,children:r?(0,a.jsx)(Fn,{head:r.head,data:r.data,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines,total:null===(n=e.tableConfig)||void 0===n?void 0:n.rowCount,containerHeight:s}):null})}jo.styleTagTransform=g(),jo.setAttributes=m(),jo.insert=u().bind(null,"head"),jo.domAPI=c(),jo.insertStyleElement=f(),l()(vo.A,jo),vo.A&&vo.A.locals&&vo.A.locals;var No=n(690),Ao={};function zo(e){var t,n,o;const r=On().resolvedLanguage||localStorage.getItem("i18nextLng")||"zh",{filePath:s,tableConfig:l,jsonConfig:d}=e,[c,p]=(0,j.useState)(!1),[u,h]=(0,j.useState)(!0),m=t=>{var n;h(!1),p(!0),console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},b=()=>{var t;h(!1),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)};let f=null;if(c)f=(0,a.jsx)("div",{className:No.LV,children:"zh"===r?"获取文件失败":"Failed to get file"});else if(l)f=(0,a.jsx)(ko,Object.assign({},e,{onSuccess:b}));else if(d)f=(0,a.jsx)(bo,Object.assign({},e,{onError:m,onSuccess:b}));else if(s){const t=(0,kn.getFileExt)(s),n=(0,a.jsx)("div",{className:No.D5,children:(0,a.jsx)(i.Spin,{})});let o=null,l=!0;switch(t){case"pdf":o=(0,a.jsx)(Mn,Object.assign({},e,{onError:m,onSuccess:b}));break;case"xlsx":case"csv":o=(0,a.jsx)(qn,Object.assign({},e,{onError:m,onSuccess:b}));break;case"png":case"jpg":case"jpeg":o=(0,a.jsx)(_n,Object.assign({},e,{onError:m,onSuccess:b}));break;case"mmd":case"md":o=(0,a.jsx)(so,Object.assign({},e,{onError:m,onSuccess:b}));break;case"txt":o=(0,a.jsx)(co,Object.assign({},e,{onError:m,onSuccess:b}));break;case"parquet":o=(0,a.jsx)(xo,Object.assign({},e,{onError:m,onSuccess:b}));break;case"jsonl":case"json":o=(0,a.jsx)(bo,Object.assign({},e,{onError:m,onSuccess:b}));break;default:l=!1}f=l?(0,a.jsxs)(a.Fragment,{children:[u&&n,o]}):(0,a.jsxs)("div",{className:No.LV,children:["zh"===r?"暂不支持":"Not supported"," ",t," ","zh"===r?"文件预览":"file preview"]})}return e.openInModal?(null===(t=null==e?void 0:e.modalProps)||void 0===t?void 0:t.show)?(0,a.jsx)(i.Modal,{open:!0,title:null===(n=null==e?void 0:e.modalProps)||void 0===n?void 0:n.title,className:No.qf,centered:!0,width:"100%",onCancel:null===(o=null==e?void 0:e.modalProps)||void 0===o?void 0:o.onCancel,footer:null,children:f}):null:f}function Eo(e){const[t,n]=(0,j.useState)(0),[o,r]=(0,j.useState)(e.filePath),[i,s]=(0,j.useState)(e.tableConfig);return(0,j.useEffect)((()=>{o===e.filePath&&i===e.tableConfig||(r(e.filePath),s(e.tableConfig),n(t+1))}),[e.filePath,e.tableConfig]),o!==e.filePath||i!==e.tableConfig?null:(0,a.jsx)(zo,Object.assign({},e),t)}Ao.styleTagTransform=g(),Ao.setAttributes=m(),Ao.insert=u().bind(null,"head"),Ao.domAPI=c(),Ao.insertStyleElement=f(),l()(No.Ay,Ao),No.Ay&&No.Ay.locals&&No.Ay.locals;const Co=require("copy-to-clipboard");var So=n.n(Co),Mo=n(860),Bo={};Bo.styleTagTransform=g(),Bo.setAttributes=m(),Bo.insert=u().bind(null,"head"),Bo.domAPI=c(),Bo.insertStyleElement=f(),l()(Mo.A,Bo),Mo.A&&Mo.A.locals&&Mo.A.locals;const Oo=require("classnames");var Wo=n.n(Oo);const Zo={zh:"已复制",en:"Copied"};function Ko(e){const{showFeedback:t=!0,text:n,locale:o="zh"}=e;return(0,a.jsx)("span",{className:Wo()(Mo.K,"data-hub-ui-copy-icon"),onClick:()=>{n&&(So()(n),t&&i.message.success(Zo[o])),(null==e?void 0:e.onClick)&&e.onClick()},children:""})}function Jo(e,t={showFeedback:!0,locale:"zh"}){const{showFeedback:n="true",locale:o="zh"}=t;e&&(So()(e),n&&i.message.success(Zo[o]))}var Po=n(100),Fo={};function Lo(e){return(0,a.jsx)(i.Modal,Object.assign({},e,{wrapClassName:Po.wm,width:400}))}Fo.styleTagTransform=g(),Fo.setAttributes=m(),Fo.insert=u().bind(null,"head"),Fo.domAPI=c(),Fo.insertStyleElement=f(),l()(Po.Ay,Fo),Po.Ay&&Po.Ay.locals&&Po.Ay.locals,Lo.confirm=e=>{i.Modal.confirm(Object.assign({},e)).update({icon:null,closable:!0,width:400,wrapClassName:`${Po.DE}`})};var To=n(989),Io={};Io.styleTagTransform=g(),Io.setAttributes=m(),Io.insert=u().bind(null,"head"),Io.domAPI=c(),Io.insertStyleElement=f(),l()(To.Ay,Io),To.Ay&&To.Ay.locals&&To.Ay.locals;const Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAAAXNSR0IArs4c6QAAAf1JREFUOE+lkz9oE3EUx7/vd0nbOPing5RSKJ0q+GdVUCkOLh2qQ4lLtfVsESlpTEsql2bIUNI2htSLONleKjqUc1BxE3QQCuJSKAg6aKfqIqiQao7mfq/cNXckscGAv+l+777v897v/b4/wn8uapQfyedbj1Kos2xL+3jnka1wOGzvp/0LMJtd6hYBoRFwFcCBStJvBh4TI6PF1C/VoBpAWi/0E/MzAC0NOttmlkOJ2Ohz778PSOceniehvG1mJEIop+9MDL93tC7ANE3l89fiBwC9zQBA+Gj96DmZSl0ou4D0ojFIhKd+MvMaE70mIFmJ3QVwFsA5T2NLOZCcHH3pAuYXjQUmTFdV/yVh9wpWVEBCEhsCyicAh3wNQdei6m0XMHfPWAVwpW66P1uZepyYRbzJwOGa4zFeaDH18h5AN1bAGK4REObaJGWcWEnwNBhaHeCRFlNHKh0sTwGU9QTMMEOgmyXiDSfWxnSqBF4B4ZKvIZpKRK/nXEDmQaHD3uFvVRUc45QIaK9c1XfeM5VnLNjS6kpO3tryfTCvF/LMHGnmGpn4fiJ6Y8L3gfORy5khSxTfADjzD8g7K/jnYmp8vFgDcDap/JODLbwzS406YeiBcmAmHr+27RXZ9zWms4VjCHAfQZwgyKAE1oOK/SoeGdus767hc25mFo5mF83NrRLVZKusAAAAAElFTkSuQmCC";function Uo({visiable:e,children:t,onClose:n}){const[o,r]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{r(e)}),[e]),o?(0,a.jsxs)("div",{className:To.LV,children:[(0,a.jsx)("div",{style:{backgroundImage:"url("+Do+")"},className:To.Kk,onClick:()=>n()}),(0,a.jsx)("div",{className:To.NI,children:t})]}):null}var qo=n(150),Ho={};function Ro(e){return(0,a.jsx)("div",{className:`${qo.cQ} ${"workflow"===e.type?qo._b:qo.Og}`,children:e.children})}function _o(e){return(0,a.jsx)("div",{className:`${qo.Rp} ${"workflow"===e.type?qo._b:qo.Og}`,children:e.children})}function Vo(e){return(0,a.jsxs)("div",{children:["small"===(null==e?void 0:e.size)&&(0,a.jsx)(_o,Object.assign({},e)),(!(null==e?void 0:e.size)||"middle"===(null==e?void 0:e.size))&&(0,a.jsx)(Ro,Object.assign({},e))]})}Ho.styleTagTransform=g(),Ho.setAttributes=m(),Ho.insert=u().bind(null,"head"),Ho.domAPI=c(),Ho.insertStyleElement=f(),l()(qo.Ay,Ho),qo.Ay&&qo.Ay.locals&&qo.Ay.locals;const $o={confidential:"#FAAD14",public:"#53C31B",private:"#FE4D4F"};function Go(e){const{type:t="public",children:n}=e,o=$o[t];return(0,a.jsx)(i.Tag,{style:{backgroundColor:"#fff",border:`1px solid ${o}`,borderRadius:"4px",fontSize:"12px",color:`${o}`,padding:"0 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}const Xo={running:"#0061FF",failed:"#FE4D4F",success:"#53C31B",stopped:"#545B64",pending:"#FAAD14"};function Yo(e){const{type:t="running",children:n}=e,o=Xo[t];return(0,a.jsx)(i.Tag,{bordered:!1,style:{backgroundColor:`rgba(${(e=>{const t=parseInt(e.replace("#",""),16);return`${t>>16&255},${t>>8&255},${255&t}`})(o)},0.1)`,borderRadius:"4px",fontSize:"14px",color:`${o}`,padding:"3px 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}var Qo=n(519),er={};er.styleTagTransform=g(),er.setAttributes=m(),er.insert=u().bind(null,"head"),er.domAPI=c(),er.insertStyleElement=f(),l()(Qo.Ay,er);const tr=Qo.Ay&&Qo.Ay.locals?Qo.Ay.locals:void 0;var nr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function or(e){var{id:t,placeholder:n,onFocus:o,onBlur:s,inline:l=!1,wrapperStyle:d={},wrapperClassName:c=""}=e,p=nr(e,["id","placeholder","onFocus","onBlur","inline","wrapperStyle","wrapperClassName"]);const{status:u}=i.Form.Item.useStatus(),[h,m]=(0,j.useState)(!1),[b,f]=(0,j.useState)(!1),[w,g]=(0,j.useState)(""),y=n;(0,j.useEffect)((()=>{g("error"===u?"#ff4d4f":b?"#1890ff":"#545b64")}),[u,b]);const x=(0,j.useCallback)((e=>{m(!0),f(!0),null==o||o(e)}),[o]),v=(0,j.useCallback)((e=>{0===String(e.target.value).length&&m(!1),f(!1),null==s||s(e)}),[s]);return(0,a.jsxs)("div",{id:t,className:`${Qo.hF} ${c}`,style:Object.assign({display:l?"inline-block":"block"},d),children:[(0,a.jsx)(i.Input,Object.assign({},p,{placeholder:h?"":y,onFocus:x,onBlur:v})),(0,a.jsx)("div",{style:{color:`${w}`},className:h?r["input-label"]:r["input-label-hinden"],children:y})]})}var rr=n(255),ar={};ar.styleTagTransform=g(),ar.setAttributes=m(),ar.insert=u().bind(null,"head"),ar.domAPI=c(),ar.insertStyleElement=f(),l()(rr.Ay,ar),rr.Ay&&rr.Ay.locals&&rr.Ay.locals;var ir=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sr=e=>{if(!e||0===e.length)return"";for(const t of e)if(t.options&&t.options.length>0){const e=sr(t.options);if(e)return e}else if(t.desc)return t.desc;return""};function lr(e){var{id:t,options:n,style:o,onDropdownVisibleChange:r,inline:s=!1,wrapperStyle:l={},wrapperClassName:d="",popupClassName:c=""}=e,p=ir(e,["id","options","style","onDropdownVisibleChange","inline","wrapperStyle","wrapperClassName","popupClassName"]);const[u,h]=(0,j.useState)(""),[m,b]=(0,j.useState)(!1),[f,w]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{const e=sr(n);h(e)}),[n]),(0,a.jsxs)("div",{id:t,className:`${rr.Lt} ${d}`,style:Object.assign({display:s?"inline-block":"block"},l),children:[(0,a.jsx)(i.Select,Object.assign({style:Object.assign({width:200},o),options:n,popupClassName:`${rr.lY} ${c}`,onDropdownVisibleChange:e=>{e?b(!0):(w(!0),setTimeout((()=>{b(!1),w(!1)}),200),null==r||r(e))},optionRender:e=>{const{label:t,desc:n}=e.data;return(0,a.jsx)("div",{style:{cursor:"pointer",width:"100%"},onMouseEnter:()=>{h(n)},children:t})}},p)),m&&(0,a.jsx)("div",{style:{left:(null==o?void 0:o.width)?o.width:200},className:`${rr.Bu} ${f?rr.eb:""}`,children:u})]})}const dr=require("@tiptap/react"),cr=require("@tiptap/extension-color");var pr=n.n(cr);const ur=require("@tiptap/extension-table-cell");var hr=n.n(ur);const mr=require("@tiptap/extension-table-header");var br=n.n(mr);const fr=require("@tiptap/extension-table-row");var wr=n.n(fr);const gr=require("@tiptap/extension-text-align");var yr=n.n(gr);const xr=require("@tiptap/starter-kit");var vr=n.n(xr);const jr=require("@tiptap/extension-table"),kr=require("@tiptap/extension-highlight");var Nr=n.n(kr);const Ar=require("@tiptap/extension-image");var zr=n.n(Ar);const Er=require("@tiptap/extension-text-style"),Cr=require("@tiptap/extension-list-item");var Sr=n.n(Cr);const Mr=dr.Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"],defaultFontSize:"14px"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:this.options.defaultFontSize,parseHTML:e=>e.style.fontSize||this.options.defaultFontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),Br=require("@tiptap/pm/state"),Or=require("@tiptap/extension-link");function Wr(e,t,n){if(!t.type.startsWith("image/"))return!1;const o=new FileReader;return o.onload=o=>{var r;const a=null===(r=o.target)||void 0===r?void 0:r.result;e.commands.insertContent(`<p><img class="inline" src="${a}" alt="${t.name}" title="${t.name}"/></p>`),null==n||n()},o.readAsDataURL(t),!1}const Zr=require("marked"),Kr="\x3c!--- this is file is already parsed --\x3e",Jr=new class{constructor(){this.patterns={headers:/^#{1,6}\s+.+$/gm,emphasis:/(\*{1,2}|_{1,2}).+?\1/g,code:/(```[\s\S]*?```|`[^`]+`)/g,links:/\[([^\]]+)\]\(([^)]+)\)/g,blockquotes:/^>\s+.+$/gm,lists:/^(\s*[-*+]\s+|\s*\d+\.\s+).+$/gm,tables:/^\|.+\|$/gm,horizontalRules:/^(-{3,}|\*{3,}|_{3,})$/gm,images:/!\[([^\]]*)\]\(([^)]+)\)/g}}isNotMarkdown(e,t=10){return!e||0===e.trim().length||this.calculateMarkdownScore(e)<t}calculateMarkdownScore(e){const t=e.split("\n").filter((e=>e.trim().length>0));let n=0,o=0;Object.entries(this.patterns).forEach((([t,o])=>{const r=e.match(o)||[];n+=r.length})),o=t.length;const r=/```[\s\S]*?```/g.test(e),a=/`[^`]+`/g.test(e),i=/\[([^\]]+)\]\(([^)]+)\)/g.test(e),s=/^#{1,6}\s+/gm.test(e);r&&(n+=2),a&&(n+=1),i&&(n+=2),s&&(n+=2);const l=o>0?Math.min(100,n/o*100):0;return Math.round(l)}analyzeMarkdownPatterns(e){const t={};return Object.entries(this.patterns).forEach((([n,o])=>{const r=e.match(o)||[];t[n]=r.length})),t}isPlainText(e){return!/[#*_`>[\](){}|~-]/.test(e)||![/^#{1,6}\s/gm,/\*\*.*\*\*/g,/\*[^*]+\*/g,/_[^_]+_/g,/`[^`]+`/g,/```[\s\S]*?```/g,/\[.*\]\(.*\)/g,/^>\s/gm,/^[-*+]\s/gm,/^\d+\.\s/gm].some((t=>t.test(e)))}},Pr=dr.Extension.create({name:"pasteHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Br.Plugin({key:new Br.PluginKey("pasteHandler"),props:{handlePaste(t,n){var o,r;const a=null===(o=n.clipboardData)||void 0===o?void 0:o.files;return a&&a.length>0?Fr(e,a):function(e,t){if(function(e,t=10){return Jr.isNotMarkdown(e,t)}(t))return void e.commands.insertContent(t);const n=function(e){if(e.startsWith(Kr))return e.slice(40);const t=function(e){return e.replace(/\n<\/code><\/pre>/g,"</code></pre>")}(function(e){return e.replace(/align="center"/g,'style="text-align: center;"')}(Zr.marked.parse(e,{async:!1})));return Kr+function(e){return e.replace(/<div style="([^"]+)">(.*?)<\/div>/g,((e,t,n)=>n.replace(/(<[^>]+>)/g,(e=>e.includes('style="')?e.replace('style="',`style="${t}; `):e.replace(">",` style="${t}">`)))))}(t)}(t),o=(0,dr.generateJSON)(n,[Pr,vr(),Or.Link.configure({openOnClick:!1})]);e.commands.insertContent(o,{parseOptions:{preserveWhitespace:!1}})}(e,(null===(r=n.clipboardData)||void 0===r?void 0:r.getData("text"))||""),!0}}})]}});function Fr(e,t){for(let n=0;n<t.length;n++)Wr(e,t[n])}const Lr=require("prosemirror-state"),Tr=dr.Extension.create({name:"dropHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Lr.Plugin({key:new Lr.PluginKey("dropHandler"),props:{handleDrop(t,n){var o;const r=null===(o=n.dataTransfer)||void 0===o?void 0:o.files;return r&&r.length>0&&Fr(e,r),!0}}})]}}),Ir=require("lowlight"),Dr=require("@tiptap/extension-code-block-lowlight");var Ur=n.n(Dr);const qr=require("@tiptap/extension-underline");var Hr=n.n(qr);const Rr=(0,Ir.createLowlight)(Ir.all),_r=[Tr,Pr,Mr,wr(),Er.TextStyle,hr(),Hr(),br(),jr.Table.configure({resizable:!0}),vr().configure({codeBlock:!1}),Ur().configure({lowlight:Rr}),Nr().configure({multicolor:!0}),zr().configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"max-w-96 h-auto inline mb-0"}}),pr().configure({types:[Er.TextStyle.name,Sr().name]}),yr().configure({types:["heading","paragraph",br().name,hr().name]})],Vr=[..._r,Or.Link.configure({openOnClick:!1}).extend({inclusive:!1})],$r=[..._r,Or.Link.configure({openOnClick:!0})];var Gr=n(444),Xr={};Xr.styleTagTransform=g(),Xr.setAttributes=m(),Xr.insert=u().bind(null,"head"),Xr.domAPI=c(),Xr.insertStyleElement=f(),l()(Gr.A,Xr),Gr.A&&Gr.A.locals&&Gr.A.locals;const Yr={bold:{command:"toggleBold",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42"})}))}),{className:"text-xl"})},italic:{command:"toggleItalic",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})}))}),{className:"text-xl"})},strike:{command:"toggleStrike",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M7.2 9.8c-1.2-2.3.5-5 2.9-5.5c3.1-1 7.6.4 7.5 4.2h-3c0-.3-.1-.6-.1-.8c-.2-.6-.6-.9-1.2-1.1c-.8-.3-2.1-.2-2.8.3C9 8.2 10.4 9.5 12 10H7.4c-.1-.1-.1-.2-.2-.2M21 13v-2H3v2h9.6c.2.1.4.1.6.2c.6.3 1.1.5 1.3 1.1c.1.4.2.9 0 1.3c-.2.5-.6.7-1.1.9c-1.8.5-4-.2-3.9-2.4h-3c-.1 2.6 2.1 4.4 4.5 4.7c3.8.8 8.3-1.6 6.3-5.9z"})}))}),{className:"text-xl"})},underline:{command:"toggleUnderline",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 21h14v-2H5zm7-4a6 6 0 0 0 6-6V3h-2.5v8a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 11V3H6v8a6 6 0 0 0 6 6"})}))}),{className:"text-xl"})}};function Qr({editor:e}){return(0,a.jsx)(a.Fragment,{children:Object.keys(Yr).map((n=>function(n){return(0,a.jsx)(i.Button,{size:"small",type:"text",icon:Yr[n].icon,onClick:(o=Yr[n].command,()=>e.chain().focus()[o]().run()),disabled:t(Yr[n].command),className:e.isActive(n)?"bg-blue-5 text-white":""},n);var o}(n)))});function t(t){return!e.can().chain().focus()[t]().run()}}const ea=function(e){return(0,a.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,a.jsx)("path",{d:"M96 768h832v160H96z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M443.862627 224.692457m45.254834 45.254834l135.764502 135.764502q45.254834 45.254834 0 90.509668l-135.764502 135.764502q-45.254834 45.254834-90.509668 0l-135.764502-135.764502q-45.254834-45.254834 0-90.509668l135.764502-135.764502q45.254834-45.254834 90.509668 0Z",fill:"#FFFFFF"}),(0,a.jsx)("path",{d:"M398.176 225.088L318.976 145.92 364.224 100.64l118.304 118.272c2.272 1.76 4.48 3.68 6.592 5.76l181.024 181.024a64 64 0 0 1 0 90.496l-181.024 181.024a64 64 0 0 1-90.528 0L217.6 496.192a64 64 0 0 1 0-90.496l180.576-180.608z m170.144 169.28l-0.448 0.416-124.416-124.416-175.136 175.104h351.104L568.32 394.368zM752 704a80 80 0 0 1-80-80c0-44.16 67.68-124.672 80-124.672 12.32 0 80 80.48 80 124.672a80 80 0 0 1-80 80z",fill:"#2c2c2c"})]}))},ta=function(e){return(0,a.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,a.jsx)("path",{d:"M128 768h768v128H128z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M513.728 64.256l1.28 0.128h1.152l1.28 0.192a43.584 43.584 0 0 1 32.32 20.096l3.2 6.08 235.712 550.656a44.8 44.8 0 0 1-16.768 55.232l-7.616 3.968a43.52 43.52 0 0 1-54.208-17.152l-2.944-5.76-63.104-147.328H380.224l-62.976 147.2a43.52 43.52 0 0 1-51.072 24.96l-6.592-2.304-1.28-0.64a44.8 44.8 0 0 1-22.592-58.304l235.712-550.656a43.584 43.584 0 0 1 42.304-26.368z m91.904 376.512l-93.44-218.496L418.56 440.768h187.008z",fill:"#2c2c2c"})]}))},na=["#24A36F","#1677FF","#722ED1","#F5222D","#FA8C16","#FADB14","#A0D911"],oa=[{label:"预设颜色",defaultOpen:!0,colors:["#00000000",...na]}],ra=[{label:"预设颜色",defaultOpen:!0,colors:["#000000","#FFFFFF",...na]}],aa=[{label:"12px",value:"12px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"}];function ia({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.ColorPicker,{size:"small",className:"flex-shrink-0",presets:oa,value:e.getAttributes("highlight").color||"#00000000",onChange:function(t){const n=t.toHexString();"#00000000"===n?e.chain().focus().toggleHighlight().run():e.chain().focus().toggleHighlight({color:n}).run()},showText:()=>(0,a.jsx)(ea,{color:e.getAttributes("highlight").color,className:"text-base w-4 h-4"})}),(0,a.jsx)(i.ColorPicker,{size:"small",disabledAlpha:!0,className:"flex-shrink-0",presets:ra,value:e.getAttributes("textStyle").color||"#000000",onChange:function(t){const n=t.toHexString();e.chain().focus().setColor(n).run()},showText:()=>(0,a.jsx)(ta,{color:e.getAttributes("textStyle").color,className:"text-base w-4 h-4"})}),(0,a.jsx)(i.Select,{size:"small",options:aa,value:e.getAttributes("textStyle").fontSize||"14px",popupMatchSelectWidth:!1,onChange:function(t){var n;null===(n=e.chain().focus().setFontSize(t))||void 0===n||n.run()}})]})}const sa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M17 20v-3h-3v-2h3v-3h2v3h3v2h-3v3zm-6-3H7q-2.075 0-3.537-1.463T2 12t1.463-3.537T7 7h4v2H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h8v2zm14-1h-2q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12"})}))},la=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"m19.25 16.45l-1.5-1.55q1-.275 1.625-1.063T20 12q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12q0 1.425-.737 2.625T19.25 16.45M15.85 13l-2-2H16v2zm3.95 9.6L1.4 4.2l1.4-1.4l18.4 18.4zM11 17H7q-2.075 0-3.537-1.463T2 12q0-1.725 1.05-3.075t2.7-1.775L7.6 9H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h1.625l1.975 2z"})}))};function da({editor:e,inline:t=!1}){const[n,o]=(0,j.useState)(""),[r,s]=(0,j.useState)(""),[l,d]=(0,j.useState)(!1);return(0,a.jsx)(a.Fragment,{children:e.isActive("link")?(0,a.jsx)(i.Button,{size:"small",type:"text",title:"取消链接",className:"bg-blue-5 text-white",icon:(0,a.jsx)(la,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()}):(0,a.jsx)(i.Popover,{open:l,trigger:"click",placement:"bottom",content:(0,a.jsxs)(i.Space,{children:[t?null:(0,a.jsxs)(a.Fragment,{children:["描述: ",(0,a.jsx)(i.Input,{value:n,onChange:e=>o(e.target.value)})]}),"链接: ",(0,a.jsx)(i.Input,{value:r,onChange:e=>s(e.target.value)}),(0,a.jsx)(i.Button,{type:"primary",onClick:function(){const o=e.chain().focus().setLink({href:"https://"+r});t?o.run():o.command((({tr:e})=>(e.insertText(n||r),!0))).run(),d(!1)},disabled:!r,children:"确认"})]}),onOpenChange:function(e){d(e),e||s("")},children:(0,a.jsx)(i.Button,{size:"small",type:"text",title:"添加链接",icon:(0,a.jsx)(sa,{className:"text-xl"})})})})}const ca={left:{type:"left",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h13M4 14h16M4 18h5.5"})}))}),{className:"text-xl"})},center:{type:"center",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h10M4 14h16M9 18h6"})}))}),{className:"text-xl"})},right:{type:"right",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h13M4 14h16m-6 4h6"})}))}),{className:"text-xl"})},justify:{type:"justify",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"})}))}),{className:"text-xl"})}};function pa({editor:e}){return(0,a.jsx)(a.Fragment,{children:Object.values(ca).map((({type:t,icon:n})=>(0,a.jsx)(i.Button,{size:"small",type:"text",icon:n,onClick:()=>e.chain().focus().setTextAlign(t).run(),className:e.isActive({textAlign:t})?"bg-blue-5 text-white":""},t)))})}const ua=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z"})}))};function ha({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[e.isActive("link")&&(0,a.jsx)(ma,{editor:e}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(i.Button,{size:"small",type:"text",title:"取消链接",icon:(0,a.jsx)(la,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()})]})}function ma({editor:e}){const[t,n]=(0,j.useState)(e.getAttributes("link").href);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Input,{value:t,size:"small",onChange:e=>n(e.target.value)}),(0,a.jsx)(i.Button,{size:"small",type:"text",title:"修改链接",icon:(0,a.jsx)(ua,{className:"text-xl"}),onClick:function(){e.chain().extendMarkRange("link").setLink({href:"https://"+t}).run()}})]})}function ba({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.BubbleMenu,{editor:t,tippyOptions:{placement:"bottom-start"},children:(0,a.jsxs)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[(0,a.jsx)(Qr,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(ia,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(pa,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),t.isActive("link")?(0,a.jsx)(ha,{editor:t}):(0,a.jsx)(da,{editor:t,inline:!0})]})}):null}function fa({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.FloatingMenu,{editor:t,tippyOptions:{placement:"bottom-start"},shouldShow:()=>t.isActive("link"),children:(0,a.jsx)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:(0,a.jsx)(ha,{editor:t})})}):null}function wa(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2zM5 20q-.825 0-1.412-.587T3 18t.588-1.412T5 16t1.413.588T7 18t-.587 1.413T5 20m0-6q-.825 0-1.412-.587T3 12t.588-1.412T5 10t1.413.588T7 12t-.587 1.413T5 14m0-6q-.825 0-1.412-.587T3 6t.588-1.412T5 4t1.413.588T7 6t-.587 1.413T5 8"})}))}const ga=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 22v-1.5h2.5v-.75H4v-1.5h1.5v-.75H3V16h3q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7v-2.75q0-.425.288-.712T4 11.25h1.5v-.75H3V9h3q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75H7V15zm1.5-7V3.5H3V2h3v6zM9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2z"})}))};function ya({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(wa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(ga,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedList")?"bg-blue-5 text-white":""})]})}const xa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5q-.825 0-1.412-.587T3 19M5 9h14V5H5zm5.325 5h3.35v-3h-3.35zm0 5h3.35v-3h-3.35zM5 14h3.325v-3H5zm10.675 0H19v-3h-3.325zM5 19h3.325v-3H5zm10.675 0H19v-3h-3.325z"})}))};function va({editor:e}){const[t,n]=(0,j.useState)(3),[o,r]=(0,j.useState)(3);return(0,a.jsx)(i.Popover,{trigger:"click",title:"插入表格",content:(0,a.jsxs)(i.Flex,{gap:8,align:"center",children:[(0,a.jsxs)("div",{children:["行数: ",(0,a.jsx)(i.InputNumber,{min:1,value:t,onChange:e=>n(e||1)})]}),(0,a.jsxs)("div",{children:["列数: ",(0,a.jsx)(i.InputNumber,{min:1,value:o,onChange:e=>r(e||1)})]}),(0,a.jsx)(i.Button,{type:"primary",onClick:()=>e.chain().focus().insertTable({rows:t,cols:o,withHeaderRow:!0}).run(),children:"确认"})]}),children:(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(xa,{className:"text-xl "})})})}function ja(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h9v2H5v14h14v-9h2v9q0 .825-.587 1.413T19 21zM17 9V7h-2V5h2V3h2v2h2v2h-2v2zM6 17h12l-3.75-5l-3 4L9 13zM5 5v14z"})}))}function ka({editor:e}){const[t,n]=(0,j.useState)(!1),[o,r]=(0,j.useState)(""),[s,l]=(0,j.useState)(""),d={accept:"image/*",showUploadList:!1,beforeUpload:t=>Wr(e,t,(()=>n(!1)))};return(0,a.jsx)(i.Popover,{open:t,trigger:"click",placement:"bottom",content:(0,a.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,a.jsxs)("div",{children:["图片链接: ",(0,a.jsx)(i.Input,{value:o,onChange:e=>r(e.target.value)})]}),(0,a.jsxs)("div",{children:["图片描述: ",(0,a.jsx)(i.Input,{value:s,onChange:e=>l(e.target.value)})]}),(0,a.jsxs)(i.Flex,{justify:"space-between",children:[(0,a.jsx)(i.Upload,Object.assign({},d,{children:(0,a.jsx)(i.Button,{children:"上传本地图片"})})),(0,a.jsx)(i.Button,{type:"primary",onClick:function(){o&&(e.chain().focus().setImage({src:o,alt:s,title:s}).run(),n(!1))},children:"确认"})]})]}),onOpenChange:function(e){n(e),e||r("")},children:(0,a.jsx)(i.Button,{size:"small",type:"text",className:"",icon:(0,a.jsx)(ja,{className:"text-xl"})})})}const Na=[{label:"正文",value:"paragraph"},{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}],Aa={paragraph:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9 20v-6q-2.075 0-3.537-1.463T4 9t1.463-3.537T9 4h9v2h-2v14h-2V6h-3v14z"})}))}),{className:"text-xl "}),1:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z"})}))}),{className:"text-xl"}),2:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z"})}))}),{className:"text-xl"}),3:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),4:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z"})}))}),{className:"text-xl"}),5:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-6V7h8v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),6:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm12 0q-.825 0-1.412-.587T13 15V9q0-.825.588-1.412T15 7h6v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17zm0-4v2h4v-2z"})}))}),{className:"text-xl"})};function za({editor:e}){return(0,a.jsx)(i.Select,{size:"small",options:Na,defaultValue:"paragraph",labelRender:function(){const t=function(){if(e.isActive("paragraph"))return"paragraph";const t=[1,2,3,4,5,6];for(const n of t)if(e.isActive("heading",{level:n}))return n;return"paragraph"}();return(0,a.jsx)(a.Fragment,{children:Aa[t]})},optionRender:e=>function({label:e,value:t}){return(0,a.jsxs)(i.Flex,{align:"center",gap:4,children:[Aa[t],e]})}(e.data),popupMatchSelectWidth:!1,onChange:function(t){"paragraph"===t?e.chain().focus().setParagraph().run():e.chain().focus().toggleHeading({level:Number(t)}).run()}})}const Ea=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"m8 18l-6-6l6-6l1.425 1.425l-4.6 4.6L9.4 16.6zm8 0l-1.425-1.425l4.6-4.6L14.6 7.4L16 6l6 6z"})}))},Ca=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8zm5.82 0L16 8l-4.59 4.6L10 11.18L13.18 8L10 4.82zM22 6v12c0 1.11-.89 2-2 2H4a2 2 0 0 1-2-2v-4h2v4h16V6h-2.97V4H20c1.11 0 2 .89 2 2"})}))},Sa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5.7 18L8 14q-1.65 0-2.825-1.175T4 10t1.175-2.825T8 6t2.825 1.175T12 10q0 .575-.137 1.063T11.45 12L8 18zm9 0l2.3-4q-1.65 0-2.825-1.175T13 10t1.175-2.825T17 6t2.825 1.175T21 10q0 .575-.137 1.063T20.45 12L17 18z"})}))},Ma=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M4 13v-2h16v2z"})}))};function Ba({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Ea,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCode().run(),disabled:!e.can().chain().focus().toggleCode().run(),className:e.isActive("code")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Ca,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCodeBlock().run(),className:e.isActive("codeBlock")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Sa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBlockquote().run(),className:e.isActive("blockquote")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",className:"",icon:(0,a.jsx)(Ma,{className:"text-xl"}),onClick:()=>e.chain().focus().setHorizontalRule().run()})]})}const Oa=[{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}];function Wa({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.FloatingMenu,{editor:t,tippyOptions:{placement:"top-start"},children:(0,a.jsxs)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[Oa.map((({value:e})=>(0,a.jsx)(i.Button,{type:"text",size:"small",icon:Aa[e],onClick:()=>t.chain().focus().toggleHeading({level:Number(e)}).run(),className:t.isActive("heading",{level:Number(e)})?"bg-blue-5 text-white":""},e))),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Ba,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ya,{editor:t}),(0,a.jsx)(va,{editor:t}),(0,a.jsx)(ka,{editor:t})]})}):null}const Za=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z"})}))},Ka=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z"})}))};function Ja({editor:e}){const t=!e.can().chain().focus().undo().run(),n=!e.can().chain().focus().redo().run();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",disabled:t,icon:(0,a.jsx)(Ka,{className:"text-xl "}),onClick:()=>e.chain().focus().undo().run()}),(0,a.jsx)(i.Button,{size:"small",type:"text",disabled:n,icon:(0,a.jsx)(Za,{className:"text-xl "}),onClick:()=>e.chain().focus().redo().run()})]})}const Pa=(0,j.forwardRef)((function(e,t){const{editor:n}=(0,dr.useCurrentEditor)();return(0,j.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),n?(0,a.jsxs)(i.Flex,{gap:8,wrap:!0,align:"center",className:`p-2 border border-gray-300 mb-4 sticky z-10 bg-white ${e.className}`,children:[(0,a.jsx)(Ja,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Qr,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(za,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ia,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(pa,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Ba,{editor:n}),(0,a.jsx)(da,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ya,{editor:n}),(0,a.jsx)(va,{editor:n}),(0,a.jsx)(ka,{editor:n})]}):null})),Fa=(0,j.forwardRef)((function(e,t){const{editor:n}=(0,dr.useCurrentEditor)();return(0,j.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),(0,a.jsx)(a.Fragment,{})}));var La=n(383),Ta={};Ta.styleTagTransform=g(),Ta.setAttributes=m(),Ta.insert=u().bind(null,"head"),Ta.domAPI=c(),Ta.insertStyleElement=f(),l()(La.A,Ta),La.A&&La.A.locals&&La.A.locals;var Ia=n(311),Da={};Da.styleTagTransform=g(),Da.setAttributes=m(),Da.insert=u().bind(null,"head"),Da.domAPI=c(),Da.insertStyleElement=f(),l()(Ia.A,Da),Ia.A&&Ia.A.locals&&Ia.A.locals;var Ua=n(512),qa={};qa.styleTagTransform=g(),qa.setAttributes=m(),qa.insert=u().bind(null,"head"),qa.domAPI=c(),qa.insertStyleElement=f(),l()(Ua.A,qa),Ua.A&&Ua.A.locals&&Ua.A.locals;const Ha=(0,j.forwardRef)((function({content:e,classNames:t},n){const o=(0,j.useRef)(null);return(0,j.useImperativeHandle)(n,(()=>({getContent:()=>o.current?o.current.getContent():""}))),(0,a.jsx)("div",{className:"tiptap-container",children:(0,a.jsxs)(dr.EditorProvider,{immediatelyRender:!1,content:e,extensions:Vr,slotBefore:(0,a.jsx)(Pa,{className:null==t?void 0:t.fixedMenu}),editorContainerProps:{className:`prose max-w-none p-4 border border-gray-300 min-h-[20rem] ${null==t?void 0:t.editorContainer}`},children:[(0,a.jsx)(Fa,{ref:o}),(0,a.jsx)(ba,{className:null==t?void 0:t.bubbleMenu}),(0,a.jsx)(fa,{className:null==t?void 0:t.linkFloatingMenu}),(0,a.jsx)(Wa,{className:null==t?void 0:t.paragraphFloatingMenu})]})})}));function Ra({content:e}){return(0,a.jsx)("div",{className:"tiptap-container",children:(0,a.jsx)(dr.EditorProvider,{immediatelyRender:!1,editable:!1,content:e,extensions:$r,parseOptions:{preserveWhitespace:"full"},editorContainerProps:{className:"prose max-w-none"}})})}var _a=n(109),Va={};Va.styleTagTransform=g(),Va.setAttributes=m(),Va.insert=u().bind(null,"head"),Va.domAPI=c(),Va.insertStyleElement=f(),l()(_a.Ay,Va),_a.Ay&&_a.Ay.locals&&_a.Ay.locals;const $a=[{label:"数据权限",value:"agentic",readOnly:!1,children:[{label:"检索智能体",value:"13",readOnly:!1}]},{label:"工作台权限",value:"workbench",readOnly:!1,children:[{label:"可视化工作流",value:"1",readOnly:!1},{label:"Notebook",value:"2",readOnly:!0},{label:"语料数据池",value:"3",readOnly:!1},{label:"数据集",value:"4",readOnly:!1},{label:"网页文本处理",value:"5",readOnly:!1},{label:"语料质量评测",value:"6",readOnly:!1},{label:"科技文献解析",value:"7",readOnly:!1},{label:"OCR标注",value:"8",readOnly:!1},{label:"科技文献表格标注",value:"9",readOnly:!1},{label:"遥感影像标注",value:"10",readOnly:!1},{label:"模型评测",value:"11",readOnly:!1},{label:"推理服务",value:"12",readOnly:!1}]}],Ga=({initialPermissions:e=[],onChange:t,editable:n=!0})=>{const[o,r]=k().useState((e=>{const t=[];return e.forEach((e=>{t.push(...e.grentedList);const n=$a.find((t=>t.value===e.module));if(n)if(0===n.children.length)t.push(e.module);else{const o=n.children.filter((e=>!e.readOnly)).map((e=>e.value));o.length>0&&o.every((t=>e.grentedList.includes(t)))&&t.push(e.module)}})),t})(e)),s=(e,a,i)=>{if(!n||i)return;const s=$a.find((t=>t.value===e));let l;if(s&&s.children.length>0)if(a){const t=s.children.filter((e=>!e.readOnly)).map((e=>e.value));l=Array.from(new Set([...o,e,...t]))}else{const t=s.children.map((e=>e.value));l=o.filter((n=>n!==e&&!t.includes(n)))}else if(a){l=[...o,e];const t=$a.find((t=>t.children.some((t=>t.value===e))));t&&t.children.filter((e=>!e.readOnly)).map((e=>e.value)).every((e=>l.includes(e)))&&!l.includes(t.value)&&(l=[...l,t.value])}else{l=o.filter((t=>t!==e));const t=$a.find((t=>t.children.some((t=>t.value===e))));t&&o.includes(t.value)&&(l=l.filter((e=>e!==t.value)))}const d=(e=>{const t=[];return $a.forEach((n=>{const o=[];n.children.forEach((t=>{e.includes(t.value)&&o.push(t.value)})),0===n.children.length?e.includes(n.value)&&t.push({module:n.value,grentedList:[]}):o.length>0&&t.push({module:n.value,grentedList:o})})),t})(l);console.log("You are interested in: ",l),r(l),null==t||t(d)};return(0,a.jsx)(a.Fragment,{children:$a.map((e=>{var t;const r=o.includes(e.value);return(0,a.jsxs)("div",{style:{width:"100%",margin:"8px 0"},className:n?"":_a.a9,children:[(0,a.jsx)(i.Tag.CheckableTag,{checked:r,onChange:t=>s(e.value,t,e.readOnly),style:{cursor:e.readOnly?"not-allowed":"pointer",opacity:e.readOnly?.7:1,margin:"5px 0",paddingBlock:"3px",border:"1px solid #979797",fontSize:"16px"},className:e.readOnly?_a.Lr:"",children:e.label},e.value),(0,a.jsx)(i.Flex,{gap:5,wrap:!0,align:"center",children:null===(t=e.children)||void 0===t?void 0:t.map((e=>{const t=o.includes(e.value);return(0,a.jsx)(i.Tag.CheckableTag,{checked:t,onChange:t=>s(e.value,t,e.readOnly),style:{cursor:e.readOnly?"not-allowed":"pointer",opacity:e.readOnly?.7:1,margin:"5px 0",border:"1px solid #979797"},className:e.readOnly?_a.Lr:"",children:e.label},e.value)}))})]},e.value)}))})};const Xa=({open:e,onCancel:t,onSave:n,initialPermissions:o=[]})=>{const[r,s]=(0,j.useState)(o),[l,d]=(0,j.useState)(!1);(0,j.useEffect)((()=>{e&&s(o)}),[e,o]);const c=()=>{s(o),t()};return(0,a.jsx)(i.Modal,{title:"编辑权限",open:e,onCancel:c,width:600,destroyOnClose:!0,footer:[(0,a.jsx)(i.Button,{onClick:c,children:"取消"},"cancel"),(0,a.jsx)(i.Button,{type:"primary",loading:l,onClick:()=>{return e=void 0,o=void 0,s=function*(){try{null==n||n(r),t()}catch(e){i.message.error("权限更新失败"),console.error("保存权限失败:",e)}},new((a=void 0)||(a=Promise))((function(t,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function i(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,i)}l((s=s.apply(e,o||[])).next())}));var e,o,a,s},children:"保存"},"save")],children:(0,a.jsx)("div",{style:{padding:"16px 0"},children:(0,a.jsx)(Ga,{initialPermissions:r,onChange:s,editable:!0})})})},Ya=({initialPermissions:e=[],children:t,title:n="用户权限",width:o=400})=>(0,a.jsx)(i.Popover,{content:(0,a.jsx)(Ga,{initialPermissions:e,editable:!1}),title:n,overlayStyle:{width:o},children:t}),Qa=Ga;var ei=exports;for(var ti in o)ei[ti]=o[ti];o.__esModule&&Object.defineProperty(ei,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={868:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-default-drag-area {margin-bottom: 1.25rem;display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 1rem;border-radius: 10px;border-width: 1px;border-style: dashed;border-color: rgb(23 117 254 / 0.4);padding-top: 1rem;padding-bottom: 1rem\n}.zjlab-fe-data-hub-ui-default-drag-area:hover {--tw-border-opacity: 1;border-color: rgb(23 117 254 / var(--tw-border-opacity))\n}",""]);const s=i},884:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.zjlab-fe-data-hub-ui-file-uploader .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.zjlab-fe-data-hub-ui-file-uploader .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.zjlab-fe-data-hub-ui-file-uploader .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.zjlab-fe-data-hub-ui-file-uploader .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.zjlab-fe-data-hub-ui-file-uploader .absolute{\nposition: absolute;}.zjlab-fe-data-hub-ui-file-uploader .relative{\nposition: relative;}.zjlab-fe-data-hub-ui-file-uploader .sticky{\nposition: sticky;}.zjlab-fe-data-hub-ui-file-uploader .right-0{\nright: 0px;}.zjlab-fe-data-hub-ui-file-uploader .z-10{\nz-index: 10;}.zjlab-fe-data-hub-ui-file-uploader .m-0{\nmargin: 0px;}.zjlab-fe-data-hub-ui-file-uploader .m-1{\nmargin: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.zjlab-fe-data-hub-ui-file-uploader .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-0{\nmargin-bottom: 0px;}.zjlab-fe-data-hub-ui-file-uploader .mb-2{\nmargin-bottom: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-4{\nmargin-bottom: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .mb-5{\nmargin-bottom: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mr-1{\nmargin-right: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-20{\nmargin-top: 5rem;}.zjlab-fe-data-hub-ui-file-uploader .mt-4{\nmargin-top: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .block{\ndisplay: block;}.zjlab-fe-data-hub-ui-file-uploader .\\!inline{\ndisplay: inline !important;}.zjlab-fe-data-hub-ui-file-uploader .inline{\ndisplay: inline;}.zjlab-fe-data-hub-ui-file-uploader .flex{\ndisplay: flex;}.zjlab-fe-data-hub-ui-file-uploader .table{\ndisplay: table;}.zjlab-fe-data-hub-ui-file-uploader .flow-root{\ndisplay: flow-root;}.zjlab-fe-data-hub-ui-file-uploader .hidden{\ndisplay: none;}.zjlab-fe-data-hub-ui-file-uploader .h-4{\nheight: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .h-5{\nheight: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .h-6{\nheight: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .h-8{\nheight: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .h-auto{\nheight: auto;}.zjlab-fe-data-hub-ui-file-uploader .max-h-72{\nmax-height: 18rem;}.zjlab-fe-data-hub-ui-file-uploader .min-h-\\[20rem\\]{\nmin-height: 20rem;}.zjlab-fe-data-hub-ui-file-uploader .w-4{\nwidth: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .w-40{\nwidth: 10rem;}.zjlab-fe-data-hub-ui-file-uploader .w-5{\nwidth: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .w-6{\nwidth: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-96{\nmax-width: 24rem;}.zjlab-fe-data-hub-ui-file-uploader .max-w-none{\nmax-width: none;}.zjlab-fe-data-hub-ui-file-uploader .flex-shrink-0{\nflex-shrink: 0;}.zjlab-fe-data-hub-ui-file-uploader .cursor-pointer{\ncursor: pointer;}.zjlab-fe-data-hub-ui-file-uploader .items-center{\nalign-items: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-center{\njustify-content: center;}.zjlab-fe-data-hub-ui-file-uploader .justify-between{\njustify-content: space-between;}.zjlab-fe-data-hub-ui-file-uploader .gap-1{\ngap: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .gap-4{\ngap: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .overflow-y-auto{\noverflow-y: auto;}.zjlab-fe-data-hub-ui-file-uploader .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.zjlab-fe-data-hub-ui-file-uploader .rounded{\nborder-radius: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .rounded-md{\nborder-radius: 0.375rem;}.zjlab-fe-data-hub-ui-file-uploader .border{\nborder-width: 1px;}.zjlab-fe-data-hub-ui-file-uploader .border-solid{\nborder-style: solid;}.zjlab-fe-data-hub-ui-file-uploader .border-dashed{\nborder-style: dashed;}.zjlab-fe-data-hub-ui-file-uploader .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.zjlab-fe-data-hub-ui-file-uploader .p-1{\npadding: 0.25rem;}.zjlab-fe-data-hub-ui-file-uploader .p-2{\npadding: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .p-4{\npadding: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.zjlab-fe-data-hub-ui-file-uploader .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.zjlab-fe-data-hub-ui-file-uploader .pr-2{\npadding-right: 0.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-center{\ntext-align: center;}.zjlab-fe-data-hub-ui-file-uploader .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.zjlab-fe-data-hub-ui-file-uploader .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.zjlab-fe-data-hub-ui-file-uploader .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.zjlab-fe-data-hub-ui-file-uploader .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.zjlab-fe-data-hub-ui-file-uploader .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.zjlab-fe-data-hub-ui-file-uploader .italic{\nfont-style: italic;}.zjlab-fe-data-hub-ui-file-uploader .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.zjlab-fe-data-hub-ui-file-uploader .underline{\ntext-decoration-line: underline;}.zjlab-fe-data-hub-ui-file-uploader .opacity-0{\nopacity: 0;}.zjlab-fe-data-hub-ui-file-uploader .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.zjlab-fe-data-hub-ui-file-uploader .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.zjlab-fe-data-hub-ui-file-uploader .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.zjlab-fe-data-hub-ui-file-uploader .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.zjlab-fe-data-hub-ui-file-uploader *, .zjlab-fe-data-hub-ui-file-uploader ::before, .zjlab-fe-data-hub-ui-file-uploader ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.zjlab-fe-data-hub-ui-file-uploader ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader *,\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ::before,\n.zjlab-fe-data-hub-ui-file-uploader ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader html,\n.zjlab-fe-data-hub-ui-file-uploader :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader b,\n.zjlab-fe-data-hub-ui-file-uploader strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader code,\n.zjlab-fe-data-hub-ui-file-uploader kbd,\n.zjlab-fe-data-hub-ui-file-uploader samp,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader sub,\n.zjlab-fe-data-hub-ui-file-uploader sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sub {\n bottom: -0.25em;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input,\n.zjlab-fe-data-hub-ui-file-uploader optgroup,\n.zjlab-fe-data-hub-ui-file-uploader select,\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'button\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'reset\']),\n.zjlab-fe-data-hub-ui-file-uploader input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-inner-spin-button,\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader blockquote,\n.zjlab-fe-data-hub-ui-file-uploader dl,\n.zjlab-fe-data-hub-ui-file-uploader dd,\n.zjlab-fe-data-hub-ui-file-uploader h1,\n.zjlab-fe-data-hub-ui-file-uploader h2,\n.zjlab-fe-data-hub-ui-file-uploader h3,\n.zjlab-fe-data-hub-ui-file-uploader h4,\n.zjlab-fe-data-hub-ui-file-uploader h5,\n.zjlab-fe-data-hub-ui-file-uploader h6,\n.zjlab-fe-data-hub-ui-file-uploader hr,\n.zjlab-fe-data-hub-ui-file-uploader figure,\n.zjlab-fe-data-hub-ui-file-uploader p,\n.zjlab-fe-data-hub-ui-file-uploader pre {\n margin: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader fieldset {\n margin: 0;\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader legend {\n padding: 0;\n}\n\n.zjlab-fe-data-hub-ui-file-uploader ol,\n.zjlab-fe-data-hub-ui-file-uploader ul,\n.zjlab-fe-data-hub-ui-file-uploader menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.zjlab-fe-data-hub-ui-file-uploader dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader input::-moz-placeholder, .zjlab-fe-data-hub-ui-file-uploader textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.zjlab-fe-data-hub-ui-file-uploader input::placeholder,\n.zjlab-fe-data-hub-ui-file-uploader textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader button,\n.zjlab-fe-data-hub-ui-file-uploader [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.zjlab-fe-data-hub-ui-file-uploader :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader svg,\n.zjlab-fe-data-hub-ui-file-uploader video,\n.zjlab-fe-data-hub-ui-file-uploader canvas,\n.zjlab-fe-data-hub-ui-file-uploader audio,\n.zjlab-fe-data-hub-ui-file-uploader iframe,\n.zjlab-fe-data-hub-ui-file-uploader embed,\n.zjlab-fe-data-hub-ui-file-uploader object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.zjlab-fe-data-hub-ui-file-uploader img,\n.zjlab-fe-data-hub-ui-file-uploader video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.zjlab-fe-data-hub-ui-file-uploader [hidden] {\n display: none;\n}}@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://haina-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-65-Medium";src:url("https://haina-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-65-Medium.ttf") format("truetype")}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},915:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zjlab-fe-data-hub-ui-modal .ant-modal-title,.zjlab-fe-data-hub-ui-modal .ant-modal-confirm-title {\n font-family: AlibabaPuHuiTi-3-65-Medium;\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem\n}",""]);const s=i},150:(e,t,n)=>{n.d(t,{Ay:()=>p,Og:()=>d,Rp:()=>c,_b:()=>l,cQ:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".QmFviLMZ5ad2m0mLbKkP{width:349px;height:280px;border-radius:10px 10px 10px 10px}.ZJu8EO9kRspWAqZAD0d_{background:linear-gradient(to top, #ffffff 0%, #f6f9fe 100%);border:1px solid #edf2fc;-o-border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1;border-image:linear-gradient(180deg, rgb(237, 242, 252)) 1 1}.ZJu8EO9kRspWAqZAD0d_:hover{background:linear-gradient(to top, #ffffff 0%, #ecf4ff 100%);box-shadow:0px 8px 16px 0px rgba(7,35,76,.1);border:1px solid #afcfff;-o-border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(23, 117, 254, 0.6)) 1 1}.KS7Y4rDVUCfP7qjdPZap{background:linear-gradient(to top, #ffffff 0%, #f7f5ff 100%);border:1px solid #ebe6ff;-o-border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1;border-image:linear-gradient(180deg, rgb(236, 231, 255)) 1 1}.KS7Y4rDVUCfP7qjdPZap:hover{background:linear-gradient(to top, #ffffff 0%, #e3dcff 100%);box-shadow:0px 8px 16px 0px rgba(40,23,92,.1);border:1px solid #c5b4ff;-o-border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1;border-image:linear-gradient(180deg, rgba(114, 68, 255, 0.6)) 1 1}.mZ5nSrfxkgv2ivcg_v21{width:472px;height:148px;border-radius:10px 10px 10px 10px;position:relative}",""]);var s="QmFviLMZ5ad2m0mLbKkP",l="ZJu8EO9kRspWAqZAD0d_",d="KS7Y4rDVUCfP7qjdPZap",c="mZ5nSrfxkgv2ivcg_v21";const p=i},100:(e,t,n)=>{n.d(t,{Ay:()=>d,DE:()=>l,wm:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-45-Light";src:url("https://haina-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-45-Light.ttf") format("truetype")}@font-face{font-family:"AlibabaPuHuiTi-3-75-SemiBold";src:url("https://haina-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-75-SemiBold.ttf") format("truetype")}.EybT8LL35ZAAECD9qKQX .ant-modal-content{padding:0 24px}.EybT8LL35ZAAECD9qKQX .ant-modal-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-body{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.EybT8LL35ZAAECD9qKQX .ant-modal-footer{text-align:center;padding:16px 0}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-content{padding:0 24px}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-body{text-align:center}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-title{padding-top:50px;font-family:"AlibabaPuHuiTi-3-75-SemiBold";font-weight:normal;font-size:16px;color:#222427;line-height:1.5;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-content{font-family:"AlibabaPuHuiTi-3-45-Light";font-weight:normal;font-size:12px;color:#545b64;line-height:14px;text-align:center;font-style:normal;text-transform:none}.F2kZbP7G9NKG9lg8O_b1 .ant-modal-confirm-btns{text-align:center;padding:16px 0}',""]);var s="EybT8LL35ZAAECD9qKQX",l="F2kZbP7G9NKG9lg8O_b1";const d=i},860:(e,t,n)=>{n.d(t,{A:()=>l,K:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.aTTl5tM6IlquA6EPUX_w{font-family:"hub-iconfont";color:#545b64;font-size:12px;cursor:pointer}.aTTl5tM6IlquA6EPUX_w:hover{color:#1775fe}',""]);var s="aTTl5tM6IlquA6EPUX_w";const l=i},328:(e,t,n)=>{n.d(t,{Ay:()=>u,Hn:()=>l,P_:()=>d,UA:()=>p,X$:()=>c,tp:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".eKExJAv72oIPXwTqwpgU td{border-top:none !important;border-left:none !important;border-right:none !important}.eKExJAv72oIPXwTqwpgU th.ant-table-cell{height:55px;padding:5px 16px !important}.eKExJAv72oIPXwTqwpgU td.ant-table-cell{padding:5px 16px !important;font-size:14px;line-height:22px;letter-spacing:0}.eKExJAv72oIPXwTqwpgU div{scrollbar-width:thin;scrollbar-color:#eaeaea rgba(0,0,0,0);box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV{display:flex;flex-direction:column;justify-content:center}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;box-sizing:border-box}.SJWFZYuxuri8ceYzxmsV .CDb4Loro5cBpX56QzatH:hover{display:block;overflow:auto}.b2mlkkE1gDbFwo4_42Kc{position:relative}.Vh5uhm2m3HksYuSIjwQj{position:absolute;left:16px;color:#89909d;font-size:14px}",""]);var s="eKExJAv72oIPXwTqwpgU",l="SJWFZYuxuri8ceYzxmsV",d="CDb4Loro5cBpX56QzatH",c="b2mlkkE1gDbFwo4_42Kc",p="Vh5uhm2m3HksYuSIjwQj";const u=i},685:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".cJmcPSn5LN2GH9HqTvEQ{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="cJmcPSn5LN2GH9HqTvEQ";const l=i},913:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,_8:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".zuabV0gpCkaY8pSYtOSL{display:flex;align-items:center;justify-content:center;height:100%}.i2GFC308F3s1lGENOI5l{max-width:100%;max-height:100%}",""]);var s="zuabV0gpCkaY8pSYtOSL",l="i2GFC308F3s1lGENOI5l";const d=i},690:(e,t,n)=>{n.d(t,{Ay:()=>c,D5:()=>l,LV:()=>s,qf:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".EVmfUlSj2zzl7igeqp6N{display:flex;align-items:center;justify-content:center;height:100%;overflow:auto;padding-top:16px;padding-bottom:16px}.Z65yBBsFLSWF70wfWwgA{display:flex;align-items:center;justify-content:center;padding-top:16px;padding-bottom:16px}.QSsGpXvLzOYpHSNncjpj .ant-modal-body{height:calc(100vh - 200px);overflow-y:auto}.QSsGpXvLzOYpHSNncjpj .ant-modal-content{padding-top:44px}",""]);var s="EVmfUlSj2zzl7igeqp6N",l="Z65yBBsFLSWF70wfWwgA",d="QSsGpXvLzOYpHSNncjpj";const c=i},555:(e,t,n)=>{n.d(t,{A:()=>h,L:()=>u});var o=n(245),r=n.n(o),a=n(526),i=n.n(a),s=n(405),l=n.n(s),d=new URL(n(840),n.b),c=i()(r()),p=l()(d);c.push([e.id,`.axAZtM5WKNopJEBNra2i .markdown-body{--base-size-4: 0.25rem;--base-size-8: 0.5rem;--base-size-16: 1rem;--base-size-24: 1.5rem;--base-size-40: 2.5rem;--base-text-weight-normal: 400;--base-text-weight-medium: 500;--base-text-weight-semibold: 600;--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent: Highlight}@media(prefers-color-scheme: dark){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=dark]{color-scheme:dark;--focus-outlineColor: #1f6feb;--fgColor-default: #f0f6fc;--fgColor-muted: #9198a1;--fgColor-accent: #4493f8;--fgColor-success: #3fb950;--fgColor-attention: #d29922;--fgColor-danger: #f85149;--fgColor-done: #ab7df8;--bgColor-default: #0d1117;--bgColor-muted: #151b23;--bgColor-neutral-muted: #656c7633;--bgColor-attention-muted: #bb800926;--borderColor-default: #3d444d;--borderColor-muted: #3d444db3;--borderColor-neutral-muted: #3d444db3;--borderColor-accent-emphasis: #1f6feb;--borderColor-success-emphasis: #238636;--borderColor-attention-emphasis: #9e6a03;--borderColor-danger-emphasis: #da3633;--borderColor-done-emphasis: #8957e5;--color-prettylights-syntax-comment: #9198a1;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #f0f6fc;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-brackethighlighter-angle: #9198a1;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #f0f6fc;--color-prettylights-syntax-markup-bold: #f0f6fc;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #f0f6fc;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d}}@media(prefers-color-scheme: light){.axAZtM5WKNopJEBNra2i .markdown-body,.axAZtM5WKNopJEBNra2i [data-theme=light]{color-scheme:light;--focus-outlineColor: #0969da;--fgColor-default: #1f2328;--fgColor-muted: #59636e;--fgColor-accent: #0969da;--fgColor-success: #1a7f37;--fgColor-attention: #9a6700;--fgColor-danger: #d1242f;--fgColor-done: #8250df;--bgColor-default: #ffffff;--bgColor-muted: #f6f8fa;--bgColor-neutral-muted: #818b981f;--bgColor-attention-muted: #fff8c5;--borderColor-default: #d1d9e0;--borderColor-muted: #d1d9e0b3;--borderColor-neutral-muted: #d1d9e0b3;--borderColor-accent-emphasis: #0969da;--borderColor-success-emphasis: #1a7f37;--borderColor-attention-emphasis: #9a6700;--borderColor-danger-emphasis: #cf222e;--borderColor-done-emphasis: #8250df;--color-prettylights-syntax-comment: #59636e;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #1f2328;--color-prettylights-syntax-entity-tag: #0550ae;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-brackethighlighter-angle: #59636e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #1f2328;--color-prettylights-syntax-markup-bold: #1f2328;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #d1d9e0;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-sublimelinter-gutter-mark: #818b98}}.axAZtM5WKNopJEBNra2i .markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--fgColor-default);background-color:var(--bgColor-default);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link:before,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url(${p});mask-image:url(${p})}.axAZtM5WKNopJEBNra2i .markdown-body details,.axAZtM5WKNopJEBNra2i .markdown-body figcaption,.axAZtM5WKNopJEBNra2i .markdown-body figure{display:block}.axAZtM5WKNopJEBNra2i .markdown-body summary{display:list-item}.axAZtM5WKNopJEBNra2i .markdown-body [hidden]{display:none !important}.axAZtM5WKNopJEBNra2i .markdown-body a{background-color:rgba(0,0,0,0);color:var(--fgColor-accent);text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.axAZtM5WKNopJEBNra2i .markdown-body b,.axAZtM5WKNopJEBNra2i .markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dfn{font-style:italic}.axAZtM5WKNopJEBNra2i .markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body small{font-size:90%}.axAZtM5WKNopJEBNra2i .markdown-body sub,.axAZtM5WKNopJEBNra2i .markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.axAZtM5WKNopJEBNra2i .markdown-body sub{bottom:-0.25em}.axAZtM5WKNopJEBNra2i .markdown-body sup{top:-0.5em}.axAZtM5WKNopJEBNra2i .markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body kbd,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:monospace;font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body figure{margin:1em var(--base-size-40)}.axAZtM5WKNopJEBNra2i .markdown-body hr{box-sizing:content-box;overflow:hidden;background:rgba(0,0,0,0);border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.axAZtM5WKNopJEBNra2i .markdown-body [type=button],.axAZtM5WKNopJEBNra2i .markdown-body [type=reset],.axAZtM5WKNopJEBNra2i .markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.axAZtM5WKNopJEBNra2i .markdown-body [type=checkbox],.axAZtM5WKNopJEBNra2i .markdown-body [type=radio]{box-sizing:border-box;padding:0}.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-inner-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-cancel-button,.axAZtM5WKNopJEBNra2i .markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.axAZtM5WKNopJEBNra2i .markdown-body a:hover{text-decoration:underline}.axAZtM5WKNopJEBNra2i .markdown-body ::-moz-placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.axAZtM5WKNopJEBNra2i .markdown-body hr::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body hr::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.axAZtM5WKNopJEBNra2i .markdown-body td,.axAZtM5WKNopJEBNra2i .markdown-body th{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body details summary{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body a:focus,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body a:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus,.axAZtM5WKNopJEBNra2i .markdown-body a:not([class]):focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=radio]:focus-visible,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus,.axAZtM5WKNopJEBNra2i .markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.axAZtM5WKNopJEBNra2i .markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h1,.axAZtM5WKNopJEBNra2i .markdown-body h2,.axAZtM5WKNopJEBNra2i .markdown-body h3,.axAZtM5WKNopJEBNra2i .markdown-body h4,.axAZtM5WKNopJEBNra2i .markdown-body h5,.axAZtM5WKNopJEBNra2i .markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.axAZtM5WKNopJEBNra2i .markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.axAZtM5WKNopJEBNra2i .markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.axAZtM5WKNopJEBNra2i .markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.axAZtM5WKNopJEBNra2i .markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--fgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body p{margin-top:0;margin-bottom:10px}.axAZtM5WKNopJEBNra2i .markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ul ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ul ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol ol{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body dd{margin-left:0}.axAZtM5WKNopJEBNra2i .markdown-body tt,.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.axAZtM5WKNopJEBNra2i .markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.axAZtM5WKNopJEBNra2i .markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-outer-spin-button,.axAZtM5WKNopJEBNra2i .markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none}.axAZtM5WKNopJEBNra2i .markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.axAZtM5WKNopJEBNra2i .markdown-body::before{display:table;content:""}.axAZtM5WKNopJEBNra2i .markdown-body::after{display:table;clear:both;content:""}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body>*:last-child{margin-bottom:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body a:not([href]){color:inherit;text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body .absent{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .anchor:focus{outline:none}.axAZtM5WKNopJEBNra2i .markdown-body p,.axAZtM5WKNopJEBNra2i .markdown-body blockquote,.axAZtM5WKNopJEBNra2i .markdown-body ul,.axAZtM5WKNopJEBNra2i .markdown-body ol,.axAZtM5WKNopJEBNra2i .markdown-body dl,.axAZtM5WKNopJEBNra2i .markdown-body table,.axAZtM5WKNopJEBNra2i .markdown-body pre,.axAZtM5WKNopJEBNra2i .markdown-body details{margin-top:0;margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body blockquote>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body h1 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5 .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor{text-decoration:none}.axAZtM5WKNopJEBNra2i .markdown-body h1:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h2:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h3:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h4:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h5:hover .anchor .octicon-link,.axAZtM5WKNopJEBNra2i .markdown-body h6:hover .anchor .octicon-link{visibility:visible}.axAZtM5WKNopJEBNra2i .markdown-body h1 tt,.axAZtM5WKNopJEBNra2i .markdown-body h1 code,.axAZtM5WKNopJEBNra2i .markdown-body h2 tt,.axAZtM5WKNopJEBNra2i .markdown-body h2 code,.axAZtM5WKNopJEBNra2i .markdown-body h3 tt,.axAZtM5WKNopJEBNra2i .markdown-body h3 code,.axAZtM5WKNopJEBNra2i .markdown-body h4 tt,.axAZtM5WKNopJEBNra2i .markdown-body h4 code,.axAZtM5WKNopJEBNra2i .markdown-body h5 tt,.axAZtM5WKNopJEBNra2i .markdown-body h5 code,.axAZtM5WKNopJEBNra2i .markdown-body h6 tt,.axAZtM5WKNopJEBNra2i .markdown-body h6 code{padding:0 .2em;font-size:inherit}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2,.axAZtM5WKNopJEBNra2i .markdown-body summary h3,.axAZtM5WKNopJEBNra2i .markdown-body summary h4,.axAZtM5WKNopJEBNra2i .markdown-body summary h5,.axAZtM5WKNopJEBNra2i .markdown-body summary h6{display:inline-block}.axAZtM5WKNopJEBNra2i .markdown-body summary h1 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h2 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h3 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h4 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h5 .anchor,.axAZtM5WKNopJEBNra2i .markdown-body summary h6 .anchor{margin-left:-40px}.axAZtM5WKNopJEBNra2i .markdown-body summary h1,.axAZtM5WKNopJEBNra2i .markdown-body summary h2{padding-bottom:0;border-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body ul.no-list,.axAZtM5WKNopJEBNra2i .markdown-body ol.no-list{padding:0;list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="a s"]{list-style-type:lower-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="A s"]{list-style-type:upper-alpha}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="i s"]{list-style-type:lower-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="I s"]{list-style-type:upper-roman}.axAZtM5WKNopJEBNra2i .markdown-body ol[type="1"]{list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body div>ol:not([type]){list-style-type:decimal}.axAZtM5WKNopJEBNra2i .markdown-body ul ul,.axAZtM5WKNopJEBNra2i .markdown-body ul ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ol,.axAZtM5WKNopJEBNra2i .markdown-body ol ul{margin-top:0;margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body li>p{margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body li+li{margin-top:.25em}.axAZtM5WKNopJEBNra2i .markdown-body dl{padding:0}.axAZtM5WKNopJEBNra2i .markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.axAZtM5WKNopJEBNra2i .markdown-body table th,.axAZtM5WKNopJEBNra2i .markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body table td>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.axAZtM5WKNopJEBNra2i .markdown-body table img{background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body img[align=right]{padding-left:20px}.axAZtM5WKNopJEBNra2i .markdown-body img[align=left]{padding-right:20px}.axAZtM5WKNopJEBNra2i .markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:rgba(0,0,0,0)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame{display:block;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span img{display:block;float:left}.axAZtM5WKNopJEBNra2i .markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-center span img{margin:0 auto;text-align:center}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right{display:block;overflow:hidden;clear:both}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.align-right span img{margin:0;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-left span{margin:13px 0 0}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.axAZtM5WKNopJEBNra2i .markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.axAZtM5WKNopJEBNra2i .markdown-body code,.axAZtM5WKNopJEBNra2i .markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body code br,.axAZtM5WKNopJEBNra2i .markdown-body tt br{display:none}.axAZtM5WKNopJEBNra2i .markdown-body del code{text-decoration:inherit}.axAZtM5WKNopJEBNra2i .markdown-body samp{font-size:85%}.axAZtM5WKNopJEBNra2i .markdown-body pre code{font-size:100%}.axAZtM5WKNopJEBNra2i .markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .highlight{margin-bottom:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre{margin-bottom:0;word-break:normal}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre,.axAZtM5WKNopJEBNra2i .markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body pre code,.axAZtM5WKNopJEBNra2i .markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:rgba(0,0,0,0);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data td,.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data tr{border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::before{content:"["}.axAZtM5WKNopJEBNra2i .markdown-body [data-footnote-ref]::after{content:"]"}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol{padding-left:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li{position:relative}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:"";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes li:target{color:var(--fgColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.axAZtM5WKNopJEBNra2i .markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-e,.axAZtM5WKNopJEBNra2i .markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-smi,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-s,.axAZtM5WKNopJEBNra2i .markdown-body .pl-pds,.axAZtM5WKNopJEBNra2i .markdown-body .pl-s .pl-pse .pl-s1,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sre,.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-v,.axAZtM5WKNopJEBNra2i .markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh,.axAZtM5WKNopJEBNra2i .markdown-body .pl-mh .pl-en,.axAZtM5WKNopJEBNra2i .markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.axAZtM5WKNopJEBNra2i .markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.axAZtM5WKNopJEBNra2i .markdown-body [role=button]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body button:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body summary:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.axAZtM5WKNopJEBNra2i .markdown-body [tabindex="0"]:focus:not(:focus-visible),.axAZtM5WKNopJEBNra2i .markdown-body details-dialog:focus:not(:focus-visible){outline:none}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.axAZtM5WKNopJEBNra2i .markdown-body g-emoji img{width:1em;height:1em}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item{list-style-type:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item.enabled label{cursor:pointer}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item .handle{display:none}.axAZtM5WKNopJEBNra2i .markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.axAZtM5WKNopJEBNra2i .markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:hover .task-list-item-convert-container,.axAZtM5WKNopJEBNra2i .markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.axAZtM5WKNopJEBNra2i .markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:first-child{margin-top:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert>:last-child{margin-bottom:0}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.axAZtM5WKNopJEBNra2i .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.axAZtM5WKNopJEBNra2i .markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.axAZtM5WKNopJEBNra2i .markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}`,""]);var u="axAZtM5WKNopJEBNra2i";const h=c},482:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".GmPZonLTI3KWU6TQWQSo{display:flex;flex-direction:column;align-items:center;height:100%;overflow:auto}.GmPZonLTI3KWU6TQWQSo canvas{max-width:100%}",""]);var s="GmPZonLTI3KWU6TQWQSo";const l=i},708:(e,t,n)=>{n.d(t,{A:()=>l,L:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".w5U1Ig2Vx60xYRW90g33{height:100%;overflow-x:hidden;overflow-y:auto}",""]);var s="w5U1Ig2Vx60xYRW90g33";const l=i},519:(e,t,n)=>{n.d(t,{Ay:()=>p,J2:()=>d,T1:()=>c,eo:()=>l,hF:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@font-face{font-family:"AlibabaPuHuiTi-3-55-RegularL3";src:url("https://haina-datahub.zero2x.org/ossRoute/frontend/resources/fonts/alibaba_puhuiti_3/AlibabaPuHuiTi-3-55-RegularL3.ttf") format("truetype")}.wrtosveS1b5SlKe4fIGL{position:relative}.sD_Dvah97w0cPqUJsOhX{font-family:"AlibabaPuHuiTi-3-55-RegularL3";font-size:12px;position:absolute;top:-11px;left:11px;background:#fff;padding-left:2px;padding-right:2px}.PHh7Qm9ojRZiWFl8OlpT{display:none}.FinJFG8VkAu4WdZFDb3U{width:400px}',""]);var s="wrtosveS1b5SlKe4fIGL",l="sD_Dvah97w0cPqUJsOhX",d="PHh7Qm9ojRZiWFl8OlpT",c="FinJFG8VkAu4WdZFDb3U";const p=i},989:(e,t,n)=>{n.d(t,{Ay:()=>c,Kk:()=>l,LV:()=>s,NI:()=>d});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".s1DE3bXbSR3WMxOHGhL4{width:244px;min-height:89px;background:#fff;box-shadow:0px 12px 30px 0px rgba(32,60,48,.2);border-radius:10px 10px 10px 10px;border:1px solid #d9e0ed;z-index:100;position:fixed;bottom:180px;left:calc(50% - 122px)}.ickkjG9C47RxHTbOAWXw{width:16px;height:16px;z-index:101;display:inline-block;border-radius:50%;position:absolute;top:17px;right:17px;cursor:pointer}.dWjTN1AD2WJesHevGU09{padding:17px 10px}",""]);var s="s1DE3bXbSR3WMxOHGhL4",l="ickkjG9C47RxHTbOAWXw",d="dWjTN1AD2WJesHevGU09";const c=i},280:(e,t,n)=>{n.d(t,{Ay:()=>d,LV:()=>s,wm:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".wkk6Lnco5rQ5DK_Bojaj{display:flex;justify-content:space-between;align-items:center;padding:0 16px;background-color:#000}.wkk6Lnco5rQ5DK_Bojaj .H3Num6yF3Ox32Pb6Occg{width:200px}",""]);var s="wkk6Lnco5rQ5DK_Bojaj",l="H3Num6yF3Ox32Pb6Occg";const d=i},109:(e,t,n)=>{n.d(t,{Ay:()=>d,Lr:()=>s,a9:()=>l});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".Nt_3DTIzVtNu3K1bdGvU{color:rgba(0,0,0,.88) !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable-checked{background-color:#1775fe !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable{cursor:default !important}.LRwXIt4UyW_emXiNds9w .ant-tag-checkable:not(.ant-tag-checkable-checked):hover{background-color:rgba(0,0,0,0) !important;color:rgba(0,0,0,.88) !important}",""]);var s="Nt_3DTIzVtNu3K1bdGvU",l="LRwXIt4UyW_emXiNds9w";const d=i},255:(e,t,n)=>{n.d(t,{Ay:()=>p,Bu:()=>l,Lt:()=>s,eb:()=>d,lY:()=>c});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".TlJNZcZcmmP6z2ZEuXVh{position:relative}.jlfRlYEd363O6zz8LzHG.U_nf4tR4EBBbc350fb4r{opacity:0;transform:translateY(-10px);animation:KeGDXXLq4ov1RpFxstIA .1s ease-in-out forwards}@keyframes KeGDXXLq4ov1RpFxstIA{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.jlfRlYEd363O6zz8LzHG{position:absolute;top:37px;z-index:6000;color:#666;background-color:#e0e0e0;width:200px;height:256px;padding:4px;border-radius:8px;opacity:0;transform:translateY(-10px);transition:all .3s ease-in-out;animation:U4WuhNMVo6V0NTLeHqJp .3s ease-in-out forwards}@keyframes U4WuhNMVo6V0NTLeHqJp{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.iFMf87iEHVoZIgZXmFII{height:264px}",""]);var s="TlJNZcZcmmP6z2ZEuXVh",l="jlfRlYEd363O6zz8LzHG",d="U_nf4tR4EBBbc350fb4r",c="iFMf87iEHVoZIgZXmFII";const p=i},512:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tiptap pre{margin-top:1.5rem;margin-bottom:1.5rem;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tiptap pre code{background-image:none;padding:0px;font-size:0.875rem;line-height:1.25rem}.tiptap pre .hljs-comment,.tiptap pre .hljs-quote{color:#6a9955}.tiptap pre .hljs-variable,.tiptap pre .hljs-template-variable,.tiptap pre .hljs-attribute,.tiptap pre .hljs-tag,.tiptap pre .hljs-name,.tiptap pre .hljs-regexp,.tiptap pre .hljs-link,.tiptap pre .hljs-selector-id,.tiptap pre .hljs-selector-class{color:#4fc1ff}.tiptap pre .hljs-number,.tiptap pre .hljs-meta,.tiptap pre .hljs-built_in,.tiptap pre .hljs-builtin-name,.tiptap pre .hljs-literal,.tiptap pre .hljs-type,.tiptap pre .hljs-params{color:#dcdcaa}.tiptap pre .hljs-string,.tiptap pre .hljs-symbol,.tiptap pre .hljs-bullet{color:#ce9178}.tiptap pre .hljs-title,.tiptap pre .hljs-section{color:#dcdcaa}.tiptap pre .hljs-keyword,.tiptap pre .hljs-selector-tag{color:#c586c0}.tiptap pre .hljs-emphasis{font-style:italic}.tiptap pre .hljs-strong{font-weight:700}",""]);const s=i},383:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'@layer tailwind-base, antd;.tiptap-container .prose{\ncolor: var(--tw-prose-body);\nmax-width: 65ch;}.tiptap-container .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-lead);\nfont-size: 1.25em;\nline-height: 1.6;\nmargin-top: 1.2em;\nmargin-bottom: 1.2em;}.tiptap-container .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-links);\ntext-decoration: underline;\nfont-weight: 500;}.tiptap-container .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-bold);\nfont-weight: 600;}.tiptap-container .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-alpha;}.tiptap-container .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-alpha;}.tiptap-container .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: upper-roman;}.tiptap-container .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: lower-roman;}.tiptap-container .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: decimal;}.tiptap-container .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nlist-style-type: disc;\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\nfont-weight: 400;\ncolor: var(--tw-prose-counters);}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\ncolor: var(--tw-prose-bullets);}.tiptap-container .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.25em;}.tiptap-container .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-color: var(--tw-prose-hr);\nborder-top-width: 1px;\nmargin-top: 3em;\nmargin-bottom: 3em;}.tiptap-container .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-style: italic;\ncolor: var(--tw-prose-quotes);\nborder-inline-start-width: 0.25rem;\nborder-inline-start-color: var(--tw-prose-quote-borders);\nquotes: "\\201C""\\201D""\\2018""\\2019";\nmargin-top: 1.6em;\nmargin-bottom: 1.6em;\npadding-inline-start: 1em;}.tiptap-container .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: open-quote;}.tiptap-container .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: close-quote;}.tiptap-container .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 800;\nfont-size: 2.25em;\nmargin-top: 0;\nmargin-bottom: 0.8888889em;\nline-height: 1.1111111;}.tiptap-container .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 900;\ncolor: inherit;}.tiptap-container .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 700;\nfont-size: 1.5em;\nmargin-top: 2em;\nmargin-bottom: 1em;\nline-height: 1.3333333;}.tiptap-container .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 800;\ncolor: inherit;}.tiptap-container .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nfont-size: 1.25em;\nmargin-top: 1.6em;\nmargin-bottom: 0.6em;\nline-height: 1.6;}.tiptap-container .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nmargin-top: 1.5em;\nmargin-bottom: 0.5em;\nline-height: 1.5;}.tiptap-container .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 700;\ncolor: inherit;}.tiptap-container .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ndisplay: block;\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nfont-weight: 500;\nfont-family: inherit;\ncolor: var(--tw-prose-kbd);\nbox-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\nfont-size: 0.875em;\nborder-radius: 0.3125rem;\npadding-top: 0.1875em;\npadding-inline-end: 0.375em;\npadding-bottom: 0.1875em;\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-code);\nfont-weight: 600;\nfont-size: 0.875em;}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: "`";}.tiptap-container .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: "`";}.tiptap-container .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.875em;}.tiptap-container .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;\nfont-size: 0.9em;}.tiptap-container .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: inherit;}.tiptap-container .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-pre-code);\nbackground-color: var(--tw-prose-pre-bg);\noverflow-x: auto;\nfont-weight: 400;\nfont-size: 0.875em;\nline-height: 1.7142857;\nmargin-top: 1.7142857em;\nmargin-bottom: 1.7142857em;\nborder-radius: 0.375rem;\npadding-top: 0.8571429em;\npadding-inline-end: 1.1428571em;\npadding-bottom: 0.8571429em;\npadding-inline-start: 1.1428571em;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nbackground-color: transparent;\nborder-width: 0;\nborder-radius: 0;\npadding: 0;\nfont-weight: inherit;\ncolor: inherit;\nfont-size: inherit;\nfont-family: inherit;\nline-height: inherit;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\ncontent: none;}.tiptap-container .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\ncontent: none;}.tiptap-container .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nwidth: 100%;\ntable-layout: auto;\nmargin-top: 2em;\nmargin-bottom: 2em;\nfont-size: 0.875em;\nline-height: 1.7142857;}.tiptap-container .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-headings);\nfont-weight: 600;\nvertical-align: bottom;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 1px;\nborder-bottom-color: var(--tw-prose-td-borders);}.tiptap-container .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-bottom-width: 0;}.tiptap-container .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: baseline;}.tiptap-container .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nborder-top-width: 1px;\nborder-top-color: var(--tw-prose-th-borders);}.tiptap-container .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nvertical-align: top;}.tiptap-container .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ntext-align: start;}.tiptap-container .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\ncolor: var(--tw-prose-captions);\nfont-size: 0.875em;\nline-height: 1.4285714;\nmargin-top: 0.8571429em;}.tiptap-container .prose{\n--tw-prose-body: #374151;\n--tw-prose-headings: #111827;\n--tw-prose-lead: #4b5563;\n--tw-prose-links: #111827;\n--tw-prose-bold: #111827;\n--tw-prose-counters: #6b7280;\n--tw-prose-bullets: #d1d5db;\n--tw-prose-hr: #e5e7eb;\n--tw-prose-quotes: #111827;\n--tw-prose-quote-borders: #e5e7eb;\n--tw-prose-captions: #6b7280;\n--tw-prose-kbd: #111827;\n--tw-prose-kbd-shadows: 17 24 39;\n--tw-prose-code: #111827;\n--tw-prose-pre-code: #e5e7eb;\n--tw-prose-pre-bg: #1f2937;\n--tw-prose-th-borders: #d1d5db;\n--tw-prose-td-borders: #e5e7eb;\n--tw-prose-invert-body: #d1d5db;\n--tw-prose-invert-headings: #fff;\n--tw-prose-invert-lead: #9ca3af;\n--tw-prose-invert-links: #fff;\n--tw-prose-invert-bold: #fff;\n--tw-prose-invert-counters: #9ca3af;\n--tw-prose-invert-bullets: #4b5563;\n--tw-prose-invert-hr: #374151;\n--tw-prose-invert-quotes: #f3f4f6;\n--tw-prose-invert-quote-borders: #374151;\n--tw-prose-invert-captions: #9ca3af;\n--tw-prose-invert-kbd: #fff;\n--tw-prose-invert-kbd-shadows: 255 255 255;\n--tw-prose-invert-code: #fff;\n--tw-prose-invert-pre-code: #d1d5db;\n--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n--tw-prose-invert-th-borders: #4b5563;\n--tw-prose-invert-td-borders: #374151;\nfont-size: 1rem;\nline-height: 1.75;}.tiptap-container .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;\nmargin-bottom: 0;}.tiptap-container .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\nmargin-bottom: 0.5em;}.tiptap-container .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0.375em;}.tiptap-container .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;}.tiptap-container .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.75em;\nmargin-bottom: 0.75em;}.tiptap-container .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 1.25em;\nmargin-bottom: 1.25em;}.tiptap-container .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0.5em;\npadding-inline-start: 1.625em;}.tiptap-container .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-top: 0.5714286em;\npadding-inline-end: 0.5714286em;\npadding-bottom: 0.5714286em;\npadding-inline-start: 0.5714286em;}.tiptap-container .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-start: 0;}.tiptap-container .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\npadding-inline-end: 0;}.tiptap-container .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 2em;\nmargin-bottom: 2em;}.tiptap-container .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-top: 0;}.tiptap-container .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\nmargin-bottom: 0;}.tiptap-container .absolute{\nposition: absolute;}.tiptap-container .relative{\nposition: relative;}.tiptap-container .sticky{\nposition: sticky;}.tiptap-container .right-0{\nright: 0px;}.tiptap-container .z-10{\nz-index: 10;}.tiptap-container .m-0{\nmargin: 0px;}.tiptap-container .m-1{\nmargin: 0.25rem;}.tiptap-container .my-2{\nmargin-top: 0.5rem;\nmargin-bottom: 0.5rem;}.tiptap-container .my-2\\.5{\nmargin-top: 0.625rem;\nmargin-bottom: 0.625rem;}.tiptap-container .my-4{\nmargin-top: 1rem;\nmargin-bottom: 1rem;}.tiptap-container .mb-0{\nmargin-bottom: 0px;}.tiptap-container .mb-2{\nmargin-bottom: 0.5rem;}.tiptap-container .mb-4{\nmargin-bottom: 1rem;}.tiptap-container .mb-5{\nmargin-bottom: 1.25rem;}.tiptap-container .mr-1{\nmargin-right: 0.25rem;}.tiptap-container .mt-20{\nmargin-top: 5rem;}.tiptap-container .mt-4{\nmargin-top: 1rem;}.tiptap-container .block{\ndisplay: block;}.tiptap-container .\\!inline{\ndisplay: inline !important;}.tiptap-container .inline{\ndisplay: inline;}.tiptap-container .flex{\ndisplay: flex;}.tiptap-container .table{\ndisplay: table;}.tiptap-container .flow-root{\ndisplay: flow-root;}.tiptap-container .hidden{\ndisplay: none;}.tiptap-container .h-4{\nheight: 1rem;}.tiptap-container .h-5{\nheight: 1.25rem;}.tiptap-container .h-6{\nheight: 1.5rem;}.tiptap-container .h-8{\nheight: 2rem;}.tiptap-container .h-auto{\nheight: auto;}.tiptap-container .max-h-72{\nmax-height: 18rem;}.tiptap-container .min-h-\\[20rem\\]{\nmin-height: 20rem;}.tiptap-container .w-4{\nwidth: 1rem;}.tiptap-container .w-40{\nwidth: 10rem;}.tiptap-container .w-5{\nwidth: 1.25rem;}.tiptap-container .w-6{\nwidth: 1.5rem;}.tiptap-container .max-w-96{\nmax-width: 24rem;}.tiptap-container .max-w-none{\nmax-width: none;}.tiptap-container .flex-shrink-0{\nflex-shrink: 0;}.tiptap-container .cursor-pointer{\ncursor: pointer;}.tiptap-container .items-center{\nalign-items: center;}.tiptap-container .justify-center{\njustify-content: center;}.tiptap-container .justify-between{\njustify-content: space-between;}.tiptap-container .gap-1{\ngap: 0.25rem;}.tiptap-container .gap-4{\ngap: 1rem;}.tiptap-container .overflow-y-auto{\noverflow-y: auto;}.tiptap-container .truncate{\noverflow: hidden;\ntext-overflow: ellipsis;\nwhite-space: nowrap;}.tiptap-container .rounded{\nborder-radius: 0.25rem;}.tiptap-container .rounded-md{\nborder-radius: 0.375rem;}.tiptap-container .border{\nborder-width: 1px;}.tiptap-container .border-solid{\nborder-style: solid;}.tiptap-container .border-dashed{\nborder-style: dashed;}.tiptap-container .border-\\[\\#1775FE\\]{\n--tw-border-opacity: 1;\nborder-color: rgb(23 117 254 / var(--tw-border-opacity));}.tiptap-container .border-gray-200{\n--tw-border-opacity: 1;\nborder-color: rgb(229 231 235 / var(--tw-border-opacity));}.tiptap-container .border-gray-3{\n--tw-border-opacity: 1;\nborder-color: rgb(217 224 237 / var(--tw-border-opacity));}.tiptap-container .border-gray-300{\n--tw-border-opacity: 1;\nborder-color: rgb(209 213 219 / var(--tw-border-opacity));}.tiptap-container .border-green-600{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.tiptap-container .bg-\\[\\#F5F7FA\\]{\n--tw-bg-opacity: 1;\nbackground-color: rgb(245 247 250 / var(--tw-bg-opacity));}.tiptap-container .bg-blue-5{\n--tw-bg-opacity: 1;\nbackground-color: rgb(23 117 254 / var(--tw-bg-opacity));}.tiptap-container .bg-gray-50{\n--tw-bg-opacity: 1;\nbackground-color: rgb(249 250 251 / var(--tw-bg-opacity));}.tiptap-container .bg-white{\n--tw-bg-opacity: 1;\nbackground-color: rgb(255 255 255 / var(--tw-bg-opacity));}.tiptap-container .p-1{\npadding: 0.25rem;}.tiptap-container .p-2{\npadding: 0.5rem;}.tiptap-container .p-4{\npadding: 1rem;}.tiptap-container .px-3{\npadding-left: 0.75rem;\npadding-right: 0.75rem;}.tiptap-container .px-4{\npadding-left: 1rem;\npadding-right: 1rem;}.tiptap-container .pr-2{\npadding-right: 0.5rem;}.tiptap-container .text-center{\ntext-align: center;}.tiptap-container .text-2xl{\nfont-size: 1.5rem;\nline-height: 2rem;}.tiptap-container .text-5xl{\nfont-size: 3rem;\nline-height: 1;}.tiptap-container .text-base{\nfont-size: 1rem;\nline-height: 1.5rem;}.tiptap-container .text-sm{\nfont-size: 0.875rem;\nline-height: 1.25rem;}.tiptap-container .text-xl{\nfont-size: 1.25rem;\nline-height: 1.75rem;}.tiptap-container .italic{\nfont-style: italic;}.tiptap-container .text-gray-5{\n--tw-text-opacity: 1;\ncolor: rgb(135 144 158 / var(--tw-text-opacity));}.tiptap-container .text-gray-7{\n--tw-text-opacity: 1;\ncolor: rgb(84 91 100 / var(--tw-text-opacity));}.tiptap-container .text-green-600{\n--tw-text-opacity: 1;\ncolor: rgb(22 163 74 / var(--tw-text-opacity));}.tiptap-container .text-green-green{\n--tw-text-opacity: 1;\ncolor: rgb(83 195 27 / var(--tw-text-opacity));}.tiptap-container .text-red-600{\n--tw-text-opacity: 1;\ncolor: rgb(220 38 38 / var(--tw-text-opacity));}.tiptap-container .text-red-red{\n--tw-text-opacity: 1;\ncolor: rgb(254 77 79 / var(--tw-text-opacity));}.tiptap-container .text-white{\n--tw-text-opacity: 1;\ncolor: rgb(255 255 255 / var(--tw-text-opacity));}.tiptap-container .text-yellow-500{\n--tw-text-opacity: 1;\ncolor: rgb(234 179 8 / var(--tw-text-opacity));}.tiptap-container .underline{\ntext-decoration-line: underline;}.tiptap-container .opacity-0{\nopacity: 0;}.tiptap-container .shadow-sm{\n--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\nbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}.tiptap-container .filter{\nfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}.tiptap-container .transition-opacity{\ntransition-property: opacity;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}.tiptap-container .transition-transform{\ntransition-property: transform;\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\ntransition-duration: 150ms;}@layer tailwind-base{.tiptap-container *, .tiptap-container ::before, .tiptap-container ::after{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}.tiptap-container ::backdrop{\n--tw-border-spacing-x: 0;\n--tw-border-spacing-y: 0;\n--tw-translate-x: 0;\n--tw-translate-y: 0;\n--tw-rotate: 0;\n--tw-skew-x: 0;\n--tw-skew-y: 0;\n--tw-scale-x: 1;\n--tw-scale-y: 1;\n--tw-pan-x: ;\n--tw-pan-y: ;\n--tw-pinch-zoom: ;\n--tw-scroll-snap-strictness: proximity;\n--tw-gradient-from-position: ;\n--tw-gradient-via-position: ;\n--tw-gradient-to-position: ;\n--tw-ordinal: ;\n--tw-slashed-zero: ;\n--tw-numeric-figure: ;\n--tw-numeric-spacing: ;\n--tw-numeric-fraction: ;\n--tw-ring-inset: ;\n--tw-ring-offset-width: 0px;\n--tw-ring-offset-color: #fff;\n--tw-ring-color: rgb(59 130 246 / 0.5);\n--tw-ring-offset-shadow: 0 0 #0000;\n--tw-ring-shadow: 0 0 #0000;\n--tw-shadow: 0 0 #0000;\n--tw-shadow-colored: 0 0 #0000;\n--tw-blur: ;\n--tw-brightness: ;\n--tw-contrast: ;\n--tw-grayscale: ;\n--tw-hue-rotate: ;\n--tw-invert: ;\n--tw-saturate: ;\n--tw-sepia: ;\n--tw-drop-shadow: ;\n--tw-backdrop-blur: ;\n--tw-backdrop-brightness: ;\n--tw-backdrop-contrast: ;\n--tw-backdrop-grayscale: ;\n--tw-backdrop-hue-rotate: ;\n--tw-backdrop-invert: ;\n--tw-backdrop-opacity: ;\n--tw-backdrop-saturate: ;\n--tw-backdrop-sepia: ;\n--tw-contain-size: ;\n--tw-contain-layout: ;\n--tw-contain-paint: ;\n--tw-contain-style: ;}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n.tiptap-container *,\n.tiptap-container ::before,\n.tiptap-container ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n.tiptap-container ::before,\n.tiptap-container ::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\n.tiptap-container html,\n.tiptap-container :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\n.tiptap-container body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\n.tiptap-container hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\n.tiptap-container abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\n.tiptap-container a {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\n.tiptap-container b,\n.tiptap-container strong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\n.tiptap-container code,\n.tiptap-container kbd,\n.tiptap-container samp,\n.tiptap-container pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\n.tiptap-container small {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\n.tiptap-container sub,\n.tiptap-container sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\n.tiptap-container sub {\n bottom: -0.25em;\n}\n\n.tiptap-container sup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\n.tiptap-container table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\n.tiptap-container button,\n.tiptap-container input,\n.tiptap-container optgroup,\n.tiptap-container select,\n.tiptap-container textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\n.tiptap-container button,\n.tiptap-container select {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\n.tiptap-container button,\n.tiptap-container input:where([type=\'button\']),\n.tiptap-container input:where([type=\'reset\']),\n.tiptap-container input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n.tiptap-container :-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n.tiptap-container :-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\n.tiptap-container progress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n.tiptap-container ::-webkit-inner-spin-button,\n.tiptap-container ::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n.tiptap-container [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n.tiptap-container ::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n.tiptap-container ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\n.tiptap-container summary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\n.tiptap-container blockquote,\n.tiptap-container dl,\n.tiptap-container dd,\n.tiptap-container h1,\n.tiptap-container h2,\n.tiptap-container h3,\n.tiptap-container h4,\n.tiptap-container h5,\n.tiptap-container h6,\n.tiptap-container hr,\n.tiptap-container figure,\n.tiptap-container p,\n.tiptap-container pre {\n margin: 0;\n}\n\n.tiptap-container fieldset {\n margin: 0;\n padding: 0;\n}\n\n.tiptap-container legend {\n padding: 0;\n}\n\n.tiptap-container ol,\n.tiptap-container ul,\n.tiptap-container menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n.tiptap-container dialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\n.tiptap-container textarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\n.tiptap-container input::-moz-placeholder, .tiptap-container textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n.tiptap-container input::placeholder,\n.tiptap-container textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\n.tiptap-container button,\n.tiptap-container [role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n.tiptap-container :disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\n.tiptap-container img,\n.tiptap-container svg,\n.tiptap-container video,\n.tiptap-container canvas,\n.tiptap-container audio,\n.tiptap-container iframe,\n.tiptap-container embed,\n.tiptap-container object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\n.tiptap-container img,\n.tiptap-container video {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n.tiptap-container [hidden] {\n display: none;\n}}.tiptap>*:first-child{\nmargin-top: 0px;}.tiptap[contenteditable=true]{\noutline-width: 0px;}.last\\:mb-0:last-child{\nmargin-bottom: 0px;}.hover\\:border-green-600:hover{\n--tw-border-opacity: 1;\nborder-color: rgb(22 163 74 / var(--tw-border-opacity));}.hover\\:bg-assist-bg-blue:hover{\n--tw-bg-opacity: 1;\nbackground-color: rgb(244 246 250 / var(--tw-bg-opacity));}.group:hover .group-hover\\:-translate-x-10{\n--tw-translate-x: -2.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:-translate-x-6{\n--tw-translate-x: -1.5rem;\ntransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}.group:hover .group-hover\\:opacity-100{\nopacity: 1;}',""]);const s=i},444:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,".tippy-box{max-width:100% !important}",""]);const s=i},311:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.tiptap table{margin:0px;width:100%;table-layout:fixed;border-collapse:collapse;overflow:hidden}.tiptap table td,.tiptap table th{position:relative;box-sizing:border-box;min-width:1rem;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity));padding:0.5rem;vertical-align:top}.tiptap table td>*,.tiptap table th>*{margin-block:0px}.tiptap table th{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));text-align:left;font-weight:700}.tiptap table .selectedCell:after{pointer-events:none;position:absolute;inset:0px;z-index:10;background-color:rgb(229 231 235 / var(--tw-bg-opacity));--tw-bg-opacity:0.25;--tw-content:"";content:var(--tw-content)}.tiptap table .column-resize-handle{pointer-events:none;position:absolute;bottom:-0.25rem;top:0px;right:0px;width:0.25rem;--tw-bg-opacity:1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.tiptap .tableWrapper{margin-top:1.5rem;margin-bottom:1.5rem;overflow-x:auto}.tiptap.resize-cursor{cursor:col-resize}.tiptap code{margin:0.25rem}',""]);const s=i},588:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(245),r=n.n(o),a=n(526),i=n.n(a)()(r());i.push([e.id,'.mylib-upload-drawer *, .mylib-upload-drawer ::before, .mylib-upload-drawer ::after{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}.mylib-upload-drawer ::backdrop{\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/.mylib-upload-drawer *,\n.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}.mylib-upload-drawer ::before,\n.mylib-upload-drawer ::after {\n --tw-content: \'\';\n}/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/.mylib-upload-drawer html,\n.mylib-upload-drawer :host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: AlibabaPuHuiTi-3-55-RegularL3, ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/.mylib-upload-drawer body {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/.mylib-upload-drawer hr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/.mylib-upload-drawer abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}/*\nRemove the default font size and weight for headings.\n*/.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6 {\n font-size: inherit;\n font-weight: inherit;\n}/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/.mylib-upload-drawer a {\n color: inherit;\n text-decoration: inherit;\n}/*\nAdd the correct font weight in Edge and Safari.\n*/.mylib-upload-drawer b,\n.mylib-upload-drawer strong {\n font-weight: bolder;\n}/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/.mylib-upload-drawer code,\n.mylib-upload-drawer kbd,\n.mylib-upload-drawer samp,\n.mylib-upload-drawer pre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}/*\nAdd the correct font size in all browsers.\n*/.mylib-upload-drawer small {\n font-size: 80%;\n}/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/.mylib-upload-drawer sub,\n.mylib-upload-drawer sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}.mylib-upload-drawer sub {\n bottom: -0.25em;\n}.mylib-upload-drawer sup {\n top: -0.5em;\n}/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/.mylib-upload-drawer table {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input,\n.mylib-upload-drawer optgroup,\n.mylib-upload-drawer select,\n.mylib-upload-drawer textarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer select {\n text-transform: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer input:where([type=\'button\']),\n.mylib-upload-drawer input:where([type=\'reset\']),\n.mylib-upload-drawer input:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}/*\nUse the modern Firefox focus style for all focusable elements.\n*/.mylib-upload-drawer :-moz-focusring {\n outline: auto;\n}/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/.mylib-upload-drawer :-moz-ui-invalid {\n box-shadow: none;\n}/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/.mylib-upload-drawer progress {\n vertical-align: baseline;\n}/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/.mylib-upload-drawer ::-webkit-inner-spin-button,\n.mylib-upload-drawer ::-webkit-outer-spin-button {\n height: auto;\n}/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/.mylib-upload-drawer [type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/.mylib-upload-drawer ::-webkit-search-decoration {\n -webkit-appearance: none;\n}/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/.mylib-upload-drawer ::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}/*\nAdd the correct display in Chrome and Safari.\n*/.mylib-upload-drawer summary {\n display: list-item;\n}/*\nRemoves the default spacing and border for appropriate elements.\n*/.mylib-upload-drawer blockquote,\n.mylib-upload-drawer dl,\n.mylib-upload-drawer dd,\n.mylib-upload-drawer h1,\n.mylib-upload-drawer h2,\n.mylib-upload-drawer h3,\n.mylib-upload-drawer h4,\n.mylib-upload-drawer h5,\n.mylib-upload-drawer h6,\n.mylib-upload-drawer hr,\n.mylib-upload-drawer figure,\n.mylib-upload-drawer p,\n.mylib-upload-drawer pre {\n margin: 0;\n}.mylib-upload-drawer fieldset {\n margin: 0;\n padding: 0;\n}.mylib-upload-drawer legend {\n padding: 0;\n}.mylib-upload-drawer ol,\n.mylib-upload-drawer ul,\n.mylib-upload-drawer menu {\n list-style: none;\n margin: 0;\n padding: 0;\n}/*\nReset default styling for dialogs.\n*/.mylib-upload-drawer dialog {\n padding: 0;\n}/*\nPrevent resizing textareas horizontally by default.\n*/.mylib-upload-drawer textarea {\n resize: vertical;\n}/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/.mylib-upload-drawer input::-moz-placeholder, .mylib-upload-drawer textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}.mylib-upload-drawer input::placeholder,\n.mylib-upload-drawer textarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}/*\nSet the default cursor for buttons.\n*/.mylib-upload-drawer button,\n.mylib-upload-drawer [role="button"] {\n cursor: pointer;\n}/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/.mylib-upload-drawer :disabled {\n cursor: default;\n}/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer svg,\n.mylib-upload-drawer video,\n.mylib-upload-drawer canvas,\n.mylib-upload-drawer audio,\n.mylib-upload-drawer iframe,\n.mylib-upload-drawer embed,\n.mylib-upload-drawer object {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/.mylib-upload-drawer img,\n.mylib-upload-drawer video {\n max-width: 100%;\n height: auto;\n}/* Make elements with the HTML hidden attribute stay hidden by default */.mylib-upload-drawer [hidden] {\n display: none;\n}.mylib-upload-drawer .prose{\n color: var(--tw-prose-body);\n max-width: 65ch;\n}.mylib-upload-drawer .prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-lead);\n font-size: 1.25em;\n line-height: 1.6;\n margin-top: 1.2em;\n margin-bottom: 1.2em;\n}.mylib-upload-drawer .prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-links);\n text-decoration: underline;\n font-weight: 500;\n}.mylib-upload-drawer .prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-bold);\n font-weight: 600;\n}.mylib-upload-drawer .prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-alpha;\n}.mylib-upload-drawer .prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: upper-roman;\n}.mylib-upload-drawer .prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: lower-roman;\n}.mylib-upload-drawer .prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: decimal;\n}.mylib-upload-drawer .prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n list-style-type: disc;\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n font-weight: 400;\n color: var(--tw-prose-counters);\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker{\n color: var(--tw-prose-bullets);\n}.mylib-upload-drawer .prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-color: var(--tw-prose-hr);\n border-top-width: 1px;\n margin-top: 3em;\n margin-bottom: 3em;\n}.mylib-upload-drawer .prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-style: italic;\n color: var(--tw-prose-quotes);\n border-inline-start-width: 0.25rem;\n border-inline-start-color: var(--tw-prose-quote-borders);\n quotes: "\\201C""\\201D""\\2018""\\2019";\n margin-top: 1.6em;\n margin-bottom: 1.6em;\n padding-inline-start: 1em;\n}.mylib-upload-drawer .prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: open-quote;\n}.mylib-upload-drawer .prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: close-quote;\n}.mylib-upload-drawer .prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 800;\n font-size: 2.25em;\n margin-top: 0;\n margin-bottom: 0.8888889em;\n line-height: 1.1111111;\n}.mylib-upload-drawer .prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 900;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 700;\n font-size: 1.5em;\n margin-top: 2em;\n margin-bottom: 1em;\n line-height: 1.3333333;\n}.mylib-upload-drawer .prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 800;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n font-size: 1.25em;\n margin-top: 1.6em;\n margin-bottom: 0.6em;\n line-height: 1.6;\n}.mylib-upload-drawer .prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n line-height: 1.5;\n}.mylib-upload-drawer .prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 700;\n color: inherit;\n}.mylib-upload-drawer .prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n display: block;\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n font-weight: 500;\n font-family: inherit;\n color: var(--tw-prose-kbd);\n box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);\n font-size: 0.875em;\n border-radius: 0.3125rem;\n padding-top: 0.1875em;\n padding-inline-end: 0.375em;\n padding-bottom: 0.1875em;\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-code);\n font-weight: 600;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: "`";\n}.mylib-upload-drawer .prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: "`";\n}.mylib-upload-drawer .prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.875em;\n}.mylib-upload-drawer .prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n font-size: 0.9em;\n}.mylib-upload-drawer .prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: inherit;\n}.mylib-upload-drawer .prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-pre-code);\n background-color: var(--tw-prose-pre-bg);\n overflow-x: auto;\n font-weight: 400;\n font-size: 0.875em;\n line-height: 1.7142857;\n margin-top: 1.7142857em;\n margin-bottom: 1.7142857em;\n border-radius: 0.375rem;\n padding-top: 0.8571429em;\n padding-inline-end: 1.1428571em;\n padding-bottom: 0.8571429em;\n padding-inline-start: 1.1428571em;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: inherit;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before{\n content: none;\n}.mylib-upload-drawer .prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{\n content: none;\n}.mylib-upload-drawer .prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n width: 100%;\n table-layout: auto;\n margin-top: 2em;\n margin-bottom: 2em;\n font-size: 0.875em;\n line-height: 1.7142857;\n}.mylib-upload-drawer .prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-headings);\n font-weight: 600;\n vertical-align: bottom;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 1px;\n border-bottom-color: var(--tw-prose-td-borders);\n}.mylib-upload-drawer .prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-bottom-width: 0;\n}.mylib-upload-drawer .prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: baseline;\n}.mylib-upload-drawer .prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n border-top-width: 1px;\n border-top-color: var(--tw-prose-th-borders);\n}.mylib-upload-drawer .prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n vertical-align: top;\n}.mylib-upload-drawer .prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n text-align: start;\n}.mylib-upload-drawer .prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n color: var(--tw-prose-captions);\n font-size: 0.875em;\n line-height: 1.4285714;\n margin-top: 0.8571429em;\n}.mylib-upload-drawer .prose{\n --tw-prose-body: #374151;\n --tw-prose-headings: #111827;\n --tw-prose-lead: #4b5563;\n --tw-prose-links: #111827;\n --tw-prose-bold: #111827;\n --tw-prose-counters: #6b7280;\n --tw-prose-bullets: #d1d5db;\n --tw-prose-hr: #e5e7eb;\n --tw-prose-quotes: #111827;\n --tw-prose-quote-borders: #e5e7eb;\n --tw-prose-captions: #6b7280;\n --tw-prose-kbd: #111827;\n --tw-prose-kbd-shadows: 17 24 39;\n --tw-prose-code: #111827;\n --tw-prose-pre-code: #e5e7eb;\n --tw-prose-pre-bg: #1f2937;\n --tw-prose-th-borders: #d1d5db;\n --tw-prose-td-borders: #e5e7eb;\n --tw-prose-invert-body: #d1d5db;\n --tw-prose-invert-headings: #fff;\n --tw-prose-invert-lead: #9ca3af;\n --tw-prose-invert-links: #fff;\n --tw-prose-invert-bold: #fff;\n --tw-prose-invert-counters: #9ca3af;\n --tw-prose-invert-bullets: #4b5563;\n --tw-prose-invert-hr: #374151;\n --tw-prose-invert-quotes: #f3f4f6;\n --tw-prose-invert-quote-borders: #374151;\n --tw-prose-invert-captions: #9ca3af;\n --tw-prose-invert-kbd: #fff;\n --tw-prose-invert-kbd-shadows: 255 255 255;\n --tw-prose-invert-code: #fff;\n --tw-prose-invert-pre-code: #d1d5db;\n --tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);\n --tw-prose-invert-th-borders: #4b5563;\n --tw-prose-invert-td-borders: #374151;\n font-size: 1rem;\n line-height: 1.75;\n}.mylib-upload-drawer .prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n margin-bottom: 0;\n}.mylib-upload-drawer .prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}.mylib-upload-drawer .prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0.375em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n}.mylib-upload-drawer .prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.75em;\n margin-bottom: 0.75em;\n}.mylib-upload-drawer .prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 1.25em;\n margin-bottom: 1.25em;\n}.mylib-upload-drawer .prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0.5em;\n padding-inline-start: 1.625em;\n}.mylib-upload-drawer .prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-top: 0.5714286em;\n padding-inline-end: 0.5714286em;\n padding-bottom: 0.5714286em;\n padding-inline-start: 0.5714286em;\n}.mylib-upload-drawer .prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-start: 0;\n}.mylib-upload-drawer .prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n padding-inline-end: 0;\n}.mylib-upload-drawer .prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 2em;\n margin-bottom: 2em;\n}.mylib-upload-drawer .prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-top: 0;\n}.mylib-upload-drawer .prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)){\n margin-bottom: 0;\n}.mylib-upload-drawer .absolute{\n position: absolute;\n}.mylib-upload-drawer .relative{\n position: relative;\n}.mylib-upload-drawer .sticky{\n position: sticky;\n}.mylib-upload-drawer .right-0{\n right: 0px;\n}.mylib-upload-drawer .z-10{\n z-index: 10;\n}.mylib-upload-drawer .m-0{\n margin: 0px;\n}.mylib-upload-drawer .m-1{\n margin: 0.25rem;\n}.mylib-upload-drawer .my-2{\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .my-2\\.5{\n margin-top: 0.625rem;\n margin-bottom: 0.625rem;\n}.mylib-upload-drawer .my-4{\n margin-top: 1rem;\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-0{\n margin-bottom: 0px;\n}.mylib-upload-drawer .mb-2{\n margin-bottom: 0.5rem;\n}.mylib-upload-drawer .mb-4{\n margin-bottom: 1rem;\n}.mylib-upload-drawer .mb-5{\n margin-bottom: 1.25rem;\n}.mylib-upload-drawer .mr-1{\n margin-right: 0.25rem;\n}.mylib-upload-drawer .mt-20{\n margin-top: 5rem;\n}.mylib-upload-drawer .mt-4{\n margin-top: 1rem;\n}.mylib-upload-drawer .block{\n display: block;\n}.mylib-upload-drawer .\\!inline{\n display: inline !important;\n}.mylib-upload-drawer .inline{\n display: inline;\n}.mylib-upload-drawer .flex{\n display: flex;\n}.mylib-upload-drawer .table{\n display: table;\n}.mylib-upload-drawer .flow-root{\n display: flow-root;\n}.mylib-upload-drawer .hidden{\n display: none;\n}.mylib-upload-drawer .h-4{\n height: 1rem;\n}.mylib-upload-drawer .h-5{\n height: 1.25rem;\n}.mylib-upload-drawer .h-6{\n height: 1.5rem;\n}.mylib-upload-drawer .h-8{\n height: 2rem;\n}.mylib-upload-drawer .h-auto{\n height: auto;\n}.mylib-upload-drawer .max-h-72{\n max-height: 18rem;\n}.mylib-upload-drawer .min-h-\\[20rem\\]{\n min-height: 20rem;\n}.mylib-upload-drawer .w-4{\n width: 1rem;\n}.mylib-upload-drawer .w-40{\n width: 10rem;\n}.mylib-upload-drawer .w-5{\n width: 1.25rem;\n}.mylib-upload-drawer .w-6{\n width: 1.5rem;\n}.mylib-upload-drawer .max-w-96{\n max-width: 24rem;\n}.mylib-upload-drawer .max-w-none{\n max-width: none;\n}.mylib-upload-drawer .flex-shrink-0{\n flex-shrink: 0;\n}.mylib-upload-drawer .cursor-pointer{\n cursor: pointer;\n}.mylib-upload-drawer .items-center{\n align-items: center;\n}.mylib-upload-drawer .justify-center{\n justify-content: center;\n}.mylib-upload-drawer .justify-between{\n justify-content: space-between;\n}.mylib-upload-drawer .gap-1{\n gap: 0.25rem;\n}.mylib-upload-drawer .gap-4{\n gap: 1rem;\n}.mylib-upload-drawer .overflow-y-auto{\n overflow-y: auto;\n}.mylib-upload-drawer .truncate{\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}.mylib-upload-drawer .rounded{\n border-radius: 0.25rem;\n}.mylib-upload-drawer .rounded-md{\n border-radius: 0.375rem;\n}.mylib-upload-drawer .border{\n border-width: 1px;\n}.mylib-upload-drawer .border-solid{\n border-style: solid;\n}.mylib-upload-drawer .border-dashed{\n border-style: dashed;\n}.mylib-upload-drawer .border-\\[\\#1775FE\\]{\n --tw-border-opacity: 1;\n border-color: rgb(23 117 254 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-200{\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-3{\n --tw-border-opacity: 1;\n border-color: rgb(217 224 237 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-gray-300{\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}.mylib-upload-drawer .border-green-600{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.mylib-upload-drawer .bg-\\[\\#F5F7FA\\]{\n --tw-bg-opacity: 1;\n background-color: rgb(245 247 250 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-blue-5{\n --tw-bg-opacity: 1;\n background-color: rgb(23 117 254 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-gray-50{\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .bg-white{\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}.mylib-upload-drawer .p-1{\n padding: 0.25rem;\n}.mylib-upload-drawer .p-2{\n padding: 0.5rem;\n}.mylib-upload-drawer .p-4{\n padding: 1rem;\n}.mylib-upload-drawer .px-3{\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}.mylib-upload-drawer .px-4{\n padding-left: 1rem;\n padding-right: 1rem;\n}.mylib-upload-drawer .pr-2{\n padding-right: 0.5rem;\n}.mylib-upload-drawer .text-center{\n text-align: center;\n}.mylib-upload-drawer .text-2xl{\n font-size: 1.5rem;\n line-height: 2rem;\n}.mylib-upload-drawer .text-5xl{\n font-size: 3rem;\n line-height: 1;\n}.mylib-upload-drawer .text-base{\n font-size: 1rem;\n line-height: 1.5rem;\n}.mylib-upload-drawer .text-sm{\n font-size: 0.875rem;\n line-height: 1.25rem;\n}.mylib-upload-drawer .text-xl{\n font-size: 1.25rem;\n line-height: 1.75rem;\n}.mylib-upload-drawer .italic{\n font-style: italic;\n}.mylib-upload-drawer .text-gray-5{\n --tw-text-opacity: 1;\n color: rgb(135 144 158 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-gray-7{\n --tw-text-opacity: 1;\n color: rgb(84 91 100 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-600{\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-green-green{\n --tw-text-opacity: 1;\n color: rgb(83 195 27 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-600{\n --tw-text-opacity: 1;\n color: rgb(220 38 38 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-red-red{\n --tw-text-opacity: 1;\n color: rgb(254 77 79 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-white{\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}.mylib-upload-drawer .text-yellow-500{\n --tw-text-opacity: 1;\n color: rgb(234 179 8 / var(--tw-text-opacity));\n}.mylib-upload-drawer .underline{\n text-decoration-line: underline;\n}.mylib-upload-drawer .opacity-0{\n opacity: 0;\n}.mylib-upload-drawer .shadow-sm{\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}.mylib-upload-drawer .filter{\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}.mylib-upload-drawer .transition-opacity{\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.mylib-upload-drawer .transition-transform{\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}.last\\:mb-0:last-child{\n margin-bottom: 0px;\n}.hover\\:border-green-600:hover{\n --tw-border-opacity: 1;\n border-color: rgb(22 163 74 / var(--tw-border-opacity));\n}.hover\\:bg-assist-bg-blue:hover{\n --tw-bg-opacity: 1;\n background-color: rgb(244 246 250 / var(--tw-bg-opacity));\n}.group:hover .group-hover\\:-translate-x-10{\n --tw-translate-x: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:-translate-x-6{\n --tw-translate-x: -1.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}.group:hover .group-hover\\:opacity-100{\n opacity: 1;\n}',""]);const s=i},526:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);o&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},405:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},245:e=>{e.exports=function(e){return e[1]}},438:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],d=o.base?l[0]+o.base:l[0],c=a[d]||0,p="".concat(d," ").concat(c);a[d]=c+1;var u=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var m=r(h,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var a=o(e=e||[],r=r||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=o(e,r),d=0;d<a.length;d++){var c=n(a[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},413:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},50:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},598:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},119:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},615:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},840:e=>{e.exports="data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 version=%271.1%27 aria-hidden=%27true%27><path fill-rule=%27evenodd%27 d=%27M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z%27></path></svg>"}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={id:o,exports:{}};return e[o](a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};n.r(o),n.d(o,{AuthTag:()=>Go,BenchCard:()=>Vo,ConfirmAgain:()=>Lo,Copy:()=>Ko,FilePreview:()=>Eo,FileUploadDrawer:()=>We,FileUploadModal:()=>vn,FileUploader:()=>jn,FloatingLabelInput:()=>or,FloatingLayer:()=>Uo,Header:()=>v,InputTag:()=>N,PermissionEditModal:()=>Xa,PermissionEditor:()=>Qa,PermissionViewPopover:()=>Ya,PopoverSelect:()=>lr,StatusTag:()=>Yo,TipTapReader:()=>Ra,Tiptap:()=>Ha,UploadDrawerUploadStoreProvider:()=>X,UploadStoreProvider:()=>ht,copy:()=>Jo});var r={};n.r(r),n.d(r,{default:()=>tr,input:()=>Qo.hF,"input-label":()=>Qo.eo,"input-label-hinden":()=>Qo.J2,"slide-input-wrapper":()=>Qo.T1});const a=require("react/jsx-runtime"),i=require("antd");var s=n(438),l=n.n(s),d=n(119),c=n.n(d),p=n(413),u=n.n(p),h=n(598),m=n.n(h),b=n(50),f=n.n(b),w=n(615),g=n.n(w),y=n(280),x={};function v(e){const{showLogin:t}=e;return(0,a.jsxs)("div",{className:y.LV,children:[(0,a.jsx)("img",{src:"https://www.unpkg.com/@zjlab-fe/fe-assets/logo-white.png",className:y.wm}),t&&(0,a.jsx)(i.Button,{ghost:!0,children:"登录"})]})}x.styleTagTransform=g(),x.setAttributes=m(),x.insert=u().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=f(),l()(y.Ay,x),y.Ay&&y.Ay.locals&&y.Ay.locals;const j=require("react");var k=n.n(j);function N(e){const{value:t,onChange:n,placeholder:o="请输入关键字",valueType:r,deduplicated:s=!0,size:l,maxLength:d,disabled:c}=e,[p,u]=(0,j.useState)([]),[h,m]=(0,j.useState)(1),b=(0,j.useRef)(null);(0,j.useEffect)((()=>{if(Array.isArray(t))u(t);else if("string"==typeof t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e));u(e)}}),[t]),(0,j.useEffect)((()=>{1!==h&&(null==b?void 0:b.current)&&b.current.focus()}),[h]);const f=e=>{if(s&&(e=Array.from(new Set(e))),u(e),"array"===r)null==n||n(e.length>0?e:void 0);else{const t=e.join(";");null==n||n(t||void 0)}};let w;return(null==p?void 0:p.length)>0&&(w=p.map(((e,t)=>(0,a.jsx)(i.Tag,{closeIcon:!c,onClose:()=>(e=>{const t=p.filter(((t,n)=>n!==e));f(t),m(h+1)})(t),children:e},t)))),(0,a.jsx)(i.Input,{disabled:c,size:l,ref:b,placeholder:o,prefix:w,onPressEnter:e=>{const t=e.target.value.trim();if(""!==t){const e=t.replaceAll(";",";").split(";").filter((e=>""!==e)),n=[...p,...e];f(n),m(h+1)}},maxLength:d},h)}const A=1024,z=1048576,E=1073741824;var C,S;(S=C||(C={}))[S.INIT=1]="INIT",S[S.UPLOADING=2]="UPLOADING",S[S.FINISHED=3]="FINISHED",S[S.FAILED=4]="FAILED",S[S.PAUSED=5]="PAUSED",S[S.CANCELED=6]="CANCELED";const M=1,B=2;var O=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function W(e,t,n){return O(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=Object.assign(Object.assign({},{fileStatus:C.INIT,percentage:0,uploadId:"",expiryTime:"",uploadUrls:[],completeSeq:[],failSeq:[],cancelControllers:{},uploadStatus:[],chunkSize:0,displaySize:"",fileName:"",partCount:0,raw:void 0}),{fileName:a,raw:new File([e],a,{type:e.type}),partCount:K(r),chunkSize:Z(r),displaySize:U(r)}),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:C.FAILED})}))}function Z(e){return e<10*z?10*z:Math.ceil(e/10)}function K(e){const t=Z(e);return Math.floor(e/t)+1}function J(e,t,n,o){D(e);try{e.createObjectStore(t,{}),e.onversionchange=t=>{null===t.newVersion&&e.close()},n([])}catch(e){o(Error(`升级数据库异常: ${e.message}`))}}function P(e,t,n){const o=I.version+1;I.close();const r=window.indexedDB.open(T,o);r.onupgradeneeded=()=>J(r.result,e,t,n)}function F(e,t,n){(function(e){return new Promise((function(t,n){let o;try{o=I.transaction(e,"readonly");try{const n=o.objectStore(e),r=[],a=n.openCursor();a.onsuccess=()=>{const e=a.result;e?(r.push(e.value),e.continue()):t(r)},a.onerror=()=>{console.warn(`在handleFileRetrieve()中游标操作失败 - 错误代码: ${a.error}`,a.error)}}catch(e){n(Error(`在handleFileRetrieve()中执行事务或打开游标时发生异常 - ${e.message}`))}}catch(e){n(Error(`在handleFileRetrieve()中创建数据库事务时发生异常 - ${e.message}`))}}))})(e).then(t).catch(n)}var L=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const T="uploadStore";let I;function D(e){I=e}function U(e){const t=[{value:E,label:"GB"},{value:z,label:"MB"},{value:A,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}var q=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function H(e,t,n){return q(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return q(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>H(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return q(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[R(o,n)]:[]}))}(e,n,o):[]}))}function R(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}function _(e){return e.map((({completeSeq:e,uploadId:t,uploadStatus:n,uploadUrls:o,percentage:r,fileName:a,failSeq:i})=>({fileName:a,uploadId:t,completeSeq:e,uploadStatus:n,percentage:r,uploadUrls:[...o,...i]})))}const V={},$=(0,j.createContext)(V),G=(0,j.createContext)((()=>null));function X({children:e}){const[t,n]=(0,j.useReducer)(Y,{});return function(e){(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){const t=[];for(const[n,o]of Object.entries(e)){const e=o.filter((e=>e.fileStatus!==C.FINISHED));e.length?localStorage.setItem(n,JSON.stringify(_(e))):t.push(n)}t.length&&function(e){L(this,void 0,void 0,(function*(){const t=I.version+1;return I.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(T,t);r.onupgradeneeded=()=>{const t=r.result;e.forEach((e=>{t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)}))},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(t)}}),[e])}(t),(0,a.jsx)($.Provider,{value:t,children:(0,a.jsx)(G.Provider,{value:n,children:e})})}function Y(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==C.FINISHED))})}default:throw Error("Unknown action")}}const Q=require("@ant-design/icons");var ee=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const te="border-dashed rounded border bg-gray-50 p-4 hover:border-green-600 border-gray-300";function ne({accept:e="",directory:t=!0,dragAreaDescription:n,onFileReceived:o}){const r=(0,j.useMemo)((()=>new Set(e?e.split(","):[])),[e]),s=(0,j.useRef)(null),[l,d]=(0,j.useState)(!1),c={onDragLeave:()=>d(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),d(!0)},onDrop:function(e){return ee(this,void 0,void 0,(function*(){e.preventDefault(),d(!1);const n=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>H(e,t,r))),a=(yield Promise.allSettled(n)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value));a.length&&o(a)}))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.Flex,Object.assign({vertical:!0,gap:"1rem",align:"center",className:`${l?"border-green-600":""} ${te}`},c,{onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.click()},children:[(0,a.jsx)("p",{className:"text-5xl text-green-600 m-0",children:(0,a.jsx)(Q.InboxOutlined,{})}),(0,a.jsx)("div",{className:"text-base text-center",children:n?Array.isArray(n)?n.map(((e,t)=>(0,a.jsx)("p",{className:"text-base m-0",children:e},t))):(0,a.jsx)("p",{className:"text-base m-0",children:n}):(0,a.jsx)("p",{className:"text-base m-0",children:"点击或拖拽上传文件"})})]})),(0,a.jsx)("input",{ref:s,type:"file",accept:e,hidden:!0,multiple:!0,onChange:function(){var e;const t=null===(e=s.current)||void 0===e?void 0:e.files;(null==t?void 0:t.length)&&o(Array.from(t))},onClick:()=>{s.current&&(s.current.value="")}})]})}const oe={size:32,strokeWidth:12,type:"circle",strokeLinecap:"butt"};function re({percent:e,status:t,onClick:n}){const{progressButtonRef:o,buttonInHover:r}=function(){const e=(0,j.useRef)(null),[t,n]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{const t=e.current;if(!t)return;const o=()=>n(!0),r=()=>n(!1);return t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",r),()=>{t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",r)}}),[]),{progressButtonRef:e,buttonInHover:t}}(),[s,l]=(0,j.useState)(!1);return t===C.FINISHED?(0,a.jsx)(Q.CheckOutlined,{className:"text-green-600 text-2xl h-8"}):t===C.FAILED?(0,a.jsx)(a.Fragment,{children:s?(0,a.jsx)(Q.LoadingOutlined,{className:"text-red-600 text-2xl h-8"}):(0,a.jsx)(Q.CloseOutlined,{className:"text-red-600 text-2xl h-8",onClick:()=>{n(),l(!0)}})}):(0,a.jsx)(i.Button,{type:"text",shape:"circle",disabled:s,ref:o,title:t===C.PAUSED?"继续下载":"取消下载",onClick:()=>{n(),t===C.UPLOADING&&l(!0)},children:(0,a.jsx)(i.Progress,Object.assign({percent:e},oe,{strokeColor:s?"#f0a020":"#19a1fe",format:function(){return t===C.PAUSED?(0,a.jsx)(Q.PauseOutlined,{}):s?(0,a.jsx)(Q.LoadingOutlined,{className:"text-yellow-500"}):r?(0,a.jsx)(Q.CloseOutlined,{}):void 0}}))})}var ae=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ie(){const{identifier:e,root:t,getUploadUrls:n}=(0,j.useContext)(Oe),o=(0,j.useContext)(G);return(0,j.useCallback)((r=>ae(this,void 0,void 0,(function*(){const a=function(e){if(!e.expiryTime)return M;const t=new Date;return new Date(e.expiryTime)<t?M:B}(r)===M;if(a){const a=yield W(r.raw,t,n);o({type:"edit_file",identifier:e,file:a})}else{const t=Object.assign(Object.assign({},r),{fileStatus:C.INIT,uploadUrls:[...r.failSeq,...r.uploadUrls],failSeq:[],cancelControllers:{}});o({type:"edit_file",identifier:e,file:t})}}))),[e,t,n,o])}var se=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function le(){const{message:e}=i.App.useApp(),{identifier:t,onCancelUpload:n}=(0,j.useContext)(Oe),o=(0,j.useContext)(G);return function(t){return se(this,void 0,void 0,(function*(){const{fileName:o,uploadId:a}=t;if(!a)return void r(t);const i=yield n(o,a);i.status?r(t):e.error(i.reason||"取消失败")}))};function r(e){e.fileStatus=C.CANCELED,function(e,t){let n;try{n=I.transaction(e,"readwrite")}catch(e){return void console.warn("db.transaction() exception in deleteFileInStore() - "+e.message)}try{const o=n.objectStore(e).delete(t);o.onsuccess=()=>!0,o.onerror=e=>{console.warn("deleteReq.onerror fired in deleteFileInStore() - error code: "+o.error)}}catch(e){return void console.warn("Transaction and/or put() exception in deleteFileInStore() - "+e.message)}}(String(t),e.fileName),Object.values(e.cancelControllers).forEach((e=>e.abort())),o({type:"remove_file",identifier:t,file:e})}}var de=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ce({identifier:e,showFinished:t}){const n=(0,j.useContext)($),o=le(),r=ie(),[i,s]=(0,j.useState)([]);return(0,j.useEffect)((()=>{const o=n[e].filter((e=>e.fileStatus!==C.CANCELED&&(!1!==t||e.fileStatus!==C.FINISHED)));s(o)}),[e,t,n]),(0,a.jsx)("div",{className:"my-4",children:i.map((n=>(0,a.jsx)(pe,{identifier:e,file:n,showFinished:t,onButtonClick:l},n.fileName)))});function l(e){e.fileStatus===C.PAUSED?r(e):o(e)}}function pe({identifier:e,file:t,showFinished:n,onButtonClick:o}){const r=(0,j.useContext)(G),s="object"==typeof n&&n.withDelete;return(0,a.jsx)("div",{className:"mb-2 last:mb-0",children:(0,a.jsxs)("div",{className:"px-4 my-2 relative flex justify-between items-center",children:[(0,a.jsxs)(i.Flex,{align:"center",gap:".5rem",title:t.fileName,children:[(0,a.jsx)(Q.FileTextOutlined,{}),(0,a.jsx)("span",{className:"truncate w-40",children:t.fileName})]}),(0,a.jsxs)(i.Flex,{align:"center",gap:".5rem",children:[(0,a.jsx)(re,{status:t.fileStatus,percent:Number(t.percentage.toFixed(0)),onClick:()=>o(t)}),t.fileStatus===C.FINISHED&&s&&(0,a.jsx)(i.Button,{type:"text",size:"large",className:"px-3",disabled:s.disabled,title:s.disabled?"删除-已禁用":"删除",onClick:()=>function(t,n){return de(this,void 0,void 0,(function*(){(yield n(t.fileName))&&r({type:"remove_file",identifier:e,file:t})}))}(t,s.onDelete),children:(0,a.jsx)(Q.DeleteOutlined,{})})]})]})})}var ue=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function he(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function me(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var be=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function fe(){const{message:e}=i.App.useApp(),{identifier:t,root:n,getUploadUrls:o}=(0,j.useContext)(Oe),r=(0,j.useContext)(G),a=function(){const{message:e,modal:t}=i.App.useApp(),n=(0,j.useContext)($),{identifier:o,maxSizePerFile:r=10*E,uploadHistory:a=[],root:s}=(0,j.useContext)(Oe);return function(i){return ue(this,void 0,void 0,(function*(){const l=function(t){const n=t.filter((e=>e.size>r)).map((e=>e.name));if(n.length){const t=U(r);e.warning(`以下文件大小超过${t}:${n.join(", ")}`)}return n}(i),[d,c]=yield function(e){return ue(this,void 0,void 0,(function*(){const r=[...he(e,n[o],s),...me(e,a)];return r.length?[yield t.confirm({title:"发现同名文件,是否覆盖?",okText:"覆盖",cancelText:"取消"}),r]:[!0,[]]}))}(i);return d?[new Set(l),new Set(c)]:[new Set([...l,...c]),new Set]}))}}(),s=function(){const e=(0,j.useContext)($),{identifier:t}=(0,j.useContext)(Oe),n=le();return function(o){const r=e[t];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return function(i){return be(this,void 0,void 0,(function*(){const l=yield function(e){return be(this,void 0,void 0,(function*(){const t=new Map(e.map((e=>[e.name,e]))),[n,o]=yield a(e);return n.forEach((e=>t.delete(e))),s(o),Array.from(t.values())}))}(i),d=yield function(e){return be(this,void 0,void 0,(function*(){const t=e.map((e=>W(e,n,o)));return(yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}))}(l);d.forEach((e=>{r({type:"add_file",identifier:t,file:e})})),function(e,t){try{const n=function(e){const t=I.transaction(e,"readwrite");return t.onerror=()=>console.warn(`添加文件事务错误: ${t.error}`),t.onabort=()=>console.warn("添加文件事务已中止"),t.oncomplete=()=>console.warn("添加文件事务已完成"),t}(e);!function(e,t){t.map((t=>function(e,t){try{e.put(t,t.fileName),console.warn(`文件 "${t.fileName}" 添加成功`)}catch(e){console.warn(`添加文件 "${t.fileName}" 时出错: ${e.message}`)}}(e,t)))}(n.objectStore(e),t)}catch(e){console.warn(`批量添加文件时出错: ${e.message}`)}}(t,d),d.length<l.length&&e.info("部分文件获取上传地址失败")}))}}const we=require("axios");var ge=n.n(we),ye=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function xe(e,t=1e3){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}function ve(e,t,n){const o=e.uploadUrls.findIndex((e=>e===t));e.uploadUrls.splice(o,1),e["complete"===n?"completeSeq":"failSeq"].push(t)}var je=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},ke=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ne(){const e=function(){const{identifier:e,onOnePartDone:t}=(0,j.useContext)(Oe),n=(0,j.useContext)(G),o=(0,j.useCallback)(((t,o,r)=>{o.fileStatus===C.UPLOADING&&(o.uploadStatus[r]=Number(t.progress),o.percentage=o.uploadStatus.reduce(((e,t)=>e+t))*(100/o.partCount),n({type:"edit_file",identifier:e,file:o}))}),[e,n]),r=(0,j.useCallback)(((e,t,n)=>ye(this,void 0,void 0,(function*(){const r=ge().create({});yield r.put(e.uploadUrl,t,{signal:n.cancelControllers[e.partNum].signal,withCredentials:!1,timeout:18e5,headers:{"Content-Type":"application/octet-stream"},onUploadProgress:xe((t=>o(t,n,e.partNum)))})}))),[o]),a=(0,j.useCallback)(((e,n)=>ye(this,void 0,void 0,(function*(){const{fileName:o,uploadId:r}=e,a=yield t(o,r,n.partNum);if(!a.status)throw new Error(a.reason);ve(e,n,"complete")}))),[t]),i=(0,j.useCallback)(((e,t,n)=>ye(this,void 0,void 0,(function*(){try{return yield r(e,t,n),yield a(n,e),n.fileStatus}catch(t){return ve(n,e,"fail"),n.fileStatus}}))),[r,a]);return(0,j.useCallback)((t=>ye(this,void 0,void 0,(function*(){t.fileStatus=C.UPLOADING,n({type:"edit_file",identifier:e,file:t});const o=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(t);for(const{url:r,chunk:a}of o){if(t.cancelControllers[r.partNum]=new AbortController,(yield i(r,a,t))===C.CANCELED)return!1;n({type:"edit_file",identifier:e,file:t})}}))),[e,n,i])}(),t=function(){const{identifier:e,onAllPartDone:t}=(0,j.useContext)(Oe),n=(0,j.useContext)(G);return(0,j.useCallback)((o=>je(this,void 0,void 0,(function*(){try{const{fileName:e,uploadId:n}=o;if(0!==o.failSeq.length)throw new Error("partial failed");{const r=yield t(e,n);if(!r.status)throw new Error(r.reason);o.fileStatus=C.FINISHED}}catch(e){o.fileStatus=C.FAILED}finally{n({type:"edit_file",identifier:e,file:o})}}))),[e,t,n])}();return(0,j.useCallback)(((n,o)=>ke(this,void 0,void 0,(function*(){yield e(n),n.fileStatus!==C.CANCELED&&(yield t(n),n.fileStatus===C.FINISHED&&o&&o(n))}))),[e,t])}var Ae=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function ze(e){const{message:t,modal:n}=i.App.useApp(),o=(0,j.useContext)(G),r=ie();return(0,j.useCallback)((()=>Ae(this,void 0,void 0,(function*(){const a=yield function(e){return Ae(this,void 0,void 0,(function*(){const t=yield(o=e,new Promise(((e,t)=>{I?function(e,t,n){I.objectStoreNames.contains(e)?F(e,t,n):P(e,t,n)}(o,e,t):function(e,t,n){try{const o=window.indexedDB.open(T);o.onupgradeneeded=()=>J(o.result,e,t,n),o.onsuccess=()=>function(e,t,n,o){D(e),e.objectStoreNames.contains(t)?F(t,n,o):P(t,n,o)}(o.result,e,t,n),o.onerror=()=>n(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>n(Error(`数据库被阻塞: ${o.error}`))}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),n(e)}}(o,e,t)}))),n=JSON.parse(localStorage.getItem(e)||"[]").map((e=>{const n=t.find((t=>t.fileName===e.fileName));return Object.assign(Object.assign(Object.assign({},n),e),{fileStatus:C.PAUSED})}));var o;return localStorage.removeItem(e),n}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm({title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach(r)},onCancel(){t.info("点击上传按钮手动继续")}})}))),[e,o,r,n,t])}var Ee=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Ce({open:e,identifier:t,accept:n,dragAreaDescription:o,footer:r,title:s="数据上传",showFinished:l=!1,directory:d=!1,onClose:c}){var p,u;const h=(0,j.useContext)($),m=(0,j.useContext)(G),{onSuccess:b}=(0,j.useContext)(Oe),f=fe(),w=Ne(),g=ze(t),[y,x]=(0,j.useState)([]),v=(0,j.useRef)("");return(0,j.useEffect)((()=>{v.current!==t&&(h&&m?(v.current=t,h[t]||m({type:"add",identifier:t}),g()):console.warn("FileUploadDrawer 必须在 UploadStoreProvider 内使用"))}),[t,g,h,m]),(0,j.useEffect)((()=>{const e=h[t];if(!e)return;const n=!e.some((e=>e.fileStatus===C.UPLOADING)),o=e.find((e=>e.fileStatus===C.INIT));n&&o&&w(o,b)}),[t,b,w,h]),(0,a.jsxs)(i.Drawer,{className:"mylib-upload-drawer",open:e,title:s,width:480,onClose:c,footer:r,children:[(0,a.jsx)(ne,{directory:d,accept:n,dragAreaDescription:o,onFileReceived:function(e){return Ee(this,void 0,void 0,(function*(){x((t=>[...t,...e])),yield f(e),x((t=>{const n=new Set(t);for(const t of e)n.delete(t);return[...n]}))}))}}),0===y.length&&0===(null===(p=h[t])||void 0===p?void 0:p.length)&&(0,a.jsx)(i.Empty,{className:"mt-20",description:"暂无上传内容"}),y.length>0&&(0,a.jsxs)("div",{className:"flex justify-center gap-4 mt-4",children:[(0,a.jsx)(Q.LoadingOutlined,{}),"预检上传文件中(",y.length,")"]}),(null===(u=h[t])||void 0===u?void 0:u.length)>0&&(0,a.jsx)(ce,{showFinished:l,identifier:t})]})}var Se=n(588),Me={};Me.styleTagTransform=g(),Me.setAttributes=m(),Me.insert=u().bind(null,"head"),Me.domAPI=c(),Me.insertStyleElement=f(),l()(Se.A,Me),Se.A&&Se.A.locals&&Se.A.locals;var Be=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const Oe=(0,j.createContext)({identifier:"",getUploadUrls:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onCancelUpload:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onOnePartDone:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}})),onAllPartDone:()=>Be(void 0,void 0,void 0,(function*(){return{status:!1}}))});function We(e){if((0,j.useContext)($)===V)return(0,a.jsx)(i.Drawer,{open:e.open,onClose:e.onClose,title:"数据上传",children:(0,a.jsx)(i.Alert,{message:"FileUploadDrawer 必须在 UploadStoreProvider 内使用",type:"warning"})});const{identifier:t,maxSizePerFile:n=10*E,directory:o=!1,root:r="",uploadHistory:s=[],onSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onClose:h,dragAreaDescription:m,accept:b,open:f,footer:w,title:g,showFinished:y}=e,x={identifier:t,maxSizePerFile:n,directory:o,root:r,uploadHistory:s,onSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u};return(0,a.jsx)(Oe.Provider,{value:x,children:(0,a.jsx)(Ce,{open:f,accept:b,footer:w,title:g,showFinished:y,directory:o,identifier:t,dragAreaDescription:m,onClose:h})})}var Ze,Ke=n(884),Je={};Je.styleTagTransform=g(),Je.setAttributes=m(),Je.insert=u().bind(null,"head"),Je.domAPI=c(),Je.insertStyleElement=f(),l()(Ke.A,Je),Ke.A&&Ke.A.locals&&Ke.A.locals,function(e){e[e.SHOULD_CREATE_NEW_FILE=0]="SHOULD_CREATE_NEW_FILE",e[e.SHOULD_USE_OLD_INFO=1]="SHOULD_USE_OLD_INFO"}(Ze||(Ze={}));const Pe=1024,Fe=1048576,Le=1073741824;var Te;!function(e){e[e.INIT=1]="INIT",e[e.UPLOADING=2]="UPLOADING",e[e.ALL_UPLOADED=3]="ALL_UPLOADED",e[e.MERGING=4]="MERGING",e[e.FINISHED=5]="FINISHED",e[e.FAILED=6]="FAILED",e[e.PAUSED=7]="PAUSED",e[e.CANCELED=8]="CANCELED"}(Te||(Te={}));var Ie=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function De(e,t,n){return Ie(this,void 0,void 0,(function*(){const{name:o,size:r}=e,a=t?`${t}${o}`:o,i=function(e,t,n){return{fileName:e,uploadId:"",percentage:0,expiryTime:"",failSeq:[],uploadUrls:[],completeSeq:[],uploadStatus:[],cancelControllers:[],fileStatus:Te.INIT,partCount:qe(t),chunkSize:Ue(t),raw:new File([n],e,{type:n.type})}}(a,r,e),s=yield n(a,i.partCount);return s.status?Object.assign(Object.assign({},i),s.uploadInfo):Object.assign(Object.assign({},i),{fileStatus:Te.FAILED})}))}function Ue(e){return e<10*Fe?10*Fe:Math.ceil(e/10)}function qe(e){const t=Ue(e);return Math.floor(e/t)+1}function He(e,t){try{const n=Ve.transaction(e,"readwrite").objectStore(e).delete(t);n.onsuccess=()=>console.info("在 deleteFileInStore 中 deleteReq.onsuccess 触发"),n.onerror=()=>console.warn("在 deleteFileInStore 中 deleteReq.onerror 触发 - 错误代码: "+n.error)}catch(e){return void console.warn("在 deleteFileInStore 中, db.transaction/transaction.objectStore/objectStore.delete 异常 - "+e.message)}}var Re=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const _e="uploadStore";let Ve;function $e(e){Ve=e}var Ge=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function Xe(e,t,n){return Ge(this,arguments,void 0,(function*(e,t,n,o=""){return e.isDirectory?t?function(e,t){return Ge(this,void 0,void 0,(function*(){const n=yield function(e){return new Promise(((t,n)=>{e.createReader().readEntries(t,n)}))}(e),o=n.map((e=>Xe(e,!0,t,e.fullPath)));return(yield Promise.allSettled(o)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value))}))}(e,n):[]:e.isFile?e.name.includes(".DS_Store")?[]:function(e,t,n){return Ge(this,void 0,void 0,(function*(){const o=yield function(e){return new Promise(((t,n)=>{e.file(t,n)}))}(e);return function(e,t){if(0===t.size)return!0;const n=e.name.split(".").pop()||"";return t.has(`.${n}`)}(o,t)?[Ye(o,n)]:[]}))}(e,n,o):[]}))}function Ye(e,t){const n=e.slice(0,e.size,e.type);return new File([n],t.slice(1)||e.name,{type:e.type})}var Qe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function et(e){const t=e.map((e=>{var{raw:t}=e,n=Qe(e,["raw"]);const{uploadUrls:o,failSeq:r}=n;return Object.assign(Object.assign({},n),{failSeq:[],cancelControllers:{},uploadUrls:[...o,...r]})}));return JSON.stringify(t)}const tt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader must be used within UploadStoreProvider","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal must be used within UploadStoreProvider",文件上传:"File Upload",确定:"Confirm",等待上传:"Waiting for upload",已取消:"Cancelled",上传中:"Uploading",上传失败:"Upload failed",已上传:"Uploaded",分块合并中:"Merging parts",以下文件大小超过:"The following files exceed the size",已删除:"Deleted",点击或拖拽上传文件:"Click or drag to upload files","发现同名文件,是否覆盖?":"Duplicate file found, overwrite?",覆盖:"Overwrite",取消:"Cancel",正在上传:"Uploading",取消失败:"Cancel failed",当前上传:"Current Upload",已暂停:"Paused",上传成功:"Upload successful",校验中:"Calibrating",合并中:"Merging"},nt={"FileUploader 必须在 UploadStoreProvider 内使用":"FileUploader 必须在 UploadStoreProvider 内使用","FileUploadModal 必须在 UploadStoreProvider 内使用":"FileUploadModal 必须在 UploadStoreProvider 内使用",文件上传:"文件上传",确定:"确定",等待上传:"等待上传",已取消:"已取消",上传中:"上传中",上传失败:"上传失败",已上传:"已上传",分块合并中:"分块合并中",以下文件大小超过:"以下文件大小超过",已删除:"已删除",点击或拖拽上传文件:"点击或拖拽上传文件","发现同名文件,是否覆盖?":"发现同名文件,是否覆盖?",覆盖:"覆盖",取消:"取消",正在上传:"正在上传",取消失败:"取消失败",当前上传:"当前上传",已暂停:"已暂停",上传成功:"上传成功",校验中:"校验中",合并中:"合并中"};var ot=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function rt(e,t){switch(t.type){case"add":return Object.assign(Object.assign({},e),{[t.identifier]:[]});case"remove_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),...n.slice(o+1)]})}case"edit_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_file":{const n=e[t.identifier],o=n.findIndex((e=>e.fileName===t.file.fileName));return-1===o?Object.assign(Object.assign({},e),{[t.identifier]:[...n,t.file]}):Object.assign(Object.assign({},e),{[t.identifier]:[...n.slice(0,o),t.file,...n.slice(o+1)]})}case"add_files":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:[...n,...t.files]})}case"clear_finished":{const n=e[t.identifier];return Object.assign(Object.assign({},e),{[t.identifier]:n.filter((e=>e.fileStatus!==Te.FINISHED))})}case"edit_files":return Object.entries(t.files).reduce(((t,[n,o])=>{const r=e[n];return o.forEach((e=>{const t=r.findIndex((t=>t.fileName===e.fileName));-1!==t?r[t]=e:r.push(e)})),t}),Object.assign({},e));default:throw Error("Unknown action")}}const at=(0,j.createContext)(nt),it=(0,j.createContext)({}),st=(0,j.createContext)((()=>null)),lt=(0,j.createContext)({}),dt=(0,j.createContext)((()=>null)),ct={},pt=(0,j.createContext)(ct),ut=(0,j.createContext)((()=>null));function ht({locale:e="zh",children:t}){const n="zh"===e?nt:tt,[o,r]=(0,j.useReducer)(rt,{}),[i,s]=(0,j.useState)({}),[l,d]=(0,j.useState)({});return function(e){(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){Object.entries(e).forEach((([e,t])=>{const n=t.filter((e=>e.fileStatus!==Te.FINISHED));n.length?localStorage.setItem(e,et(n)):function(e){Re(this,void 0,void 0,(function*(){const t=Ve.version+1;return Ve.close(),new Promise(((n,o)=>{const r=window.indexedDB.open(_e,t);r.onupgradeneeded=()=>{const t=r.result;t.objectStoreNames.contains(e)&&t.deleteObjectStore(e)},r.onsuccess=()=>{r.result.close(),n()},r.onerror=()=>o(r.error)}))}))}(e)}))}}),[e])}(o),function(e,t){(0,j.useEffect)((()=>{const n=Object.keys(e).reduce(((t,n)=>{const o=e[n],r=o.filter((e=>e.fileStatus===Te.ALL_UPLOADED)),a=r.filter((e=>0===e.failSeq.length)),i=r.filter((e=>e.failSeq.length>0)),s=o.find((e=>e.fileStatus===Te.UPLOADING)),l=o.find((e=>e.fileStatus===Te.INIT)),d=s?void 0:l,c=[...i.map((e=>Object.assign(Object.assign({},e),{fileStatus:Te.FAILED}))),...a.map((e=>Object.assign(Object.assign({},e),{fileStatus:Te.MERGING}))),d?Object.assign(Object.assign({},d),{fileStatus:Te.UPLOADING}):void 0].filter((e=>!!e));return c.length?Object.assign(Object.assign({},t),{[n]:c}):t}),{});Object.keys(n).length&&t({type:"edit_files",files:n})}),[t,e])}(o,r),function(e,t,n,o){const r=(0,j.useRef)({}),a=(0,j.useCallback)((function(e,a){return ot(this,void 0,void 0,(function*(){const{onAllPartDone:i}=t[e],s=n[e],l=yield Promise.all(a.map((t=>ot(this,void 0,void 0,(function*(){return(yield i(t.fileName,t.uploadId)).status?(null==s||s(t),r.current[e].delete(t.uploadId),Object.assign(Object.assign({},t),{percentage:100,fileStatus:Te.FINISHED})):Object.assign(Object.assign({},t),{fileStatus:Te.FAILED})})))));o({type:"edit_files",files:{[e]:l}})}))}),[t,n,o]);(0,j.useEffect)((()=>{Object.keys(e).forEach((t=>{const n=e[t].filter((e=>e.fileStatus===Te.MERGING));if(n.length>0){const e=r.current[t]||new Set,o=n.filter((t=>!e.has(t.uploadId)));o.forEach((t=>e.add(t.uploadId))),r.current[t]=e,a(t,o)}}))}),[e,a])}(o,i,l,r),(0,a.jsx)(at.Provider,{value:n,children:(0,a.jsx)(it.Provider,{value:i,children:(0,a.jsx)(st.Provider,{value:s,children:(0,a.jsx)(lt.Provider,{value:l,children:(0,a.jsx)(dt.Provider,{value:d,children:(0,a.jsx)(pt.Provider,{value:o,children:(0,a.jsx)(ut.Provider,{value:r,children:t})})})})})})})}var mt=n(868),bt={};function ft(){const e=(0,j.useContext)(at);return(0,j.useCallback)((t=>e[t]||(console.warn(`Translation key not found: ${t}`),t)),[e])}function wt(e){return(0,a.jsx)("svg",Object.assign({width:"34",height:"31",viewBox:"0 0 34 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsxs)("g",{id:"上传插图",children:[(0,a.jsx)("path",{id:"Vector",d:"M26 8.66665V29.7043C26.0013 29.867 25.9705 30.0284 25.9094 30.1792C25.8483 30.33 25.7581 30.4672 25.6439 30.5831C25.5297 30.699 25.3938 30.7913 25.244 30.8547C25.0941 30.918 24.9332 30.9512 24.7705 30.9523H1.22943C0.903577 30.9523 0.591055 30.823 0.360528 30.5927C0.130002 30.3624 0.000328142 30.05 0 29.7241V1.22819C0 0.563332 0.553428 0 1.23562 0H17.3333V7.42856C17.3333 7.75692 17.4638 8.07184 17.6959 8.30402C17.9281 8.53621 18.243 8.66665 18.5714 8.66665H26ZM26 6.19047H19.8095V0.00371423L26 6.19047Z",fill:"#B9D6FF"}),(0,a.jsxs)("g",{id:"Group 1000006993",children:[(0,a.jsx)("circle",{id:"Ellipse 87",cx:"26",cy:"23",r:"8",fill:"#1775FE"}),(0,a.jsx)("path",{id:"Vector_2",d:"M26.4545 24.315V27.5714H25.5455V24.315L24.3034 25.2023L23.775 24.4625L26 22.8732L28.225 24.4625L27.6966 25.2023L26.4545 24.315ZM31 24.4545C31 25.7098 29.9825 26.7273 28.7273 26.7273H27.3636V25.8182H28.7273C29.0749 25.8184 29.4094 25.6858 29.6625 25.4476C29.9156 25.2094 30.0682 24.8835 30.0891 24.5365C30.11 24.1896 29.9976 23.8477 29.7749 23.5808C29.5522 23.314 29.236 23.1422 28.8909 23.1007L28.4568 23.0489L28.4918 22.6127C28.4973 22.5455 28.5 22.4775 28.5 22.4091C28.5 21.0284 27.3807 19.9091 26 19.9091C25.4245 19.9091 24.8666 20.1077 24.4205 20.4712C23.9744 20.8347 23.6672 21.3409 23.5509 21.9045L23.4955 22.175L23.2295 22.2507C22.8492 22.3591 22.5146 22.5885 22.2763 22.9042C22.038 23.2198 21.9091 23.6045 21.9091 24C21.9091 24.4822 22.1006 24.9447 22.4416 25.2856C22.7826 25.6266 23.2451 25.8182 23.7273 25.8182H24.6364V26.7273H23.7273C22.2211 26.7273 21 25.5061 21 24C21 22.8655 21.6989 21.8682 22.7239 21.4632C22.9292 20.753 23.3598 20.1288 23.9506 19.6846C24.5415 19.2403 25.2607 19.0001 26 19C27.8414 19 29.3416 20.4598 29.4068 22.2852C29.8687 22.4302 30.2723 22.7187 30.5588 23.1089C30.8453 23.499 30.9999 23.9705 31 24.4545Z",fill:"white"})]})]})}))}function gt({description:e}){const t=ft();return(0,a.jsx)("div",{className:"text-gray-5 text-center",children:e?Array.isArray(e)?e.map(((e,t)=>(0,a.jsx)("p",{className:"m-0",children:e},t))):(0,a.jsx)("div",{className:"m-0",children:e}):(0,a.jsx)("p",{className:"m-0",children:t("点击或拖拽上传文件")})})}function yt({className:e,description:t,onClick:n,handleDrop:o}){const[r,i]=(0,j.useState)(!1),s={onDrop:e=>{e.preventDefault(),i(!1),o(e)},onDragLeave:()=>i(!1),onDragEnter:e=>e.preventDefault(),onDragOver:e=>{e.preventDefault(),i(!0)}};return(0,a.jsxs)("div",Object.assign({},s,{className:`zjlab-fe-data-hub-ui-default-drag-area ${r?"border-[#1775FE]":""} ${e}`,onClick:n,children:[(0,a.jsx)(wt,{}),(0,a.jsx)(gt,{description:t})]}))}bt.styleTagTransform=g(),bt.setAttributes=m(),bt.insert=u().bind(null,"head"),bt.domAPI=c(),bt.insertStyleElement=f(),l()(mt.A,bt),mt.A&&mt.A.locals&&mt.A.locals;var xt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function vt({accept:e="",className:t="",directory:n=!0,dragAreaDescription:o,maxSizePerFile:r=10*Le,onFileReceived:s}){const l=ft(),{message:d}=i.App.useApp(),c=(0,j.useRef)(null),p=(0,j.useMemo)((()=>new Set(e?e.split(","):[])),[e]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(yt,{className:t,description:o,handleDrop:function(e){return xt(this,void 0,void 0,(function*(){const t=Array.from(e.dataTransfer.items).map((e=>e.webkitGetAsEntry())).filter(Boolean).map((e=>Xe(e,n,p)));u((yield Promise.allSettled(t)).filter((e=>"fulfilled"===e.status)).flatMap((e=>e.value)))}))},onClick:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.click()}}),(0,a.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:e,ref:c,onChange:function(){var e;const t=null===(e=c.current)||void 0===e?void 0:e.files;u(Array.from(null!=t?t:[]))},onClick:()=>{c.current&&(c.current.value="")}})]});function u(e){const t=e.filter((e=>e.size<=r));if(t.length<e.length){const e=function(e){const t=[{value:Le,label:"GB"},{value:Fe,label:"MB"},{value:Pe,label:"KB"},{value:1,label:"B"}];for(const{value:n,label:o}of t)if(e>=n||1===n)return(e/n).toFixed(1)+o;return e+"B"}(r);d.warning(l("以下文件大小超过")+e+","+l("已删除"))}t.length&&s(t)}}function jt(e){return(0,a.jsx)("svg",Object.assign({width:"16",height:"17",viewBox:"0 0 16 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsx)("g",{id:"icon/关闭按钮",children:(0,a.jsx)("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M14.6668 8.49967C14.6668 12.1816 11.6821 15.1663 8.00016 15.1663C4.31826 15.1663 1.3335 12.1816 1.3335 8.49967C1.3335 4.81777 4.31826 1.83301 8.00016 1.83301C11.6821 1.83301 14.6668 4.81777 14.6668 8.49967ZM10.239 6.26052C10.4343 6.45578 10.4343 6.77237 10.239 6.96763L8.70698 8.49969L10.239 10.0318C10.4343 10.227 10.4343 10.5436 10.239 10.7389C10.0438 10.9341 9.7272 10.9341 9.53194 10.7389L7.99987 9.2068L6.46781 10.7389C6.27255 10.9341 5.95597 10.9341 5.7607 10.7389C5.56544 10.5436 5.56544 10.227 5.7607 10.0318L7.29277 8.49969L5.7607 6.96763C5.56544 6.77237 5.56544 6.45578 5.7607 6.26052C5.95597 6.06526 6.27255 6.06526 6.46781 6.26052L7.99987 7.79258L9.53194 6.26052C9.7272 6.06526 10.0438 6.06526 10.239 6.26052Z",fill:"currentColor"})})}))}const kt=require("jotai");var Nt=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const At=ge().create();function zt(e,t=500){let n=null;return function(o){n||(n=setTimeout((()=>{e(o),n=null}),t))}}var Et=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},Ct=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};const St=(0,kt.atom)(null),Mt=(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.fileName})),Bt=((0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.expiryTime})),(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.uploadId}))),Ot=((0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.raw})),(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.percentage}))),Wt=(0,kt.atom)((e=>{var t;return null===(t=e(St))||void 0===t?void 0:t.cancelControllers}));function Zt(){const e=(0,j.useRef)(!1),t=(0,j.useRef)([]),n=(0,j.useContext)(Pt),[o,r]=(0,kt.useAtom)(St),a=(0,j.useContext)(ut);!function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=(0,kt.useAtomValue)(St),o=(0,kt.useSetAtom)(St);(0,j.useEffect)((()=>{const n=t[e];if(!n||0===n.length)return;const r=n.find((e=>e.fileStatus===Te.UPLOADING));r&&o(Object.assign(Object.assign({},r),{fileStatus:Te.INIT}))}),[e,o,t]),(0,j.useEffect)((()=>{return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)};function t(){n&&n.fileStatus===Te.UPLOADING&&localStorage.setItem(e+"_uploading",et([n]))}}),[n,e])}();const i=function(){const e=(0,j.useContext)(Pt),t=(0,kt.useSetAtom)(St),n=(0,j.useContext)(ut),o=function(){const e=(0,j.useContext)(It),t=(0,kt.useAtomValue)(Wt),n=(0,kt.useSetAtom)(St),o=(0,j.useCallback)(((e,t)=>{n((n=>{if(!n||n.fileStatus!==Te.UPLOADING)return n;const o=1!==n.uploadStatus[t]?n.uploadStatus.toSpliced(t,1,Number(e.progress)):n.uploadStatus,r=n.uploadStatus.reduce(((e,t)=>e+(t||0)),0)*(100/n.partCount);return Object.assign(Object.assign({},n),{percentage:r,uploadStatus:o})}))}),[n]);return(0,j.useCallback)(((n,r)=>Nt(this,void 0,void 0,(function*(){t&&(yield At.put(n.uploadUrl,r,Object.assign(Object.assign({},e),{withCredentials:(null==e?void 0:e.withCredentials)||!1,timeout:(null==e?void 0:e.timeout)||18e5,headers:Object.assign({"Content-Type":"application/octet-stream"},null==e?void 0:e.headers),signal:t[n.partNum].signal,onUploadProgress:zt((e=>o(e,n.partNum)))})))}))),[t,e,o])}(),r=function(e){const t=(0,kt.useAtomValue)(Mt),n=(0,kt.useAtomValue)(Bt),o=(0,j.useContext)(it),r=(0,kt.useSetAtom)(St),a=o[e],{onOnePartDone:i}=a;return(0,j.useCallback)((e=>Et(this,void 0,void 0,(function*(){if(!t||!n)return;const o=yield i(t,n,e.partNum);if(!o.status)throw new Error(o.reason);r((t=>{if(!t)return t;const n=[...t.uploadStatus];return n[e.partNum]=1,Object.assign(Object.assign({},t),{uploadStatus:n,uploadUrls:t.uploadUrls.filter((t=>t.partNum!==e.partNum)),completeSeq:[...t.completeSeq,e]})}))}))),[t,n,i,r])}(e),a=(0,j.useCallback)(((e,n)=>Ct(this,void 0,void 0,(function*(){try{yield o(e,n),yield r(e)}catch(n){if(n instanceof Error&&"canceled"===n.message)return;t((t=>t?Object.assign(Object.assign({},t),{failSeq:[...t.failSeq,e],uploadUrls:t.uploadUrls.filter((t=>t!==e))}):t))}}))),[o,r,t]);return(0,j.useCallback)((function(o){return Ct(this,void 0,void 0,(function*(){for(const{url:e,chunk:t}of o)yield a(e,t);t((t=>t?(n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},t),{fileStatus:Te.ALL_UPLOADED})}),null):t))}))}),[e,a,t,n])}();(0,j.useEffect)((()=>{o?(o.fileStatus===Te.INIT&&(t.current=function(e){const{uploadUrls:t,chunkSize:n,raw:o}=e,r=o.size;return t.map((({partNum:e,uploadUrl:t})=>{const a=e*n,i=Math.min((e+1)*n,r);return{url:{partNum:e,uploadUrl:t},chunk:o.slice(a,i)}}))}(o),r((e=>e?Object.assign(Object.assign({},e),{fileStatus:Te.UPLOADING,cancelControllers:new Array(t.current.length).fill(new AbortController)}):e))),o.fileStatus!==Te.UPLOADING||e.current||(e.current=!0,i(t.current)),o.fileStatus===Te.CANCELED&&(Object.values(o.cancelControllers).forEach((e=>e.abort())),a({type:"remove_file",identifier:n,fileName:o.fileName}),r(null)),o.fileStatus===Te.FAILED&&(a({type:"edit_file",identifier:n,file:o}),r(null))):e.current=!1}),[o,n,i,r,a])}const Kt=require("jotai-scope"),Jt=(0,j.createContext)(void 0),Pt=(0,j.createContext)(""),Ft=(0,j.createContext)(void 0),Lt=(0,j.createContext)(void 0),Tt=(0,j.createContext)(!1),It=(0,j.createContext)(void 0);function Dt({children:e,root:t,identifier:n,showFinished:o,uploadRequestConfig:r,externalUploadContext:i,externalUploadContextOnly:s=!1,onUploadSuccess:l,getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onDeleteFile:h}){const m=(0,j.useContext)(it),b=(0,j.useContext)(st),f=(0,j.useContext)(dt);return(0,j.useEffect)((()=>{b((e=>Object.assign(Object.assign({},e),{[n]:{getUploadUrls:d,onCancelUpload:c,onOnePartDone:p,onAllPartDone:u,onDeleteFile:h}})))}),[d,c,p,u,h,b,n]),(0,j.useEffect)((()=>{f((e=>Object.assign(Object.assign({},e),{[n]:l})))}),[n,l,f]),m[n]?(0,a.jsx)(Kt.ScopeProvider,{atoms:[St],children:(0,a.jsx)(Jt.Provider,{value:t,children:(0,a.jsx)(Pt.Provider,{value:n,children:(0,a.jsx)(Ft.Provider,{value:o,children:(0,a.jsx)(Lt.Provider,{value:i,children:(0,a.jsx)(Tt.Provider,{value:s,children:(0,a.jsx)(It.Provider,{value:r,children:e})})})})})})}):(0,a.jsx)(a.Fragment,{})}var Ut=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function qt(){const e=ft(),{message:t}=i.App.useApp(),n=(0,j.useContext)(Pt),o=(0,j.useContext)(it),r=(0,j.useContext)(ut);return function(r){return Ut(this,void 0,void 0,(function*(){const{onCancelUpload:i}=o[n];if(!r.uploadId)return void a(r.fileName);const s=yield i(r.fileName,r.uploadId);s.status?a(r.fileName):t.error(s.reason||e("取消失败"))}))};function a(e){He(String(n),e),r({type:"remove_file",identifier:n,fileName:e})}}function Ht(e){return(0,a.jsx)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,a.jsxs)("g",{id:"Component 56",children:[(0,a.jsx)("path",{id:"Subtract",d:"M10.1988 5.9923V1.50071L5.00029 1.5C4.44796 1.49992 4.00016 1.94765 4.00015 2.49999L4 13.4998C3.99999 14.0521 4.44771 14.4999 5 14.4999H13.5068C14.0591 14.4999 14.5068 14.0522 14.5068 13.4999L14.507 5.9923H10.1988Z",fill:"currentColor"}),(0,a.jsx)("path",{id:"Subtract_2",d:"M14.507 4.82148H11.3911V1.5L14.507 4.82148Z",fill:"currentColor",fillOpacity:"0.4"})]})}))}const Rt={size:12,type:"circle",strokeWidth:16,showInfo:!1,strokeLinecap:"butt"},_t={[Te.INIT]:"等待上传",[Te.MERGING]:"合并中",[Te.CANCELED]:"已取消",[Te.ALL_UPLOADED]:"校验中",[Te.PAUSED]:"已暂停",[Te.FAILED]:"上传失败",[Te.UPLOADING]:"上传中",[Te.FINISHED]:"上传成功"},Vt=(0,j.memo)((function({file:e}){const t=ft(),n=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{children:[(0,a.jsx)(Gt,{fileName:e.fileName}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:t(_t[e.fileStatus]),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function $t({children:e,className:t}){return(0,a.jsx)("div",{className:`p-2 relative flex justify-between items-center rounded group ${t}`,children:e})}function Gt({fileName:e,className:t}){return(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",children:[(0,a.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-[#F5F7FA]",children:(0,a.jsx)(Ht,{className:`text-gray-5 h-5 w-5 ${t}`})}),(0,a.jsx)("span",{className:`truncate w-40 text-gray-5 ${t}`,children:e})]})}function Xt({className:e="",fileStatus:t,percentage:n,strokeColor:o="#1775FE"}){return(0,a.jsxs)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-gray-5 ${e}`,children:[t,(0,a.jsx)(i.Progress,Object.assign({percent:n},Rt,{strokeColor:o}))]})}function Yt({onDelete:e,extraActions:t,className:n=""}){return(0,a.jsxs)("div",{className:`flex items-center justify-center h-6 gap-1 text-gray-5 ${n}`,children:[t,(0,a.jsx)(jt,{onClick:e,className:"h-4 w-4 cursor-pointer"})]})}const Qt=(0,j.memo)((function(){const e=ft(),t=(0,j.useContext)(Pt),n=(0,kt.useAtomValue)(Mt),o=(0,kt.useAtomValue)(Ot),r=(0,kt.useAtomValue)(Bt),s=(0,j.useContext)(it),{onCancelUpload:l}=s[t],d=(0,kt.useSetAtom)(St);return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:n}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:e("正在上传"),percentage:Number(o.toFixed(0)),className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:function(){return o=this,a=void 0,c=function*(){const o=yield l(n,r);o.status?(He(String(t),n),d((e=>e?Object.assign(Object.assign({},e),{fileStatus:Te.CANCELED}):e))):i.message.error(o.reason||e("取消失败"))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}i((c=c.apply(o,a||[])).next())}));var o,a,s,c},className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));const en=(0,j.memo)((function({file:e}){const t=ft(),n=(0,j.useContext)(ut),o=(0,j.useContext)(Pt),r=(0,j.useContext)(it),{onDeleteFile:s}=r[o],l=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:e.fileName,className:"text-green-green"}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{percentage:100,fileStatus:t("上传成功"),strokeColor:"#53C31B",className:"text-green-green group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>function(e){return t=this,r=void 0,i=function*(){if(!s)return l(e);(yield s(e.fileName))&&n({type:"remove_file",identifier:o,fileName:e.fileName})},new((a=void 0)||(a=Promise))((function(e,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,s)}l((i=i.apply(t,r||[])).next())}));var t,r,a,i}(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})})),tn=(0,j.memo)((function({file:e}){const t=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"bg-red/10",children:[(0,a.jsx)((function(){return(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",children:[(0,a.jsx)("div",{className:"flex items-center justify-center h-6 w-6 rounded bg-red/10",children:(0,a.jsx)(Ht,{className:"text-red-red h-5 w-5"})}),(0,a.jsx)("span",{className:"truncate w-40 text-red-red",children:e.fileName})]})}),{}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)((function({className:e=""}){const t=ft();return(0,a.jsx)("div",{className:`flex items-center gap-1 h-6 text-sm mr-1 text-red-red ${e}`,children:t("上传失败")})}),{className:"group-hover:-translate-x-6 transition-transform"}),(0,a.jsx)(Yt,{onDelete:()=>t(e),className:"text-red-red absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));var nn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function on(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(it),n=(0,j.useContext)(ut);return(0,j.useCallback)((o=>nn(this,void 0,void 0,(function*(){const r=t[e];if(function(e){if(!e)return Ze.SHOULD_CREATE_NEW_FILE;const t=new Date;return new Date(e)<t?Ze.SHOULD_CREATE_NEW_FILE:Ze.SHOULD_USE_OLD_INFO}(o.expiryTime)===Ze.SHOULD_CREATE_NEW_FILE){const t=yield De(o.raw,void 0,r.getUploadUrls);n({type:"edit_file",identifier:e,file:t})}else{const t=[...o.failSeq,...o.uploadUrls];n({type:"edit_file",identifier:e,file:Object.assign(Object.assign({},o),{uploadUrls:t,failSeq:[],cancelControllers:[],fileStatus:Te.INIT})})}}))),[e,t,n])}const rn=(0,j.memo)((function({file:e}){const t=ft(),n=qt();return(0,a.jsx)("div",{className:"my-2.5",children:(0,a.jsxs)($t,{className:"border-gray-3 border border-solid hover:bg-assist-bg-blue",children:[(0,a.jsx)(Gt,{fileName:e.fileName}),(0,a.jsxs)(i.Flex,{align:"center",gap:".25rem",className:"relative",children:[(0,a.jsx)(Xt,{fileStatus:t("已暂停"),percentage:Number(e.percentage.toFixed(0)),className:"group-hover:-translate-x-10 transition-transform"}),(0,a.jsx)(Yt,{extraActions:(0,a.jsx)((function(){const t=on();return(0,a.jsx)(Q.PlayCircleFilled,{className:"text-gray-5 h-4 w-4 cursor-pointer",onClick:()=>t(e)})}),{}),onDelete:()=>n(e),className:"absolute right-0 opacity-0 group-hover:opacity-100 transition-opacity"})]})]})})}));function an(){const e=ft(),t=(0,j.useContext)(Pt),n=(0,j.useContext)(pt),o=(0,j.useContext)(Ft),r=(0,kt.useAtomValue)(Mt),i=(0,j.useMemo)((()=>{var e;return null===(e=n[t])||void 0===e?void 0:e.filter((e=>!(!o&&e.fileStatus===Te.FINISHED)))}),[t,o,n]);return Zt(),i&&0!==i.length?(0,a.jsxs)("div",{className:"mb-5",children:[(0,a.jsx)("div",{className:"text-sm text-gray-7",children:e("当前上传")}),(0,a.jsx)("div",{className:"max-h-72 overflow-y-auto",children:i.map((e=>{if(e.fileName===r)return(0,a.jsx)(Qt,{},e.fileName);switch(e.fileStatus){case Te.FINISHED:return(0,a.jsx)(en,{file:e},e.fileName);case Te.FAILED:return(0,a.jsx)(tn,{file:e},e.fileName);case Te.PAUSED:return(0,a.jsx)(rn,{file:e},e.fileName);default:return(0,a.jsx)(Vt,{file:e},e.fileName)}}))})]}):(0,a.jsx)(a.Fragment,{})}const sn={icon:null,centered:!0,closable:!0,styles:{mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},body:{marginTop:"24px",textAlign:"center"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},footer:e=>(0,a.jsx)(i.Flex,{justify:"center",align:"center",children:e}),className:"zjlab-fe-data-hub-ui-modal"},ln={width:600,centered:!0,closable:!0,styles:{body:{display:"flow-root"},footer:{textAlign:"center"},header:{marginBlockEnd:"16px"},mask:{backgroundColor:"rgba(0, 0, 0, 0.6)"},content:{padding:"20px 20px 16px 20px",borderRadius:"10px"}},className:"zjlab-fe-data-hub-ui-file-uploader zjlab-fe-data-hub-ui-modal"};var dn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function cn(e,t,n){const o=new Set(t.map((e=>e.fileName)));return e.filter((e=>{const t=n?`${n}${e.name}`:e.name;return o.has(t)})).map((e=>e.name))}function pn(e,t){return e.filter((e=>{var n;const o=e.name.includes("/"),r=e.name.split("/")[0];return o===(null===(n=t.find((e=>e.fileName===r)))||void 0===n?void 0:n.isFolder)})).map((e=>e.name))}var un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};var hn=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function mn(e){const{message:t,modal:n}=i.App.useApp(),o=(0,j.useContext)(ut),r=on();return(0,j.useCallback)((()=>hn(this,void 0,void 0,(function*(){const a=yield function(e){return hn(this,void 0,void 0,(function*(){const t=yield(i=e,new Promise(((e,t)=>{function n(n){Ve.objectStoreNames.contains(n)?function(e){return new Promise((function(t,n){try{const n=Ve.transaction(e,"readonly").objectStore(e),o=[],r=n.openCursor();r.onsuccess=()=>{const e=r.result;e?(o.push(e.value),e.continue()):t(o)},r.onerror=()=>console.warn(`retrieveExistingData 中游标操作失败 - 错误代码: ${r.error}`)}catch(e){n(Error(`retrieveExistingData 中执行事务或打开游标时发生异常 - ${e.message}`))}}))}(n).then(e).catch(t):function(n){const o=Ve.version+1;Ve.close();const r=window.indexedDB.open(_e,o);r.onerror=()=>t(Error(`打开数据库失败: ${r.error}`)),r.onblocked=()=>t(Error(`数据库被阻塞: ${r.error}`)),r.onsuccess=()=>console.info("openRequest.onsuccess 在 triggerDatabaseUpgrade 中被触发"),r.onupgradeneeded=()=>{$e(r.result);try{r.result.createObjectStore(n,{}),r.result.onversionchange=e=>{null===e.newVersion&&r.result.close()},e([])}catch(e){t(Error(`升级数据库异常: ${e.message}`))}}}(n)}Ve?n(i):function(e){try{const o=window.indexedDB.open(_e);o.onsuccess=()=>{$e(o.result),n(e)},o.onerror=()=>t(Error(`打开数据库失败: ${o.error}`)),o.onblocked=()=>t(Error(`数据库被阻塞: ${o.error}`)),o.onupgradeneeded=()=>console.info("openRequest.onupgradeneeded(SHOULD NOT BE CALLED)")}catch(e){console.warn(`打开数据库时发生异常: ${e.message}`,e),t(e)}}(i)}))),n=JSON.parse(localStorage.getItem(e)||"[]"),o=JSON.parse(localStorage.getItem(e+"_uploading")||"[]"),r=function(){if(o.length){const e=n.findIndex((e=>e.fileName===o[0].fileName));-1!==e&&n.splice(e,1,o[0])}return n}(),a=t.map((e=>{const t=r.find((t=>t.fileName===e.name));return t?Object.assign(Object.assign({},t),{raw:e,fileStatus:Te.PAUSED}):null})).filter((e=>null!==e));var i;return localStorage.removeItem(e),localStorage.removeItem(e+"_uploading"),a}))}(e);o({type:"add_files",identifier:e,files:a}),a.length&&n.confirm(Object.assign(Object.assign({},sn),{title:"提示",content:"检测到未完成上传任务,是否继续上传?",onOk(){a.forEach((e=>r(e)))},onCancel(){t.info("点击上传按钮手动继续")}}))}))),[e,o,r,n,t])}var bn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function fn(e){var{extra:t,dragAreaConfig:n}=e,o=bn(e,["extra","dragAreaConfig"]);return(0,a.jsx)(Dt,Object.assign({},o,{children:(0,a.jsx)(wn,{extra:t,dragAreaConfig:n})}))}function wn({extra:e,dragAreaConfig:t}){const n=(0,j.useContext)(Pt),o=(0,j.useContext)(pt),r=(0,j.useContext)(ut),s=(0,j.useContext)(Tt);!function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=(0,j.useContext)(ut),o=(0,j.useRef)(""),r=mn(e);(0,j.useEffect)((()=>{o.current!==e&&(o.current=e,t[e]||n({type:"add",identifier:e}),r())}),[e,r,t,n])}();const{isFormatingFiles:l,formatFiles:d}=function(){const e=ft(),{message:t}=i.App.useApp(),n=(0,j.useContext)(Jt),o=(0,j.useContext)(Pt),r=(0,j.useContext)(it),a=(0,j.useContext)(ut),{getUploadUrls:s}=r[o],[l,d]=(0,j.useState)(!1),c=function(){const{modal:e}=i.App.useApp(),t=ft(),n=(0,j.useContext)(Jt),o=(0,j.useContext)(Pt),r=(0,j.useContext)(pt),a=(0,j.useContext)(Lt),s=(0,j.useContext)(Tt);return function(i){return dn(this,void 0,void 0,(function*(){const l=s?pn(i,null!=a?a:[]):[...cn(i,r[o],n),...pn(i,null!=a?a:[])];return l.length?[yield e.confirm(Object.assign(Object.assign({},sn),{okText:t("覆盖"),cancelText:t("取消"),title:t("发现同名文件,是否覆盖?")})),new Set(l)]:[!0,new Set]}))}}(),p=function(){const e=(0,j.useContext)(Pt),t=(0,j.useContext)(pt),n=qt();return function(o){const r=t[e];for(const e of o){const t=r.find((t=>t.fileName===e));t&&n(t)}}}();return{isFormatingFiles:l,formatFiles:function(r){return un(this,void 0,void 0,(function*(){d(!0);const i=yield function(e){return un(this,void 0,void 0,(function*(){const[t,n]=yield c(e);return t?(p(n),e):e.filter((e=>!n.has(e.name)))}))}(r),l=yield function(o){return un(this,void 0,void 0,(function*(){const r=o.map((e=>De(e,n,s))),a=(yield Promise.allSettled(r)).filter((e=>"fulfilled"===e.status)).map((e=>e.value));return(a.some((e=>e.fileStatus===Te.FAILED))||a.length<o.length)&&t.info(e("部分文件获取上传地址失败")),a}))}(i);a({type:"add_files",identifier:o,files:l}),function(e,t){try{const n=Ve.transaction(e,"readwrite").objectStore(e);t.forEach((e=>n.put(e,e.name)))}catch(e){console.warn(`在 addFilesToIndexdb 中, db.transaction/transaction.objectStore/objectStore.put 异常 - ${e.message}`)}}(o,l.map((e=>e.raw))),d(!1)}))}}}();return(0,j.useEffect)((()=>{var e;const t=null===(e=o[n])||void 0===e?void 0:e.find((e=>e.fileStatus===Te.FINISHED));s&&t&&r({type:"clear_finished",identifier:n})}),[s,n,r,o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Spin,{spinning:l,children:(0,a.jsx)(vt,Object.assign({},t,{onFileReceived:d}))}),e&&(0,a.jsx)("div",{className:"mb-4",children:e}),(0,a.jsx)(an,{})]})}var gn=n(915),yn={};yn.styleTagTransform=g(),yn.setAttributes=m(),yn.insert=u().bind(null,"head"),yn.domAPI=c(),yn.insertStyleElement=f(),l()(gn.A,yn),gn.A&&gn.A.locals&&gn.A.locals;var xn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function vn(e){var{config:{modal:t,dragArea:n,uploadRequest:o}}=e,r=xn(e,["config"]);const s=ft();return(0,j.useContext)(pt)===ct?(0,a.jsx)(i.Modal,Object.assign({},ln,{title:s("文件上传")},t,{children:(0,a.jsx)(i.Alert,{message:s("FileUploadModal 必须在 UploadStoreProvider 内使用"),type:"warning"})})):(0,a.jsx)(i.Modal,Object.assign({},ln,{forceRender:!0,title:s("文件上传"),footer:(0,a.jsx)(i.Button,{type:"primary",onClick:t.onCancel,children:s("确定")})},t,{children:(0,a.jsx)(fn,Object.assign({},r,{dragAreaConfig:n,uploadRequestConfig:o}))}))}const jn=function(e){const t=ft();return(0,j.useContext)(pt)===ct?(0,a.jsx)(i.Alert,{message:t("FileUploader 必须在 UploadStoreProvider 内使用"),type:"warning"}):(0,a.jsx)("div",{className:"zjlab-fe-data-hub-ui-file-uploader",children:(0,a.jsx)(fn,Object.assign({},e))})},kn=require("@zjlab-fe/util");function Nn(e){return new Promise((t=>{if(e&&e.length>0){const n=[...e];function o(){n.length>0?setTimeout(r):setTimeout((()=>{t(null)}))}function r(){const e=n.shift(),t=(0,kn.getFileExt)(e);if("js"===t||"mjs"===t){if(!document.querySelector(`script[src="${e}"]`)){const n=document.createElement("script");return n.src=e,"mjs"===t&&(n.type="module"),document.head.appendChild(n),n.onload=o,void(n.onerror=o)}}else if("css"===t&&!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,document.head.appendChild(t),t.onload=o,void(t.onerror=o)}o()}r()}else t(null)}))}var An=n(482),zn={};zn.styleTagTransform=g(),zn.setAttributes=m(),zn.insert=u().bind(null,"head"),zn.domAPI=c(),zn.insertStyleElement=f(),l()(An.A,zn),An.A&&An.A.locals&&An.A.locals;class En{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}}function Cn(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let o,r=0,a=1,i=1,s=1;for(;;){const e=r+i,t=a+s;if(t>8)break;n<=e/t?(i=e,s=t):(r=e,a=t)}return o=n-r/a<i/s-n?n===e?[r,a]:[a,r]:n===e?[i,s]:[s,i],o}function Sn(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)}function Mn(e){const{filePath:t}=e,n=(0,j.useRef)(null),o=(0,j.useRef)(0),r=(0,j.useRef)(null),i=(0,j.useRef)(0),s=(0,j.useRef)(0),l=(0,j.useRef)(0),d=(0,j.useRef)(!1),c=()=>{if(d.current)return Promise.resolve();d.current=!0;const e=l.current+3>i.current?i.current:l.current+3;return new Promise((t=>{if(r.current){const o=n.current;let a=e-l.current;for(let d=l.current+1;d<=e;d++)r.current.getPage(d).then((e=>{const t=e.getViewport({scale:window.devicePixelRatio||1}),n=document.createElement("canvas");n.setAttribute("id","the-canvas"+d);const r=n.getContext("2d"),a=new En,{width:i,height:l}=t;{const e=i*l,t=Math.sqrt(16777216/e);(a.sx>t||a.sy>t)&&(a.sx=t,a.sy=t)}const c=Cn(a.sx),p=Cn(a.sy);n.width=Sn(i*a.sx,c[0]),n.height=Sn(l*a.sy,p[0]);const{style:u}=n;u.width=Sn(i,c[1])+"px",u.height=Sn(l,p[1])+"px";const h={canvasContext:r,transform:a.scaled?[a.sx,0,0,a.sy,0,0]:null,viewport:t};return o.appendChild(n),e.render(h).promise.then((()=>new Promise((e=>{setTimeout((()=>{s.current=s.current+n.clientHeight,e(1)}))}))))})).catch((e=>{})).finally((()=>{a--,0===a&&(s.current<n.current.clientHeight&&e<i.current&&setTimeout(c),t(1))}))}else t(0)})).then((()=>{d.current=!1,l.current=e}))};return(0,j.useEffect)((()=>{Nn(["https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.min.mjs","https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/build/pdf.worker.min.mjs"]).then((()=>{window.pdfjsLib.getDocument({url:t,cMapUrl:"https://fastly.jsdelivr.net/npm/pdfjs-dist@4.7.76/cmaps/",cMapPacked:!0}).promise.then((t=>{var n;r.current=t,i.current=t.numPages,c(),null===(n=null==e?void 0:e.onSuccess)||void 0===n||n.call(e)})).catch((t=>{var n;null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))}),[t]),(0,a.jsx)("div",{ref:n,className:An.L,onScroll:e=>{const t=e.target.scrollTop;t>o.current&&l.current<i.current&&t>s.current-200-n.current.clientHeight&&c(),o.current=t}})}const Bn=require("i18next");var On=n.n(Bn),Wn=n(328),Zn={};function Kn(e){return e?e-55-64-16:550}function Jn(e,t=2){if(e){const n=Kn(e);return Math.floor(n/(10+22*t))}return 10}Zn.styleTagTransform=g(),Zn.setAttributes=m(),Zn.insert=u().bind(null,"head"),Zn.domAPI=c(),Zn.insertStyleElement=f(),l()(Wn.Ay,Zn),Wn.Ay&&Wn.Ay.locals&&Wn.Ay.locals;const Pn={fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:"14px",lineHeight:"22px",letterSpacing:0};function Fn(e){const{maxLines:t=2}=e,n=(0,j.useRef)([]),o=On().resolvedLanguage||localStorage.getItem("i18nextLng")||"zh";0===n.current.length&&e.head.forEach((e=>{n.current.push(function(e,t={}){const n=document.createElement("span");n.textContent=e,Object.assign(n.style,Object.assign({position:"absolute",visibility:"hidden",whiteSpace:"nowrap"},t)),document.body.appendChild(n);const o=n.offsetWidth;return document.body.removeChild(n),o}(e))}));const r=e.head.map(((e,o)=>({title:(0,a.jsx)("div",{title:e,style:Pn,children:e}),dataIndex:e,key:o,render:e=>{const r="object"==typeof e?JSON.stringify(e):e;return(0,a.jsx)("div",{className:Wn.Hn,style:{height:22*t,maxWidth:400,minWidth:n.current[o]},children:(0,a.jsx)("div",{className:Wn.P_,style:{WebkitLineClamp:t},onMouseLeave:e=>{e.currentTarget.scrollTop=0},children:r})})}}))),s={className:Wn.X$,pageSize:Jn(e.containerHeight,t),showSizeChanger:!1,onChange:e.onPageChange,showTotal:()=>e.total&&e.total>e.data.length?(0,a.jsxs)("div",{className:Wn.UA,children:[(0,a.jsx)(Q.InfoCircleOutlined,{})," ","zh"===o?"请下载查看完整内容":"Please download to view the full content"]}):null};return(0,a.jsx)(i.Table,{tableLayout:"auto",className:Wn.tp,columns:r,dataSource:e.data,scroll:{x:"max-content",y:Kn(e.containerHeight)},pagination:s})}const Ln=require("chardet");var Tn=n.n(Ln),In=n(685),Dn={};Dn.styleTagTransform=g(),Dn.setAttributes=m(),Dn.insert=u().bind(null,"head"),Dn.domAPI=c(),Dn.insertStyleElement=f(),l()(In.A,Dn),In.A&&In.A.locals&&In.A.locals;var Un=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function qn(e){var t;const n=(0,j.useRef)(null),o=(0,kn.getFileExt)(e.filePath),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{Nn(["https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.js","https://fastly.jsdelivr.net/npm/x-data-spreadsheet@1.1.9/dist/xspreadsheet.css","https://fastly.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js","https://fastly.jsdelivr.net/npm/papaparse@5.5.2/papaparse.min.js"]).then((()=>Un(this,void 0,void 0,(function*(){fetch(e.filePath).then((t=>Un(this,void 0,void 0,(function*(){if("csv"===o){const o=yield t.blob(),r=new File([o],"test.csv",{type:o.type});(function(e){return Un(this,void 0,void 0,(function*(){return new Promise((t=>{try{const n=new FileReader;n.onload=function(e){const n=e.target.result,o=Tn().detect(new Uint8Array(n.slice(0,1024)));console.log("+++ encoding",o),t(o)},n.readAsArrayBuffer(e)}catch(e){console.log("+++ getEncoding error",e),t("UTF-8")}}))}))})(o).then((t=>{window.Papa.parse(r,{encoding:t,complete:t=>{var o,r,a;const s=(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o[0])||[],d=[];null===(r=null==t?void 0:t.data)||void 0===r||r.forEach(((e,t)=>{if(0!==t){const n={key:t.toString()};s.forEach(((t,o)=>{n[t]=e[o]})),d.push(n)}})),i({head:s,data:d}),l(n.current.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e)},error:t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}})}))}else t.arrayBuffer().then((function(t){var o;const r=function(e){const t=[];return e.SheetNames.forEach((function(n){const o={name:n,rows:{}},r=e.Sheets[n];if(!r||!r["!ref"])return;const a=XLSX.utils.decode_range(r["!ref"]);a.s={r:0,c:0};const i=XLSX.utils.sheet_to_json(r,{raw:!1,header:1,range:a});i.forEach((function(e,t){const n={};e.forEach((function(e,o){n[o]={text:e||String(e)};const a=XLSX.utils.encode_cell({r:t,c:o});null!=r[a]&&null!=r[a].f&&(n[o].text="="+r[a].f)})),o.rows[t]={cells:n}})),o.rows.len=i.length,o.merges=[],(r["!merges"]||[]).forEach((function(e,t){null==o.rows[e.s.r]&&(o.rows[e.s.r]={cells:{}}),null==o.rows[e.s.r].cells[e.s.c]&&(o.rows[e.s.r].cells[e.s.c]={}),o.rows[e.s.r].cells[e.s.c].merge=[e.e.r-e.s.r,e.e.c-e.s.c],o.merges[t]=XLSX.utils.encode_range(e)})),t.push(o)})),t}(window.XLSX.read(t));window.x_spreadsheet(n.current,{mode:"read",showToolbar:!1,showContextmenu:!1,view:{height:()=>n.current.clientHeight,width:()=>n.current.clientWidth}}).loadData(r),null===(o=null==e?void 0:e.onSuccess)||void 0===o||o.call(e)})).catch((e=>{throw e}))})))).catch((t=>{var n;console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}))}))))}),[]),(0,a.jsx)("div",{ref:n,className:In.L,children:"csv"===o&&r?(0,a.jsx)(Fn,{head:r.head,data:r.data,containerHeight:s,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines}):null})}var Hn=n(913),Rn={};function _n(e){return(0,a.jsx)("div",{className:Hn.LV,children:(0,a.jsx)("img",{src:e.filePath,onError:t=>{var n;console.log("+++ img error"),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},onLoad:()=>{var t;null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)},className:Hn._8})})}Rn.styleTagTransform=g(),Rn.setAttributes=m(),Rn.insert=u().bind(null,"head"),Rn.domAPI=c(),Rn.insertStyleElement=f(),l()(Hn.Ay,Rn),Hn.Ay&&Hn.Ay.locals&&Hn.Ay.locals;const Vn=require("react-markdown");var $n=n.n(Vn);const Gn=require("rehype-raw");var Xn=n.n(Gn);const Yn=require("remark-gfm");var Qn=n.n(Yn);const eo=require("remark-math");var to=n.n(eo);const no=require("rehype-mathjax");var oo=n.n(no),ro=n(555),ao={};ao.styleTagTransform=g(),ao.setAttributes=m(),ao.insert=u().bind(null,"head"),ao.domAPI=c(),ao.insertStyleElement=f(),l()(ro.A,ao),ro.A&&ro.A.locals&&ro.A.locals;var io=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function so(e){const t=(0,j.useRef)(null),[n,o]=(0,j.useState)("");return(0,j.useEffect)((()=>{(()=>{io(this,void 0,void 0,(function*(){var t,n;try{let n=yield fetch(e.filePath).then((e=>e.text()));n=n.replace(/!\[(.*?)\]\((.*?)\)/g,((e,t,n)=>n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")?e:"")),o(n),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{ref:t,style:{height:"100%",overflow:"auto"},className:ro.L,children:n?(0,a.jsx)($n(),{className:"markdown-body",remarkPlugins:[to(),Qn()],rehypePlugins:[Xn(),oo()],children:n}):null})}var lo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function co(e){const[t,n]=(0,j.useState)("");return(0,j.useEffect)((()=>{(()=>{lo(this,void 0,void 0,(function*(){var t,o;try{const o=yield fetch(e.filePath).then((e=>e.text()));n(o),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}catch(t){null===(o=null==e?void 0:e.onError)||void 0===o||o.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})}const po=require("react-json-view");var uo=n.n(po);const ho=require("react-error-boundary");var mo=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};function bo(e){const t=(0,j.useRef)(null),[n,o]=(0,j.useState)(),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{(()=>{mo(this,void 0,void 0,(function*(){var n,r,a,s;try{let s;s=e.jsonConfig?e.jsonConfig.data:yield fetch(e.filePath).then((e=>e.text()));try{const e="string"==typeof s?JSON.parse(s):s;o(e)}catch(e){const o=function(e,t){const{trim:n=!0,skipEmpty:o=!0}={};if(!e)return[];const r=[];let a="",i=!1,s=!1;for(let t=0;t<e.length;t++){const l=e[t];if(s)a+=l,s=!1;else if("\\"!==l)if('"'!==l)if("\n"!==l&&"\r"!==l||i)a+=l;else{if("\r"===l&&t+1<e.length&&"\n"===e[t+1])continue;const i=n?a.trim():a;(!o||i.length>0)&&r.push(i),a=""}else i=!i,a+=l;else a+=l,s=!0}if(a){const e=n?a.trim():a;(!o||e.length>0)&&r.push(e)}return r}(s);if(o.length>0){const e=[];let a=0;if(o.forEach((t=>{try{const n=JSON.parse(t);"object"==typeof n?Array.isArray(n)?n.forEach((t=>{e.push(Object.assign(Object.assign({},t),{key:a.toString()})),a++})):(e.push(Object.assign(Object.assign({},n),{key:a.toString()})),a++):(e.push({content:t,key:a.toString()}),a++)}catch(e){console.log("+++ e",e)}})),e.length>0){const o=Object.keys(e[0]).filter((e=>"key"!==e));i({head:o,data:e}),l(null===(n=t.current)||void 0===n?void 0:n.clientHeight)}else{e.push({content:s,key:"0"});const n=Object.keys(e[0]).filter((e=>"key"!==e));i({head:n,data:e}),l(null===(r=t.current)||void 0===r?void 0:r.clientHeight)}}}null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e)}catch(t){null===(s=null==e?void 0:e.onError)||void 0===s||s.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:t,children:n?(0,a.jsx)(ho.ErrorBoundary,{fallback:JSON.stringify(n),children:(0,a.jsx)(uo(),{name:!1,src:n,iconStyle:"triangle",collapsed:2,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,collapseStringsAfterLength:140,style:{fontFamily:"Monaco, Menlo, Consolas, monospace",backgroundColor:"rgba(0, 0, 0, 0)",color:"rgb(155, 12, 121)"}})}):r?(0,a.jsx)(Fn,{head:r.head,data:r.data,containerHeight:s,maxLines:null===(d=e.tableConfig)||void 0===d?void 0:d.maxLines}):null});var d}const fo=require("arrow-js-ffi"),wo=require("parquet-wasm");var go=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))};let yo;function xo(e){var t;const n=(0,j.useRef)(null),[o,r]=(0,j.useState)(),[i,s]=(0,j.useState)();return(0,j.useEffect)((()=>{let t;yo||(yo=(0,wo.wasmMemory)()),(()=>{go(this,void 0,void 0,(function*(){var o,a,i;try{const i=yield fetch(e.filePath),l=new Uint8Array(yield i.arrayBuffer());t=(0,wo.readParquet)(l).intoFFI();const d=(0,fo.parseTable)(yo.buffer,t.arrayAddrs(),t.schemaAddr()),c=d.schema.fields.map((e=>e.name)),p=[];console.log("+++ arrowTable.numRows",d.numRows);for(let e=0;e<d.numRows;e++)p.push(Object.assign(Object.assign({},d.get(e).toJSON()),{key:e.toString()}));r({head:c,data:p}),s(null===(o=n.current)||void 0===o?void 0:o.clientHeight),null===(a=null==e?void 0:e.onSuccess)||void 0===a||a.call(e),t.drop()}catch(t){null===(i=null==e?void 0:e.onError)||void 0===i||i.call(e,t)}}))})()}),[]),(0,a.jsx)("div",{style:{height:"100%",overflow:"auto",wordBreak:"break-all"},ref:n,children:o&&(0,a.jsx)(Fn,{head:o.head,data:o.data,containerHeight:i,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines})})}n.n(wo)()();var vo=n(708),jo={};function ko(e){var t,n;const o=(0,j.useRef)(null),[r,i]=(0,j.useState)(),[s,l]=(0,j.useState)();return(0,j.useEffect)((()=>{var t,n;const{tableConfig:r}=e,{header:a,rows:s=[]}=r||{};if(a){const n=a,r=[];s.forEach(((e,t)=>{const o={key:t.toString()};n.forEach(((t,n)=>{o[t]=e[n]})),r.push(o)})),i({head:n,data:r}),l(o.current.clientHeight),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)}else null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,new Error("tableConfig.header is required"))}),[]),(0,a.jsx)("div",{ref:o,className:vo.L,children:r?(0,a.jsx)(Fn,{head:r.head,data:r.data,maxLines:null===(t=e.tableConfig)||void 0===t?void 0:t.maxLines,total:null===(n=e.tableConfig)||void 0===n?void 0:n.rowCount,containerHeight:s}):null})}jo.styleTagTransform=g(),jo.setAttributes=m(),jo.insert=u().bind(null,"head"),jo.domAPI=c(),jo.insertStyleElement=f(),l()(vo.A,jo),vo.A&&vo.A.locals&&vo.A.locals;var No=n(690),Ao={};function zo(e){var t,n,o;const r=On().resolvedLanguage||localStorage.getItem("i18nextLng")||"zh",{filePath:s,tableConfig:l,jsonConfig:d}=e,[c,p]=(0,j.useState)(!1),[u,h]=(0,j.useState)(!0),m=t=>{var n;h(!1),p(!0),console.log(t),null===(n=null==e?void 0:e.onError)||void 0===n||n.call(e,t)},b=()=>{var t;h(!1),null===(t=null==e?void 0:e.onSuccess)||void 0===t||t.call(e)};let f=null;if(c)f=(0,a.jsx)("div",{className:No.LV,children:"zh"===r?"获取文件失败":"Failed to get file"});else if(l)f=(0,a.jsx)(ko,Object.assign({},e,{onSuccess:b}));else if(d)f=(0,a.jsx)(bo,Object.assign({},e,{onError:m,onSuccess:b}));else if(s){const t=(0,kn.getFileExt)(s),n=(0,a.jsx)("div",{className:No.D5,children:(0,a.jsx)(i.Spin,{})});let o=null,l=!0;switch(t){case"pdf":o=(0,a.jsx)(Mn,Object.assign({},e,{onError:m,onSuccess:b}));break;case"xlsx":case"csv":o=(0,a.jsx)(qn,Object.assign({},e,{onError:m,onSuccess:b}));break;case"png":case"jpg":case"jpeg":o=(0,a.jsx)(_n,Object.assign({},e,{onError:m,onSuccess:b}));break;case"mmd":case"md":o=(0,a.jsx)(so,Object.assign({},e,{onError:m,onSuccess:b}));break;case"txt":o=(0,a.jsx)(co,Object.assign({},e,{onError:m,onSuccess:b}));break;case"parquet":o=(0,a.jsx)(xo,Object.assign({},e,{onError:m,onSuccess:b}));break;case"jsonl":case"json":o=(0,a.jsx)(bo,Object.assign({},e,{onError:m,onSuccess:b}));break;default:l=!1}f=l?(0,a.jsxs)(a.Fragment,{children:[u&&n,o]}):(0,a.jsxs)("div",{className:No.LV,children:["zh"===r?"暂不支持":"Not supported"," ",t," ","zh"===r?"文件预览":"file preview"]})}return e.openInModal?(null===(t=null==e?void 0:e.modalProps)||void 0===t?void 0:t.show)?(0,a.jsx)(i.Modal,{open:!0,title:null===(n=null==e?void 0:e.modalProps)||void 0===n?void 0:n.title,className:No.qf,centered:!0,width:"100%",onCancel:null===(o=null==e?void 0:e.modalProps)||void 0===o?void 0:o.onCancel,footer:null,children:f}):null:f}function Eo(e){const[t,n]=(0,j.useState)(0),[o,r]=(0,j.useState)(e.filePath),[i,s]=(0,j.useState)(e.tableConfig);return(0,j.useEffect)((()=>{o===e.filePath&&i===e.tableConfig||(r(e.filePath),s(e.tableConfig),n(t+1))}),[e.filePath,e.tableConfig]),o!==e.filePath||i!==e.tableConfig?null:(0,a.jsx)(zo,Object.assign({},e),t)}Ao.styleTagTransform=g(),Ao.setAttributes=m(),Ao.insert=u().bind(null,"head"),Ao.domAPI=c(),Ao.insertStyleElement=f(),l()(No.Ay,Ao),No.Ay&&No.Ay.locals&&No.Ay.locals;const Co=require("copy-to-clipboard");var So=n.n(Co),Mo=n(860),Bo={};Bo.styleTagTransform=g(),Bo.setAttributes=m(),Bo.insert=u().bind(null,"head"),Bo.domAPI=c(),Bo.insertStyleElement=f(),l()(Mo.A,Bo),Mo.A&&Mo.A.locals&&Mo.A.locals;const Oo=require("classnames");var Wo=n.n(Oo);const Zo={zh:"已复制",en:"Copied"};function Ko(e){const{showFeedback:t=!0,text:n,locale:o="zh"}=e;return(0,a.jsx)("span",{className:Wo()(Mo.K,"data-hub-ui-copy-icon"),onClick:()=>{n&&(So()(n),t&&i.message.success(Zo[o])),(null==e?void 0:e.onClick)&&e.onClick()},children:""})}function Jo(e,t={showFeedback:!0,locale:"zh"}){const{showFeedback:n="true",locale:o="zh"}=t;e&&(So()(e),n&&i.message.success(Zo[o]))}var Po=n(100),Fo={};function Lo(e){return(0,a.jsx)(i.Modal,Object.assign({},e,{wrapClassName:Po.wm,width:400}))}Fo.styleTagTransform=g(),Fo.setAttributes=m(),Fo.insert=u().bind(null,"head"),Fo.domAPI=c(),Fo.insertStyleElement=f(),l()(Po.Ay,Fo),Po.Ay&&Po.Ay.locals&&Po.Ay.locals,Lo.confirm=e=>{i.Modal.confirm(Object.assign({},e)).update({icon:null,closable:!0,width:400,wrapClassName:`${Po.DE}`})};var To=n(989),Io={};Io.styleTagTransform=g(),Io.setAttributes=m(),Io.insert=u().bind(null,"head"),Io.domAPI=c(),Io.insertStyleElement=f(),l()(To.Ay,Io),To.Ay&&To.Ay.locals&&To.Ay.locals;const Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAAAXNSR0IArs4c6QAAAf1JREFUOE+lkz9oE3EUx7/vd0nbOPing5RSKJ0q+GdVUCkOLh2qQ4lLtfVsESlpTEsql2bIUNI2htSLONleKjqUc1BxE3QQCuJSKAg6aKfqIqiQao7mfq/cNXckscGAv+l+777v897v/b4/wn8uapQfyedbj1Kos2xL+3jnka1wOGzvp/0LMJtd6hYBoRFwFcCBStJvBh4TI6PF1C/VoBpAWi/0E/MzAC0NOttmlkOJ2Ohz778PSOceniehvG1mJEIop+9MDL93tC7ANE3l89fiBwC9zQBA+Gj96DmZSl0ou4D0ojFIhKd+MvMaE70mIFmJ3QVwFsA5T2NLOZCcHH3pAuYXjQUmTFdV/yVh9wpWVEBCEhsCyicAh3wNQdei6m0XMHfPWAVwpW66P1uZepyYRbzJwOGa4zFeaDH18h5AN1bAGK4REObaJGWcWEnwNBhaHeCRFlNHKh0sTwGU9QTMMEOgmyXiDSfWxnSqBF4B4ZKvIZpKRK/nXEDmQaHD3uFvVRUc45QIaK9c1XfeM5VnLNjS6kpO3tryfTCvF/LMHGnmGpn4fiJ6Y8L3gfORy5khSxTfADjzD8g7K/jnYmp8vFgDcDap/JODLbwzS406YeiBcmAmHr+27RXZ9zWms4VjCHAfQZwgyKAE1oOK/SoeGdus767hc25mFo5mF83NrRLVZKusAAAAAElFTkSuQmCC";function Uo({visiable:e,children:t,onClose:n}){const[o,r]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{r(e)}),[e]),o?(0,a.jsxs)("div",{className:To.LV,children:[(0,a.jsx)("div",{style:{backgroundImage:"url("+Do+")"},className:To.Kk,onClick:()=>n()}),(0,a.jsx)("div",{className:To.NI,children:t})]}):null}var qo=n(150),Ho={};function Ro(e){return(0,a.jsx)("div",{className:`${qo.cQ} ${"workflow"===e.type?qo._b:qo.Og}`,children:e.children})}function _o(e){return(0,a.jsx)("div",{className:`${qo.Rp} ${"workflow"===e.type?qo._b:qo.Og}`,children:e.children})}function Vo(e){return(0,a.jsxs)("div",{children:["small"===(null==e?void 0:e.size)&&(0,a.jsx)(_o,Object.assign({},e)),(!(null==e?void 0:e.size)||"middle"===(null==e?void 0:e.size))&&(0,a.jsx)(Ro,Object.assign({},e))]})}Ho.styleTagTransform=g(),Ho.setAttributes=m(),Ho.insert=u().bind(null,"head"),Ho.domAPI=c(),Ho.insertStyleElement=f(),l()(qo.Ay,Ho),qo.Ay&&qo.Ay.locals&&qo.Ay.locals;const $o={confidential:"#FAAD14",public:"#53C31B",private:"#FE4D4F"};function Go(e){const{type:t="public",children:n}=e,o=$o[t];return(0,a.jsx)(i.Tag,{style:{backgroundColor:"#fff",border:`1px solid ${o}`,borderRadius:"4px",fontSize:"12px",color:`${o}`,padding:"0 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}const Xo={running:"#0061FF",failed:"#FE4D4F",success:"#53C31B",stopped:"#545B64",pending:"#FAAD14"};function Yo(e){const{type:t="running",children:n}=e,o=Xo[t];return(0,a.jsx)(i.Tag,{bordered:!1,style:{backgroundColor:`rgba(${(e=>{const t=parseInt(e.replace("#",""),16);return`${t>>16&255},${t>>8&255},${255&t}`})(o)},0.1)`,borderRadius:"4px",fontSize:"14px",color:`${o}`,padding:"3px 8px",fontFamily:"AlibabaPuHuiTi-3-55-RegularL3"},children:n})}var Qo=n(519),er={};er.styleTagTransform=g(),er.setAttributes=m(),er.insert=u().bind(null,"head"),er.domAPI=c(),er.insertStyleElement=f(),l()(Qo.Ay,er);const tr=Qo.Ay&&Qo.Ay.locals?Qo.Ay.locals:void 0;var nr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function or(e){var{id:t,placeholder:n,onFocus:o,onBlur:s,inline:l=!1,wrapperStyle:d={},wrapperClassName:c=""}=e,p=nr(e,["id","placeholder","onFocus","onBlur","inline","wrapperStyle","wrapperClassName"]);const{status:u}=i.Form.Item.useStatus(),[h,m]=(0,j.useState)(!1),[b,f]=(0,j.useState)(!1),[w,g]=(0,j.useState)(""),y=n;(0,j.useEffect)((()=>{g("error"===u?"#ff4d4f":b?"#1890ff":"#545b64")}),[u,b]);const x=(0,j.useCallback)((e=>{m(!0),f(!0),null==o||o(e)}),[o]),v=(0,j.useCallback)((e=>{0===String(e.target.value).length&&m(!1),f(!1),null==s||s(e)}),[s]);return(0,a.jsxs)("div",{id:t,className:`${Qo.hF} ${c}`,style:Object.assign({display:l?"inline-block":"block"},d),children:[(0,a.jsx)(i.Input,Object.assign({},p,{placeholder:h?"":y,onFocus:x,onBlur:v})),(0,a.jsx)("div",{style:{color:`${w}`},className:h?r["input-label"]:r["input-label-hinden"],children:y})]})}var rr=n(255),ar={};ar.styleTagTransform=g(),ar.setAttributes=m(),ar.insert=u().bind(null,"head"),ar.domAPI=c(),ar.insertStyleElement=f(),l()(rr.Ay,ar),rr.Ay&&rr.Ay.locals&&rr.Ay.locals;var ir=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sr=e=>{if(!e||0===e.length)return"";for(const t of e)if(t.options&&t.options.length>0){const e=sr(t.options);if(e)return e}else if(t.desc)return t.desc;return""};function lr(e){var{id:t,options:n,style:o,onDropdownVisibleChange:r,inline:s=!1,wrapperStyle:l={},wrapperClassName:d="",popupClassName:c=""}=e,p=ir(e,["id","options","style","onDropdownVisibleChange","inline","wrapperStyle","wrapperClassName","popupClassName"]);const[u,h]=(0,j.useState)(""),[m,b]=(0,j.useState)(!1),[f,w]=(0,j.useState)(!1);return(0,j.useEffect)((()=>{const e=sr(n);h(e)}),[n]),(0,a.jsxs)("div",{id:t,className:`${rr.Lt} ${d}`,style:Object.assign({display:s?"inline-block":"block"},l),children:[(0,a.jsx)(i.Select,Object.assign({style:Object.assign({width:200},o),options:n,popupClassName:`${rr.lY} ${c}`,onDropdownVisibleChange:e=>{e?b(!0):(w(!0),setTimeout((()=>{b(!1),w(!1)}),200),null==r||r(e))},optionRender:e=>{const{label:t,desc:n}=e.data;return(0,a.jsx)("div",{style:{cursor:"pointer",width:"100%"},onMouseEnter:()=>{h(n)},children:t})}},p)),m&&(0,a.jsx)("div",{style:{left:(null==o?void 0:o.width)?o.width:200},className:`${rr.Bu} ${f?rr.eb:""}`,children:u})]})}const dr=require("@tiptap/react"),cr=require("@tiptap/extension-color");var pr=n.n(cr);const ur=require("@tiptap/extension-table-cell");var hr=n.n(ur);const mr=require("@tiptap/extension-table-header");var br=n.n(mr);const fr=require("@tiptap/extension-table-row");var wr=n.n(fr);const gr=require("@tiptap/extension-text-align");var yr=n.n(gr);const xr=require("@tiptap/starter-kit");var vr=n.n(xr);const jr=require("@tiptap/extension-table"),kr=require("@tiptap/extension-highlight");var Nr=n.n(kr);const Ar=require("@tiptap/extension-image");var zr=n.n(Ar);const Er=require("@tiptap/extension-text-style"),Cr=require("@tiptap/extension-list-item");var Sr=n.n(Cr);const Mr=dr.Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"],defaultFontSize:"14px"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:this.options.defaultFontSize,parseHTML:e=>e.style.fontSize||this.options.defaultFontSize,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),Br=require("@tiptap/pm/state"),Or=require("@tiptap/extension-link");function Wr(e,t,n){if(!t.type.startsWith("image/"))return!1;const o=new FileReader;return o.onload=o=>{var r;const a=null===(r=o.target)||void 0===r?void 0:r.result;e.commands.insertContent(`<p><img class="inline" src="${a}" alt="${t.name}" title="${t.name}"/></p>`),null==n||n()},o.readAsDataURL(t),!1}const Zr=require("marked"),Kr="\x3c!--- this is file is already parsed --\x3e",Jr=new class{constructor(){this.patterns={headers:/^#{1,6}\s+.+$/gm,emphasis:/(\*{1,2}|_{1,2}).+?\1/g,code:/(```[\s\S]*?```|`[^`]+`)/g,links:/\[([^\]]+)\]\(([^)]+)\)/g,blockquotes:/^>\s+.+$/gm,lists:/^(\s*[-*+]\s+|\s*\d+\.\s+).+$/gm,tables:/^\|.+\|$/gm,horizontalRules:/^(-{3,}|\*{3,}|_{3,})$/gm,images:/!\[([^\]]*)\]\(([^)]+)\)/g}}isNotMarkdown(e,t=10){return!e||0===e.trim().length||this.calculateMarkdownScore(e)<t}calculateMarkdownScore(e){const t=e.split("\n").filter((e=>e.trim().length>0));let n=0,o=0;Object.entries(this.patterns).forEach((([t,o])=>{const r=e.match(o)||[];n+=r.length})),o=t.length;const r=/```[\s\S]*?```/g.test(e),a=/`[^`]+`/g.test(e),i=/\[([^\]]+)\]\(([^)]+)\)/g.test(e),s=/^#{1,6}\s+/gm.test(e);r&&(n+=2),a&&(n+=1),i&&(n+=2),s&&(n+=2);const l=o>0?Math.min(100,n/o*100):0;return Math.round(l)}analyzeMarkdownPatterns(e){const t={};return Object.entries(this.patterns).forEach((([n,o])=>{const r=e.match(o)||[];t[n]=r.length})),t}isPlainText(e){return!/[#*_`>[\](){}|~-]/.test(e)||![/^#{1,6}\s/gm,/\*\*.*\*\*/g,/\*[^*]+\*/g,/_[^_]+_/g,/`[^`]+`/g,/```[\s\S]*?```/g,/\[.*\]\(.*\)/g,/^>\s/gm,/^[-*+]\s/gm,/^\d+\.\s/gm].some((t=>t.test(e)))}},Pr=dr.Extension.create({name:"pasteHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Br.Plugin({key:new Br.PluginKey("pasteHandler"),props:{handlePaste(t,n){var o,r;const a=null===(o=n.clipboardData)||void 0===o?void 0:o.files;return a&&a.length>0?Fr(e,a):function(e,t){if(function(e,t=10){return Jr.isNotMarkdown(e,t)}(t))return void e.commands.insertContent(t);const n=function(e){if(e.startsWith(Kr))return e.slice(40);const t=function(e){return e.replace(/\n<\/code><\/pre>/g,"</code></pre>")}(function(e){return e.replace(/align="center"/g,'style="text-align: center;"')}(Zr.marked.parse(e,{async:!1})));return Kr+function(e){return e.replace(/<div style="([^"]+)">(.*?)<\/div>/g,((e,t,n)=>n.replace(/(<[^>]+>)/g,(e=>e.includes('style="')?e.replace('style="',`style="${t}; `):e.replace(">",` style="${t}">`)))))}(t)}(t),o=(0,dr.generateJSON)(n,[Pr,vr(),Or.Link.configure({openOnClick:!1})]);e.commands.insertContent(o,{parseOptions:{preserveWhitespace:!1}})}(e,(null===(r=n.clipboardData)||void 0===r?void 0:r.getData("text"))||""),!0}}})]}});function Fr(e,t){for(let n=0;n<t.length;n++)Wr(e,t[n])}const Lr=require("prosemirror-state"),Tr=dr.Extension.create({name:"dropHandler",addProseMirrorPlugins(){const{editor:e}=this;return[new Lr.Plugin({key:new Lr.PluginKey("dropHandler"),props:{handleDrop(t,n){var o;const r=null===(o=n.dataTransfer)||void 0===o?void 0:o.files;return r&&r.length>0&&Fr(e,r),!0}}})]}}),Ir=require("lowlight"),Dr=require("@tiptap/extension-code-block-lowlight");var Ur=n.n(Dr);const qr=require("@tiptap/extension-underline");var Hr=n.n(qr);const Rr=(0,Ir.createLowlight)(Ir.all),_r=[Tr,Pr,Mr,wr(),Er.TextStyle,hr(),Hr(),br(),jr.Table.configure({resizable:!0}),vr().configure({codeBlock:!1}),Ur().configure({lowlight:Rr}),Nr().configure({multicolor:!0}),zr().configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"max-w-96 h-auto inline mb-0"}}),pr().configure({types:[Er.TextStyle.name,Sr().name]}),yr().configure({types:["heading","paragraph",br().name,hr().name]})],Vr=[..._r,Or.Link.configure({openOnClick:!1}).extend({inclusive:!1})],$r=[..._r,Or.Link.configure({openOnClick:!0})];var Gr=n(444),Xr={};Xr.styleTagTransform=g(),Xr.setAttributes=m(),Xr.insert=u().bind(null,"head"),Xr.domAPI=c(),Xr.insertStyleElement=f(),l()(Gr.A,Xr),Gr.A&&Gr.A.locals&&Gr.A.locals;const Yr={bold:{command:"toggleBold",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42"})}))}),{className:"text-xl"})},italic:{command:"toggleItalic",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})}))}),{className:"text-xl"})},strike:{command:"toggleStrike",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M7.2 9.8c-1.2-2.3.5-5 2.9-5.5c3.1-1 7.6.4 7.5 4.2h-3c0-.3-.1-.6-.1-.8c-.2-.6-.6-.9-1.2-1.1c-.8-.3-2.1-.2-2.8.3C9 8.2 10.4 9.5 12 10H7.4c-.1-.1-.1-.2-.2-.2M21 13v-2H3v2h9.6c.2.1.4.1.6.2c.6.3 1.1.5 1.3 1.1c.1.4.2.9 0 1.3c-.2.5-.6.7-1.1.9c-1.8.5-4-.2-3.9-2.4h-3c-.1 2.6 2.1 4.4 4.5 4.7c3.8.8 8.3-1.6 6.3-5.9z"})}))}),{className:"text-xl"})},underline:{command:"toggleUnderline",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 21h14v-2H5zm7-4a6 6 0 0 0 6-6V3h-2.5v8a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 11V3H6v8a6 6 0 0 0 6 6"})}))}),{className:"text-xl"})}};function Qr({editor:e}){return(0,a.jsx)(a.Fragment,{children:Object.keys(Yr).map((n=>function(n){return(0,a.jsx)(i.Button,{size:"small",type:"text",icon:Yr[n].icon,onClick:(o=Yr[n].command,()=>e.chain().focus()[o]().run()),disabled:t(Yr[n].command),className:e.isActive(n)?"bg-blue-5 text-white":""},n);var o}(n)))});function t(t){return!e.can().chain().focus()[t]().run()}}const ea=function(e){return(0,a.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,a.jsx)("path",{d:"M96 768h832v160H96z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M443.862627 224.692457m45.254834 45.254834l135.764502 135.764502q45.254834 45.254834 0 90.509668l-135.764502 135.764502q-45.254834 45.254834-90.509668 0l-135.764502-135.764502q-45.254834-45.254834 0-90.509668l135.764502-135.764502q45.254834-45.254834 90.509668 0Z",fill:"#FFFFFF"}),(0,a.jsx)("path",{d:"M398.176 225.088L318.976 145.92 364.224 100.64l118.304 118.272c2.272 1.76 4.48 3.68 6.592 5.76l181.024 181.024a64 64 0 0 1 0 90.496l-181.024 181.024a64 64 0 0 1-90.528 0L217.6 496.192a64 64 0 0 1 0-90.496l180.576-180.608z m170.144 169.28l-0.448 0.416-124.416-124.416-175.136 175.104h351.104L568.32 394.368zM752 704a80 80 0 0 1-80-80c0-44.16 67.68-124.672 80-124.672 12.32 0 80 80.48 80 124.672a80 80 0 0 1-80 80z",fill:"#2c2c2c"})]}))},ta=function(e){return(0,a.jsxs)("svg",Object.assign({viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},e,{children:[(0,a.jsx)("path",{d:"M128 768h768v128H128z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M513.728 64.256l1.28 0.128h1.152l1.28 0.192a43.584 43.584 0 0 1 32.32 20.096l3.2 6.08 235.712 550.656a44.8 44.8 0 0 1-16.768 55.232l-7.616 3.968a43.52 43.52 0 0 1-54.208-17.152l-2.944-5.76-63.104-147.328H380.224l-62.976 147.2a43.52 43.52 0 0 1-51.072 24.96l-6.592-2.304-1.28-0.64a44.8 44.8 0 0 1-22.592-58.304l235.712-550.656a43.584 43.584 0 0 1 42.304-26.368z m91.904 376.512l-93.44-218.496L418.56 440.768h187.008z",fill:"#2c2c2c"})]}))},na=["#24A36F","#1677FF","#722ED1","#F5222D","#FA8C16","#FADB14","#A0D911"],oa=[{label:"预设颜色",defaultOpen:!0,colors:["#00000000",...na]}],ra=[{label:"预设颜色",defaultOpen:!0,colors:["#000000","#FFFFFF",...na]}],aa=[{label:"12px",value:"12px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"}];function ia({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.ColorPicker,{size:"small",className:"flex-shrink-0",presets:oa,value:e.getAttributes("highlight").color||"#00000000",onChange:function(t){const n=t.toHexString();"#00000000"===n?e.chain().focus().toggleHighlight().run():e.chain().focus().toggleHighlight({color:n}).run()},showText:()=>(0,a.jsx)(ea,{color:e.getAttributes("highlight").color,className:"text-base w-4 h-4"})}),(0,a.jsx)(i.ColorPicker,{size:"small",disabledAlpha:!0,className:"flex-shrink-0",presets:ra,value:e.getAttributes("textStyle").color||"#000000",onChange:function(t){const n=t.toHexString();e.chain().focus().setColor(n).run()},showText:()=>(0,a.jsx)(ta,{color:e.getAttributes("textStyle").color,className:"text-base w-4 h-4"})}),(0,a.jsx)(i.Select,{size:"small",options:aa,value:e.getAttributes("textStyle").fontSize||"14px",popupMatchSelectWidth:!1,onChange:function(t){var n;null===(n=e.chain().focus().setFontSize(t))||void 0===n||n.run()}})]})}const sa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M17 20v-3h-3v-2h3v-3h2v3h3v2h-3v3zm-6-3H7q-2.075 0-3.537-1.463T2 12t1.463-3.537T7 7h4v2H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h8v2zm14-1h-2q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12"})}))},la=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"m19.25 16.45l-1.5-1.55q1-.275 1.625-1.063T20 12q0-1.25-.875-2.125T17 9h-4V7h4q2.075 0 3.538 1.463T22 12q0 1.425-.737 2.625T19.25 16.45M15.85 13l-2-2H16v2zm3.95 9.6L1.4 4.2l1.4-1.4l18.4 18.4zM11 17H7q-2.075 0-3.537-1.463T2 12q0-1.725 1.05-3.075t2.7-1.775L7.6 9H7q-1.25 0-2.125.875T4 12t.875 2.125T7 15h4zm-3-4v-2h1.625l1.975 2z"})}))};function da({editor:e,inline:t=!1}){const[n,o]=(0,j.useState)(""),[r,s]=(0,j.useState)(""),[l,d]=(0,j.useState)(!1);return(0,a.jsx)(a.Fragment,{children:e.isActive("link")?(0,a.jsx)(i.Button,{size:"small",type:"text",title:"取消链接",className:"bg-blue-5 text-white",icon:(0,a.jsx)(la,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()}):(0,a.jsx)(i.Popover,{open:l,trigger:"click",placement:"bottom",content:(0,a.jsxs)(i.Space,{children:[t?null:(0,a.jsxs)(a.Fragment,{children:["描述: ",(0,a.jsx)(i.Input,{value:n,onChange:e=>o(e.target.value)})]}),"链接: ",(0,a.jsx)(i.Input,{value:r,onChange:e=>s(e.target.value)}),(0,a.jsx)(i.Button,{type:"primary",onClick:function(){const o=e.chain().focus().setLink({href:"https://"+r});t?o.run():o.command((({tr:e})=>(e.insertText(n||r),!0))).run(),d(!1)},disabled:!r,children:"确认"})]}),onOpenChange:function(e){d(e),e||s("")},children:(0,a.jsx)(i.Button,{size:"small",type:"text",title:"添加链接",icon:(0,a.jsx)(sa,{className:"text-xl"})})})})}const ca={left:{type:"left",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h13M4 14h16M4 18h5.5"})}))}),{className:"text-xl"})},center:{type:"center",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h10M4 14h16M9 18h6"})}))}),{className:"text-xl"})},right:{type:"right",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M7 10h13M4 14h16m-6 4h6"})}))}),{className:"text-xl"})},justify:{type:"justify",icon:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"})}))}),{className:"text-xl"})}};function pa({editor:e}){return(0,a.jsx)(a.Fragment,{children:Object.values(ca).map((({type:t,icon:n})=>(0,a.jsx)(i.Button,{size:"small",type:"text",icon:n,onClick:()=>e.chain().focus().setTextAlign(t).run(),className:e.isActive({textAlign:t})?"bg-blue-5 text-white":""},t)))})}const ua=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z"})}))};function ha({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[e.isActive("link")&&(0,a.jsx)(ma,{editor:e}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(i.Button,{size:"small",type:"text",title:"取消链接",icon:(0,a.jsx)(la,{className:"text-xl"}),onClick:()=>e.chain().focus().unsetLink().run()})]})}function ma({editor:e}){const[t,n]=(0,j.useState)(e.getAttributes("link").href);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Input,{value:t,size:"small",onChange:e=>n(e.target.value)}),(0,a.jsx)(i.Button,{size:"small",type:"text",title:"修改链接",icon:(0,a.jsx)(ua,{className:"text-xl"}),onClick:function(){e.chain().extendMarkRange("link").setLink({href:"https://"+t}).run()}})]})}function ba({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.BubbleMenu,{editor:t,tippyOptions:{placement:"bottom-start"},children:(0,a.jsxs)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[(0,a.jsx)(Qr,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(ia,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),(0,a.jsx)(pa,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300 m-1"}),t.isActive("link")?(0,a.jsx)(ha,{editor:t}):(0,a.jsx)(da,{editor:t,inline:!0})]})}):null}function fa({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.FloatingMenu,{editor:t,tippyOptions:{placement:"bottom-start"},shouldShow:()=>t.isActive("link"),children:(0,a.jsx)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:(0,a.jsx)(ha,{editor:t})})}):null}function wa(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2zM5 20q-.825 0-1.412-.587T3 18t.588-1.412T5 16t1.413.588T7 18t-.587 1.413T5 20m0-6q-.825 0-1.412-.587T3 12t.588-1.412T5 10t1.413.588T7 12t-.587 1.413T5 14m0-6q-.825 0-1.412-.587T3 6t.588-1.412T5 4t1.413.588T7 6t-.587 1.413T5 8"})}))}const ga=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 22v-1.5h2.5v-.75H4v-1.5h1.5v-.75H3V16h3q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7v-2.75q0-.425.288-.712T4 11.25h1.5v-.75H3V9h3q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75H7V15zm1.5-7V3.5H3V2h3v6zM9 19v-2h12v2zm0-6v-2h12v2zm0-6V5h12v2z"})}))};function ya({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(wa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(ga,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedList")?"bg-blue-5 text-white":""})]})}const xa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5q-.825 0-1.412-.587T3 19M5 9h14V5H5zm5.325 5h3.35v-3h-3.35zm0 5h3.35v-3h-3.35zM5 14h3.325v-3H5zm10.675 0H19v-3h-3.325zM5 19h3.325v-3H5zm10.675 0H19v-3h-3.325z"})}))};function va({editor:e}){const[t,n]=(0,j.useState)(3),[o,r]=(0,j.useState)(3);return(0,a.jsx)(i.Popover,{trigger:"click",title:"插入表格",content:(0,a.jsxs)(i.Flex,{gap:8,align:"center",children:[(0,a.jsxs)("div",{children:["行数: ",(0,a.jsx)(i.InputNumber,{min:1,value:t,onChange:e=>n(e||1)})]}),(0,a.jsxs)("div",{children:["列数: ",(0,a.jsx)(i.InputNumber,{min:1,value:o,onChange:e=>r(e||1)})]}),(0,a.jsx)(i.Button,{type:"primary",onClick:()=>e.chain().focus().insertTable({rows:t,cols:o,withHeaderRow:!0}).run(),children:"确认"})]}),children:(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(xa,{className:"text-xl "})})})}function ja(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h9v2H5v14h14v-9h2v9q0 .825-.587 1.413T19 21zM17 9V7h-2V5h2V3h2v2h2v2h-2v2zM6 17h12l-3.75-5l-3 4L9 13zM5 5v14z"})}))}function ka({editor:e}){const[t,n]=(0,j.useState)(!1),[o,r]=(0,j.useState)(""),[s,l]=(0,j.useState)(""),d={accept:"image/*",showUploadList:!1,beforeUpload:t=>Wr(e,t,(()=>n(!1)))};return(0,a.jsx)(i.Popover,{open:t,trigger:"click",placement:"bottom",content:(0,a.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,a.jsxs)("div",{children:["图片链接: ",(0,a.jsx)(i.Input,{value:o,onChange:e=>r(e.target.value)})]}),(0,a.jsxs)("div",{children:["图片描述: ",(0,a.jsx)(i.Input,{value:s,onChange:e=>l(e.target.value)})]}),(0,a.jsxs)(i.Flex,{justify:"space-between",children:[(0,a.jsx)(i.Upload,Object.assign({},d,{children:(0,a.jsx)(i.Button,{children:"上传本地图片"})})),(0,a.jsx)(i.Button,{type:"primary",onClick:function(){o&&(e.chain().focus().setImage({src:o,alt:s,title:s}).run(),n(!1))},children:"确认"})]})]}),onOpenChange:function(e){n(e),e||r("")},children:(0,a.jsx)(i.Button,{size:"small",type:"text",className:"",icon:(0,a.jsx)(ja,{className:"text-xl"})})})}const Na=[{label:"正文",value:"paragraph"},{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}],Aa={paragraph:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9 20v-6q-2.075 0-3.537-1.463T4 9t1.463-3.537T9 4h9v2h-2v14h-2V6h-3v14z"})}))}),{className:"text-xl "}),1:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5 17V7h2v4h4V7h2v10h-2v-4H7v4zm12 0V9h-2V7h4v10z"})}))}),{className:"text-xl"}),2:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-4q0-.825.588-1.412T15 11h4V9h-6V7h6q.825 0 1.413.588T21 9v2q0 .825-.587 1.413T19 13h-4v2h6v2z"})}))}),{className:"text-xl"}),3:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-4v-2h4V9h-6V7h6q.825 0 1.413.588T21 9v6q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),4:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm15 0v-3h-5V7h2v5h3V7h2v5h2v2h-2v3z"})}))}),{className:"text-xl"}),5:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm10 0v-2h6v-2h-6V7h8v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17z"})}))}),{className:"text-xl"}),6:(0,a.jsx)((function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M3 17V7h2v4h4V7h2v10H9v-4H5v4zm12 0q-.825 0-1.412-.587T13 15V9q0-.825.588-1.412T15 7h6v2h-6v2h4q.825 0 1.413.588T21 13v2q0 .825-.587 1.413T19 17zm0-4v2h4v-2z"})}))}),{className:"text-xl"})};function za({editor:e}){return(0,a.jsx)(i.Select,{size:"small",options:Na,defaultValue:"paragraph",labelRender:function(){const t=function(){if(e.isActive("paragraph"))return"paragraph";const t=[1,2,3,4,5,6];for(const n of t)if(e.isActive("heading",{level:n}))return n;return"paragraph"}();return(0,a.jsx)(a.Fragment,{children:Aa[t]})},optionRender:e=>function({label:e,value:t}){return(0,a.jsxs)(i.Flex,{align:"center",gap:4,children:[Aa[t],e]})}(e.data),popupMatchSelectWidth:!1,onChange:function(t){"paragraph"===t?e.chain().focus().setParagraph().run():e.chain().focus().toggleHeading({level:Number(t)}).run()}})}const Ea=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"m8 18l-6-6l6-6l1.425 1.425l-4.6 4.6L9.4 16.6zm8 0l-1.425-1.425l4.6-4.6L14.6 7.4L16 6l6 6z"})}))},Ca=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8zm5.82 0L16 8l-4.59 4.6L10 11.18L13.18 8L10 4.82zM22 6v12c0 1.11-.89 2-2 2H4a2 2 0 0 1-2-2v-4h2v4h16V6h-2.97V4H20c1.11 0 2 .89 2 2"})}))},Sa=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M5.7 18L8 14q-1.65 0-2.825-1.175T4 10t1.175-2.825T8 6t2.825 1.175T12 10q0 .575-.137 1.063T11.45 12L8 18zm9 0l2.3-4q-1.65 0-2.825-1.175T13 10t1.175-2.825T17 6t2.825 1.175T21 10q0 .575-.137 1.063T20.45 12L17 18z"})}))},Ma=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M4 13v-2h16v2z"})}))};function Ba({editor:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Ea,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCode().run(),disabled:!e.can().chain().focus().toggleCode().run(),className:e.isActive("code")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Ca,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleCodeBlock().run(),className:e.isActive("codeBlock")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",icon:(0,a.jsx)(Sa,{className:"text-xl"}),onClick:()=>e.chain().focus().toggleBlockquote().run(),className:e.isActive("blockquote")?"bg-blue-5 text-white":""}),(0,a.jsx)(i.Button,{type:"text",size:"small",className:"",icon:(0,a.jsx)(Ma,{className:"text-xl"}),onClick:()=>e.chain().focus().setHorizontalRule().run()})]})}const Oa=[{label:"标题1",value:"1"},{label:"标题2",value:"2"},{label:"标题3",value:"3"},{label:"标题4",value:"4"},{label:"标题5",value:"5"},{label:"标题6",value:"6"}];function Wa({className:e}){const{editor:t}=(0,dr.useCurrentEditor)();return t?(0,a.jsx)(dr.FloatingMenu,{editor:t,tippyOptions:{placement:"top-start"},children:(0,a.jsxs)(i.Flex,{gap:4,align:"center",className:`rounded-md p-1 bg-white border border-gray-200 shadow-sm pr-2 ${e}`,children:[Oa.map((({value:e})=>(0,a.jsx)(i.Button,{type:"text",size:"small",icon:Aa[e],onClick:()=>t.chain().focus().toggleHeading({level:Number(e)}).run(),className:t.isActive("heading",{level:Number(e)})?"bg-blue-5 text-white":""},e))),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Ba,{editor:t}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ya,{editor:t}),(0,a.jsx)(va,{editor:t}),(0,a.jsx)(ka,{editor:t})]})}):null}const Za=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M9.9 19q-2.425 0-4.163-1.575T4 13.5q0-2.35 1.738-3.925T9.9 8h6.3l-2.6-2.6L15 4l5 5l-5 5l-1.4-1.4l2.6-2.6H9.9q-1.575 0-2.738 1T6 13.5Q6 15 7.163 16T9.9 17H17v2z"})}))},Ka=function(e){return(0,a.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},e,{children:(0,a.jsx)("path",{fill:"currentColor",d:"M7 19v-2h7.1q1.575 0 2.738-1T18 13.5q0-1.5-1.162-2.5T14.1 10H7.8l2.6 2.6L9 14L4 9l5-5l1.4 1.4L7.8 8h6.3q2.425 0 4.163 1.575T20 13.5q0 2.35-1.737 3.925T14.1 19z"})}))};function Ja({editor:e}){const t=!e.can().chain().focus().undo().run(),n=!e.can().chain().focus().redo().run();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Button,{type:"text",size:"small",disabled:t,icon:(0,a.jsx)(Ka,{className:"text-xl "}),onClick:()=>e.chain().focus().undo().run()}),(0,a.jsx)(i.Button,{size:"small",type:"text",disabled:n,icon:(0,a.jsx)(Za,{className:"text-xl "}),onClick:()=>e.chain().focus().redo().run()})]})}const Pa=(0,j.forwardRef)((function(e,t){const{editor:n}=(0,dr.useCurrentEditor)();return(0,j.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),n?(0,a.jsxs)(i.Flex,{gap:8,wrap:!0,align:"center",className:`p-2 border border-gray-300 mb-4 sticky z-10 bg-white ${e.className}`,children:[(0,a.jsx)(Ja,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Qr,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(za,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ia,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(pa,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(Ba,{editor:n}),(0,a.jsx)(da,{editor:n}),(0,a.jsx)(i.Divider,{type:"vertical",className:"h-4 border-gray-300"}),(0,a.jsx)(ya,{editor:n}),(0,a.jsx)(va,{editor:n}),(0,a.jsx)(ka,{editor:n})]}):null})),Fa=(0,j.forwardRef)((function(e,t){const{editor:n}=(0,dr.useCurrentEditor)();return(0,j.useImperativeHandle)(t,(()=>({getContent:()=>n?n.getHTML():""}))),(0,a.jsx)(a.Fragment,{})}));var La=n(383),Ta={};Ta.styleTagTransform=g(),Ta.setAttributes=m(),Ta.insert=u().bind(null,"head"),Ta.domAPI=c(),Ta.insertStyleElement=f(),l()(La.A,Ta),La.A&&La.A.locals&&La.A.locals;var Ia=n(311),Da={};Da.styleTagTransform=g(),Da.setAttributes=m(),Da.insert=u().bind(null,"head"),Da.domAPI=c(),Da.insertStyleElement=f(),l()(Ia.A,Da),Ia.A&&Ia.A.locals&&Ia.A.locals;var Ua=n(512),qa={};qa.styleTagTransform=g(),qa.setAttributes=m(),qa.insert=u().bind(null,"head"),qa.domAPI=c(),qa.insertStyleElement=f(),l()(Ua.A,qa),Ua.A&&Ua.A.locals&&Ua.A.locals;const Ha=(0,j.forwardRef)((function({content:e,classNames:t},n){const o=(0,j.useRef)(null);return(0,j.useImperativeHandle)(n,(()=>({getContent:()=>o.current?o.current.getContent():""}))),(0,a.jsx)("div",{className:"tiptap-container",children:(0,a.jsxs)(dr.EditorProvider,{immediatelyRender:!1,content:e,extensions:Vr,slotBefore:(0,a.jsx)(Pa,{className:null==t?void 0:t.fixedMenu}),editorContainerProps:{className:`prose max-w-none p-4 border border-gray-300 min-h-[20rem] ${null==t?void 0:t.editorContainer}`},children:[(0,a.jsx)(Fa,{ref:o}),(0,a.jsx)(ba,{className:null==t?void 0:t.bubbleMenu}),(0,a.jsx)(fa,{className:null==t?void 0:t.linkFloatingMenu}),(0,a.jsx)(Wa,{className:null==t?void 0:t.paragraphFloatingMenu})]})})}));function Ra({content:e}){return(0,a.jsx)("div",{className:"tiptap-container",children:(0,a.jsx)(dr.EditorProvider,{immediatelyRender:!1,editable:!1,content:e,extensions:$r,parseOptions:{preserveWhitespace:"full"},editorContainerProps:{className:"prose max-w-none"}})})}var _a=n(109),Va={};Va.styleTagTransform=g(),Va.setAttributes=m(),Va.insert=u().bind(null,"head"),Va.domAPI=c(),Va.insertStyleElement=f(),l()(_a.Ay,Va),_a.Ay&&_a.Ay.locals&&_a.Ay.locals;const $a=[{label:"数据权限",value:"agentic",readOnly:!1,children:[{label:"检索智能体",value:"13",readOnly:!1}]},{label:"工作台权限",value:"workbench",readOnly:!1,children:[{label:"可视化工作流",value:"1",readOnly:!1},{label:"Notebook",value:"2",readOnly:!0},{label:"语料数据池",value:"3",readOnly:!1},{label:"数据集",value:"4",readOnly:!1},{label:"网页文本处理",value:"5",readOnly:!1},{label:"语料质量评测",value:"6",readOnly:!1},{label:"科技文献解析",value:"7",readOnly:!1},{label:"OCR标注",value:"8",readOnly:!1},{label:"科技文献表格标注",value:"9",readOnly:!1},{label:"遥感影像标注",value:"10",readOnly:!1},{label:"模型评测",value:"11",readOnly:!1},{label:"推理服务",value:"12",readOnly:!1}]}],Ga=({initialPermissions:e=[],onChange:t,editable:n=!0})=>{const[o,r]=k().useState((e=>{const t=[];return e.forEach((e=>{t.push(...e.grentedList);const n=$a.find((t=>t.value===e.module));if(n)if(0===n.children.length)t.push(e.module);else{const o=n.children.filter((e=>!e.readOnly)).map((e=>e.value));o.length>0&&o.every((t=>e.grentedList.includes(t)))&&t.push(e.module)}})),t})(e)),s=(e,a,i)=>{if(!n||i)return;const s=$a.find((t=>t.value===e));let l;if(s&&s.children.length>0)if(a){const t=s.children.filter((e=>!e.readOnly)).map((e=>e.value));l=Array.from(new Set([...o,e,...t]))}else{const t=s.children.map((e=>e.value));l=o.filter((n=>n!==e&&!t.includes(n)))}else if(a){l=[...o,e];const t=$a.find((t=>t.children.some((t=>t.value===e))));t&&t.children.filter((e=>!e.readOnly)).map((e=>e.value)).every((e=>l.includes(e)))&&!l.includes(t.value)&&(l=[...l,t.value])}else{l=o.filter((t=>t!==e));const t=$a.find((t=>t.children.some((t=>t.value===e))));t&&o.includes(t.value)&&(l=l.filter((e=>e!==t.value)))}const d=(e=>{const t=[];return $a.forEach((n=>{const o=[];n.children.forEach((t=>{e.includes(t.value)&&o.push(t.value)})),0===n.children.length?e.includes(n.value)&&t.push({module:n.value,grentedList:[]}):o.length>0&&t.push({module:n.value,grentedList:o})})),t})(l);console.log("You are interested in: ",l),r(l),null==t||t(d)};return(0,a.jsx)(a.Fragment,{children:$a.map((e=>{var t;const r=o.includes(e.value);return(0,a.jsxs)("div",{style:{width:"100%",margin:"8px 0"},className:n?"":_a.a9,children:[(0,a.jsx)(i.Tag.CheckableTag,{checked:r,onChange:t=>s(e.value,t,e.readOnly),style:{cursor:e.readOnly?"not-allowed":"pointer",opacity:e.readOnly?.7:1,margin:"5px 0",paddingBlock:"3px",border:"1px solid #979797",fontSize:"16px"},className:e.readOnly?_a.Lr:"",children:e.label},e.value),(0,a.jsx)(i.Flex,{gap:5,wrap:!0,align:"center",children:null===(t=e.children)||void 0===t?void 0:t.map((e=>{const t=o.includes(e.value);return(0,a.jsx)(i.Tag.CheckableTag,{checked:t,onChange:t=>s(e.value,t,e.readOnly),style:{cursor:e.readOnly?"not-allowed":"pointer",opacity:e.readOnly?.7:1,margin:"5px 0",border:"1px solid #979797"},className:e.readOnly?_a.Lr:"",children:e.label},e.value)}))})]},e.value)}))})};const Xa=({open:e,onCancel:t,onSave:n,initialPermissions:o=[]})=>{const[r,s]=(0,j.useState)(o),[l,d]=(0,j.useState)(!1);(0,j.useEffect)((()=>{e&&s(o)}),[e,o]);const c=()=>{s(o),t()};return(0,a.jsx)(i.Modal,{title:"编辑权限",open:e,onCancel:c,width:600,destroyOnClose:!0,footer:[(0,a.jsx)(i.Button,{onClick:c,children:"取消"},"cancel"),(0,a.jsx)(i.Button,{type:"primary",loading:l,onClick:()=>{return e=void 0,o=void 0,s=function*(){try{null==n||n(r),t()}catch(e){i.message.error("权限更新失败"),console.error("保存权限失败:",e)}},new((a=void 0)||(a=Promise))((function(t,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function i(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,i)}l((s=s.apply(e,o||[])).next())}));var e,o,a,s},children:"保存"},"save")],children:(0,a.jsx)("div",{style:{padding:"16px 0"},children:(0,a.jsx)(Ga,{initialPermissions:r,onChange:s,editable:!0})})})},Ya=({initialPermissions:e=[],children:t,title:n="用户权限",width:o=400})=>(0,a.jsx)(i.Popover,{content:(0,a.jsx)(Ga,{initialPermissions:e,editable:!1}),title:n,overlayStyle:{width:o},children:t}),Qa=Ga;var ei=exports;for(var ti in o)ei[ti]=o[ti];o.__esModule&&Object.defineProperty(ei,"__esModule",{value:!0})})();