@oomol-lab/open-flow 0.1.0-alpha.0 → 0.1.0-alpha.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.
Files changed (72) hide show
  1. package/dist/browser/addNodeOptions-BwrMvPQC.js +5230 -0
  2. package/dist/browser/assets/typeScriptWorker-CaA4llbX.js +59850 -0
  3. package/dist/browser/carbon-DMCVsjHo.js +53 -0
  4. package/dist/browser/{project-change.js → change-Cu6pQIit.js} +15 -45
  5. package/dist/browser/createLucideIcon-COMgwa_u.js +5317 -0
  6. package/dist/browser/createResourceDialog-YgMLylQz.js +467 -0
  7. package/dist/browser/{dist-o4dBuwiG.js → dist-3Mj8q8Pr.js} +28 -28
  8. package/dist/browser/{dist-CIq6ue3I.js → dist-BKuSVKCC.js} +1115 -1103
  9. package/dist/browser/{dist-DL0SDskM.js → dist-BMqL-qR5.js} +473 -906
  10. package/dist/browser/{dist-CLZJNoWB.js → dist-BN4ZCyOB.js} +10 -10
  11. package/dist/browser/{dist-zyY--HOV.js → dist-BpopSHwP.js} +3 -3
  12. package/dist/browser/dist-C46JByB-.js +252 -0
  13. package/dist/browser/{dist-BbyiRq3c.js → dist-CJpzJrLM.js} +294 -284
  14. package/dist/browser/{dist-Djd02JSy.js → dist-CPuF50D9.js} +198 -198
  15. package/dist/browser/{dist-CvcmLAMW.js → dist-CUSrALSX.js} +115 -115
  16. package/dist/browser/dist-CeSZ2xSM.js +444 -0
  17. package/dist/browser/{dist-7oZK9QXZ.js → dist-DMi8_lU3.js} +5 -5
  18. package/dist/browser/{dist-B9OV3YTx.js → dist-DUzA0Ukh.js} +22 -22
  19. package/dist/browser/{dist-aWSZx4q1.js → dist-DWADUsVB.js} +75 -75
  20. package/dist/browser/{dist-BLk5M0uK.js → dist-Mecbzdl2.js} +3 -3
  21. package/dist/browser/{esm-DXw7EADW.js → esm-CvAs_mAS.js} +14 -24
  22. package/dist/browser/field-BrEG-7ap.js +312 -0
  23. package/dist/browser/flow-authoring-edge.d.ts +3 -0
  24. package/dist/browser/flow-authoring-module.d.ts +4 -0
  25. package/dist/browser/flow-authoring-node.d.ts +84 -0
  26. package/dist/browser/flow-authoring.d.ts +4 -0
  27. package/dist/browser/flow-authoring.js +522 -0
  28. package/dist/browser/{project-change.d.ts → flow-change.d.ts} +27 -36
  29. package/dist/browser/flow-change.js +231 -0
  30. package/dist/browser/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  31. package/dist/browser/flowRunInputEditorStore-DXOyyY7o.js +8219 -0
  32. package/dist/browser/flowWorkspace-X_T_DcQf.js +46003 -0
  33. package/dist/browser/{lib-S4ccuMeT.js → lib-GrGxYjsJ.js} +3 -5
  34. package/dist/browser/licenses.md +620 -12
  35. package/dist/browser/{markdownContent-ZZFfSRqO.js → markdownContent-BI-2PmDX.js} +4071 -4035
  36. package/dist/browser/typeScriptSession-Dagu_tRs.js +2549 -0
  37. package/dist/browser/workbench-contract.d.ts +4 -5
  38. package/dist/browser/workbench.css +1 -1
  39. package/dist/browser/workbench.d.ts +2 -1
  40. package/dist/browser/workbench.js +3920 -2138
  41. package/dist/common/connector-action.d.ts +6 -0
  42. package/dist/common/connector-action.js +38 -30
  43. package/dist/common/control-api-conformance.js +223 -359
  44. package/dist/common/control-api-errors.d.ts +20 -24
  45. package/dist/common/control-api.d.ts +44 -73
  46. package/dist/common/control-api.js +150 -203
  47. package/dist/common/cron-trigger.d.ts +1 -1
  48. package/dist/common/cron-trigger.js +1 -1
  49. package/dist/common/flow-encoding.d.ts +11 -0
  50. package/dist/common/{project-encoding.js → flow-encoding.js} +14 -13
  51. package/dist/common/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  52. package/dist/common/{project-semantics.d.ts → flow-semantics.d.ts} +9 -12
  53. package/dist/common/{project-semantics.js → flow-semantics.js} +594 -597
  54. package/dist/common/integration-trigger.d.ts +2 -1
  55. package/dist/common/integration-trigger.js +1 -1
  56. package/dist/common/poll-trigger.d.ts +1 -1
  57. package/dist/common/provider-triggers.js +1057 -948
  58. package/dist/common/run-lifecycle.js +1 -1
  59. package/dist/common/runtime-contract.d.ts +1 -1
  60. package/dist/common/runtime-contract.js +1 -1
  61. package/dist/common/scheduler.d.ts +7 -7
  62. package/dist/common/scheduler.js +237 -232
  63. package/dist/common/webhook-trigger.d.ts +1 -1
  64. package/dist/common/webhook-trigger.js +35 -1
  65. package/package.json +20 -10
  66. package/dist/browser/addNodeOptions-DqoIueCR.js +0 -33746
  67. package/dist/browser/carbon-nMY84Amv.js +0 -53
  68. package/dist/browser/composite-7VwgfnXx.js +0 -6088
  69. package/dist/browser/createResourceDialog-ByuJWdSL.js +0 -439
  70. package/dist/browser/dist-n-z5HtaO.js +0 -4
  71. package/dist/browser/flowWorkspace-DwVMpcar.js +0 -22092
  72. package/dist/common/project-encoding.d.ts +0 -11
