zidane-gui 9.1.16 → 9.1.17

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.
Files changed (95) hide show
  1. package/out/main/index.js +851 -59
  2. package/out/preload/index.mjs +31 -2
  3. package/out/renderer/assets/{43YPWK3Q-DqQmzBPu.js → 43YPWK3Q-1wyGHRhG.js} +8 -8
  4. package/out/renderer/assets/{45MVAN6X-CYP7xDN8.js → 45MVAN6X-CCX59Sl8.js} +7 -7
  5. package/out/renderer/assets/{46GJKBLZ-Co9yrG8W.js → 46GJKBLZ-BfO42B_T.js} +12 -12
  6. package/out/renderer/assets/{63WH7YNF-JjkWKCFV.js → 63WH7YNF-CML8-yHW.js} +10 -10
  7. package/out/renderer/assets/{6DDU7VKX-BbtUMWO4.js → 6DDU7VKX-CYg_yoLw.js} +8 -8
  8. package/out/renderer/assets/{CLQLV5VT-Ba6obVJu.js → CLQLV5VT-Bg0M-SGs.js} +8 -8
  9. package/out/renderer/assets/{CUSPXG5M-BeHLB3vL.js → CUSPXG5M-CsYKrsuv.js} +8 -8
  10. package/out/renderer/assets/{CodeEditor-DAvsCy4c.js → CodeEditor-mxUtgGJl.js} +5 -5
  11. package/out/renderer/assets/{ComposerEditor-CmebUdQf.js → ComposerEditor-CzlLgqm3.js} +6 -6
  12. package/out/renderer/assets/{D3L7O4X2-Bz5JjvM3.js → D3L7O4X2-DUIFiQQs.js} +6 -6
  13. package/out/renderer/assets/{D5TW5CPZ-COD7XA6N.js → D5TW5CPZ-B5G-YYi_.js} +1 -1
  14. package/out/renderer/assets/{DiffsTab-Cg5SMPpy.js → DiffsTab-DTkod12Z.js} +12 -12
  15. package/out/renderer/assets/{EGADTWYV-DnX4xYm9.js → EGADTWYV-C5ja_Lm2.js} +7 -7
  16. package/out/renderer/assets/{EOJSJZXM-C1MKUH-z.js → EOJSJZXM-Dda_vMqK.js} +10 -10
  17. package/out/renderer/assets/{EditorWorkers-BfFVQ69E.js → EditorWorkers-4yw3sh7s.js} +9 -8
  18. package/out/renderer/assets/{FileIcon-acads6Ac.js → FileIcon-DlpPG4Tv.js} +1 -1
  19. package/out/renderer/assets/{FilesTab-RbqMfCrC.js → FilesTab-DwqtloUX.js} +337 -36
  20. package/out/renderer/assets/{G2OEIG6X-Dtesfr7X.js → G2OEIG6X-8IWIlJoy.js} +7 -7
  21. package/out/renderer/assets/{GXJ2T77W-BkncFrMb.js → GXJ2T77W-K_AYpQU1.js} +8 -8
  22. package/out/renderer/assets/{HX3UMAK7-DyzWjT_c.js → HX3UMAK7-CXREbgl0.js} +7 -7
  23. package/out/renderer/assets/{IU7WZTP6-C4qRhHoM.js → IU7WZTP6-DxZaf96h.js} +1 -1
  24. package/out/renderer/assets/{J5J2NR2G-2GjekDt4.js → J5J2NR2G-DvD4FXRy.js} +6 -6
  25. package/out/renderer/assets/{JRCWTJEL-Dto8Fjzi.js → JRCWTJEL-Dl83Hlzn.js} +5 -5
  26. package/out/renderer/assets/{KHUP5TOH-DWatm9RV.js → KHUP5TOH-CsVBjKaO.js} +1 -1
  27. package/out/renderer/assets/{L74FQTH5-YWQWDmAR.js → L74FQTH5-DWSyibfN.js} +6 -6
  28. package/out/renderer/assets/{LAV4ZXOS-BDeemsOt.js → LAV4ZXOS-DCtpD44i.js} +8 -8
  29. package/out/renderer/assets/{LBIZYCRR-CuJZ9kCp.js → LBIZYCRR-DpNXkUqg.js} +9 -9
  30. package/out/renderer/assets/{LFFXNLRS-CYLYOq-d.js → LFFXNLRS-CfnB3vZl.js} +5 -5
  31. package/out/renderer/assets/{LLLWOAQD-B6r0O-b8.js → LLLWOAQD-BOJG2YQq.js} +1 -1
  32. package/out/renderer/assets/{LTYQZ5U5-C6Vwu29l.js → LTYQZ5U5-Dw9W0QpI.js} +8 -8
  33. package/out/renderer/assets/{NDSCUZ25-D49aLwGZ.js → NDSCUZ25-B7bWy0v0.js} +2 -2
  34. package/out/renderer/assets/{NMN3IKWL-CmFbUlVt.js → NMN3IKWL-YWUccb3M.js} +11 -11
  35. package/out/renderer/assets/{NMUA3R2D-BmYN27sp.js → NMUA3R2D-PM0msfx1.js} +9 -9
  36. package/out/renderer/assets/{NY5A6PPW-CFmWX6Y1.js → NY5A6PPW-BiV0tPIy.js} +5 -5
  37. package/out/renderer/assets/{OHJ2EJXK-BkSNlV9q.js → OHJ2EJXK-B1XaNGkt.js} +1 -1
  38. package/out/renderer/assets/{OU2GIT2H-Df8P_VMV.js → OU2GIT2H-CnRIS6XL.js} +6 -6
  39. package/out/renderer/assets/{PDMLSE6I-B1fxTWPk.js → PDMLSE6I-D2L4rd2W.js} +2 -2
  40. package/out/renderer/assets/{PJ7X32S5-jmIr_WuS.js → PJ7X32S5-BDIGjA8B.js} +7 -7
  41. package/out/renderer/assets/{RLLQ44NJ-Bk5ATCRc.js → RLLQ44NJ-Du6_4Ch9.js} +9 -9
  42. package/out/renderer/assets/{S6DWMCK5-ru17f61y.js → S6DWMCK5-BCek3BK9.js} +10 -10
  43. package/out/renderer/assets/{STIOTUT7-D3W8oemx.js → STIOTUT7-Di8tUtxD.js} +8 -8
  44. package/out/renderer/assets/{SXSLPWUD-BP8ObIM3.js → SXSLPWUD-CUkLp4Fg.js} +2 -2
  45. package/out/renderer/assets/{TR4WJQGX-DwQDLHm2.js → TR4WJQGX-DghxArE6.js} +1 -1
  46. package/out/renderer/assets/TranscriptViews-D-F4TCT7.js +28 -0
  47. package/out/renderer/assets/{UWRPUF3N-BefBSoyh.js → UWRPUF3N-qS1g5ho1.js} +1 -1
  48. package/out/renderer/assets/{VSWIZJ7B-QwUQICP_.js → VSWIZJ7B-BKZhRmsN.js} +1 -1
  49. package/out/renderer/assets/ViewBlock-BcCbp_nS.js +1536 -0
  50. package/out/renderer/assets/ViewCharts-DuQAWU2F.js +6350 -0
  51. package/out/renderer/assets/ViewCustom-D5CeSx32.js +240 -0
  52. package/out/renderer/assets/ViewExtension-q6W__eQm.js +74 -0
  53. package/out/renderer/assets/ViewInputs-BwIsKHHk.js +407 -0
  54. package/out/renderer/assets/ViewMcpApp-BJxpfIUe.js +607 -0
  55. package/out/renderer/assets/ViewTables-D7FxVTon.js +284 -0
  56. package/out/renderer/assets/{WM7NR6YK-CRccSJmx.js → WM7NR6YK-BCt1dKcj.js} +6 -6
  57. package/out/renderer/assets/{WXKV2YEK-AiJtxeS-.js → WXKV2YEK-C1EL6EKw.js} +5 -5
  58. package/out/renderer/assets/{XLHPVVFU-CISC9r_V.js → XLHPVVFU-BN2wXqoc.js} +1 -1
  59. package/out/renderer/assets/{YNX532HU-CY_1HOiG.js → YNX532HU-BtmHcbvF.js} +7 -7
  60. package/out/renderer/assets/{YUPSMAUO-Cv2Ryk3Q.js → YUPSMAUO-CyZdB_Cb.js} +1 -1
  61. package/out/renderer/assets/{ZFRCZTLK-xOx-Cqik.js → ZFRCZTLK-aAZ7jHr_.js} +8 -8
  62. package/out/renderer/assets/{ZZDR4CN3-CDsCY6PX.js → ZZDR4CN3-BdJdxId6.js} +6 -6
  63. package/out/renderer/assets/{core-Drnj1qQL.js → core-CPNc3zNs.js} +1 -1
  64. package/out/renderer/assets/{core-Cst33ux7.js → core-CZ6gd8oJ.js} +2414 -435
  65. package/out/renderer/assets/{file-tabs--M9K6eWf.js → file-tabs-CgISplTF.js} +10 -9
  66. package/out/renderer/assets/ghostty-vt-CC3key_8.wasm +0 -0
  67. package/out/renderer/assets/{ghostty-web-DsF2lzXq.js → ghostty-web-DoJg8mwQ.js} +3 -3
  68. package/out/renderer/assets/{hastToHtml-AUrFnNH_.js → hastToHtml-Lx-c_BvK.js} +1 -1
  69. package/out/renderer/assets/heic-to-AUnw0rrk.js +57 -0
  70. package/out/renderer/assets/{highlights-BWQ-BGwF.js → highlights-BkRUNyAa.js} +7 -7
  71. package/out/renderer/assets/{highlights-D9DV-gLr.js → highlights-DqzA57PQ.js} +4 -4
  72. package/out/renderer/assets/{index-DcoAavzj.js → index-2ScxmF2I.js} +336 -195
  73. package/out/renderer/assets/{index-DhpOdP7M.js → index-CF84dbuf.js} +1 -1
  74. package/out/renderer/assets/input-preview-DTTTULd2.js +5 -0
  75. package/out/renderer/assets/{kit-BRekmBoz.js → kit-CjkT3Ius.js} +10084 -6109
  76. package/out/renderer/assets/{langs-CC8eNbvY.js → langs-CDfkqznm.js} +3 -3
  77. package/out/renderer/assets/{lazy-DtE8TmIe.js → lazy-BrSdiwQa.js} +3 -3
  78. package/out/renderer/assets/{loader-BWgWjzVT.js → loader-D2zAtI-u.js} +3 -3
  79. package/out/renderer/assets/{pierre-theme-DkKyEYzW.js → pierre-theme-BuOZsexm.js} +9 -9
  80. package/out/renderer/assets/{shiki-CahOMWmD.js → shiki-Dfvytwwf.js} +8 -8
  81. package/out/renderer/assets/{stream-tokenizer-CtslDDLQ.js → stream-tokenizer-BVf54Cm5.js} +2 -2
  82. package/out/renderer/assets/{index-C5y0Nb6N.css → styles-BsuQ5hRd.css} +641 -20
  83. package/out/renderer/assets/theme-watch-0b-hqR9T.js +37 -0
  84. package/out/renderer/assets/{themes-BVPDzAaq.js → themes-DByaI0Ud.js} +6 -6
  85. package/out/renderer/assets/{useDetachCleanup-1eMIugni.js → useDetachCleanup-Dn-cfZgC.js} +4 -4
  86. package/out/renderer/assets/{useFolderChanges-Cqv3OcO_.js → useFolderChanges-Dh2Z47jL.js} +10 -8
  87. package/out/renderer/assets/{vendor-BpwX-s_O.js → vendor-CadCDYU0.js} +1 -1
  88. package/out/renderer/assets/{vendor-editor-Cx3SvGyZ.js → vendor-editor-BJIeGzeh.js} +2 -2
  89. package/out/renderer/assets/{vendor-motion-BgQeucLF.js → vendor-motion-u3N9isCo.js} +1 -1
  90. package/out/renderer/assets/{vendor-react-bPTwWURR.js → vendor-react-BSxSjatM.js} +5 -4
  91. package/out/renderer/assets/view-preview-B7F51KZx.js +375 -0
  92. package/out/renderer/assets/zoom-reset-BfXcQTFh.js +13 -0
  93. package/out/renderer/index.html +8 -8
  94. package/out/renderer/view-preview.html +23 -0
  95. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { j as jsxRuntimeExports, r as reactExports, a as reactDomExports } from "./vendor-react-bPTwWURR.js";
