@sinm/kai 1.15.6 → 1.15.10
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/README.md +1 -1
- package/RELEASE_NOTES.md +140 -0
- package/dist-cli/kai-cli.js +134618 -122260
- package/dist-electron/main/image-worker.js +783 -0
- package/dist-electron/main/plugin-host.js +2131 -0
- package/dist-electron/renderer/assets/{ContextDraftStrip-CjD_aIKS.js → ContextDraftStrip-CM-2aRnV.js} +35 -4
- package/dist-electron/renderer/assets/{abnfDiagram-VCTEODGH-CbE-5j7z.js → abnfDiagram-VCTEODGH-iLecW1TW.js} +5 -5
- package/dist-electron/renderer/assets/{architectureDiagram-5GKGNRK7-yQjlB7ZG.js → architectureDiagram-5GKGNRK7-BIvCfRiX.js} +4 -4
- package/dist-electron/renderer/assets/{blockDiagram-I7D4REHJ-WzSifSeB.js → blockDiagram-I7D4REHJ-NRGeggD5.js} +4 -4
- package/dist-electron/renderer/assets/{c4Diagram-7LVT6UL2-CE9PPqyg.js → c4Diagram-7LVT6UL2-BSg76RQu.js} +3 -3
- package/dist-electron/renderer/assets/{channel-Bwk5OnRr.js → channel-CZNpz8aZ.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-2Q5K7J3B-CMuA7hzd.js → chunk-2Q5K7J3B-TpREfQNV.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-5VM5RSS4-BGmDWpiK.js → chunk-5VM5RSS4-Dx5XBylO.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-F27PBJKO-2l13DDtO.js → chunk-F27PBJKO-ssuB-RvV.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-IMKFNOWR-BWPxoDGL.js → chunk-IMKFNOWR-DGJglT7u.js} +4 -4
- package/dist-electron/renderer/assets/{chunk-JWPE2WC7-DO_UqdYo.js → chunk-JWPE2WC7-BxMNJ3kw.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-POPQ4Y6H-CgMCEtdY.js → chunk-POPQ4Y6H-DsOrhId-.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-SVP7TREG-DN-3IlG9.js → chunk-SVP7TREG-tFyzBLY8.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-TICWLB2K-C_yHqIxf.js → chunk-TICWLB2K-BIDFdR0r.js} +5 -5
- package/dist-electron/renderer/assets/{chunk-XXDRQBXY-PgAVqYFz.js → chunk-XXDRQBXY-BfO9Gf-s.js} +1 -1
- package/dist-electron/renderer/assets/{classDiagram-v2-VYDZK3BY-DfOdpdD2.js → classDiagram-ZZMXUADV-CT83I5Ut.js} +7 -7
- package/dist-electron/renderer/assets/{classDiagram-ZZMXUADV-DfOdpdD2.js → classDiagram-v2-VYDZK3BY-CT83I5Ut.js} +7 -7
- package/dist-electron/renderer/assets/{cose-bilkent-JH36ORCC-Cnvclovc.js → cose-bilkent-JH36ORCC-9OEb8wry.js} +2 -2
- package/dist-electron/renderer/assets/{cynefin-OW5HDTMX-mcHo_rI0.js → cynefin-OW5HDTMX-C6cuZzhi.js} +1 -1
- package/dist-electron/renderer/assets/{cynefinDiagram-5FMLGOSQ-DbeJYBSc.js → cynefinDiagram-5FMLGOSQ-Dk2M-Zyq.js} +4 -4
- package/dist-electron/renderer/assets/{dagre-GXQ25YYZ-iGV1ny9W.js → dagre-GXQ25YYZ-Dmj1MVY7.js} +3 -3
- package/dist-electron/renderer/assets/desktop-overlay-reason-Lk3ArWYm.js +19050 -0
- package/dist-electron/renderer/assets/{diagram-S7CK7UJ4-ShxiibVl.js → diagram-S7CK7UJ4-DbapKOYy.js} +5 -5
- package/dist-electron/renderer/assets/{diagram-UQ7AKVKN-CieHgqW1.js → diagram-UQ7AKVKN-DHiczmNF.js} +4 -4
- package/dist-electron/renderer/assets/{diagram-VSXAHHWV-Itrh88Dw.js → diagram-VSXAHHWV-DOXR4DBZ.js} +4 -4
- package/dist-electron/renderer/assets/{diagram-VX7I27RA-C7iFOLds.js → diagram-VX7I27RA-Cb3JjTIf.js} +5 -5
- package/dist-electron/renderer/assets/{diagram-Z3DM3KII-vZxoo-6B.js → diagram-Z3DM3KII-zdd4OLYV.js} +4 -4
- package/dist-electron/renderer/assets/{ebnfDiagram-PWID7BFC-C-JC0fE4.js → ebnfDiagram-PWID7BFC-DIYkJiP7.js} +5 -5
- package/dist-electron/renderer/assets/{erDiagram-RLTQ6QDP-CjA2HjVB.js → erDiagram-RLTQ6QDP-CkH-F7Sv.js} +5 -5
- package/dist-electron/renderer/assets/{flowDiagram-HODETNUW-DB6NEym8.js → flowDiagram-HODETNUW-DsFNh2D5.js} +6 -6
- package/dist-electron/renderer/assets/{ganttDiagram-EL5Y4UJY-BQAp3mcf.js → ganttDiagram-EL5Y4UJY-CJ0JsQc4.js} +2 -2
- package/dist-electron/renderer/assets/{gitGraphDiagram-WWUBYQGX-CdbWsPmz.js → gitGraphDiagram-WWUBYQGX-d-Ppg-Uz.js} +5 -5
- package/dist-electron/renderer/assets/{image-Dv4svyoY.js → image-Br69X9uG.js} +2 -2
- package/dist-electron/renderer/assets/{index-BN25btDJ.js → index-2o21y_A2.js} +32526 -44529
- package/dist-electron/renderer/assets/{index-b6YGvhfY.js → index-B5MYHOIO.js} +3 -3
- package/dist-electron/renderer/assets/{index-iqyO2BeT.js → index-BOyfEjY-.js} +5 -5
- package/dist-electron/renderer/assets/{index-C29v38NI.css → index-CNIvLq5A.css} +5265 -2551
- package/dist-electron/renderer/assets/{index-DFCIIX3A.js → index-D-VQacpk.js} +4 -4
- package/dist-electron/renderer/assets/{index-D7Ss9lNE.js → index-D13SQmIx.js} +65 -11
- package/dist-electron/renderer/assets/{index-DPIe5Yez.js → index-DJvBCnCx.js} +4 -4
- package/dist-electron/renderer/assets/{index-DfdSq5dL.js → index-DQKbw6RS.js} +6 -6
- package/dist-electron/renderer/assets/{infoDiagram-27XIBGKW-CqdoBJIL.js → infoDiagram-27XIBGKW-CzIB68AG.js} +3 -3
- package/dist-electron/renderer/assets/{ishikawaDiagram-5VMMS53U-B-ImA85a.js → ishikawaDiagram-5VMMS53U-D7gtYlK2.js} +2 -2
- package/dist-electron/renderer/assets/{journeyDiagram-3NMN7TZE-ClVdMCq6.js → journeyDiagram-3NMN7TZE-CMlMWBQy.js} +4 -4
- package/dist-electron/renderer/assets/{kanban-definition-UXKFOSKX-s93O9mC-.js → kanban-definition-UXKFOSKX-Dq0uosw3.js} +3 -3
- package/dist-electron/renderer/assets/{layout-Dbkx9J-l.js → layout-NTzyHFiX.js} +1 -1
- package/dist-electron/renderer/assets/{preload-helper-D4nQg559.js → localUrlCodec-DIa41KGx.js} +66 -94
- package/dist-electron/renderer/assets/{mermaid-render-DKBZpycW.js → mermaid-render-gG8hfEWR.js} +44 -44
- package/dist-electron/renderer/assets/{mindmap-definition-YA3MSWOX-DWtFv4JS.js → mindmap-definition-YA3MSWOX-yqBHEzFo.js} +4 -4
- package/dist-electron/renderer/assets/{index.es-B-PFCvGY.js → office-preview-BS5mB52v.js} +526 -1
- package/dist-electron/renderer/assets/overlay-C9ghz5je.css +153 -0
- package/dist-electron/renderer/assets/overlay-CBbZ1t7x.js +246 -0
- package/dist-electron/renderer/assets/{parser-Bse9GBCb.js → parser-BfKF1DWc.js} +3 -3
- package/dist-electron/renderer/assets/{pdf-DghWS7CU.js → pdf-Pm8fIsHg.js} +2 -2
- package/dist-electron/renderer/assets/{pegDiagram-XKGWAZYB-CazTNniw.js → pegDiagram-XKGWAZYB-CQy2w74e.js} +5 -5
- package/dist-electron/renderer/assets/{pieDiagram-E7YTZNPT-DUy0GMEM.js → pieDiagram-E7YTZNPT-DYYvCQil.js} +4 -4
- package/dist-electron/renderer/assets/{ppt-BSkCMEWZ.js → ppt-DmaxBdOX.js} +2 -2
- package/dist-electron/renderer/assets/{pptx-BVHcfCC0.js → pptx-D-wfYDMz.js} +2 -2
- package/dist-electron/renderer/assets/preload-helper-DVzrZ_Op.js +64 -0
- package/dist-electron/renderer/assets/{quadrantDiagram-AXDQQJYC-DD3Hp2Re.js → quadrantDiagram-AXDQQJYC-BD_6NG8F.js} +2 -2
- package/dist-electron/renderer/assets/{railroadDiagram-O6MQD6OU-BueL6fLj.js → railroadDiagram-O6MQD6OU-D2EdLuh6.js} +5 -5
- package/dist-electron/renderer/assets/{requirementDiagram-BXWQKSXE-ytpwrhLl.js → requirementDiagram-BXWQKSXE-BPA9nTLW.js} +4 -4
- package/dist-electron/renderer/assets/{sankeyDiagram-P5KCCOFB-CLilC1YM.js → sankeyDiagram-P5KCCOFB-D4WTrTOn.js} +2 -2
- package/dist-electron/renderer/assets/{sequenceDiagram-WJ2MYXX4-DrBha2YE.js → sequenceDiagram-WJ2MYXX4-Dq6sE9RB.js} +4 -4
- package/dist-electron/renderer/assets/{sizeCapture-INFHLROL-CMpQXmxJ.js → sizeCapture-INFHLROL-jYMm7qP_.js} +2 -2
- package/dist-electron/renderer/assets/{spreadsheet-BvknmhbS.js → spreadsheet-1QmRJRGI.js} +5 -5
- package/dist-electron/renderer/assets/{stateDiagram-D77RDMKH-DdNr6wsi.js → stateDiagram-D77RDMKH-BN6ZpH9T.js} +7 -7
- package/dist-electron/renderer/assets/{stateDiagram-v2-MP3YSRHH-C_2qSETH.js → stateDiagram-v2-MP3YSRHH-KQpnpSwC.js} +6 -6
- package/dist-electron/renderer/assets/{swimlanes-42K2YHIH-D6pHZlJ5.js → swimlanes-42K2YHIH-B8g_jOE8.js} +2 -2
- package/dist-electron/renderer/assets/{swimlanesDiagram-VR7AAH4N-Bbn_zDmu.js → swimlanesDiagram-VR7AAH4N-CnxwEcyu.js} +8 -8
- package/dist-electron/renderer/assets/{timeline-definition-24CTP7MA-Dl5yEcro.js → timeline-definition-24CTP7MA-B2bIdbRb.js} +2 -2
- package/dist-electron/renderer/assets/{vennDiagram-4TSXK5OY-CcgVZsjE.js → vennDiagram-4TSXK5OY-ivHGSZPk.js} +2 -2
- package/dist-electron/renderer/assets/{wardleyDiagram-VM6X3IG4-LMe6ZbWY.js → wardleyDiagram-VM6X3IG4-Cm4RrdIY.js} +4 -4
- package/dist-electron/renderer/assets/{wordDoc-7nY9NJhb.js → wordDoc-DKvAKhDG.js} +2 -2
- package/dist-electron/renderer/assets/{wordDocx-DvAKErWb.js → wordDocx-DeeVPVCg.js} +2 -2
- package/dist-electron/renderer/assets/{xychartDiagram-S5SC5T6Z-D9R_Rm8C.js → xychartDiagram-S5SC5T6Z-CoLQMI-_.js} +2 -2
- package/dist-electron/renderer/index.html +5 -3
- package/dist-electron/renderer/office-preview.html +3 -2
- package/dist-electron/renderer/overlay.html +43 -0
- package/package.json +4 -1
- package/dist-electron/renderer/assets/office-preview-6k-9ssZM.js +0 -239
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { i as instance, a as installOverlayTransport, c as clientExports, j as jsxRuntimeExports, r as reactExports, d as describePluginPageOpenError, b as describePluginViewFailure, e as describeDesktopOverlayReason, P as PluginViewHost } from "./desktop-overlay-reason-Lk3ArWYm.js";
|
|
2
|
+
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
3
|
+
import "./localUrlCodec-DIa41KGx.js";
|
|
4
|
+
const shell = "_shell_n0fba_9";
|
|
5
|
+
const titleBar = "_titleBar_n0fba_24";
|
|
6
|
+
const grip = "_grip_n0fba_45";
|
|
7
|
+
const closeButton = "_closeButton_n0fba_63";
|
|
8
|
+
const content = "_content_n0fba_85";
|
|
9
|
+
const footer = "_footer_n0fba_96";
|
|
10
|
+
const failure = "_failure_n0fba_130";
|
|
11
|
+
const retry = "_retry_n0fba_141";
|
|
12
|
+
const styles = {
|
|
13
|
+
shell,
|
|
14
|
+
titleBar,
|
|
15
|
+
grip,
|
|
16
|
+
closeButton,
|
|
17
|
+
content,
|
|
18
|
+
footer,
|
|
19
|
+
failure,
|
|
20
|
+
retry
|
|
21
|
+
};
|
|
22
|
+
function getOverlayHost() {
|
|
23
|
+
return window.overlayHost ?? null;
|
|
24
|
+
}
|
|
25
|
+
function OverlayShell({ host: host2 }) {
|
|
26
|
+
const [runtime, setRuntime] = reactExports.useState(null);
|
|
27
|
+
const [page, setPage] = reactExports.useState(null);
|
|
28
|
+
const [pageFailure, setPageFailure] = reactExports.useState(null);
|
|
29
|
+
const aliveRef = reactExports.useRef(true);
|
|
30
|
+
const openPage = reactExports.useCallback(async () => {
|
|
31
|
+
setPageFailure(null);
|
|
32
|
+
try {
|
|
33
|
+
const opened = await host2.openPage();
|
|
34
|
+
if (!aliveRef.current) return;
|
|
35
|
+
setPage(opened);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (!aliveRef.current) return;
|
|
38
|
+
setPage(null);
|
|
39
|
+
setPageFailure(describePluginPageOpenError(error));
|
|
40
|
+
}
|
|
41
|
+
}, [host2]);
|
|
42
|
+
reactExports.useEffect(() => {
|
|
43
|
+
aliveRef.current = true;
|
|
44
|
+
void (async () => {
|
|
45
|
+
let own = null;
|
|
46
|
+
try {
|
|
47
|
+
const states = await host2.getState();
|
|
48
|
+
own = states.find((state) => state.pluginId === host2.pluginId) ?? null;
|
|
49
|
+
} catch (error) {
|
|
50
|
+
if (!aliveRef.current) return;
|
|
51
|
+
setPageFailure(describePluginPageOpenError(error));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (!aliveRef.current) return;
|
|
55
|
+
setRuntime(own);
|
|
56
|
+
if (own && own.phase === "failed") return;
|
|
57
|
+
await openPage();
|
|
58
|
+
})();
|
|
59
|
+
return () => {
|
|
60
|
+
aliveRef.current = false;
|
|
61
|
+
};
|
|
62
|
+
}, [host2, openPage]);
|
|
63
|
+
const onPageFailure = reactExports.useCallback((failure22) => {
|
|
64
|
+
if (!aliveRef.current) return;
|
|
65
|
+
setPage(null);
|
|
66
|
+
setPageFailure(describePluginViewFailure(failure22));
|
|
67
|
+
}, []);
|
|
68
|
+
const [chromeVisible, setChromeVisible] = reactExports.useState(false);
|
|
69
|
+
const [dragging, setDragging] = reactExports.useState(false);
|
|
70
|
+
const stripDragRef = reactExports.useRef(null);
|
|
71
|
+
const onStripPointerDown = reactExports.useCallback((event) => {
|
|
72
|
+
if (event.button !== 0) return;
|
|
73
|
+
if (event.target instanceof Element && event.target.closest("button")) return;
|
|
74
|
+
stripDragRef.current = { x: event.screenX, y: event.screenY };
|
|
75
|
+
setDragging(true);
|
|
76
|
+
setChromeVisible(true);
|
|
77
|
+
}, []);
|
|
78
|
+
const stripRef = reactExports.useRef(null);
|
|
79
|
+
const contentRef = reactExports.useRef(null);
|
|
80
|
+
const throughRef = reactExports.useRef(false);
|
|
81
|
+
const [through, setThrough] = reactExports.useState(false);
|
|
82
|
+
const throughTimerRef = reactExports.useRef(0);
|
|
83
|
+
const applyThrough = reactExports.useCallback(
|
|
84
|
+
(through2) => {
|
|
85
|
+
if (through2 === throughRef.current) return;
|
|
86
|
+
throughRef.current = through2;
|
|
87
|
+
setThrough(through2);
|
|
88
|
+
void host2.setMouseThrough(through2);
|
|
89
|
+
window.clearTimeout(throughTimerRef.current);
|
|
90
|
+
if (through2) {
|
|
91
|
+
throughTimerRef.current = window.setTimeout(() => applyThrough(false), 1500);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
[host2]
|
|
95
|
+
);
|
|
96
|
+
reactExports.useEffect(() => {
|
|
97
|
+
const inside = (event, el) => {
|
|
98
|
+
if (!el) return false;
|
|
99
|
+
const box = el.getBoundingClientRect();
|
|
100
|
+
return event.clientX >= box.left && event.clientX < box.right && event.clientY >= box.top && event.clientY < box.bottom;
|
|
101
|
+
};
|
|
102
|
+
const onMove = (event) => {
|
|
103
|
+
const drag = stripDragRef.current;
|
|
104
|
+
if (!drag)
|
|
105
|
+
applyThrough(!inside(event, stripRef.current) && !inside(event, contentRef.current));
|
|
106
|
+
if (!drag) return;
|
|
107
|
+
const dx = event.screenX - drag.x;
|
|
108
|
+
const dy = event.screenY - drag.y;
|
|
109
|
+
drag.x = event.screenX;
|
|
110
|
+
drag.y = event.screenY;
|
|
111
|
+
void host2.moveBy(dx, dy);
|
|
112
|
+
};
|
|
113
|
+
const endStripDrag = () => {
|
|
114
|
+
if (!stripDragRef.current) return;
|
|
115
|
+
stripDragRef.current = null;
|
|
116
|
+
setDragging(false);
|
|
117
|
+
};
|
|
118
|
+
window.addEventListener("pointermove", onMove);
|
|
119
|
+
window.addEventListener("pointerup", endStripDrag);
|
|
120
|
+
window.addEventListener("pointercancel", endStripDrag);
|
|
121
|
+
return () => {
|
|
122
|
+
window.removeEventListener("pointermove", onMove);
|
|
123
|
+
window.removeEventListener("pointerup", endStripDrag);
|
|
124
|
+
window.removeEventListener("pointercancel", endStripDrag);
|
|
125
|
+
window.clearTimeout(throughTimerRef.current);
|
|
126
|
+
};
|
|
127
|
+
}, [applyThrough, host2]);
|
|
128
|
+
const replyBounds = reactExports.useCallback(
|
|
129
|
+
async (target) => {
|
|
130
|
+
if (!target) return;
|
|
131
|
+
let rect = null;
|
|
132
|
+
try {
|
|
133
|
+
const states = await host2.getState();
|
|
134
|
+
rect = states.find((state) => state.pluginId === host2.pluginId)?.bounds ?? null;
|
|
135
|
+
} catch {
|
|
136
|
+
rect = null;
|
|
137
|
+
}
|
|
138
|
+
target.postMessage(
|
|
139
|
+
{
|
|
140
|
+
type: "kai.overlay.bounds",
|
|
141
|
+
bounds: rect ? {
|
|
142
|
+
...rect,
|
|
143
|
+
availWidth: window.screen.availWidth,
|
|
144
|
+
availHeight: window.screen.availHeight
|
|
145
|
+
} : null
|
|
146
|
+
},
|
|
147
|
+
"*"
|
|
148
|
+
);
|
|
149
|
+
},
|
|
150
|
+
[host2]
|
|
151
|
+
);
|
|
152
|
+
const moveAccRef = reactExports.useRef({ dx: 0, dy: 0, scheduled: false });
|
|
153
|
+
const flushMove = reactExports.useCallback(() => {
|
|
154
|
+
const acc = moveAccRef.current;
|
|
155
|
+
acc.scheduled = false;
|
|
156
|
+
const { dx, dy } = acc;
|
|
157
|
+
acc.dx = 0;
|
|
158
|
+
acc.dy = 0;
|
|
159
|
+
if (dx !== 0 || dy !== 0) void host2.moveBy(dx, dy);
|
|
160
|
+
}, [host2]);
|
|
161
|
+
const scheduleMove = reactExports.useCallback(() => {
|
|
162
|
+
const acc = moveAccRef.current;
|
|
163
|
+
if (acc.scheduled) return;
|
|
164
|
+
acc.scheduled = true;
|
|
165
|
+
requestAnimationFrame(flushMove);
|
|
166
|
+
window.setTimeout(flushMove, 32);
|
|
167
|
+
}, [flushMove]);
|
|
168
|
+
reactExports.useEffect(() => {
|
|
169
|
+
const onMessage = (event) => {
|
|
170
|
+
const frame = document.querySelector("iframe");
|
|
171
|
+
if (!frame || event.source !== frame.contentWindow) return;
|
|
172
|
+
const data = event.data;
|
|
173
|
+
if (!data || typeof data !== "object") return;
|
|
174
|
+
if (data.type === "kai.overlay.move") {
|
|
175
|
+
if (typeof data.dx !== "number" || typeof data.dy !== "number") return;
|
|
176
|
+
if (!Number.isFinite(data.dx) || !Number.isFinite(data.dy)) return;
|
|
177
|
+
moveAccRef.current.dx += data.dx;
|
|
178
|
+
moveAccRef.current.dy += data.dy;
|
|
179
|
+
scheduleMove();
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (data.type === "kai.overlay.query-bounds") void replyBounds(frame.contentWindow);
|
|
183
|
+
};
|
|
184
|
+
window.addEventListener("message", onMessage);
|
|
185
|
+
return () => window.removeEventListener("message", onMessage);
|
|
186
|
+
}, [host2, replyBounds, scheduleMove]);
|
|
187
|
+
const close = reactExports.useCallback(() => {
|
|
188
|
+
void host2.setOverlay(false);
|
|
189
|
+
}, [host2]);
|
|
190
|
+
const windowFailure = runtime?.phase === "failed" ? describeDesktopOverlayReason(instance.t.bind(instance), runtime.reason) : null;
|
|
191
|
+
const failure2 = windowFailure ?? pageFailure;
|
|
192
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
className: styles.shell,
|
|
196
|
+
"data-through": through ? "true" : void 0,
|
|
197
|
+
"data-dragging": dragging ? "true" : void 0,
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: styles.titleBar,
|
|
203
|
+
"data-chrome": chromeVisible ? "true" : void 0,
|
|
204
|
+
ref: stripRef,
|
|
205
|
+
onPointerDown: onStripPointerDown,
|
|
206
|
+
onPointerEnter: () => setChromeVisible(true),
|
|
207
|
+
onPointerLeave: () => {
|
|
208
|
+
if (stripDragRef.current) return;
|
|
209
|
+
setChromeVisible(false);
|
|
210
|
+
},
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles.grip, "aria-hidden": "true" }),
|
|
213
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
214
|
+
"button",
|
|
215
|
+
{
|
|
216
|
+
type: "button",
|
|
217
|
+
className: styles.closeButton,
|
|
218
|
+
onClick: close,
|
|
219
|
+
title: instance.t("pluginPage.overlayClose"),
|
|
220
|
+
"aria-label": instance.t("pluginPage.overlayClose"),
|
|
221
|
+
children: "✕"
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.content, ref: contentRef, children: failure2 ? null : page ? /* @__PURE__ */ jsxRuntimeExports.jsx(PluginViewHost, { openResult: page, onFailure: onPageFailure }) : null }),
|
|
228
|
+
failure2 || pageFailure ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.footer, children: [
|
|
229
|
+
failure2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles.failure, role: "status", children: failure2 }) : null,
|
|
230
|
+
!windowFailure && pageFailure ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: styles.retry, onClick: () => void openPage(), children: instance.t("pluginPage.overlayRetry") }) : null
|
|
231
|
+
] }) : null
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function mount(host2) {
|
|
237
|
+
installOverlayTransport((request) => host2.invokePage(request));
|
|
238
|
+
const container = document.querySelector("#overlay-root");
|
|
239
|
+
if (container) clientExports.createRoot(container).render(/* @__PURE__ */ jsxRuntimeExports.jsx(OverlayShell, { host: host2 }));
|
|
240
|
+
}
|
|
241
|
+
const host = getOverlayHost();
|
|
242
|
+
if (host) {
|
|
243
|
+
void instance.changeLanguage(host.locale).catch(() => void 0).then(() => mount(host));
|
|
244
|
+
} else {
|
|
245
|
+
console.error("overlayHost bridge missing: overlay window created without its preload");
|
|
246
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as tinycolor } from "./spreadsheet-
|
|
1
|
+
import { t as tinycolor } from "./spreadsheet-1QmRJRGI.js";
|
|
2
2
|
import { J as JSZip } from "./jszip.min-CkAgz-ea.js";
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./preload-helper-
|
|
3
|
+
import "./index-B5MYHOIO.js";
|
|
4
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
5
5
|
import "./assets-tzxXyukA.js";
|
|
6
6
|
import "./zoom-jYhmkcQX.js";
|
|
7
7
|
import "./options-SsS0Y_ki.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pdfIdentityFontRepair-DOq_xM9F.js","./_commonjsHelpers-DWwsNxpa.js","./index-C0ieAyi1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { r as resolveFileViewerRuntimeAssetBaseUrl, f as resolveFileViewerPdfAssetUrls } from "./assets-tzxXyukA.js";
|
|
4
|
-
import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-B5MYHOIO.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { f as formatCssPixels, b as buildPrintPageStyle } from "./printLayout-CIlG68Nj.js";
|
|
7
7
|
const DEFAULT_PDF_RANGE_CHUNK_SIZE = 64 * 1024;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getStyles, r as renderer, d as db } from "./chunk-SVP7TREG-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as __name, l as log } from "./mermaid-render-
|
|
1
|
+
import { g as getStyles, r as renderer, d as db } from "./chunk-SVP7TREG-tFyzBLY8.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-JWPE2WC7-BxMNJ3kw.js";
|
|
3
|
+
import { _ as __name, l as log } from "./mermaid-render-gG8hfEWR.js";
|
|
4
4
|
import "./transform-CHg3xPdk.js";
|
|
5
|
-
import { M as MermaidParseError, d as createRailroadPegServices } from "./cynefin-OW5HDTMX-
|
|
6
|
-
import "./preload-helper-
|
|
5
|
+
import { M as MermaidParseError, d as createRailroadPegServices } from "./cynefin-OW5HDTMX-C6cuZzhi.js";
|
|
6
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
7
7
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
8
8
|
import "./purify.es-CQMgT1WF.js";
|
|
9
9
|
var langiumParser = createRailroadPegServices().RailroadPeg.parser.LangiumParser;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as populateCommonDb } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, n as getDiagramTitle, m as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, z as cleanAndMerge, C as selectSvgElement, D as parseFontSize, d as configureSvgSize, o as clear, A as defaultConfig_default } from "./mermaid-render-
|
|
3
|
-
import { p as parse } from "./cynefin-OW5HDTMX-
|
|
1
|
+
import { p as populateCommonDb } from "./chunk-JWPE2WC7-BxMNJ3kw.js";
|
|
2
|
+
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, n as getDiagramTitle, m as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, z as cleanAndMerge, C as selectSvgElement, D as parseFontSize, d as configureSvgSize, o as clear, A as defaultConfig_default } from "./mermaid-render-gG8hfEWR.js";
|
|
3
|
+
import { p as parse } from "./cynefin-OW5HDTMX-C6cuZzhi.js";
|
|
4
4
|
import "./transform-CHg3xPdk.js";
|
|
5
5
|
import { a as arc } from "./arc-Daq8zgA3.js";
|
|
6
6
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
7
7
|
import { p as pie$1 } from "./pie-CWywzpvW.js";
|
|
8
|
-
import "./preload-helper-
|
|
8
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
9
9
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
10
10
|
import "./purify.es-CQMgT1WF.js";
|
|
11
11
|
import "./init-ZxktEp_H.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
1
|
+
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
2
2
|
import { r as resolveFileViewerRuntimeAssetBaseUrl, c as resolveFileViewerAssetUrl } from "./assets-tzxXyukA.js";
|
|
3
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale, D as DEFAULT_RENDERER_DEFINITIONS } from "./index-
|
|
3
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale, D as DEFAULT_RENDERER_DEFINITIONS } from "./index-B5MYHOIO.js";
|
|
4
4
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
5
5
|
import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
|
|
6
6
|
const MIN_ZOOM = 0.25;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./billboard-zBXm8Pa_.js","./transform-CHg3xPdk.js","./linear-C4ZUA3YQ.js","./init-ZxktEp_H.js","./defaultLocale-DCJjMHFj.js","./index-BEeZTDSC.js","./time-DU7mEi8A.js","./ordinal-CxptdPJm.js","./arc-Daq8zgA3.js","./pie-CWywzpvW.js","./index-BW_kBMIl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { p as purify_default } from "./purify.es-CQMgT1WF.js";
|
|
4
4
|
import { e as resolveFileViewerPresentationWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-tzxXyukA.js";
|
|
5
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale, D as DEFAULT_RENDERER_DEFINITIONS } from "./index-
|
|
5
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale, D as DEFAULT_RENDERER_DEFINITIONS } from "./index-B5MYHOIO.js";
|
|
6
6
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
7
7
|
import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
|
|
8
8
|
const asChartQueue = (charts) => {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
2
|
+
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
3
|
+
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
4
|
+
})();
|
|
5
|
+
const assetsURL = function(dep, importerUrl) {
|
|
6
|
+
return new URL(dep, importerUrl).href;
|
|
7
|
+
};
|
|
8
|
+
const seen = {};
|
|
9
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
10
|
+
let promise = Promise.resolve();
|
|
11
|
+
if (deps && deps.length > 0) {
|
|
12
|
+
let allSettled = function(promises$2) {
|
|
13
|
+
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
14
|
+
status: "fulfilled",
|
|
15
|
+
value: value$1
|
|
16
|
+
}), (reason) => ({
|
|
17
|
+
status: "rejected",
|
|
18
|
+
reason
|
|
19
|
+
}))));
|
|
20
|
+
};
|
|
21
|
+
const links = document.getElementsByTagName("link");
|
|
22
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
23
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
24
|
+
promise = allSettled(deps.map((dep) => {
|
|
25
|
+
dep = assetsURL(dep, importerUrl);
|
|
26
|
+
if (dep in seen) return;
|
|
27
|
+
seen[dep] = true;
|
|
28
|
+
const isCss = dep.endsWith(".css");
|
|
29
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
30
|
+
if (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
31
|
+
const link$1 = links[i$1];
|
|
32
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
33
|
+
}
|
|
34
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
35
|
+
const link = document.createElement("link");
|
|
36
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
37
|
+
if (!isCss) link.as = "script";
|
|
38
|
+
link.crossOrigin = "";
|
|
39
|
+
link.href = dep;
|
|
40
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
41
|
+
document.head.appendChild(link);
|
|
42
|
+
if (isCss) return new Promise((res, rej) => {
|
|
43
|
+
link.addEventListener("load", res);
|
|
44
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
45
|
+
});
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
function handlePreloadError(err$2) {
|
|
49
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
50
|
+
e$1.payload = err$2;
|
|
51
|
+
window.dispatchEvent(e$1);
|
|
52
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
53
|
+
}
|
|
54
|
+
return promise.then((res) => {
|
|
55
|
+
for (const item of res || []) {
|
|
56
|
+
if (item.status !== "rejected") continue;
|
|
57
|
+
handlePreloadError(item.reason);
|
|
58
|
+
}
|
|
59
|
+
return baseModule().catch(handlePreloadError);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
__vitePreload as _
|
|
64
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, o as clear, A as defaultConfig_default, i as sanitizeText, E as getThemeVariables3 } from "./mermaid-render-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, o as clear, A as defaultConfig_default, i as sanitizeText, E as getThemeVariables3 } from "./mermaid-render-gG8hfEWR.js";
|
|
2
2
|
import { s as select } from "./transform-CHg3xPdk.js";
|
|
3
3
|
import { l as linear } from "./linear-C4ZUA3YQ.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
5
5
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
6
6
|
import "./purify.es-CQMgT1WF.js";
|
|
7
7
|
import "./init-ZxktEp_H.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getStyles, r as renderer, d as db } from "./chunk-SVP7TREG-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as __name, l as log } from "./mermaid-render-
|
|
1
|
+
import { g as getStyles, r as renderer, d as db } from "./chunk-SVP7TREG-tFyzBLY8.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-JWPE2WC7-BxMNJ3kw.js";
|
|
3
|
+
import { _ as __name, l as log } from "./mermaid-render-gG8hfEWR.js";
|
|
4
4
|
import "./transform-CHg3xPdk.js";
|
|
5
|
-
import { M as MermaidParseError, c as createRailroadServices } from "./cynefin-OW5HDTMX-
|
|
6
|
-
import "./preload-helper-
|
|
5
|
+
import { M as MermaidParseError, c as createRailroadServices } from "./cynefin-OW5HDTMX-C6cuZzhi.js";
|
|
6
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
7
7
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
8
8
|
import "./purify.es-CQMgT1WF.js";
|
|
9
9
|
var langiumParser = createRailroadServices().Railroad.parser.LangiumParser;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-POPQ4Y6H-
|
|
3
|
-
import { _ as __name, x as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, m as setDiagramTitle, n as getDiagramTitle, c as getConfig2, l as log, o as clear, q as __export, t as getRegisteredLayoutAlgorithm, u as render, v as utils_default } from "./mermaid-render-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-XXDRQBXY-BfO9Gf-s.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-POPQ4Y6H-DsOrhId-.js";
|
|
3
|
+
import { _ as __name, x as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, m as setDiagramTitle, n as getDiagramTitle, c as getConfig2, l as log, o as clear, q as __export, t as getRegisteredLayoutAlgorithm, u as render, v as utils_default } from "./mermaid-render-gG8hfEWR.js";
|
|
4
4
|
import "./transform-CHg3xPdk.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
6
6
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
7
7
|
import "./purify.es-CQMgT1WF.js";
|
|
8
8
|
var parser = (function() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as setDiagramTitle, n as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, aS as defaultConfig2, U as setupGraphViewbox, o as clear, j as common_default } from "./mermaid-render-
|
|
1
|
+
import { m as setDiagramTitle, n as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, aS as defaultConfig2, U as setupGraphViewbox, o as clear, j as common_default } from "./mermaid-render-gG8hfEWR.js";
|
|
2
2
|
import { s as select } from "./transform-CHg3xPdk.js";
|
|
3
3
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
5
5
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
6
6
|
import "./purify.es-CQMgT1WF.js";
|
|
7
7
|
import "./init-ZxktEp_H.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as ImperativeState } from "./chunk-2Q5K7J3B-
|
|
2
|
-
import { _ as __name, F as setConfig2, c as getConfig2, l as log, G as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, m as setDiagramTitle, a as getAccTitle, g as getAccDescription, n as getDiagramTitle, H as load, J as JSON_SCHEMA, o as clear, i as sanitizeText, v as utils_default, I as hasKatex, K as calculateMathMLDimensions, D as parseFontSize, Z as ZERO_WIDTH_SPACE, x as getConfig, L as getUrl, M as renderKatexSanitized } from "./mermaid-render-
|
|
3
|
-
import { a as drawBackgroundRect, g as getTextObj, b as getNoteRect, d as drawRect, c as drawEmbeddedImage, e as drawImage } from "./chunk-F27PBJKO-
|
|
1
|
+
import { I as ImperativeState } from "./chunk-2Q5K7J3B-TpREfQNV.js";
|
|
2
|
+
import { _ as __name, F as setConfig2, c as getConfig2, l as log, G as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, m as setDiagramTitle, a as getAccTitle, g as getAccDescription, n as getDiagramTitle, H as load, J as JSON_SCHEMA, o as clear, i as sanitizeText, v as utils_default, I as hasKatex, K as calculateMathMLDimensions, D as parseFontSize, Z as ZERO_WIDTH_SPACE, x as getConfig, L as getUrl, M as renderKatexSanitized } from "./mermaid-render-gG8hfEWR.js";
|
|
3
|
+
import { a as drawBackgroundRect, g as getTextObj, b as getNoteRect, d as drawRect, c as drawEmbeddedImage, e as drawImage } from "./chunk-F27PBJKO-ssuB-RvV.js";
|
|
4
4
|
import { s as select } from "./transform-CHg3xPdk.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
6
6
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
7
7
|
import "./purify.es-CQMgT1WF.js";
|
|
8
8
|
var parser = (function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __name } from "./mermaid-render-
|
|
2
|
-
import "./preload-helper-
|
|
1
|
+
import { _ as __name } from "./mermaid-render-gG8hfEWR.js";
|
|
2
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
4
4
|
import "./purify.es-CQMgT1WF.js";
|
|
5
5
|
import "./transform-CHg3xPdk.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./office-preview-BS5mB52v.js","./preload-helper-DVzrZ_Op.js","./localUrlCodec-DIa41KGx.js","./office-preview-D1GRjX_y.css","./parser-BfKF1DWc.js","./jszip.min-CkAgz-ea.js","./index-B5MYHOIO.js","./assets-tzxXyukA.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { d as resolveFileViewerSpreadsheetWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-tzxXyukA.js";
|
|
4
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B5MYHOIO.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { r as resolveFileViewerColorScheme } from "./options-SsS0Y_ki.js";
|
|
7
7
|
const createFileViewerWorkerController = (factory, options = {}) => {
|
|
@@ -2617,7 +2617,7 @@ const resolveEVirtTableStyleText = (documentRef) => {
|
|
|
2617
2617
|
const loadEVirtTable = async (documentRef) => {
|
|
2618
2618
|
const documents = collectEVirtTableStyleDocuments(documentRef);
|
|
2619
2619
|
const stylesBeforeImport = new Set(collectStyleElements(documents));
|
|
2620
|
-
const module = await __vitePreload(() => import("./
|
|
2620
|
+
const module = await __vitePreload(() => import("./office-preview-BS5mB52v.js").then((n) => n.i), true ? __vite__mapDeps([4,5,6,7]) : void 0, import.meta.url);
|
|
2621
2621
|
const injectedStyles = collectStyleElements(documents).filter((style) => !stylesBeforeImport.has(style) && isEVirtTableStyleText(style.textContent || ""));
|
|
2622
2622
|
const injectedStyle = injectedStyles[injectedStyles.length - 1];
|
|
2623
2623
|
if (injectedStyle) {
|
|
@@ -2696,7 +2696,7 @@ class MainThreadSpreadsheetWorker {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
async loadParser() {
|
|
2698
2698
|
if (!this.parserPromise) {
|
|
2699
|
-
this.parserPromise = __vitePreload(() => import("./parser-
|
|
2699
|
+
this.parserPromise = __vitePreload(() => import("./parser-BfKF1DWc.js"), true ? __vite__mapDeps([8,9,1,2,10,5,11,12,13]) : void 0, import.meta.url);
|
|
2700
2700
|
}
|
|
2701
2701
|
const parser = await this.parserPromise;
|
|
2702
2702
|
if (!this.context) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-IMKFNOWR-
|
|
2
|
-
import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, O as Graph, j as common_default, L as getUrl, v as utils_default } from "./mermaid-render-
|
|
1
|
+
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-IMKFNOWR-DGJglT7u.js";
|
|
2
|
+
import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, O as Graph, j as common_default, L as getUrl, v as utils_default } from "./mermaid-render-gG8hfEWR.js";
|
|
3
3
|
import { s as select, l as line$1, c as curveBasis } from "./transform-CHg3xPdk.js";
|
|
4
|
-
import { l as layout } from "./layout-
|
|
5
|
-
import "./chunk-XXDRQBXY-
|
|
6
|
-
import "./chunk-POPQ4Y6H-
|
|
7
|
-
import "./chunk-F27PBJKO-
|
|
4
|
+
import { l as layout } from "./layout-NTzyHFiX.js";
|
|
5
|
+
import "./chunk-XXDRQBXY-BfO9Gf-s.js";
|
|
6
|
+
import "./chunk-POPQ4Y6H-DsOrhId-.js";
|
|
7
|
+
import "./chunk-F27PBJKO-ssuB-RvV.js";
|
|
8
8
|
import "./purify.es-CQMgT1WF.js";
|
|
9
|
-
import "./preload-helper-
|
|
9
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
10
10
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
11
11
|
var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
|
|
12
12
|
var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-IMKFNOWR-
|
|
2
|
-
import { _ as __name } from "./mermaid-render-
|
|
1
|
+
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-IMKFNOWR-DGJglT7u.js";
|
|
2
|
+
import { _ as __name } from "./mermaid-render-gG8hfEWR.js";
|
|
3
3
|
import "./transform-CHg3xPdk.js";
|
|
4
|
-
import "./chunk-XXDRQBXY-
|
|
5
|
-
import "./chunk-POPQ4Y6H-
|
|
6
|
-
import "./chunk-F27PBJKO-
|
|
4
|
+
import "./chunk-XXDRQBXY-BfO9Gf-s.js";
|
|
5
|
+
import "./chunk-POPQ4Y6H-DsOrhId-.js";
|
|
6
|
+
import "./chunk-F27PBJKO-ssuB-RvV.js";
|
|
7
7
|
import "./purify.es-CQMgT1WF.js";
|
|
8
|
-
import "./preload-helper-
|
|
8
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
9
9
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
10
10
|
var diagram = {
|
|
11
11
|
parser: stateDiagram_default,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a9 as createCommonLayoutRenderer, l as log, _ as __name, ak as markerOffsets } from "./mermaid-render-
|
|
1
|
+
import { a9 as createCommonLayoutRenderer, l as log, _ as __name, ak as markerOffsets } from "./mermaid-render-gG8hfEWR.js";
|
|
2
2
|
import "./transform-CHg3xPdk.js";
|
|
3
|
-
import "./preload-helper-
|
|
3
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
4
4
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
5
5
|
import "./purify.es-CQMgT1WF.js";
|
|
6
6
|
var ROUNDED_CORNER_RADIUS = 5;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as createFlowDiagram, s as styles_default } from "./flowDiagram-HODETNUW-
|
|
2
|
-
import { _ as __name } from "./mermaid-render-
|
|
1
|
+
import { c as createFlowDiagram, s as styles_default } from "./flowDiagram-HODETNUW-DsFNh2D5.js";
|
|
2
|
+
import { _ as __name } from "./mermaid-render-gG8hfEWR.js";
|
|
3
3
|
import "./transform-CHg3xPdk.js";
|
|
4
|
-
import "./chunk-5VM5RSS4-
|
|
5
|
-
import "./chunk-XXDRQBXY-
|
|
6
|
-
import "./chunk-POPQ4Y6H-
|
|
7
|
-
import "./chunk-F27PBJKO-
|
|
4
|
+
import "./chunk-5VM5RSS4-Dx5XBylO.js";
|
|
5
|
+
import "./chunk-XXDRQBXY-BfO9Gf-s.js";
|
|
6
|
+
import "./chunk-POPQ4Y6H-DsOrhId-.js";
|
|
7
|
+
import "./chunk-F27PBJKO-ssuB-RvV.js";
|
|
8
8
|
import "./purify.es-CQMgT1WF.js";
|
|
9
|
-
import "./channel-
|
|
10
|
-
import "./preload-helper-
|
|
9
|
+
import "./channel-CZNpz8aZ.js";
|
|
10
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
11
11
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
12
12
|
var getStyles = /* @__PURE__ */ __name((options) => `${styles_default(options)}
|
|
13
13
|
.swimlane.cluster rect {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __name, x as getConfig, R as isDark, S as lighten, T as darken, c as getConfig2, l as log, C as selectSvgElement, D as parseFontSize, U as setupGraphViewbox, q as __export, V as commonDb_exports, o as clear } from "./mermaid-render-
|
|
1
|
+
import { _ as __name, x as getConfig, R as isDark, S as lighten, T as darken, c as getConfig2, l as log, C as selectSvgElement, D as parseFontSize, U as setupGraphViewbox, q as __export, V as commonDb_exports, o as clear } from "./mermaid-render-gG8hfEWR.js";
|
|
2
2
|
import { s as select } from "./transform-CHg3xPdk.js";
|
|
3
3
|
import { a as arc } from "./arc-Daq8zgA3.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
5
5
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
6
6
|
import "./purify.es-CQMgT1WF.js";
|
|
7
7
|
var parser = (function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as adjustChannel, s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, x as getConfig, C as selectSvgElement, a4 as at, R as isDark, S as lighten, T as darken, d as configureSvgSize, o as clear, z as cleanAndMerge, A as defaultConfig_default } from "./mermaid-render-
|
|
1
|
+
import { aO as adjustChannel, s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, x as getConfig, C as selectSvgElement, a4 as at, R as isDark, S as lighten, T as darken, d as configureSvgSize, o as clear, z as cleanAndMerge, A as defaultConfig_default } from "./mermaid-render-gG8hfEWR.js";
|
|
2
2
|
import { s as select } from "./transform-CHg3xPdk.js";
|
|
3
|
-
import "./preload-helper-
|
|
3
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
4
4
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
5
5
|
import "./purify.es-CQMgT1WF.js";
|
|
6
6
|
const transparentize = (color, amount) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as populateCommonDb } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, E as getThemeVariables3, x as getConfig, z as cleanAndMerge, l as log, C as selectSvgElement, d as configureSvgSize, o as clear, c as getConfig2 } from "./mermaid-render-
|
|
3
|
-
import { p as parse } from "./cynefin-OW5HDTMX-
|
|
4
|
-
import "./preload-helper-
|
|
1
|
+
import { p as populateCommonDb } from "./chunk-JWPE2WC7-BxMNJ3kw.js";
|
|
2
|
+
import { s as setAccDescription, g as getAccDescription, n as getDiagramTitle, m as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, E as getThemeVariables3, x as getConfig, z as cleanAndMerge, l as log, C as selectSvgElement, d as configureSvgSize, o as clear, c as getConfig2 } from "./mermaid-render-gG8hfEWR.js";
|
|
3
|
+
import { p as parse } from "./cynefin-OW5HDTMX-C6cuZzhi.js";
|
|
4
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
5
5
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
6
6
|
import "./purify.es-CQMgT1WF.js";
|
|
7
7
|
import "./transform-CHg3xPdk.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-
|
|
1
|
+
import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B5MYHOIO.js";
|
|
2
2
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
3
3
|
import { b as buildPrintPageStyle, a as applyPrintPageSize, f as formatCssPixels } from "./printLayout-CIlG68Nj.js";
|
|
4
4
|
import { p as purify_default } from "./purify.es-CQMgT1WF.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DVzrZ_Op.js";
|
|
6
6
|
const globalBuffer = globalThis.Buffer;
|
|
7
7
|
let uniqueIdCounter = 0;
|
|
8
8
|
function escapeHtml(text) {
|