@@ -0,0 +1,444 @@
1
+ import { d as e, m as t, p as n, s as r, y as i } from "./dist-Mecbzdl2.js";
2
+ import { E as a, O as o, o as s, p as c, r as l, s as u, t as d, y as f } from "./dist-BKuSVKCC.js";
3
+ //#region ../../node_modules/.bun/@codemirror+lint@6.9.7/node_modules/@codemirror/lint/dist/index.js
4
+ var p = class {
5
+ constructor(e, t, n) {
6
+ this.from = e, this.to = t, this.diagnostic = n;
7
+ }
8
+ }, m = class t {
9
+ constructor(e, t, n) {
10
+ this.diagnostics = e, this.panel = t, this.selected = n;
11
+ }
12
+ static init(n, r, i) {
13
+ let a = i.facet(k).markerFilter;
14
+ a && (n = a(n, i));
15
+ let o = n.slice().sort((e, t) => e.from - t.from || e.to - t.to), s = new e(), c = [], l = 0, u = i.doc.iter(), f = 0, p = i.doc.length;
16
+ for (let e = 0;;) {
17
+ let t = e == o.length ? null : o[e];
18
+ if (!t && !c.length) break;
19
+ let n, r;
20
+ if (c.length) n = l, r = c.reduce((e, t) => Math.min(e, t.to), t && t.from > n ? t.from : 1e8);
21
+ else {
22
+ if (n = t.from, n > p) break;
23
+ r = t.to, c.push(t), e++;
24
+ }
25
+ for (; e < o.length;) {
26
+ let t = o[e];
27
+ if (t.from == n && (t.to > t.from || t.to == n)) c.push(t), e++, r = Math.min(t.to, r);
28
+ else {
29
+ r = Math.min(t.from, r);
30
+ break;
31
+ }
32
+ }
33
+ r = Math.min(r, p);
34
+ let i = !1;
35
+ if (c.some((e) => e.from == n && (e.to == r || r == p)) && (i = n == r, !i && r - n < 10)) {
36
+ let e = n - (f + u.value.length);
37
+ e > 0 && (u.next(e), f = n);
38
+ for (let e = n;;) {
39
+ if (e >= r) {
40
+ i = !0;
41
+ break;
42
+ }
43
+ if (!u.lineBreak && f + u.value.length > e) break;
44
+ e = f + u.value.length, f += u.value.length, u.next();
45
+ }
46
+ }
47
+ let a = B(c);
48
+ if (i) s.add(n, n, d.widget({
49
+ widget: new N(a),
50
+ diagnostics: c.slice()
51
+ }));
52
+ else {
53
+ let e = c.reduce((e, t) => t.markClass ? e + " " + t.markClass : e, "");
54
+ s.add(n, r, d.mark({
55
+ class: "cm-lintRange cm-lintRange-" + a + e,
56
+ diagnostics: c.slice(),
57
+ inclusiveEnd: c.some((e) => e.to > r)
58
+ }));
59
+ }
60
+ if (l = r, l == p) break;
61
+ for (let e = 0; e < c.length; e++) c[e].to <= l && c.splice(e--, 1);
62
+ }
63
+ let m = s.finish();
64
+ return new t(m, r, h(m));
65
+ }
66
+ };
67
+ function h(e, t = null, n = 0) {
68
+ let r = null;
69
+ return e.between(n, 1e9, (e, n, { spec: i }) => {
70
+ if (!(t && i.diagnostics.indexOf(t) < 0)) {
71
+ if (!r) r = new p(e, n, t || i.diagnostics[0]);
72
+ else if (i.diagnostics.indexOf(r.diagnostic) < 0) return !1;
73
+ else r = new p(r.from, n, r.diagnostic);
74
+ }
75
+ }), r;
76
+ }
77
+ function g(e, t) {
78
+ let n = t.pos, r = t.end || n, i = e.state.facet(k).hideOn(e, n, r);
79
+ if (i != null) return i;
80
+ let a = e.startState.doc.lineAt(t.pos);
81
+ return !!(e.effects.some((e) => e.is(y)) || e.changes.touchesRange(a.from, Math.max(a.to, r)));
82
+ }
83
+ function _(e, t) {
84
+ return e.field(S, !1) ? t : t.concat(n.appendConfig.of(H));
85
+ }
86
+ function v(e, t) {
87
+ return { effects: _(e, [y.of(t)]) };
88
+ }
89
+ var y = /*@__PURE__*/ n.define(), b = /*@__PURE__*/ n.define(), x = /*@__PURE__*/ n.define(), S = /*@__PURE__*/ t.define({
90
+ create() {
91
+ return new m(d.none, null, null);
92
+ },
93
+ update(e, t) {
94
+ if (t.docChanged && e.diagnostics.size) {
95
+ let n = e.diagnostics.map(t.changes), r = null, i = e.panel;
96
+ if (e.selected) {
97
+ let i = t.changes.mapPos(e.selected.from, 1);
98
+ r = h(n, e.selected.diagnostic, i) || h(n, null, i);
99
+ }
100
+ !n.size && i && t.state.facet(k).autoPanel && (i = null), e = new m(n, i, r);
101
+ }
102
+ for (let n of t.effects) if (n.is(y)) {
103
+ let r = t.state.facet(k).autoPanel ? n.value.length ? F.open : null : e.panel;
104
+ e = m.init(n.value, r, t.state);
105
+ } else n.is(b) ? e = new m(e.diagnostics, n.value ? F.open : null, e.selected) : n.is(x) && (e = new m(e.diagnostics, e.panel, n.value));
106
+ return e;
107
+ },
108
+ provide: (e) => [a.from(e, (e) => e.panel), l.decorations.from(e, (e) => e.diagnostics)]
109
+ }), C = /*@__PURE__*/ d.mark({ class: "cm-lintRange cm-lintRange-active" });
110
+ function w(e, t, n) {
111
+ let { diagnostics: r } = e.state.field(S), i, a = -1, o = -1;
112
+ r.between(t - +(n < 0), t + +(n > 0), (e, r, { spec: s }) => {
113
+ if (t >= e && t <= r && (e == r || (t > e || n > 0) && (t < r || n < 0))) return i = s.diagnostics, a = e, o = r, !1;
114
+ });
115
+ let s = e.state.facet(k).tooltipFilter;
116
+ return i && s && (i = s(i, e.state)), i ? {
117
+ pos: a,
118
+ end: o,
119
+ above: !0,
120
+ create() {
121
+ return { dom: T(e, i) };
122
+ }
123
+ } : null;
124
+ }
125
+ function T(e, t) {
126
+ return o("ul", { class: "cm-tooltip-lint" }, t.map((t) => M(e, t, !1)));
127
+ }
128
+ var E = (e) => {
129
+ let t = e.state.field(S, !1);
130
+ (!t || !t.panel) && e.dispatch({ effects: _(e.state, [b.of(!0)]) });
131
+ let n = c(e, F.open);
132
+ return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0;
133
+ }, D = (e) => {
134
+ let t = e.state.field(S, !1);
135
+ return !t || !t.panel ? !1 : (e.dispatch({ effects: b.of(!1) }), !0);
136
+ }, O = [{
137
+ key: "Mod-Shift-m",
138
+ run: E,
139
+ preventDefault: !0
140
+ }, {
141
+ key: "F8",
142
+ run: (e) => {
143
+ let t = e.state.field(S, !1);
144
+ if (!t) return !1;
145
+ let n = e.state.selection.main, r = h(t.diagnostics, null, n.to + 1);
146
+ return !r && (r = h(t.diagnostics, null, 0), !r || r.from == n.from && r.to == n.to) ? !1 : (e.dispatch({
147
+ selection: {
148
+ anchor: r.from,
149
+ head: r.to
150
+ },
151
+ scrollIntoView: !0
152
+ }), u(e, r.from, 1, {
153
+ tooltip: V,
154
+ until: (e) => e.docChanged || e.newSelection.main.head < r.from || e.newSelection.main.head > r.to
155
+ }), !0);
156
+ }
157
+ }], k = /*@__PURE__*/ r.define({ combine(e) {
158
+ return {
159
+ sources: e.map((e) => e.source).filter((e) => e != null),
160
+ ...i(e.map((e) => e.config), {
161
+ delay: 750,
162
+ markerFilter: null,
163
+ tooltipFilter: null,
164
+ needsRefresh: null,
165
+ hideOn: () => null
166
+ }, {
167
+ delay: Math.max,
168
+ markerFilter: A,
169
+ tooltipFilter: A,
170
+ needsRefresh: (e, t) => e ? t ? (n) => e(n) || t(n) : e : t,
171
+ hideOn: (e, t) => e ? t ? (n, r, i) => e(n, r, i) || t(n, r, i) : e : t,
172
+ autoPanel: (e, t) => e || t
173
+ })
174
+ };
175
+ } });
176
+ function A(e, t) {
177
+ return e ? t ? (n, r) => t(e(n, r), r) : e : t;
178
+ }
179
+ function j(e) {
180
+ let t = [];
181
+ if (e) actions: for (let { name: n } of e) {
182
+ for (let e = 0; e < n.length; e++) {
183
+ let r = n[e];
184
+ if (/[a-zA-Z]/.test(r) && !t.some((e) => e.toLowerCase() == r.toLowerCase())) {
185
+ t.push(r);
186
+ continue actions;
187
+ }
188
+ }
189
+ t.push("");
190
+ }
191
+ return t;
192
+ }
193
+ function M(e, t, n) {
194
+ let r = n ? j(t.actions) : [];
195
+ return o("li", { class: "cm-diagnostic cm-diagnostic-" + t.severity }, o("span", { class: "cm-diagnosticText" }, t.renderMessage ? t.renderMessage(e) : t.message), t.actions?.map((n, i) => {
196
+ let a = !1, s = (r) => {
197
+ if (r.preventDefault(), a) return;
198
+ a = !0;
199
+ let i = h(e.state.field(S).diagnostics, t);
200
+ i && n.apply(e, i.from, i.to);
201
+ }, { name: c } = n, l = r[i] ? c.indexOf(r[i]) : -1, u = l < 0 ? c : [
202
+ c.slice(0, l),
203
+ o("u", c.slice(l, l + 1)),
204
+ c.slice(l + 1)
205
+ ], d = n.markClass ? " " + n.markClass : "";
206
+ return o("button", {
207
+ type: "button",
208
+ class: "cm-diagnosticAction" + d,
209
+ onclick: s,
210
+ onmousedown: s,
211
+ "aria-label": ` Action: ${c}${l < 0 ? "" : ` (access key "${r[i]})"`}.`
212
+ }, u);
213
+ }), t.source && o("div", { class: "cm-diagnosticSource" }, t.source));
214
+ }
215
+ var N = class extends s {
216
+ constructor(e) {
217
+ super(), this.sev = e;
218
+ }
219
+ eq(e) {
220
+ return e.sev == this.sev;
221
+ }
222
+ toDOM() {
223
+ return o("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
224
+ }
225
+ }, P = class {
226
+ constructor(e, t) {
227
+ this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = M(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
228
+ }
229
+ }, F = class e {
230
+ constructor(e) {
231
+ this.view = e, this.items = [];
232
+ let t = (t) => {
233
+ if (!(t.ctrlKey || t.altKey || t.metaKey)) {
234
+ if (t.keyCode == 27) D(this.view), this.view.focus();
235
+ else if (t.keyCode == 38 || t.keyCode == 33) this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);
236
+ else if (t.keyCode == 40 || t.keyCode == 34) this.moveSelection((this.selectedIndex + 1) % this.items.length);
237
+ else if (t.keyCode == 36) this.moveSelection(0);
238
+ else if (t.keyCode == 35) this.moveSelection(this.items.length - 1);
239
+ else if (t.keyCode == 13) this.view.focus();
240
+ else if (t.keyCode >= 65 && t.keyCode <= 90 && this.selectedIndex >= 0) {
241
+ let { diagnostic: n } = this.items[this.selectedIndex], r = j(n.actions);
242
+ for (let i = 0; i < r.length; i++) if (r[i].toUpperCase().charCodeAt(0) == t.keyCode) {
243
+ let t = h(this.view.state.field(S).diagnostics, n);
244
+ t && n.actions[i].apply(e, t.from, t.to);
245
+ }
246
+ } else return;
247
+ t.preventDefault();
248
+ }
249
+ }, n = (e) => {
250
+ for (let t = 0; t < this.items.length; t++) this.items[t].dom.contains(e.target) && this.moveSelection(t);
251
+ };
252
+ this.list = o("ul", {
253
+ tabIndex: 0,
254
+ role: "listbox",
255
+ "aria-label": this.view.state.phrase("Diagnostics"),
256
+ onkeydown: t,
257
+ onclick: n
258
+ }), this.dom = o("div", { class: "cm-panel-lint" }, this.list, o("button", {
259
+ type: "button",
260
+ name: "close",
261
+ "aria-label": this.view.state.phrase("close"),
262
+ onclick: () => D(this.view)
263
+ }, "×")), this.update();
264
+ }
265
+ get selectedIndex() {
266
+ let e = this.view.state.field(S).selected;
267
+ if (!e) return -1;
268
+ for (let t = 0; t < this.items.length; t++) if (this.items[t].diagnostic == e.diagnostic) return t;
269
+ return -1;
270
+ }
271
+ update() {
272
+ let { diagnostics: e, selected: t } = this.view.state.field(S), n = 0, r = !1, i = null, a = /* @__PURE__ */ new Set();
273
+ for (e.between(0, this.view.state.doc.length, (e, o, { spec: s }) => {
274
+ for (let e of s.diagnostics) {
275
+ if (a.has(e)) continue;
276
+ a.add(e);
277
+ let o = -1, s;
278
+ for (let t = n; t < this.items.length; t++) if (this.items[t].diagnostic == e) {
279
+ o = t;
280
+ break;
281
+ }
282
+ o < 0 ? (s = new P(this.view, e), this.items.splice(n, 0, s), r = !0) : (s = this.items[o], o > n && (this.items.splice(n, o - n), r = !0)), t && s.diagnostic == t.diagnostic ? s.dom.hasAttribute("aria-selected") || (s.dom.setAttribute("aria-selected", "true"), i = s) : s.dom.hasAttribute("aria-selected") && s.dom.removeAttribute("aria-selected"), n++;
283
+ }
284
+ }); n < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0);) r = !0, this.items.pop();
285
+ this.items.length == 0 && (this.items.push(new P(this.view, {
286
+ from: -1,
287
+ to: -1,
288
+ severity: "info",
289
+ message: this.view.state.phrase("No diagnostics")
290
+ })), r = !0), i ? (this.list.setAttribute("aria-activedescendant", i.id), this.view.requestMeasure({
291
+ key: this,
292
+ read: () => ({
293
+ sel: i.dom.getBoundingClientRect(),
294
+ panel: this.list.getBoundingClientRect()
295
+ }),
296
+ write: ({ sel: e, panel: t }) => {
297
+ let n = t.height / this.list.offsetHeight;
298
+ e.top < t.top ? this.list.scrollTop -= (t.top - e.top) / n : e.bottom > t.bottom && (this.list.scrollTop += (e.bottom - t.bottom) / n);
299
+ }
300
+ })) : this.selectedIndex < 0 && this.list.removeAttribute("aria-activedescendant"), r && this.sync();
301
+ }
302
+ sync() {
303
+ let e = this.list.firstChild;
304
+ function t() {
305
+ let t = e;
306
+ e = t.nextSibling, t.remove();
307
+ }
308
+ for (let n of this.items) if (n.dom.parentNode == this.list) {
309
+ for (; e != n.dom;) t();
310
+ e = n.dom.nextSibling;
311
+ } else this.list.insertBefore(n.dom, e);
312
+ for (; e;) t();
313
+ }
314
+ moveSelection(e) {
315
+ if (this.selectedIndex < 0) return;
316
+ let t = h(this.view.state.field(S).diagnostics, this.items[e].diagnostic);
317
+ t && this.view.dispatch({
318
+ selection: {
319
+ anchor: t.from,
320
+ head: t.to
321
+ },
322
+ scrollIntoView: !0,
323
+ effects: x.of(t)
324
+ });
325
+ }
326
+ static open(t) {
327
+ return new e(t);
328
+ }
329
+ };
330
+ function I(e, t = "viewBox=\"0 0 40 40\"") {
331
+ return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`;
332
+ }
333
+ function L(e) {
334
+ return I(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`, "width=\"6\" height=\"3\"");
335
+ }
336
+ var R = /*@__PURE__*/ l.baseTheme({
337
+ ".cm-diagnostic": {
338
+ padding: "3px 6px 3px 8px",
339
+ marginLeft: "-1px",
340
+ display: "block",
341
+ whiteSpace: "pre-wrap"
342
+ },
343
+ ".cm-diagnostic-error": { borderLeft: "5px solid #d11" },
344
+ ".cm-diagnostic-warning": { borderLeft: "5px solid orange" },
345
+ ".cm-diagnostic-info": { borderLeft: "5px solid #999" },
346
+ ".cm-diagnostic-hint": { borderLeft: "5px solid #66d" },
347
+ ".cm-diagnosticAction": {
348
+ font: "inherit",
349
+ border: "none",
350
+ padding: "2px 4px",
351
+ backgroundColor: "#444",
352
+ color: "white",
353
+ borderRadius: "3px",
354
+ marginLeft: "8px",
355
+ cursor: "pointer"
356
+ },
357
+ ".cm-diagnosticSource": {
358
+ fontSize: "70%",
359
+ opacity: .7
360
+ },
361
+ ".cm-lintRange": {
362
+ backgroundPosition: "left bottom",
363
+ backgroundRepeat: "repeat-x",
364
+ paddingBottom: "0.7px"
365
+ },
366
+ ".cm-lintRange-error": { backgroundImage: /*@__PURE__*/ L("#f11") },
367
+ ".cm-lintRange-warning": { backgroundImage: /*@__PURE__*/ L("orange") },
368
+ ".cm-lintRange-info": { backgroundImage: /*@__PURE__*/ L("#999") },
369
+ ".cm-lintRange-hint": { backgroundImage: /*@__PURE__*/ L("#66d") },
370
+ ".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
371
+ ".cm-tooltip-lint": {
372
+ padding: 0,
373
+ margin: 0
374
+ },
375
+ ".cm-lintPoint": {
376
+ position: "relative",
377
+ "&:after": {
378
+ content: "\"\"",
379
+ position: "absolute",
380
+ bottom: 0,
381
+ left: "-2px",
382
+ borderLeft: "3px solid transparent",
383
+ borderRight: "3px solid transparent",
384
+ borderBottom: "4px solid #d11"
385
+ }
386
+ },
387
+ ".cm-lintPoint-warning": { "&:after": { borderBottomColor: "orange" } },
388
+ ".cm-lintPoint-info": { "&:after": { borderBottomColor: "#999" } },
389
+ ".cm-lintPoint-hint": { "&:after": { borderBottomColor: "#66d" } },
390
+ ".cm-panel.cm-panel-lint": {
391
+ position: "relative",
392
+ "& ul": {
393
+ maxHeight: "100px",
394
+ overflowY: "auto",
395
+ "& [aria-selected]": {
396
+ backgroundColor: "#ddd",
397
+ "& u": { textDecoration: "underline" }
398
+ },
399
+ "&:focus [aria-selected]": {
400
+ background_fallback: "#bdf",
401
+ backgroundColor: "Highlight",
402
+ color_fallback: "white",
403
+ color: "HighlightText"
404
+ },
405
+ "& u": { textDecoration: "none" },
406
+ padding: 0,
407
+ margin: 0
408
+ },
409
+ "& [name=close]": {
410
+ position: "absolute",
411
+ top: "0",
412
+ right: "2px",
413
+ background: "inherit",
414
+ border: "none",
415
+ font: "inherit",
416
+ padding: 0,
417
+ margin: 0
418
+ }
419
+ },
420
+ "&dark .cm-lintRange-active": { backgroundColor: "#86714a80" },
421
+ "&dark .cm-panel.cm-panel-lint ul": { "& [aria-selected]": { backgroundColor: "#2e343e" } }
422
+ });
423
+ function z(e) {
424
+ return e == "error" ? 4 : e == "warning" ? 3 : e == "info" ? 2 : 1;
425
+ }
426
+ function B(e) {
427
+ let t = "hint", n = 1;
428
+ for (let r of e) {
429
+ let e = z(r.severity);
430
+ e > n && (n = e, t = r.severity);
431
+ }
432
+ return t;
433
+ }
434
+ var V = /*@__PURE__*/ f(w, { hideOn: g }), H = [
435
+ S,
436
+ /*@__PURE__*/ l.decorations.compute([S], (e) => {
437
+ let { selected: t, panel: n } = e.field(S);
438
+ return !t || !n || t.from == t.to ? d.none : d.set([C.range(t.from, t.to)]);
439
+ }),
440
+ V,
441
+ R
442
+ ];
443
+ //#endregion
444
+ export { v as n, O as t };
@@ -1,5 +1,5 @@
1
1
  import { i as e, o as t, t as n } from "./rolldown-runtime-CEFd7nDs.js";