2
- import { E as useLabels, X as TabPill, Y as usePresence, _ as readMenuExitMs, $ as useCodeHighlight, U as Tooltip, V as IconButton, T as useEditorPrefs, h as useFilesHost, i as useFilesLabels, a0 as useCodeDocument, a1 as excerptFromContents, a2 as serializeDiagnostic, H as languageFor, J as rangeLabel, M as attachmentName, w as useAppearanceReducedMotion, P as PanelLoading, m as mediaTypeOfPath, a3 as mediaSiblings, a4 as Breadcrumb, I as IconToggle, B as PanelEmpty, a5 as readPanelMs, a6 as useResizeDrag, a7 as Notice, a8 as useOptionalConfirm, a9 as entryRefusalText, aa as topLevelPaths, ab as parentOf, ac as inFolder, ad as nameOf, ae as droppedItems, j as filesRootOf, af as movedPath, ag as isUnder, ah as filesScopeKey, ai as createMemoryFilesLayout, n as usePanelVisible, aj as useAppearanceState, ak as useReadable, z as steppedIndex, R as RowActionsMenu } from "./kit-BRekmBoz.js";
3
- import { c as createFileTreeIconResolver, g as getBuiltInSpriteSheet, n as normalizeFileTreeIcons, i as isColoredBuiltInIconSet, F as FileIcon } from "./FileIcon-acads6Ac.js";
4
- import { aE as TREES_HOST_STYLE, aF as TREES_UNSAFE_CSS, u as useWorkerPool } from "./pierre-theme-DkKyEYzW.js";
5
- import { C as CodeEditor, E as EditStateManager } from "./CodeEditor-DAvsCy4c.js";
6
- import { g as DIAGNOSTIC_GLYPH, h as fileActionItems, i as useFilesChat, j as useCodeReview, k as diagnosticsByLine, l as diagnosticMarkers, m as diagnosticsAt, D as DiffScroller, R as ReviewableDiff, p as parseFilePatch, c as countBySeverity, u as useDiagnosticsRun, o as absolutePath, q as MediaFrame, M as MediaView, a as useFolderChanges, e as useNoKeyScope, n as nameMatches, F as FilesChatContext, S as SearchPanel, d as useNoEdits } from "./useFolderChanges-Cqv3OcO_.js";
7
- import { ad as REVEAL_FALLBACK_MS, d as diffLines, u as useFind, F as FindBar } from "./useDetachCleanup-1eMIugni.js";
8
- import "./vendor-motion-BgQeucLF.js";
9
- import "./core-Cst33ux7.js";
10
- import "./vendor-BpwX-s_O.js";
11
- import "./vendor-editor-Cx3SvGyZ.js";
12
- import "./hastToHtml-AUrFnNH_.js";
13
- import "./index-DhpOdP7M.js";
1
+ import { j as jsxRuntimeExports, r as reactExports, a as reactDomExports } from "./vendor-react-BSxSjatM.js";
2
+ import { d as useLabels, b9 as TabPill, ba as usePresence, bb as readMenuExitMs, bc as useCodeHighlight, b8 as Tooltip, I as IconButton, b7 as useEditorPrefs, a5 as useFilesHost, a6 as useFilesLabels, bd as useCodeDocument, be as excerptFromContents, bf as serializeDiagnostic, a_ as languageFor, b0 as rangeLabel, b2 as attachmentName, af as useAppearanceReducedMotion, am as PanelLoading, j as useLinkRouter, k as useLightbox, a4 as mediaTypeOfPath, bg as Markdown, a$ as RowActionsMenu, bh as useGitHost, b1 as serializeCodeSnippet, bi as copyImage, bj as copyImageBase64, bk as copyImageDataUrl, bl as mediaSiblings, bm as ReorderTabs, bn as Breadcrumb, al as IconToggle, an as PanelEmpty, bo as readPanelMs, bp as useResizeDrag, N as Notice, X as useOptionalConfirm, bq as entryRefusalText, br as topLevelPaths, bs as parentOf, bt as inFolder, bu as nameOf, bv as droppedItems, a7 as filesRootOf, bw as movedPath, bx as isUnder, by as filesScopeKey, bz as createMemoryFilesLayout, aa as usePanelVisible, bA as useAppearanceState, bB as useReadable, ai as steppedIndex } from "./kit-CjkT3Ius.js";
3
+ import { c as createFileTreeIconResolver, g as getBuiltInSpriteSheet, n as normalizeFileTreeIcons, i as isColoredBuiltInIconSet, F as FileIcon } from "./FileIcon-DlpPG4Tv.js";
4
+ import { aE as TREES_HOST_STYLE, aF as TREES_UNSAFE_CSS, u as useWorkerPool } from "./pierre-theme-BuOZsexm.js";
5
+ import { C as CodeEditor, E as EditStateManager } from "./CodeEditor-mxUtgGJl.js";
6
+ import { g as DIAGNOSTIC_GLYPH, h as fileActionItems, i as useFilesChat, j as useCodeReview, k as diagnosticsByLine, l as diagnosticMarkers, m as diagnosticsAt, D as DiffScroller, R as ReviewableDiff, p as parseFilePatch, o as noChatItem, c as countBySeverity, u as useDiagnosticsRun, q as absolutePath, r as MediaFrame, M as MediaView, a as useFolderChanges, e as useNoKeyScope, n as nameMatches, F as FilesChatContext, S as SearchPanel, d as useNoEdits } from "./useFolderChanges-Dh2Z47jL.js";
7
+ import { ad as REVEAL_FALLBACK_MS, d as diffLines, u as useFind, F as FindBar } from "./useDetachCleanup-Dn-cfZgC.js";
8
+ import "./vendor-motion-u3N9isCo.js";
9
+ import "./core-CZ6gd8oJ.js";
10
+ import "./vendor-CadCDYU0.js";
11
+ import "./vendor-editor-BJIeGzeh.js";
12
+ import "./hastToHtml-Lx-c_BvK.js";
13
+ import "./index-CF84dbuf.js";
14
14
  import "./utils-BcG7Lqcy.js";