2
- //#region ../../node_modules/entities/dist/esm/decode-codepoint.js
2
+ //#region ../../node_modules/.bun/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.js
3
3
  var r = /* @__PURE__ */ new Map([
4
4
  [0, 65533],
5
5
  [128, 8364],
@@ -37,7 +37,7 @@ function a(e) {
37
37
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : r.get(e) ?? e;
38
38
  }
39
39
  //#endregion
40
- //#region ../../node_modules/entities/dist/esm/internal/decode-shared.js
40
+ //#region ../../node_modules/.bun/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.js
41
41
  function o(e) {
42
42
  let t = typeof atob == "function" ? atob(e) : typeof Buffer.from == "function" ? Buffer.from(e, "base64").toString("binary") : new Buffer(e, "base64").toString("binary"), n = t.length & -2, r = new Uint16Array(n / 2);
43
43
  for (let e = 0, i = 0; e < n; e += 2) {
@@ -47,13 +47,13 @@ function o(e) {
47
47
  return r;
48
48
  }
49
49
  //#endregion
50
- //#region ../../node_modules/entities/dist/esm/generated/decode-data-xml.js
50
+ //#region ../../node_modules/.bun/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.js
51
51
  var s = /* #__PURE__ */ o("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg"), c;
52
52
  (function(e) {
53
53
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.FLAG13 = 8192] = "FLAG13", e[e.BRANCH_LENGTH = 8064] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
54
54
  })(c ||= {});
55
55
  //#endregion
56
- //#region ../../node_modules/entities/dist/esm/decode.js
56
+ //#region ../../node_modules/.bun/entities@7.0.1/node_modules/entities/dist/esm/decode.js
57
57
  var l;
58
58
  (function(e) {
59
59
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
@@ -211,7 +211,7 @@ function x(e) {
211
211
  return b(e, g.Strict);
212
212
  }
213
213
  //#endregion
214
- //#region ../../node_modules/beautiful-mermaid/dist/index.js
214
+ //#region ../../node_modules/.bun/beautiful-mermaid@1.1.3/node_modules/beautiful-mermaid/dist/index.js
215
215
  var S = /* @__PURE__ */ t((/* @__PURE__ */ n(((t, n) => {
216
216
  (function(e) {
217
217
  if (typeof t == "object" && n !== void 0) n.exports = e();
@@ -1,11 +1,11 @@
1
1
  import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
2
- import { c as t, f as n, i as r, o as i } from "./dist-zyY--HOV.js";
3
- import { i as a, n as o, r as s, t as ee } from "./dist-aWSZx4q1.js";
4
- import { a as te } from "./dist-BLk5M0uK.js";
5
- import { r as ne } from "./dist-CIq6ue3I.js";
6
- import { C as re, _ as ie, f as ae, h as oe, j as c, k as l, o as se, p as ce, r as le, u, y as ue } from "./dist-CvcmLAMW.js";
7
- import { a as d, c as f, s as de } from "./dist-Djd02JSy.js";
8
- //#region ../../node_modules/@lezer/javascript/dist/index.js
2
+ import { a as t, l as n, p as r, s as i } from "./dist-BpopSHwP.js";
3
+ import { i as a, n as o, r as s, t as ee } from "./dist-DWADUsVB.js";
4
+ import { a as te } from "./dist-Mecbzdl2.js";
5
+ import { r as ne } from "./dist-BKuSVKCC.js";
6
+ import { N as c, _ as re, f as ie, h as ae, j as l, o as oe, p as se, r as ce, u, w as le, y as d } from "./dist-CUSrALSX.js";
7
+ import { a as ue, s as de, u as f } from "./dist-CPuF50D9.js";
8
+ //#region ../../node_modules/.bun/@lezer+javascript@1.5.4/node_modules/@lezer/javascript/dist/index.js
9
9
  var fe = 316, pe = 317, p = 1, me = 2, he = 3, ge = 4, _e = 318, ve = 320, ye = 321, be = 5, xe = 6, Se = 0, m = [
10
10
  9,
11
11
  10,
@@ -80,7 +80,7 @@ var we = new o((e, t) => {
80
80
  }
81
81
  }
82
82
  e.acceptToken(ge, -n);
83
- }), Te = r({
83
+ }), Te = t({
84
84
  "get set async static": i.modifier,
85
85
  "for while do if else switch try catch finally return throw break continue default case defer": i.controlKeyword,
86
86
  "in of await yield void typeof delete instanceof as satisfies": i.operatorKeyword,
@@ -520,7 +520,7 @@ var we = new o((e, t) => {
520
520
  detail: "definition",
521
521
  type: "keyword"
522
522
  })
523
- ]), P = /*@__PURE__*/ new n(), F = /*@__PURE__*/ new Set([
523
+ ]), P = /*@__PURE__*/ new r(), F = /*@__PURE__*/ new Set([
524
524
  "Script",
525
525
  "Block",
526
526
  "FunctionExpression",
@@ -550,8 +550,8 @@ var Ae = ["FunctionDeclaration"], je = {
550
550
  },
551
551
  __proto__: null
552
552
  };
553
- function L(e, n) {
554
- let r = P.get(n);
553
+ function L(e, t) {
554
+ let r = P.get(t);
555
555
  if (r) return r;
556
556
  let i = [], a = !0;
557
557
  function o(t, n) {
@@ -561,7 +561,7 @@ function L(e, n) {
561
561
  type: n
562
562
  });
563
563
  }
564
- return n.cursor(t.IncludeAnonymous).iterate((t) => {
564
+ return t.cursor(n.IncludeAnonymous).iterate((t) => {
565
565
  if (a) a = !1;
566
566
  else if (t.name) {
567
567
  let e = je[t.name];
@@ -570,7 +570,7 @@ function L(e, n) {
570
570
  for (let n of L(e, t.node)) i.push(n);
571
571
  return !1;
572
572
  }
573
- }), P.set(n, i), i;
573
+ }), P.set(t, i), i;
574
574
  }
575
575
  var R = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, z = [
576
576
  "TemplateString",
@@ -666,17 +666,17 @@ function Ne(e) {
666
666
  };
667
667
  };
668
668
  }
669
- var U = /*@__PURE__*/ le.define({
669
+ var U = /*@__PURE__*/ ce.define({
670
670
  name: "javascript",
671
- parser: /*@__PURE__*/ Oe.configure({ props: [/*@__PURE__*/ re.add({
671
+ parser: /*@__PURE__*/ Oe.configure({ props: [/*@__PURE__*/ le.add({
672
672
  IfStatement: /*@__PURE__*/ u({ except: /^\s*({|else\b)/ }),
673
673
  TryStatement: /*@__PURE__*/ u({ except: /^\s*({|catch\b|finally\b)/ }),
674
- LabeledStatement: oe,
674
+ LabeledStatement: ae,
675
675
  SwitchBody: (e) => {
676
676
  let t = e.textAfter, n = /^\s*\}/.test(t), r = /^\s*(case|default)\b/.test(t);
677
677
  return e.baseIndent + (n ? 0 : r ? 1 : 2) * e.unit;
678
678
  },
679
- Block: /*@__PURE__*/ ce({ closing: "}" }),
679
+ Block: /*@__PURE__*/ se({ closing: "}" }),
680
680
  ArrowFunction: (e) => e.baseIndent + e.unit,
681
681
  "TemplateString BlockComment": () => null,
682
682
  "Statement Property": /*@__PURE__*/ u({ except: /^\s*{/ }),
@@ -691,8 +691,8 @@ var U = /*@__PURE__*/ le.define({
691
691
  "JSXOpenTag JSXSelfClosingTag"(e) {
692
692
  return e.column(e.node.from) + e.unit;
693
693
  }
694
- }), /*@__PURE__*/ ue.add({
695
- "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": ie,
694
+ }), /*@__PURE__*/ d.add({
695
+ "Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": re,
696
696
  BlockComment(e) {
697
697
  return {
698
698
  from: e.from + 2,
@@ -737,7 +737,7 @@ var U = /*@__PURE__*/ le.define({
737
737
  }
738
738
  }), W = {
739
739
  test: (e) => /^JSX/.test(e.name),
740
- facet: /*@__PURE__*/ ae({ commentTokens: { block: {
740
+ facet: /*@__PURE__*/ ie({ commentTokens: { block: {
741
741
  open: "{/*",
742
742
  close: "*/}"
743
743
  } } })
@@ -759,8 +759,8 @@ var U = /*@__PURE__*/ le.define({
759
759
  ].map(J));
760
760
  function X(e = {}) {
761
761
  let t = e.jsx ? e.typescript ? q : K : e.typescript ? G : U, n = e.typescript ? N.concat(Pe) : M.concat(Y);
762
- return new se(t, [
763
- U.data.of({ autocomplete: de(z, d(n)) }),
762
+ return new oe(t, [
763
+ U.data.of({ autocomplete: de(z, ue(n)) }),
764
764
  U.data.of({ autocomplete: B }),
765
765
  e.jsx ? Q : []
766
766
  ]);