15
15
  const FILE_TREE_TAG_NAME = "file-tree-container";
16
16
  const FILE_TREE_STYLE_ATTRIBUTE = "data-file-tree-style";
@@ -9903,7 +9903,7 @@ const noSubscribe = () => () => {
9903
9903
  function useLsp(cwd, path, text) {
9904
9904
  const ed = useEditorPrefs();
9905
9905
  const lsp = useFilesHost().lsp;
9906
- const enabled = ed.diagnostics === "lsp" && lsp !== void 0 && cwd !== null && path !== null && text !== null;
9906
+ const enabled = ed.diagnostics === "lsp" && lsp !== void 0 && cwd !== null && path !== null && !path.startsWith("/") && text !== null;
9907
9907
  const [doc, setDoc] = reactExports.useState(null);
9908
9908
  const opening = reactExports.useRef(text);
9909
9909
  opening.current = text;
@@ -10237,6 +10237,258 @@ function estimateRowTop(scroller, row) {
10237
10237
  const probeTop = rect.top - scroller.getBoundingClientRect().top + scroller.scrollTop;
10238
10238
  return { top: probeTop + (row - probeRow) * rect.height };
10239
10239
  }
10240
+ const BY_EXTENSION = {
10241
+ md: "markdown",
10242
+ markdown: "markdown",
10243
+ mdx: "markdown",
10244
+ html: "html",
10245
+ htm: "html"
10246
+ };
10247
+ function previewKindOfPath(path) {
10248
+ const name = path.slice(path.lastIndexOf("/") + 1).toLowerCase();
10249
+ const dot = name.lastIndexOf(".");
10250
+ return dot > 0 ? BY_EXTENSION[name.slice(dot + 1)] ?? null : null;
10251
+ }
10252
+ function resolveWorkspaceLink(from, url) {
10253
+ if (url === "" || url.startsWith("#") || url.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(url)) return null;
10254
+ const bare2 = url.replace(/[?#].*$/, "");
10255
+ if (bare2 === "") return null;
10256
+ let decoded;
10257
+ try {
10258
+ decoded = decodeURIComponent(bare2);
10259
+ } catch {
10260
+ decoded = bare2;
10261
+ }
10262
+ const base = decoded.startsWith("/") ? [] : from.split("/").slice(0, -1);
10263
+ const parts = [...base];
10264
+ for (const part of decoded.split("/")) {
10265
+ if (part === "" || part === ".") continue;
10266
+ if (part === "..") {
10267
+ if (parts.length === 0) return null;
10268
+ parts.pop();
10269
+ } else parts.push(part);
10270
+ }
10271
+ return parts.length > 0 ? parts.join("/") : null;
10272
+ }
10273
+ function githubRepoOfOrigin(origin) {
10274
+ const match = /^(?:[a-z+]+:\/\/)?(?:[^@/]+@)?github\.com[:/]([^/]+)\/([^/]+?)(?:\.git)?\/?$/i.exec(origin.trim());
10275
+ return match ? `${match[1]}/${match[2]}`.toLowerCase() : null;
10276
+ }
10277
+ function githubFileInRepo(url, repo) {
10278
+ let parsed;
10279
+ try {
10280
+ parsed = new URL(url);
10281
+ } catch {
10282
+ return null;
10283
+ }
10284
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return null;
10285
+ const parts = parsed.pathname.split("/").filter(Boolean);
10286
+ const host = parsed.hostname.toLowerCase();
10287
+ let rest;
10288
+ if (host === "github.com" || host === "www.github.com") {
10289
+ if (parts[2] !== "blob" && parts[2] !== "raw") return null;
10290
+ rest = [parts[0] ?? "", parts[1] ?? "", ...parts.slice(4)];
10291
+ } else if (host === "raw.githubusercontent.com") {
10292
+ rest = [parts[0] ?? "", parts[1] ?? "", ...parts.slice(3)];
10293
+ } else return null;
10294
+ if (`${rest[0]}/${rest[1]}`.toLowerCase() !== repo) return null;
10295
+ const path = rest.slice(2);
10296
+ if (path.length === 0) return null;
10297
+ try {
10298
+ return path.map(decodeURIComponent).join("/");
10299
+ } catch {
10300
+ return null;
10301
+ }
10302
+ }
10303
+ const PREVIEW_FRAME_SANDBOX = "allow-scripts";
10304
+ const FilePreview = reactExports.memo(function FilePreview2({ kind, ...props }) {
10305
+ return kind === "markdown" ? /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownPreview, { ...props }) : /* @__PURE__ */ jsxRuntimeExports.jsx(HtmlPreview, { path: props.path, text: props.text });
10306
+ });
10307
+ async function copyText(text) {
10308
+ try {
10309
+ await navigator.clipboard.writeText(text);
10310
+ } catch (err) {
10311
+ console.error("[zidane-ui] clipboard write failed", err);
10312
+ }
10313
+ }
10314
+ function selectionIn(root) {
10315
+ const selection = root.ownerDocument.getSelection();
10316
+ if (!selection || selection.isCollapsed || !selection.anchorNode || !root.contains(selection.anchorNode)) return null;
10317
+ const text = selection.toString();
10318
+ return text.trim() ? text : null;
10319
+ }
10320
+ function MarkdownPreview({ cwd, path, text, version, onOpenFile, onRevealFolder }) {
10321
+ const host = useFilesHost();
10322
+ const labels = useFilesLabels();
10323
+ const kitLabels = useLabels();
10324
+ const chat = useFilesChat();
10325
+ const links = useLinkRouter();
10326
+ const lightbox = useLightbox();
10327
+ const rootRef = reactExports.useRef(null);
10328
+ const [menu, setMenu] = reactExports.useState(null);
10329
+ const mediaUrl = host.mediaUrl;
10330
+ const repo = useGithubRepo(cwd);
10331
+ const inFolder2 = reactExports.useCallback(
10332
+ (url) => resolveWorkspaceLink(path, url) ?? (repo ? githubFileInRepo(url, repo) : null),
10333
+ [path, repo]
10334
+ );
10335
+ const urlTransform = reactExports.useCallback(
10336
+ (url, key2) => {
10337
+ if (key2 === "src" && mediaUrl) {
10338
+ const target = inFolder2(url);
10339
+ if (target && mediaTypeOfPath(target)?.kind === "image") {
10340
+ return mediaUrl({ kind: "file", cwd, path: target, version });
10341
+ }
10342
+ }
10343
+ return safeUrl(url);
10344
+ },
10345
+ [cwd, version, mediaUrl, inFolder2]
10346
+ );
10347
+ const onClickCapture = (e2) => {
10348
+ const anchor = e2.target.closest?.("a[href]");
10349
+ const href = anchor?.getAttribute("href");
10350
+ if (!anchor || href == null) return;
10351
+ const target = href.startsWith("#") ? null : inFolder2(href);
10352
+ if (!href.startsWith("#") && target === null) return;
10353
+ e2.preventDefault();
10354
+ e2.stopPropagation();
10355
+ if (target === null) return;
10356
+ if (href.replace(/[?#].*$/, "").endsWith("/")) onRevealFolder?.(target);
10357
+ else onOpenFile?.(target);
10358
+ };
10359
+ const onClick = (e2) => {
10360
+ const image = e2.target instanceof HTMLImageElement ? e2.target : null;
10361
+ if (!image || image.closest("a") || !rootRef.current) return;
10362
+ const images = Array.from(rootRef.current.querySelectorAll("img")).filter((img) => !img.closest("a"));
10363
+ lightbox.open(
10364
+ images.map((img, i2) => ({
10365
+ key: `${i2}:${img.currentSrc || img.src}`,
10366
+ name: img.alt || path,
10367
+ src: img.currentSrc || img.src
10368
+ })),
10369
+ images.indexOf(image),
10370
+ image
10371
+ );
10372
+ };
10373
+ const onContextMenu = (e2) => {
10374
+ const root = rootRef.current;
10375
+ if (!root) return;
10376
+ const element = e2.target;
10377
+ const image = element instanceof HTMLImageElement ? element : null;
10378
+ const link = element.closest?.("a[href]")?.getAttribute("href") ?? null;
10379
+ const selection = selectionIn(root);
10380
+ if (!image && !link && !selection) return;
10381
+ e2.preventDefault();
10382
+ setMenu({ target: { selection, image, link }, at: { x: e2.clientX, y: e2.clientY } });
10383
+ };
10384
+ const items = [];
10385
+ if (menu) {
10386
+ const { selection, image, link } = menu.target;
10387
+ if (selection) {
10388
+ const what = labels.filesSelection;
10389
+ const attach = () => chat?.attach(
10390
+ attachmentName("snippet", path, null),
10391
+ serializeCodeSnippet({ filePath: path, rangeLabel: null, excerpt: selection, language: "markdown" })
10392
+ );
10393
+ items.push(
10394
+ chat ? { id: "chat", label: labels.filesAddWhatToChat(what), shortcut: "a", group: "text", onSelect: attach } : { ...noChatItem("chat", labels.filesAddWhatToChat(what), labels), group: "text" },
10395
+ {
10396
+ id: "copy",
10397
+ label: labels.filesCopyWhat(what),
10398
+ shortcut: "c",
10399
+ group: "text",
10400
+ onSelect: () => void copyText(selection)
10401
+ }
10402
+ );
10403
+ }
10404
+ if (image) {
10405
+ const src = image.currentSrc || image.src;
10406
+ const copy = (run) => () => void run(src).catch(() => {
10407
+ });
10408
+ items.push(
10409
+ { id: "copy-image", label: kitLabels.copyImage, group: "image", onSelect: copy(copyImage) },
10410
+ { id: "copy-base64", label: kitLabels.copyImageBase64, group: "image", onSelect: copy(copyImageBase64) },
10411
+ { id: "copy-data-url", label: kitLabels.copyImageDataUrl, group: "image", onSelect: copy(copyImageDataUrl) }
10412
+ );
10413
+ }
10414
+ if (link && !link.startsWith("#")) {
10415
+ const target = inFolder2(link);
10416
+ items.push(
10417
+ {
10418
+ id: "open-link",
10419
+ label: labels.filesOpenLink,
10420
+ group: "link",
10421
+ onSelect: () => {
10422
+ if (target === null) void links.open(link, { source: "other" });
10423
+ else if (link.replace(/[?#].*$/, "").endsWith("/")) onRevealFolder?.(target);
10424
+ else onOpenFile?.(target);
10425
+ }
10426
+ },
10427
+ { id: "copy-link", label: labels.filesCopyLink, group: "link", onSelect: () => void copyText(link) }
10428
+ );
10429
+ }
10430
+ }
10431
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
10432
+ "div",
10433
+ {
10434
+ ref: rootRef,
10435
+ className: "zg-file-preview flex-1 min-h-0 overflow-auto px-6 py-4 select-text",
10436
+ "data-testid": "file-preview",
10437
+ role: "presentation",
10438
+ onClickCapture,
10439
+ onClick,
10440
+ onContextMenu,
10441
+ children: [
10442
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Markdown, { document: true, urlTransform, children: text }),
10443
+ /* @__PURE__ */ jsxRuntimeExports.jsx(RowActionsMenu, { open: menu !== null, position: menu?.at ?? null, onClose: () => setMenu(null), items }),
10444
+ lightbox.element
10445
+ ]
10446
+ }
10447
+ );
10448
+ }
10449
+ function useGithubRepo(cwd) {
10450
+ const originUrl = useGitHost()?.originUrl;
10451
+ const [read, setRead] = reactExports.useState(null);
10452
+ reactExports.useEffect(() => {
10453
+ if (!originUrl) return void 0;
10454
+ let cancelled = false;
10455
+ originUrl(cwd).then((origin) => {
10456
+ if (!cancelled) setRead({ cwd, repo: origin ? githubRepoOfOrigin(origin) : null });
10457
+ }).catch(() => {
10458
+ if (!cancelled) setRead({ cwd, repo: null });
10459
+ });
10460
+ return () => {
10461
+ cancelled = true;
10462
+ };
10463
+ }, [cwd, originUrl]);
10464
+ return read?.cwd === cwd ? read.repo : null;
10465
+ }
10466
+ function safeUrl(url) {
10467
+ const colon = url.indexOf(":");
10468
+ const cut = Math.min(...["/", "?", "#"].map((c2) => url.includes(c2) ? url.indexOf(c2) : Infinity));
10469
+ if (colon === -1 || colon > cut) return url;
10470
+ return /^(https?|mailto|tel)$/i.test(url.slice(0, colon)) ? url : "";
10471
+ }
10472
+ function HtmlPreview({ path, text }) {
10473
+ const labels = useFilesLabels();
10474
+ const frameRef = reactExports.useRef(null);
10475
+ reactExports.useEffect(() => {
10476
+ const frame = frameRef.current;
10477
+ if (!frame) return;
10478
+ const url = URL.createObjectURL(new Blob([text], { type: "text/html" }));
10479
+ frame.src = url;
10480
+ return () => URL.revokeObjectURL(url);
10481
+ }, [text]);
10482
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0 flex", "data-testid": "file-preview", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10483
+ "iframe",
10484
+ {
10485
+ ref: frameRef,
10486
+ className: "zg-file-preview-frame flex-1 min-w-0 min-h-0",
10487
+ sandbox: PREVIEW_FRAME_SANDBOX,
10488
+ title: labels.filesRenderedTitle(path.slice(path.lastIndexOf("/") + 1))
10489
+ }
10490
+ ) });
10491
+ }
10240
10492
  function DiagnosticsChip({ state, items, label, onClick, className, style }) {
10241
10493
  const counts = countBySeverity(items);
10242
10494
  const clean = state === "checked" && counts.errors + counts.warnings + counts.other === 0;
@@ -10541,7 +10793,7 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10541
10793
  const system = host.system;
10542
10794
  const onRight = treeSide === "right";
10543
10795
  const active = files.active;
10544
- const { show, setActivePath, close, setDraft, adoptFile, replace } = files;
10796
+ const { show, setActivePath, close, setDraft, adoptFile, replace, reorder } = files;
10545
10797
  const [diffOverride, setDiffOverride] = reactExports.useState({});
10546
10798
  const [reveal, setReveal] = reactExports.useState(null);
10547
10799
  const navigate = reactExports.useCallback(
@@ -10573,10 +10825,13 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10573
10825
  const smallEnough = reactExports.useMemo(() => diffFits(activeFile), [activeFile]);
10574
10826
  const diffMode = active && !dirty ? diffOverride[active.path] ?? opensAsDiff({ changed, isNew, fits: smallEnough }) : false;
10575
10827
  const activeDraft = useDraft(files.drafts, active?.path ?? null);
10828
+ const [rendered, setRendered] = reactExports.useState({});
10576
10829
  const [diffsShown, setDiffsShown] = reactExports.useState(() => /* @__PURE__ */ new Set());
10577
10830
  const [diffsReady, setDiffsReady] = reactExports.useState(() => /* @__PURE__ */ new Set());
10578
10831
  const activeText = activeFile !== null && !activeFile.binary && !activeFile.truncated;
10579
10832
  const diffActive = diffMode && activeText && active !== null;
10833
+ const previewKind = active && activeText ? previewKindOfPath(active.path) : null;
10834
+ const previewing = previewKind !== null && !diffMode && active !== null && rendered[active.path] === true;
10580
10835
  reactExports.useEffect(() => {
10581
10836
  if (diffActive && active) setDiffsShown((s2) => s2.has(active.path) ? s2 : new Set(s2).add(active.path));
10582
10837
  }, [diffActive, active]);
@@ -10626,10 +10881,7 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10626
10881
  activeFile && active && !activeFile.binary && !activeFile.truncated ? active.path : null,
10627
10882
  activeFile && active ? activeDraft ?? activeFile.contents : null
10628
10883
  );
10629
- const tabsRef = reactExports.useRef(null);
10630
- reactExports.useEffect(() => {
10631
- tabsRef.current?.querySelector('[role="tab"][aria-selected="true"]')?.scrollIntoView({ block: "nearest", inline: "nearest" });
10632
- }, [files.activePath, files.open.length]);
10884
+ const openPaths = reactExports.useMemo(() => files.open.map((f2) => f2.path), [files.open]);
10633
10885
  const [dropping, setDropping] = reactExports.useState(false);
10634
10886
  const takes = (e2) => {
10635
10887
  const types = Array.from(e2.dataTransfer?.types ?? []);
@@ -10666,27 +10918,26 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10666
10918
  "div",
10667
10919
  {
10668
10920
  className: `shrink-0 flex items-center h-9 min-w-0 ${treeOpen ? "px-2" : onRight ? "pl-2 pr-9" : "pl-9 pr-2"}`,
10669
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10670
- "div",
10921
+ children: openPaths.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
10922
+ ReorderTabs,
10671
10923
  {
10672
- ref: tabsRef,
10673
- role: "tablist",
10674
- "aria-label": labels.filesOpenFiles,
10675
- hidden: files.open.length === 0,
10676
- className: "zg-segment zg-no-scrollbar zg-scroll-fade-x min-w-0 max-w-full overflow-x-auto",
10677
- children: files.open.map((f2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
10924
+ ids: openPaths,
10925
+ activeId: files.activePath,
10926
+ onReorder: reorder,
10927
+ label: labels.filesOpenFiles,
10928
+ renderTab: (path, tab) => /* @__PURE__ */ jsxRuntimeExports.jsx(
10678
10929
  OpenFileTab,
10679
10930
  {
10680
- path: f2.path,
10681
- active: f2.path === files.activePath,
10931
+ path,
10932
+ active: path === files.activePath,
10682
10933
  drafts: files.drafts,
10683
10934
  glyph: renderTabGlyph,
10935
+ tab,
10684
10936
  onPick: setActivePath,
10685
10937
  onClose: close,
10686
10938
  onContextMenu
10687
- },
10688
- f2.path
10689
- ))
10939
+ }
10940
+ )
10690
10941
  }
10691
10942
  )
10692
10943
  }
@@ -10701,11 +10952,27 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10701
10952
  {
10702
10953
  size: "xs",
10703
10954
  active: diffMode,
10704
- onClick: () => setDiffOverride((o2) => ({ ...o2, [active.path]: !diffMode })),
10955
+ onClick: () => {
10956
+ setDiffOverride((o2) => ({ ...o2, [active.path]: !diffMode }));
10957
+ if (!diffMode) setRendered((r2) => ({ ...r2, [active.path]: false }));
10958
+ },
10705
10959
  icon: "i-ph-git-diff",
10706
10960
  label: diffMode ? labels.filesPlainView : smallEnough ? labels.filesShowChanges : labels.filesShowChangesLarge
10707
10961
  }
10708
10962
  ),
10963
+ previewKind && /* @__PURE__ */ jsxRuntimeExports.jsx(
10964
+ IconToggle,
10965
+ {
10966
+ size: "xs",
10967
+ active: previewing,
10968
+ onClick: () => {
10969
+ setRendered((r2) => ({ ...r2, [active.path]: !previewing }));
10970
+ if (!previewing && diffMode) setDiffOverride((o2) => ({ ...o2, [active.path]: false }));
10971
+ },
10972
+ icon: "i-ph-eye",
10973
+ label: previewing ? labels.filesShowCode : labels.filesShowRendered
10974
+ }
10975
+ ),
10709
10976
  system?.isLocal(cwd) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10710
10977
  /* @__PURE__ */ jsxRuntimeExports.jsx(
10711
10978
  IconToggle,
@@ -10781,9 +11048,21 @@ const EditorColumn = reactExports.memo(function EditorColumn2({
10781
11048
  `diff:${f2.path}`
10782
11049
  );
10783
11050
  }),
11051
+ previewing && activeFile && /* @__PURE__ */ jsxRuntimeExports.jsx(
11052
+ FilePreview,
11053
+ {
11054
+ cwd,
11055
+ path: active.path,
11056
+ kind: previewKind,
11057
+ text: activeDraft ?? activeFile.contents,
11058
+ version: activeFile.mtimeMs,
11059
+ onOpenFile: show,
11060
+ onRevealFolder: onRevealInTree
11061
+ }
11062
+ ),
10784
11063
  files.open.map((f2) => {
10785
11064
  if (!isText(f2)) return null;
10786
- const isActive = shown?.path === f2.path && !shown.diff;
11065
+ const isActive = shown?.path === f2.path && !shown.diff && !(previewing && f2.path === active.path);
10787
11066
  const isCurrent = isActive && current !== null;
10788
11067
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { hidden: !isActive, className: "flex-1 min-h-0 flex flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10789
11068
  CodeViewer,
@@ -10816,6 +11095,7 @@ const OpenFileTab = reactExports.memo(function OpenFileTab2({
10816
11095
  active,
10817
11096
  drafts,
10818
11097
  glyph,
11098
+ tab,
10819
11099
  onPick,
10820
11100
  onClose,
10821
11101
  onContextMenu
@@ -10828,7 +11108,9 @@ const OpenFileTab = reactExports.memo(function OpenFileTab2({
10828
11108
  active,
10829
11109
  dirty,
10830
11110
  glyph: glyph(path),
10831
- onPick: () => onPick(path),
11111
+ lifted: tab.lifted,
11112
+ onPick: tab.pick(() => onPick(path)),
11113
+ onMove: tab.onMove,
10832
11114
  onClose: () => onClose(path),
10833
11115
  onContextMenu: (at) => onContextMenu({ path, kind: "file" }, at)
10834
11116
  }
@@ -11364,6 +11646,23 @@ function useOpenFiles(scope, layout, layoutStore, prefs, source) {
11364
11646
  },
11365
11647
  [setDraft, buffers2, slots]
11366
11648
  );
11649
+ const reorder = reactExports.useCallback(
11650
+ // eslint-disable-next-line react-hooks/preserve-manual-memoization -- the deps are the hook's stable inputs (setters, refs' owners)
11651
+ (paths) => {
11652
+ setOpen((current) => {
11653
+ const byPath = new Map(current.map((f2) => [f2.path, f2]));
11654
+ const picked = paths.flatMap((p2) => {
11655
+ const f2 = byPath.get(p2);
11656
+ if (!f2) return [];
11657
+ byPath.delete(p2);
11658
+ return [f2];
11659
+ });
11660
+ const next = [...picked, ...byPath.values()];
11661
+ return next.every((f2, i2) => f2 === current[i2]) ? current : next;
11662
+ });
11663
+ },
11664
+ []
11665
+ );
11367
11666
  const moved = reactExports.useCallback(
11368
11667
  // eslint-disable-next-line react-hooks/preserve-manual-memoization -- the deps are the hook's stable inputs (setters, refs' owners)
11369
11668
  (from, to) => {
@@ -11441,6 +11740,7 @@ function useOpenFiles(scope, layout, layoutStore, prefs, source) {
11441
11740
  show,
11442
11741
  replace,
11443
11742
  close,
11743
+ reorder,
11444
11744
  reloadAll,
11445
11745
  moved,
11446
11746
  removed
@@ -11458,6 +11758,7 @@ function useOpenFiles(scope, layout, layoutStore, prefs, source) {
11458
11758
  show,
11459
11759
  replace,
11460
11760
  close,
11761
+ reorder,
11461
11762
  reloadAll,
11462
11763
  moved,
11463
11764
  removed
@@ -11746,8 +12047,8 @@ function FilesTab({
11746
12047
  const req = revealRequest;
11747
12048
  if (!req || !cwd) return;
11748
12049
  onRevealTaken?.();
11749
- const rel = relativeTo(req, cwd);
11750
12050
  const at = takeRevealPosition?.(req) ?? null;
12051
+ const rel = relativeTo(req, cwd) ?? (req.startsWith("/") && !req.endsWith("/") ? req : null);
11751
12052
  if (rel === null) return;
11752
12053
  if (req.endsWith("/")) {
11753
12054
  setTreeOpen(true);
@@ -1,12 +1,12 @@
1
1
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
2
- import { x, D, O, M, $, V, W, G, P, H, j, z, B, U, v } from "./IU7WZTP6-C4qRhHoM.js";
3
- import { b as an, o as oe$1, K as Kn } from "./UWRPUF3N-BefBSoyh.js";
4
- import { n as ne, L, W as Wt$1, c as jt, x as x$1, b as be } from "./KHUP5TOH-DWatm9RV.js";
5
- import { q, d as de } from "./lazy-DtE8TmIe.js";
2
+ import { x, D, O, M, $, V, W, G, P, H, j, z, B, U, v } from "./IU7WZTP6-DxZaf96h.js";
3
+ import { b as an, o as oe$1, K as Kn } from "./UWRPUF3N-qS1g5ho1.js";
4
+ import { n as ne, L, W as Wt$1, c as jt, x as x$1, b as be } from "./KHUP5TOH-CsVBjKaO.js";
5
+ import { q, d as de } from "./lazy-BrSdiwQa.js";
6
6
  import "./2CHDFZHC-B7OS2WPy.js";
7
- import "./core-Cst33ux7.js";
8
- import "./vendor-BpwX-s_O.js";
9
- import "./vendor-react-bPTwWURR.js";
7
+ import "./core-CZ6gd8oJ.js";
8
+ import "./vendor-CadCDYU0.js";
9
+ import "./vendor-react-BSxSjatM.js";
10
10
  function It(s) {
11
11
  throw new q(s, "semantic", { type: "architecture" });
12
12
  }
@@ -1,13 +1,13 @@
1
- import { i } from "./D5TW5CPZ-COD7XA6N.js";
1
+ import { i } from "./D5TW5CPZ-B5G-YYi_.js";
2
2
  import { f } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x as x$1, D, O, $, L, V as V$1, W, G, P as P$1, H, j, z, B as B$1, U } from "./IU7WZTP6-C4qRhHoM.js";
4
- import { K as Kn, b as an } from "./UWRPUF3N-BefBSoyh.js";
5
- import { W as Wt, x as x$2, c as jt, L as L$1, n as ne, b as be, e as bt$1, P as P$2, S, $ as $t$1 } from "./KHUP5TOH-DWatm9RV.js";
6
- import { q, d as de } from "./lazy-DtE8TmIe.js";
3
+ import { x as x$1, D, O, $, L, V as V$1, W, G, P as P$1, H, j, z, B as B$1, U } from "./IU7WZTP6-DxZaf96h.js";
4
+ import { K as Kn, b as an } from "./UWRPUF3N-qS1g5ho1.js";
5
+ import { W as Wt, x as x$2, c as jt, L as L$1, n as ne, b as be, e as bt$1, P as P$2, S, $ as $t$1 } from "./KHUP5TOH-CsVBjKaO.js";
6
+ import { q, d as de } from "./lazy-BrSdiwQa.js";
7
7
  import "./2CHDFZHC-B7OS2WPy.js";
8
- import "./core-Cst33ux7.js";
9
- import "./vendor-BpwX-s_O.js";
10
- import "./vendor-react-bPTwWURR.js";
8
+ import "./core-CZ6gd8oJ.js";
9
+ import "./vendor-CadCDYU0.js";
10
+ import "./vendor-react-BSxSjatM.js";
11
11
  var ae = class {
12
12
  nodes = /* @__PURE__ */ new Map();
13
13
  labels;
@@ -1,11 +1,11 @@
1
- import { T } from "./OHJ2EJXK-BkSNlV9q.js";
2
- import { b as e, V, i, d as de } from "./lazy-DtE8TmIe.js";
1
+ import { T } from "./OHJ2EJXK-B1XaNGkt.js";
2
+ import { b as e, V, i, d as de } from "./lazy-BrSdiwQa.js";
3
3
  import { c, h } from "./DKTLEL5E-Dj3316cp.js";
4
- import { b as an, _ as _t } from "./UWRPUF3N-BefBSoyh.js";
5
- import { n as ne, x, W as Wt, L, c as jt, b as be$1 } from "./KHUP5TOH-DWatm9RV.js";
6
- import "./core-Cst33ux7.js";
7
- import "./vendor-BpwX-s_O.js";
8
- import "./vendor-react-bPTwWURR.js";
4
+ import { b as an, _ as _t } from "./UWRPUF3N-qS1g5ho1.js";
5
+ import { n as ne, x, W as Wt, L, c as jt, b as be$1 } from "./KHUP5TOH-CsVBjKaO.js";
6
+ import "./core-CZ6gd8oJ.js";
7
+ import "./vendor-CadCDYU0.js";
8
+ import "./vendor-react-BSxSjatM.js";
9
9
  import "./2CHDFZHC-B7OS2WPy.js";
10
10
  var D = class {
11
11
  type = "ishikawa";
@@ -1,4 +1,4 @@
1
- import { V as V$1 } from "./lazy-DtE8TmIe.js";
1
+ import { V as V$1 } from "./lazy-BrSdiwQa.js";
2
2
  var b = /* @__PURE__ */ new WeakMap();
3
3
  function S(n) {
4
4
  let e = n.map((r, i) => i), o = [];
@@ -1,10 +1,10 @@
1
1
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
2
- import { x, D, z as z$1, B, U as U$1, Y as Y$1, O, P, H } from "./IU7WZTP6-C4qRhHoM.js";
3
- import { n as ne$1, L as L$1, x as x$1, S as S$1, W as Wt$1, b as be, l as le, c as jt$1 } from "./KHUP5TOH-DWatm9RV.js";
4
- import { q, d as de, e as ee$1 } from "./lazy-DtE8TmIe.js";
5
- import "./core-Cst33ux7.js";
6
- import "./vendor-BpwX-s_O.js";
7
- import "./vendor-react-bPTwWURR.js";
2
+ import { x, D, z as z$1, B, U as U$1, Y as Y$1, O, P, H } from "./IU7WZTP6-DxZaf96h.js";
3
+ import { n as ne$1, L as L$1, x as x$1, S as S$1, W as Wt$1, b as be, l as le, c as jt$1 } from "./KHUP5TOH-CsVBjKaO.js";
4
+ import { q, d as de, e as ee$1 } from "./lazy-BrSdiwQa.js";
5
+ import "./core-CZ6gd8oJ.js";
6
+ import "./vendor-CadCDYU0.js";
7
+ import "./vendor-react-BSxSjatM.js";
8
8
  function Pe(e) {
9
9
  return e === 32 || e >= 9 && e <= 13 || e > 127 && /\s/.test(String.fromCharCode(e));
10
10
  }
@@ -1,10 +1,10 @@
1
1
  import { s } from "./RVARI57O-DMrXgtoB.js";
2
- import { d as de, q, i, b as e, f as u, t, V, o } from "./lazy-DtE8TmIe.js";
2
+ import { d as de, q, i, b as e, f as u, t, V, o } from "./lazy-BrSdiwQa.js";
3
3
  import { l } from "./DKTLEL5E-Dj3316cp.js";
4
- import { n as ne$1, c as jt$1, x, W as Wt$1, d as de$1, L, h as he, b as be$1, p as pe } from "./KHUP5TOH-DWatm9RV.js";
5
- import "./core-Cst33ux7.js";
6
- import "./vendor-BpwX-s_O.js";
7
- import "./vendor-react-bPTwWURR.js";
4
+ import { n as ne$1, c as jt$1, x, W as Wt$1, d as de$1, L, h as he, b as be$1, p as pe } from "./KHUP5TOH-CsVBjKaO.js";
5
+ import "./core-CZ6gd8oJ.js";
6
+ import "./vendor-CadCDYU0.js";
7
+ import "./vendor-react-BSxSjatM.js";
8
8
  var ne = /^\d+$/, Ft = /^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/, ie = /^\d+px$/;
9
9
  function ut(t2, e2, i2) {
10
10
  return new q(`value for ${t2} ${e2} is invalid, please use a valid ${i2}`, "semantic", { type: "quadrantChart" });
@@ -1,4 +1,4 @@
1
- import { e as ee, r as re, s as se$1, u as ue$1 } from "./lazy-DtE8TmIe.js";
1
+ import { e as ee, r as re, s as se$1, u as ue$1 } from "./lazy-BrSdiwQa.js";
2
2
  var ot = /[&<>"\x00-\x08\x0b\x0c\x0e-\x1f\x7f\ud800-\udfff\ufffe\uffff]/u, rt = /[&<>"]|[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\ud800-\udfff\ufffe\uffff]+/gu, ct = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" }, j = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\ud800-\udfff\ufffe\uffff]/u;
3
3
  function S(t) {
4
4
  return ot.test(t) ? t.replace(rt, (e) => ct[e] ?? "") : t;
@@ -1,10 +1,10 @@
1
- import { U, A as A$1 } from "./NDSCUZ25-D49aLwGZ.js";
2
- import { d as de$1, q as q$1, b as e, V } from "./lazy-DtE8TmIe.js";
1
+ import { U, A as A$1 } from "./NDSCUZ25-B7bWy0v0.js";
2
+ import { d as de$1, q as q$1, b as e, V } from "./lazy-BrSdiwQa.js";
3
3
  import { l } from "./DKTLEL5E-Dj3316cp.js";
4
- import { n as ne, W as Wt$1, b as be$1, S, L as L$1, x, u as ue, c as jt, h as he } from "./KHUP5TOH-DWatm9RV.js";
5
- import "./core-Cst33ux7.js";
6
- import "./vendor-BpwX-s_O.js";
7
- import "./vendor-react-bPTwWURR.js";
4
+ import { n as ne, W as Wt$1, b as be$1, S, L as L$1, x, u as ue, c as jt, h as he } from "./KHUP5TOH-CsVBjKaO.js";
5
+ import "./core-CZ6gd8oJ.js";
6
+ import "./vendor-CadCDYU0.js";
7
+ import "./vendor-react-BSxSjatM.js";
8
8
  var K = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], L = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
9
9
  function Q(t) {
10
10
  return !Number.isNaN(t.getTime());
@@ -1,13 +1,13 @@
1
- import { g } from "./PDMLSE6I-B1fxTWPk.js";
2
- import { R, B, P, I } from "./VSWIZJ7B-QwUQICP_.js";
3
- import { q as q$1, V, b as e, i, d as de } from "./lazy-DtE8TmIe.js";
1
+ import { g } from "./PDMLSE6I-D2L4rd2W.js";
2
+ import { R, B, P, I } from "./VSWIZJ7B-BKZhRmsN.js";
3
+ import { q as q$1, V, b as e, i, d as de } from "./lazy-BrSdiwQa.js";
4
4
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { n as ne$1, e as ee, b as an, o as oe, r as re, _ as _t$1, K as Kn } from "./UWRPUF3N-BefBSoyh.js";
5
+ import { n as ne$1, e as ee, b as an, o as oe, r as re, _ as _t$1, K as Kn } from "./UWRPUF3N-qS1g5ho1.js";
6
6
  import { T, H as H$1 } from "./2CHDFZHC-B7OS2WPy.js";
7
- import { d as de$1, L, x, f as fe, a as ae$1, W as Wt$1, b as be, h as he, n as ne$2 } from "./KHUP5TOH-DWatm9RV.js";
8
- import "./core-Cst33ux7.js";
9
- import "./vendor-BpwX-s_O.js";
10
- import "./vendor-react-bPTwWURR.js";
7
+ import { d as de$1, L, x, f as fe, a as ae$1, W as Wt$1, b as be, h as he, n as ne$2 } from "./KHUP5TOH-CsVBjKaO.js";
8
+ import "./core-CZ6gd8oJ.js";
9
+ import "./vendor-CadCDYU0.js";
10
+ import "./vendor-react-BSxSjatM.js";
11
11
  var mt = 1e5;
12
12
  function Nt(e2) {
13
13
  switch (e2) {