@ovalbee/flow-viewer 0.0.2 → 0.0.3

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.
@@ -1,12 +1,12 @@
1
- import { defineComponent as E, inject as oe, createElementBlock as s, openBlock as n, unref as w, normalizeClass as X, createElementVNode as k, createCommentVNode as x, createBlock as A, normalizeStyle as S, toDisplayString as _, Fragment as C, computed as q, markRaw as G, ref as ne, onBeforeUnmount as ie, provide as ce, createVNode as se, withCtx as de, Teleport as le, renderList as B, h as U, resolveDynamicComponent as re } from "vue";
2
- import { Handle as I, Position as T, ConnectionLineType as he, VueFlow as ye } from "@vue-flow/core";
3
- import { Controls as pe } from "@vue-flow/controls";
4
- import { MiniMap as ke } from "@vue-flow/minimap";
5
- const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-flow-viewer-node__header" }, ve = ["innerHTML"], we = { key: 1 }, ge = { class: "ob-flow-viewer-node__title-wrap" }, fe = { class: "ob-flow-viewer-node__title" }, Me = { class: "ob-flow-viewer-node__key" }, xe = { class: "ob-flow-viewer-node__description ob-flow-viewer-node__description--clamped" }, be = {
1
+ import { defineComponent as E, inject as ne, createElementBlock as l, openBlock as i, unref as M, normalizeClass as X, createElementVNode as m, createCommentVNode as z, createBlock as A, normalizeStyle as B, toDisplayString as H, Fragment as q, computed as C, markRaw as G, ref as ie, onBeforeUnmount as se, provide as ce, createVNode as de, withCtx as le, Teleport as re, renderList as S, h as U, resolveDynamicComponent as he } from "vue";
2
+ import { Handle as I, Position as T, ConnectionLineType as ye, VueFlow as pe } from "@vue-flow/core";
3
+ import { Controls as ke } from "@vue-flow/controls";
4
+ import { MiniMap as ue } from "@vue-flow/minimap";
5
+ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-flow-viewer-node__header" }, we = ["innerHTML"], ge = { key: 1 }, fe = { class: "ob-flow-viewer-node__title-wrap" }, Me = { class: "ob-flow-viewer-node__title" }, xe = { class: "ob-flow-viewer-node__key" }, be = { class: "ob-flow-viewer-node__description ob-flow-viewer-node__description--clamped" }, ze = {
6
6
  key: 1,
7
7
  class: "ob-flow-viewer-node__widget-image",
8
8
  "aria-hidden": "true"
9
- }, ze = /* @__PURE__ */ E({
9
+ }, _e = /* @__PURE__ */ E({
10
10
  __name: "FlowViewerNode",
11
11
  props: {
12
12
  id: {},
@@ -30,103 +30,103 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
30
30
  events: {}
31
31
  },
32
32
  setup(t) {
33
- const i = t, u = oe(Q), f = i.data.available ? i.data.description : "This node template is unavailable.";
34
- return (d, l) => {
35
- var p, M;
36
- return n(), s("article", {
33
+ const n = t, v = ne(Q), x = n.data.available ? n.data.description : "This node template is unavailable.";
34
+ return (r, y) => {
35
+ var k, b;
36
+ return i(), l("article", {
37
37
  class: X(["ob-flow-viewer-node", { "ob-flow-viewer-node--unavailable": !t.data.available }]),
38
38
  tabindex: "0",
39
39
  "aria-label": `${t.data.name} node`,
40
- onMouseenter: l[0] || (l[0] = (a) => {
40
+ onMouseenter: y[0] || (y[0] = (o) => {
41
41
  var c;
42
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
42
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
43
43
  }),
44
- onMouseleave: l[1] || (l[1] = (a) => {
44
+ onMouseleave: y[1] || (y[1] = (o) => {
45
45
  var c;
46
- return (c = w(u)) == null ? void 0 : c.hide();
46
+ return (c = M(v)) == null ? void 0 : c.hide();
47
47
  }),
48
- onClick: l[2] || (l[2] = (a) => {
48
+ onClick: y[2] || (y[2] = (o) => {
49
49
  var c;
50
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
50
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
51
51
  }),
52
- onFocus: l[3] || (l[3] = (a) => {
52
+ onFocus: y[3] || (y[3] = (o) => {
53
53
  var c;
54
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
54
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
55
55
  }),
56
- onBlur: l[4] || (l[4] = (a) => {
56
+ onBlur: y[4] || (y[4] = (o) => {
57
57
  var c;
58
- return (c = w(u)) == null ? void 0 : c.hide();
58
+ return (c = M(v)) == null ? void 0 : c.hide();
59
59
  })
60
60
  }, [
61
- k("header", me, [
62
- k("span", {
61
+ m("header", ve, [
62
+ m("span", {
63
63
  class: "ob-flow-viewer-node__icon",
64
- style: S({ "--ob-node-icon-color": ((p = t.data.icon) == null ? void 0 : p.color) ?? "#64748b" }),
64
+ style: B({ "--ob-node-icon-color": ((k = t.data.icon) == null ? void 0 : k.color) ?? "#64748b" }),
65
65
  "aria-hidden": "true"
66
66
  }, [
67
- (M = t.data.icon) != null && M.svg ? (n(), s("span", {
67
+ (b = t.data.icon) != null && b.svg ? (i(), l("span", {
68
68
  key: 0,
69
69
  class: "ob-flow-viewer-node__icon-svg",
70
70
  innerHTML: t.data.icon.svg
71
- }, null, 8, ve)) : (n(), s("span", we, _(t.data.available ? t.data.name.slice(0, 1).toUpperCase() : "?"), 1))
71
+ }, null, 8, we)) : (i(), l("span", ge, H(t.data.available ? t.data.name.slice(0, 1).toUpperCase() : "?"), 1))
72
72
  ], 4),
73
- k("span", ge, [
74
- k("strong", fe, _(t.data.name), 1),
75
- k("span", Me, _(t.data.key), 1)
73
+ m("span", fe, [
74
+ m("strong", Me, H(t.data.name), 1),
75
+ m("span", xe, H(t.data.key), 1)
76
76
  ])
77
77
  ]),
78
- k("p", xe, _(w(f)), 1),
79
- t.data.widgetPreview && t.data.available ? (n(), s("div", {
78
+ m("p", be, H(M(x)), 1),
79
+ t.data.widgetPreview && t.data.available ? (i(), l("div", {
80
80
  key: 0,
81
81
  class: X(["ob-flow-viewer-node__widget", `ob-flow-viewer-node__widget--${t.data.widgetPreview}`]),
82
82
  "aria-label": "Widget preview"
83
83
  }, [
84
- t.data.widgetPreview === "button" ? (n(), s(C, { key: 0 }, [
85
- l[5] || (l[5] = k("span", { class: "ob-flow-viewer-node__widget-icon" }, "↗", -1)),
86
- l[6] || (l[6] = k("span", { class: "ob-flow-viewer-node__widget-label" }, null, -1))
87
- ], 64)) : t.data.widgetPreview === "dataset" ? (n(), s("span", be)) : (n(), s(C, { key: 2 }, [
88
- l[7] || (l[7] = k("span", null, null, -1)),
89
- l[8] || (l[8] = k("span", null, null, -1))
84
+ t.data.widgetPreview === "button" ? (i(), l(q, { key: 0 }, [
85
+ y[5] || (y[5] = m("span", { class: "ob-flow-viewer-node__widget-icon" }, "↗", -1)),
86
+ y[6] || (y[6] = m("span", { class: "ob-flow-viewer-node__widget-label" }, null, -1))
87
+ ], 64)) : t.data.widgetPreview === "dataset" ? (i(), l("span", ze)) : (i(), l(q, { key: 2 }, [
88
+ y[7] || (y[7] = m("span", null, null, -1)),
89
+ y[8] || (y[8] = m("span", null, null, -1))
90
90
  ], 64))
91
- ], 2)) : x("", !0),
92
- t.data.connectedHandles.has("target") ? (n(), A(w(I), {
91
+ ], 2)) : z("", !0),
92
+ t.data.connectedHandles.has("target") ? (i(), A(M(I), {
93
93
  key: 1,
94
94
  type: "target",
95
- position: w(T).Top
96
- }, null, 8, ["position"])) : x("", !0),
97
- t.data.connectedHandles.has("left") ? (n(), A(w(I), {
95
+ position: M(T).Top
96
+ }, null, 8, ["position"])) : z("", !0),
97
+ t.data.connectedHandles.has("left") ? (i(), A(M(I), {
98
98
  key: 2,
99
99
  id: "left",
100
100
  type: "target",
101
- position: w(T).Left
102
- }, null, 8, ["position"])) : x("", !0),
103
- t.data.connectedHandles.has("right") ? (n(), A(w(I), {
101
+ position: M(T).Left
102
+ }, null, 8, ["position"])) : z("", !0),
103
+ t.data.connectedHandles.has("right") ? (i(), A(M(I), {
104
104
  key: 3,
105
105
  id: "right",
106
106
  type: "target",
107
- position: w(T).Right
108
- }, null, 8, ["position"])) : x("", !0),
109
- t.data.connectedHandles.has("source") ? (n(), A(w(I), {
107
+ position: M(T).Right
108
+ }, null, 8, ["position"])) : z("", !0),
109
+ t.data.connectedHandles.has("source") ? (i(), A(M(I), {
110
110
  key: 4,
111
111
  type: "source",
112
- position: w(T).Bottom
113
- }, null, 8, ["position"])) : x("", !0),
114
- t.data.connectedHandles.has("left-source") ? (n(), A(w(I), {
112
+ position: M(T).Bottom
113
+ }, null, 8, ["position"])) : z("", !0),
114
+ t.data.connectedHandles.has("left-source") ? (i(), A(M(I), {
115
115
  key: 5,
116
116
  id: "left-source",
117
117
  type: "source",
118
- position: w(T).Left
119
- }, null, 8, ["position"])) : x("", !0),
120
- t.data.connectedHandles.has("right-source") ? (n(), A(w(I), {
118
+ position: M(T).Left
119
+ }, null, 8, ["position"])) : z("", !0),
120
+ t.data.connectedHandles.has("right-source") ? (i(), A(M(I), {
121
121
  key: 6,
122
122
  id: "right-source",
123
123
  type: "source",
124
- position: w(T).Right
125
- }, null, 8, ["position"])) : x("", !0)
126
- ], 42, ue);
124
+ position: M(T).Right
125
+ }, null, 8, ["position"])) : z("", !0)
126
+ ], 42, me);
127
127
  };
128
128
  }
129
- }), _e = /* @__PURE__ */ E({
129
+ }), He = /* @__PURE__ */ E({
130
130
  __name: "FlowViewerNote",
131
131
  props: {
132
132
  id: {},
@@ -150,180 +150,187 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
150
150
  events: {}
151
151
  },
152
152
  setup(t) {
153
- const i = t, u = q(() => ({
154
- width: `${i.data.appearance.width}px`,
155
- minHeight: i.data.appearance.height ? `${i.data.appearance.height}px` : void 0
153
+ const n = t, v = C(() => ({
154
+ width: `${n.data.appearance.width}px`,
155
+ minHeight: n.data.appearance.height ? `${n.data.appearance.height}px` : void 0
156
156
  }));
157
- return (f, d) => (n(), s("article", {
157
+ return (x, r) => (i(), l("article", {
158
158
  class: X(["ob-flow-viewer-note", `ob-flow-viewer-note--${t.data.appearance.color}`]),
159
- style: S(u.value)
160
- }, _(t.data.content), 7));
159
+ style: B(v.value)
160
+ }, H(t.data.content), 7));
161
161
  }
162
- }), He = ["data-theme"], Ve = ["data-theme"], Ae = { class: "ob-flow-viewer-tooltip__header" }, Ce = ["innerHTML"], qe = { key: 1 }, $e = { class: "ob-flow-viewer-tooltip__title-wrap" }, Le = { class: "ob-flow-viewer-tooltip__body" }, Pe = {
162
+ }), Ve = ["data-theme"], Ae = ["data-theme"], Ce = { class: "ob-flow-viewer-tooltip__header" }, qe = ["innerHTML"], $e = { key: 1 }, Le = { class: "ob-flow-viewer-tooltip__title-wrap" }, Pe = { class: "ob-flow-viewer-tooltip__body" }, Ie = {
163
163
  key: 0,
164
164
  class: "ob-flow-viewer-tooltip__unavailable"
165
- }, Ie = {
165
+ }, Te = {
166
166
  key: 1,
167
167
  class: "ob-flow-viewer-tooltip__description"
168
- }, Te = {
168
+ }, je = {
169
169
  key: 2,
170
170
  class: "ob-flow-viewer-node__ports"
171
- }, je = { class: "ob-flow-viewer-node__port-group" }, Be = {
171
+ }, Se = { class: "ob-flow-viewer-node__port-group" }, Be = {
172
172
  key: 0,
173
173
  class: "ob-flow-viewer-node__empty"
174
- }, Se = { key: 0 }, Ne = { class: "ob-flow-viewer-node__port-group ob-flow-viewer-node__port-group--outputs" }, Fe = {
174
+ }, Ne = { key: 0 }, Fe = { class: "ob-flow-viewer-node__port-group ob-flow-viewer-node__port-group--outputs" }, De = {
175
175
  key: 0,
176
176
  class: "ob-flow-viewer-node__empty"
177
- }, De = { key: 0 }, Y = 72, W = 64, Oe = 1.45, C1 = /* @__PURE__ */ E({
177
+ }, Oe = { key: 0 }, Y = 72, W = 64, Ee = 1.45, qa = /* @__PURE__ */ E({
178
178
  __name: "FlowViewer",
179
179
  props: {
180
180
  document: {},
181
181
  fitViewOnInit: { type: Boolean, default: !1 },
182
182
  showControls: { type: Boolean, default: !0 },
183
183
  showMiniMap: { type: Boolean, default: !0 },
184
+ panOnScroll: { type: Boolean, default: !1 },
184
185
  minZoom: { default: 0.1 },
185
186
  maxZoom: { default: 2 },
186
187
  initialZoom: { default: 0.8 },
187
188
  theme: { default: "light" }
188
189
  },
189
190
  setup(t) {
190
- const i = t, u = {
191
- catalog: G(ze),
192
- note: G(_e)
191
+ const n = t, v = {
192
+ catalog: G(_e),
193
+ note: G(He)
193
194
  };
194
- function f(o) {
195
- if (o.kind === "note") return o.appearance.height ?? 130;
196
- const r = o.description ? Math.min(2, Math.max(1, Math.ceil(o.description.length / 34))) : o.available ? 0 : 1, v = r > 0 ? 10 + r * 19.5 : 0, z = o.available && o.widgetPreview ? 10 + (o.widgetPreview === "dataset" ? 72 : 32) : 0;
197
- return 60 + v + z;
195
+ function x(a) {
196
+ if (a.kind === "note") return a.appearance.height ?? 130;
197
+ const h = a.description ? Math.min(2, Math.max(1, Math.ceil(a.description.length / 34))) : a.available ? 0 : 1, p = h > 0 ? 10 + h * 19.5 : 0, u = a.available && a.widgetPreview ? 10 + (a.widgetPreview === "dataset" ? 72 : 32) : 0;
198
+ return 60 + p + u;
198
199
  }
199
- const d = ne(null);
200
- let l = null;
201
- function p() {
202
- l !== null && (clearTimeout(l), l = null);
200
+ const r = ie(null);
201
+ let y = null;
202
+ function k() {
203
+ y !== null && (clearTimeout(y), y = null);
203
204
  }
204
- function M() {
205
- p(), l = setTimeout(() => {
206
- d.value = null, l = null;
205
+ function b() {
206
+ k(), y = setTimeout(() => {
207
+ r.value = null, y = null;
207
208
  }, 140);
208
209
  }
209
- ie(p);
210
- function a(o) {
211
- const r = /* @__PURE__ */ new Set();
212
- for (const v of i.document.edges)
213
- v.source === o && r.add(v.sourceHandle ?? "source"), v.target === o && r.add(v.targetHandle ?? "target");
214
- return r;
210
+ se(k);
211
+ function o(a) {
212
+ const h = /* @__PURE__ */ new Set();
213
+ for (const p of n.document.edges)
214
+ p.source === a && h.add(p.sourceHandle ?? "source"), p.target === a && h.add(p.targetHandle ?? "target");
215
+ return h;
215
216
  }
216
- function c(o, r) {
217
- p();
218
- const v = r.currentTarget;
219
- if (!(v instanceof HTMLElement)) return;
220
- const z = v.getBoundingClientRect(), h = 12, y = Math.min(404, window.innerWidth - h * 2), b = Math.min(520, window.innerHeight - h * 2);
221
- let g = z.right + h + y / 2;
222
- g + y / 2 > window.innerWidth - h && (g = z.left - h - y / 2), g = Math.max(y / 2 + h, Math.min(g, window.innerWidth - y / 2 - h)), d.value = {
223
- node: o,
217
+ function c(a, h) {
218
+ k();
219
+ const p = h.currentTarget;
220
+ if (!(p instanceof HTMLElement)) return;
221
+ const u = p.getBoundingClientRect(), s = 12, d = Math.min(404, window.innerWidth - s * 2), f = Math.min(520, window.innerHeight - s * 2);
222
+ let g = u.right + s + d / 2;
223
+ g + d / 2 > window.innerWidth - s && (g = u.left - s - d / 2), g = Math.max(d / 2 + s, Math.min(g, window.innerWidth - d / 2 - s)), r.value = {
224
+ node: a,
224
225
  x: g,
225
- y: Math.max(h, Math.min(z.top, window.innerHeight - b - h))
226
+ y: Math.max(s, Math.min(u.top, window.innerHeight - f - s))
226
227
  };
227
228
  }
228
- function m() {
229
- M();
229
+ function w() {
230
+ b();
230
231
  }
231
- ce(Q, { show: c, hide: m });
232
- const H = q(() => {
233
- const o = new Map(i.document.nodes.map((y) => [y.id, { ...y.position }])), r = Math.min(...i.document.nodes.map((y) => y.position.x)), v = Math.max(...i.document.nodes.map((y) => y.position.x)), z = (r + v) / 2;
234
- for (const y of o.values())
235
- y.x = z + (y.x - z) * Oe;
236
- for (let y = 0; y < i.document.nodes.length; y += 1)
237
- for (const b of i.document.edges) {
238
- if (b.sourceHandle || b.targetHandle) continue;
239
- const g = o.get(b.source), V = o.get(b.target);
232
+ ce(Q, { show: c, hide: w });
233
+ const _ = C(() => {
234
+ const a = new Map(n.document.nodes.map((d) => [d.id, { ...d.position }])), h = Math.min(...n.document.nodes.map((d) => d.position.x)), p = Math.max(...n.document.nodes.map((d) => d.position.x)), u = (h + p) / 2;
235
+ for (const d of a.values())
236
+ d.x = u + (d.x - u) * Ee;
237
+ for (let d = 0; d < n.document.nodes.length; d += 1)
238
+ for (const f of n.document.edges) {
239
+ if (f.sourceHandle || f.targetHandle) continue;
240
+ const g = a.get(f.source), V = a.get(f.target);
240
241
  if (!(!g || !V || Math.abs(g.x - V.x) >= 40) && (V.x = g.x, V.y > g.y)) {
241
- const P = i.document.nodes.find((Z) => Z.id === b.source);
242
+ const P = n.document.nodes.find((Z) => Z.id === f.source);
242
243
  P && (V.y = Math.max(
243
244
  V.y,
244
- g.y + f(P) + Y
245
+ g.y + x(P) + Y
245
246
  ));
246
247
  }
247
248
  }
248
- const h = [...i.document.nodes].sort(
249
- (y, b) => y.position.y - b.position.y || y.position.x - b.position.x
249
+ const s = [...n.document.nodes].sort(
250
+ (d, f) => d.position.y - f.position.y || d.position.x - f.position.x
250
251
  );
251
- for (const [y, b] of h.entries()) {
252
- const g = o.get(b.id);
252
+ for (const [d, f] of s.entries()) {
253
+ const g = a.get(f.id);
253
254
  if (g)
254
- for (const V of h.slice(0, y)) {
255
- const P = o.get(V.id);
255
+ for (const V of s.slice(0, d)) {
256
+ const P = a.get(V.id);
256
257
  if (!P) continue;
257
- const Z = b.kind === "note" ? b.appearance.width : 260, ae = V.kind === "note" ? V.appearance.width : 260;
258
- g.x >= P.x + ae + W || P.x >= g.x + Z + W || (g.y = Math.max(
258
+ const Z = f.kind === "note" ? f.appearance.width : 260, oe = V.kind === "note" ? V.appearance.width : 260;
259
+ g.x >= P.x + oe + W || P.x >= g.x + Z + W || (g.y = Math.max(
259
260
  g.y,
260
- P.y + f(V) + Y
261
+ P.y + x(V) + Y
261
262
  ));
262
263
  }
263
264
  }
264
- return o;
265
- }), $ = q(() => i.document.nodes.map((o) => {
266
- const r = H.value.get(o.id) ?? o.position;
267
- return o.kind === "note" ? {
268
- id: o.id,
265
+ return a;
266
+ }), $ = C(() => n.document.nodes.map((a) => {
267
+ const h = _.value.get(a.id) ?? a.position;
268
+ return a.kind === "note" ? {
269
+ id: a.id,
269
270
  type: "note",
270
- position: r,
271
- data: o,
271
+ position: h,
272
+ data: a,
272
273
  style: {
273
- width: `${o.appearance.width}px`,
274
- height: o.appearance.height ? `${o.appearance.height}px` : void 0
274
+ width: `${a.appearance.width}px`,
275
+ height: a.appearance.height ? `${a.appearance.height}px` : void 0
275
276
  }
276
277
  } : {
277
- id: o.id,
278
+ id: a.id,
278
279
  type: "catalog",
279
- position: r,
280
+ position: h,
280
281
  data: {
281
- ...o,
282
- connectedHandles: a(o.id)
282
+ ...a,
283
+ connectedHandles: o(a.id)
283
284
  },
284
285
  selectable: !1
285
286
  };
286
- })), L = q(() => i.document.edges.map((o, r) => ({
287
- id: `viewer-edge-${r}-${o.source}-${o.target}`,
288
- source: o.source,
289
- target: o.target,
290
- sourceHandle: o.sourceHandle,
291
- targetHandle: o.targetHandle,
292
- type: he.SmoothStep,
293
- data: o.data,
294
- style: o.isVisual ? { strokeDasharray: "6 4" } : void 0,
287
+ })), L = C(() => n.document.edges.map((a, h) => ({
288
+ id: `viewer-edge-${h}-${a.source}-${a.target}`,
289
+ source: a.source,
290
+ target: a.target,
291
+ sourceHandle: a.sourceHandle,
292
+ targetHandle: a.targetHandle,
293
+ type: ye.SmoothStep,
294
+ data: a.data,
295
+ style: a.isVisual ? { strokeDasharray: "6 4" } : void 0,
295
296
  selectable: !1
296
- }))), ee = q(() => {
297
- if (i.document.nodes.length === 0) return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
298
- let o = 1 / 0, r = 1 / 0, v = -1 / 0, z = -1 / 0;
299
- for (const h of i.document.nodes) {
300
- const y = H.value.get(h.id) ?? h.position, b = h.kind === "note" ? h.appearance.width : 260, g = f(h);
301
- o = Math.min(o, y.x), r = Math.min(r, y.y), v = Math.max(v, y.x + b), z = Math.max(z, y.y + g);
297
+ }))), ee = C(() => {
298
+ if (n.document.nodes.length === 0) return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
299
+ let a = 1 / 0, h = 1 / 0, p = -1 / 0, u = -1 / 0;
300
+ for (const s of n.document.nodes) {
301
+ const d = _.value.get(s.id) ?? s.position, f = s.kind === "note" ? s.appearance.width : 260, g = x(s);
302
+ a = Math.min(a, d.x), h = Math.min(h, d.y), p = Math.max(p, d.x + f), u = Math.max(u, d.y + g);
302
303
  }
303
- return { minX: o, minY: r, maxX: v, maxY: z };
304
+ return { minX: a, minY: h, maxX: p, maxY: u };
305
+ }), te = C(() => {
306
+ const a = n.document.nodes.filter((s) => s.kind === "node"), h = new Set(n.document.edges.map((s) => s.target)), p = a.filter((s) => !h.has(s.id));
307
+ return [...p.length > 0 ? p : a.length > 0 ? a : n.document.nodes].sort((s, d) => {
308
+ const f = _.value.get(s.id) ?? s.position, g = _.value.get(d.id) ?? d.position;
309
+ return f.y - g.y || f.x - g.x;
310
+ })[0];
304
311
  });
305
- function te(o) {
306
- if (i.fitViewOnInit) {
307
- o.fitView({ padding: 0.15, maxZoom: 1 });
312
+ function ae(a) {
313
+ if (n.fitViewOnInit) {
314
+ a.fitView({ padding: 0.15, maxZoom: 1 });
308
315
  return;
309
316
  }
310
- const r = ee.value, v = i.initialZoom;
311
- o.setViewport({
312
- x: o.dimensions.value.width / 2 - (r.minX + r.maxX) / 2 * v,
313
- y: 24 - r.minY * v,
314
- zoom: v
317
+ const h = ee.value, p = n.initialZoom, u = te.value, s = u ? _.value.get(u.id) ?? u.position : null, d = (u == null ? void 0 : u.kind) === "note" ? u.appearance.width : 260, f = s ? (s.x + d / 2) * p : (h.minX + h.maxX) / 2 * p;
318
+ a.setViewport({
319
+ x: a.dimensions.value.width / 2 - f,
320
+ y: 24 - h.minY * p,
321
+ zoom: p
315
322
  });
316
323
  }
317
- return (o, r) => {
318
- var v, z;
319
- return n(), s("div", {
324
+ return (a, h) => {
325
+ var p, u;
326
+ return i(), l("div", {
320
327
  class: "ob-flow-viewer",
321
328
  "data-theme": t.theme
322
329
  }, [
323
- se(w(ye), {
330
+ de(M(pe), {
324
331
  nodes: $.value,
325
332
  edges: L.value,
326
- "node-types": u,
333
+ "node-types": v,
327
334
  "fit-view-on-init": !1,
328
335
  "min-zoom": t.minZoom,
329
336
  "max-zoom": t.maxZoom,
@@ -336,85 +343,85 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
336
343
  "delete-key-code": [],
337
344
  "multi-selection-key-code": [],
338
345
  "pan-on-drag": !0,
339
- "pan-on-scroll": !0,
346
+ "pan-on-scroll": t.panOnScroll,
340
347
  "zoom-on-scroll": !1,
341
348
  "zoom-on-pinch": !0,
342
349
  class: "ob-flow-viewer__canvas",
343
- onPaneReady: te
350
+ onPaneReady: ae
344
351
  }, {
345
- default: de(() => [
346
- t.showControls ? (n(), A(w(pe), {
352
+ default: le(() => [
353
+ t.showControls ? (i(), A(M(ke), {
347
354
  key: 0,
348
355
  "show-interactive": !1
349
- })) : x("", !0),
350
- t.showMiniMap ? (n(), A(w(ke), {
356
+ })) : z("", !0),
357
+ t.showMiniMap ? (i(), A(M(ue), {
351
358
  key: 1,
352
359
  pannable: !0,
353
360
  zoomable: !0
354
- })) : x("", !0)
361
+ })) : z("", !0)
355
362
  ]),
356
363
  _: 1
357
- }, 8, ["nodes", "edges", "min-zoom", "max-zoom"]),
358
- (n(), A(le, { to: "body" }, [
359
- d.value ? (n(), s("section", {
364
+ }, 8, ["nodes", "edges", "min-zoom", "max-zoom", "pan-on-scroll"]),
365
+ (i(), A(re, { to: "body" }, [
366
+ r.value ? (i(), l("section", {
360
367
  key: 0,
361
368
  class: "ob-flow-viewer-tooltip",
362
369
  "data-theme": t.theme,
363
- style: S({ left: `${d.value.x}px`, top: `${d.value.y}px` }),
370
+ style: B({ left: `${r.value.x}px`, top: `${r.value.y}px` }),
364
371
  role: "tooltip",
365
372
  tabindex: "0",
366
- onMouseenter: p,
367
- onMouseleave: m,
368
- onFocusin: p,
369
- onFocusout: m
373
+ onMouseenter: k,
374
+ onMouseleave: w,
375
+ onFocusin: k,
376
+ onFocusout: w
370
377
  }, [
371
- k("header", Ae, [
372
- k("span", {
378
+ m("header", Ce, [
379
+ m("span", {
373
380
  class: "ob-flow-viewer-tooltip__icon",
374
- style: S({ "--ob-node-icon-color": ((v = d.value.node.icon) == null ? void 0 : v.color) ?? "#64748b" }),
381
+ style: B({ "--ob-node-icon-color": ((p = r.value.node.icon) == null ? void 0 : p.color) ?? "#64748b" }),
375
382
  "aria-hidden": "true"
376
383
  }, [
377
- (z = d.value.node.icon) != null && z.svg ? (n(), s("span", {
384
+ (u = r.value.node.icon) != null && u.svg ? (i(), l("span", {
378
385
  key: 0,
379
386
  class: "ob-flow-viewer-node__icon-svg",
380
- innerHTML: d.value.node.icon.svg
381
- }, null, 8, Ce)) : (n(), s("span", qe, _(d.value.node.available ? d.value.node.name.slice(0, 1).toUpperCase() : "?"), 1))
387
+ innerHTML: r.value.node.icon.svg
388
+ }, null, 8, qe)) : (i(), l("span", $e, H(r.value.node.available ? r.value.node.name.slice(0, 1).toUpperCase() : "?"), 1))
382
389
  ], 4),
383
- k("span", $e, [
384
- k("strong", null, _(d.value.node.name), 1),
385
- k("code", null, _(d.value.node.key), 1)
390
+ m("span", Le, [
391
+ m("strong", null, H(r.value.node.name), 1),
392
+ m("code", null, H(r.value.node.key), 1)
386
393
  ])
387
394
  ]),
388
- k("div", Le, [
389
- d.value.node.available ? d.value.node.description ? (n(), s("p", Ie, _(d.value.node.description), 1)) : x("", !0) : (n(), s("p", Pe, " This node template is unavailable. ")),
390
- d.value.node.available ? (n(), s("div", Te, [
391
- k("div", je, [
392
- r[0] || (r[0] = k("span", { class: "ob-flow-viewer-node__port-heading" }, "Inputs", -1)),
393
- d.value.node.inputs.length === 0 ? (n(), s("span", Be, "None")) : x("", !0),
394
- (n(!0), s(C, null, B(d.value.node.inputs, (h) => (n(), s("span", {
395
- key: h.key,
395
+ m("div", Pe, [
396
+ r.value.node.available ? r.value.node.description ? (i(), l("p", Te, H(r.value.node.description), 1)) : z("", !0) : (i(), l("p", Ie, " This node template is unavailable. ")),
397
+ r.value.node.available ? (i(), l("div", je, [
398
+ m("div", Se, [
399
+ h[0] || (h[0] = m("span", { class: "ob-flow-viewer-node__port-heading" }, "Inputs", -1)),
400
+ r.value.node.inputs.length === 0 ? (i(), l("span", Be, "None")) : z("", !0),
401
+ (i(!0), l(q, null, S(r.value.node.inputs, (s) => (i(), l("span", {
402
+ key: s.key,
396
403
  class: "ob-flow-viewer-node__port"
397
404
  }, [
398
- k("span", null, _(h.name), 1),
399
- h.description ? (n(), s("small", Se, _(h.description), 1)) : x("", !0)
405
+ m("span", null, H(s.name), 1),
406
+ s.description ? (i(), l("small", Ne, H(s.description), 1)) : z("", !0)
400
407
  ]))), 128))
401
408
  ]),
402
- k("div", Ne, [
403
- r[1] || (r[1] = k("span", { class: "ob-flow-viewer-node__port-heading" }, "Outputs", -1)),
404
- d.value.node.outputs.length === 0 ? (n(), s("span", Fe, "None")) : x("", !0),
405
- (n(!0), s(C, null, B(d.value.node.outputs, (h) => (n(), s("span", {
406
- key: h.key,
409
+ m("div", Fe, [
410
+ h[1] || (h[1] = m("span", { class: "ob-flow-viewer-node__port-heading" }, "Outputs", -1)),
411
+ r.value.node.outputs.length === 0 ? (i(), l("span", De, "None")) : z("", !0),
412
+ (i(!0), l(q, null, S(r.value.node.outputs, (s) => (i(), l("span", {
413
+ key: s.key,
407
414
  class: "ob-flow-viewer-node__port"
408
415
  }, [
409
- k("span", null, _(h.name), 1),
410
- h.description ? (n(), s("small", De, _(h.description), 1)) : x("", !0)
416
+ m("span", null, H(s.name), 1),
417
+ s.description ? (i(), l("small", Oe, H(s.description), 1)) : z("", !0)
411
418
  ]))), 128))
412
419
  ])
413
- ])) : x("", !0)
420
+ ])) : z("", !0)
414
421
  ])
415
- ], 44, Ve)) : x("", !0)
422
+ ], 44, Ae)) : z("", !0)
416
423
  ]))
417
- ], 8, He);
424
+ ], 8, Ve);
418
425
  };
419
426
  }
420
427
  });
@@ -424,9 +431,9 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
424
431
  * This source code is licensed under the ISC license.
425
432
  * See the LICENSE file in the root directory of this source tree.
426
433
  */
427
- const Ee = (t) => {
428
- for (const i in t)
429
- if (i.startsWith("aria-") || i === "role" || i === "title")
434
+ const Ze = (t) => {
435
+ for (const n in t)
436
+ if (n.startsWith("aria-") || n === "role" || n === "title")
430
437
  return !0;
431
438
  return !1;
432
439
  };
@@ -443,7 +450,7 @@ const J = (t) => t === "";
443
450
  * This source code is licensed under the ISC license.
444
451
  * See the LICENSE file in the root directory of this source tree.
445
452
  */
446
- const Ze = (...t) => t.filter((i, u, f) => !!i && i.trim() !== "" && f.indexOf(i) === u).join(" ").trim();
453
+ const Re = (...t) => t.filter((n, v, x) => !!n && n.trim() !== "" && x.indexOf(n) === v).join(" ").trim();
447
454
  /**
448
455
  * @license lucide-vue-next v0.577.0 - ISC
449
456
  *
@@ -457,9 +464,9 @@ const K = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
457
464
  * This source code is licensed under the ISC license.
458
465
  * See the LICENSE file in the root directory of this source tree.
459
466
  */
460
- const Re = (t) => t.replace(
467
+ const Xe = (t) => t.replace(
461
468
  /^([A-Z])|[\s-_]+(\w)/g,
462
- (i, u, f) => f ? f.toUpperCase() : u.toLowerCase()
469
+ (n, v, x) => x ? x.toUpperCase() : v.toLowerCase()
463
470
  );
464
471
  /**
465
472
  * @license lucide-vue-next v0.577.0 - ISC
@@ -467,9 +474,9 @@ const Re = (t) => t.replace(
467
474
  * This source code is licensed under the ISC license.
468
475
  * See the LICENSE file in the root directory of this source tree.
469
476
  */
470
- const Xe = (t) => {
471
- const i = Re(t);
472
- return i.charAt(0).toUpperCase() + i.slice(1);
477
+ const Ue = (t) => {
478
+ const n = Xe(t);
479
+ return n.charAt(0).toUpperCase() + n.slice(1);
473
480
  };
474
481
  /**
475
482
  * @license lucide-vue-next v0.577.0 - ISC
@@ -494,33 +501,33 @@ var j = {
494
501
  * This source code is licensed under the ISC license.
495
502
  * See the LICENSE file in the root directory of this source tree.
496
503
  */
497
- const Ue = ({
504
+ const Ge = ({
498
505
  name: t,
499
- iconNode: i,
500
- absoluteStrokeWidth: u,
501
- "absolute-stroke-width": f,
502
- strokeWidth: d,
503
- "stroke-width": l,
504
- size: p = j.width,
505
- color: M = j.stroke,
506
- ...a
506
+ iconNode: n,
507
+ absoluteStrokeWidth: v,
508
+ "absolute-stroke-width": x,
509
+ strokeWidth: r,
510
+ "stroke-width": y,
511
+ size: k = j.width,
512
+ color: b = j.stroke,
513
+ ...o
507
514
  }, { slots: c }) => U(
508
515
  "svg",
509
516
  {
510
517
  ...j,
511
- ...a,
512
- width: p,
513
- height: p,
514
- stroke: M,
515
- "stroke-width": J(u) || J(f) || u === !0 || f === !0 ? Number(d || l || j["stroke-width"]) * 24 / Number(p) : d || l || j["stroke-width"],
516
- class: Ze(
518
+ ...o,
519
+ width: k,
520
+ height: k,
521
+ stroke: b,
522
+ "stroke-width": J(v) || J(x) || v === !0 || x === !0 ? Number(r || y || j["stroke-width"]) * 24 / Number(k) : r || y || j["stroke-width"],
523
+ class: Re(
517
524
  "lucide",
518
- a.class,
519
- ...t ? [`lucide-${K(Xe(t))}-icon`, `lucide-${K(t)}`] : ["lucide-icon"]
525
+ o.class,
526
+ ...t ? [`lucide-${K(Ue(t))}-icon`, `lucide-${K(t)}`] : ["lucide-icon"]
520
527
  ),
521
- ...!c.default && !Ee(a) && { "aria-hidden": "true" }
528
+ ...!c.default && !Ze(o) && { "aria-hidden": "true" }
522
529
  },
523
- [...i.map((m) => U(...m)), ...c.default ? [c.default()] : []]
530
+ [...n.map((w) => U(...w)), ...c.default ? [c.default()] : []]
524
531
  );
525
532
  /**
526
533
  * @license lucide-vue-next v0.577.0 - ISC
@@ -528,15 +535,15 @@ const Ue = ({
528
535
  * This source code is licensed under the ISC license.
529
536
  * See the LICENSE file in the root directory of this source tree.
530
537
  */
531
- const e = (t, i) => (u, { slots: f, attrs: d }) => U(
532
- Ue,
538
+ const e = (t, n) => (v, { slots: x, attrs: r }) => U(
539
+ Ge,
533
540
  {
534
- ...d,
535
- ...u,
536
- iconNode: i,
541
+ ...r,
542
+ ...v,
543
+ iconNode: n,
537
544
  name: t
538
545
  },
539
- f
546
+ x
540
547
  );
541
548
  /**
542
549
  * @license lucide-vue-next v0.577.0 - ISC
@@ -544,7 +551,7 @@ const e = (t, i) => (u, { slots: f, attrs: d }) => U(
544
551
  * This source code is licensed under the ISC license.
545
552
  * See the LICENSE file in the root directory of this source tree.
546
553
  */
547
- const Ge = e("archive-restore", [
554
+ const Ye = e("archive-restore", [
548
555
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
549
556
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
550
557
  ["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
@@ -557,7 +564,7 @@ const Ge = e("archive-restore", [
557
564
  * This source code is licensed under the ISC license.
558
565
  * See the LICENSE file in the root directory of this source tree.
559
566
  */
560
- const Ye = e("archive", [
567
+ const We = e("archive", [
561
568
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
562
569
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
563
570
  ["path", { d: "M10 12h4", key: "a56b0p" }]
@@ -568,7 +575,7 @@ const Ye = e("archive", [
568
575
  * This source code is licensed under the ISC license.
569
576
  * See the LICENSE file in the root directory of this source tree.
570
577
  */
571
- const We = e("arrow-down-to-line", [
578
+ const Je = e("arrow-down-to-line", [
572
579
  ["path", { d: "M12 17V3", key: "1cwfxf" }],
573
580
  ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
574
581
  ["path", { d: "M19 21H5", key: "150jfl" }]
@@ -579,7 +586,7 @@ const We = e("arrow-down-to-line", [
579
586
  * This source code is licensed under the ISC license.
580
587
  * See the LICENSE file in the root directory of this source tree.
581
588
  */
582
- const Je = e("badge-check", [
589
+ const Ke = e("badge-check", [
583
590
  [
584
591
  "path",
585
592
  {
@@ -595,7 +602,7 @@ const Je = e("badge-check", [
595
602
  * This source code is licensed under the ISC license.
596
603
  * See the LICENSE file in the root directory of this source tree.
597
604
  */
598
- const Ke = e("bot", [
605
+ const Qe = e("bot", [
599
606
  ["path", { d: "M12 8V4H8", key: "hb8ula" }],
600
607
  ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
601
608
  ["path", { d: "M2 14h2", key: "vft8re" }],
@@ -609,7 +616,7 @@ const Ke = e("bot", [
609
616
  * This source code is licensed under the ISC license.
610
617
  * See the LICENSE file in the root directory of this source tree.
611
618
  */
612
- const Qe = e("box", [
619
+ const et = e("box", [
613
620
  [
614
621
  "path",
615
622
  {
@@ -626,7 +633,7 @@ const Qe = e("box", [
626
633
  * This source code is licensed under the ISC license.
627
634
  * See the LICENSE file in the root directory of this source tree.
628
635
  */
629
- const et = e("brain-circuit", [
636
+ const tt = e("brain-circuit", [
630
637
  [
631
638
  "path",
632
639
  {
@@ -653,7 +660,7 @@ const et = e("brain-circuit", [
653
660
  * This source code is licensed under the ISC license.
654
661
  * See the LICENSE file in the root directory of this source tree.
655
662
  */
656
- const tt = e("brain", [
663
+ const at = e("brain", [
657
664
  ["path", { d: "M12 18V5", key: "adv99a" }],
658
665
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
659
666
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -669,7 +676,7 @@ const tt = e("brain", [
669
676
  * This source code is licensed under the ISC license.
670
677
  * See the LICENSE file in the root directory of this source tree.
671
678
  */
672
- const at = e("chart-column", [
679
+ const ot = e("chart-column", [
673
680
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
674
681
  ["path", { d: "M18 17V9", key: "2bz60n" }],
675
682
  ["path", { d: "M13 17V5", key: "1frdt8" }],
@@ -681,7 +688,7 @@ const at = e("chart-column", [
681
688
  * This source code is licensed under the ISC license.
682
689
  * See the LICENSE file in the root directory of this source tree.
683
690
  */
684
- const ot = e("clipboard-check", [
691
+ const nt = e("clipboard-check", [
685
692
  ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
686
693
  [
687
694
  "path",
@@ -698,7 +705,7 @@ const ot = e("clipboard-check", [
698
705
  * This source code is licensed under the ISC license.
699
706
  * See the LICENSE file in the root directory of this source tree.
700
707
  */
701
- const nt = e("clock-3", [
708
+ const it = e("clock-3", [
702
709
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
703
710
  ["path", { d: "M12 6v6h4", key: "135r8i" }]
704
711
  ]);
@@ -708,7 +715,7 @@ const nt = e("clock-3", [
708
715
  * This source code is licensed under the ISC license.
709
716
  * See the LICENSE file in the root directory of this source tree.
710
717
  */
711
- const it = e("cloud-download", [
718
+ const st = e("cloud-download", [
712
719
  ["path", { d: "M12 13v8l-4-4", key: "1f5nwf" }],
713
720
  ["path", { d: "m12 21 4-4", key: "1lfcce" }],
714
721
  ["path", { d: "M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284", key: "ui1hmy" }]
@@ -733,7 +740,7 @@ const ct = e("combine", [
733
740
  * This source code is licensed under the ISC license.
734
741
  * See the LICENSE file in the root directory of this source tree.
735
742
  */
736
- const st = e("copy", [
743
+ const dt = e("copy", [
737
744
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
738
745
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
739
746
  ]);
@@ -743,7 +750,7 @@ const st = e("copy", [
743
750
  * This source code is licensed under the ISC license.
744
751
  * See the LICENSE file in the root directory of this source tree.
745
752
  */
746
- const dt = e("cpu", [
753
+ const lt = e("cpu", [
747
754
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
748
755
  ["path", { d: "M12 2v2", key: "tus03m" }],
749
756
  ["path", { d: "M17 20v2", key: "1rnc9c" }],
@@ -765,7 +772,7 @@ const dt = e("cpu", [
765
772
  * This source code is licensed under the ISC license.
766
773
  * See the LICENSE file in the root directory of this source tree.
767
774
  */
768
- const lt = e("crop", [
775
+ const rt = e("crop", [
769
776
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
770
777
  ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
771
778
  ]);
@@ -775,7 +782,7 @@ const lt = e("crop", [
775
782
  * This source code is licensed under the ISC license.
776
783
  * See the LICENSE file in the root directory of this source tree.
777
784
  */
778
- const rt = e("crosshair", [
785
+ const ht = e("crosshair", [
779
786
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
780
787
  ["line", { x1: "22", x2: "18", y1: "12", y2: "12", key: "l9bcsi" }],
781
788
  ["line", { x1: "6", x2: "2", y1: "12", y2: "12", key: "13hhkx" }],
@@ -788,7 +795,7 @@ const rt = e("crosshair", [
788
795
  * This source code is licensed under the ISC license.
789
796
  * See the LICENSE file in the root directory of this source tree.
790
797
  */
791
- const ht = e("database", [
798
+ const yt = e("database", [
792
799
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
793
800
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
794
801
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
@@ -799,7 +806,7 @@ const ht = e("database", [
799
806
  * This source code is licensed under the ISC license.
800
807
  * See the LICENSE file in the root directory of this source tree.
801
808
  */
802
- const yt = e("download", [
809
+ const pt = e("download", [
803
810
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
804
811
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
805
812
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
@@ -810,7 +817,7 @@ const yt = e("download", [
810
817
  * This source code is licensed under the ISC license.
811
818
  * See the LICENSE file in the root directory of this source tree.
812
819
  */
813
- const pt = e("eye", [
820
+ const kt = e("eye", [
814
821
  [
815
822
  "path",
816
823
  {
@@ -826,7 +833,7 @@ const pt = e("eye", [
826
833
  * This source code is licensed under the ISC license.
827
834
  * See the LICENSE file in the root directory of this source tree.
828
835
  */
829
- const kt = e("file-down", [
836
+ const ut = e("file-down", [
830
837
  [
831
838
  "path",
832
839
  {
@@ -844,7 +851,7 @@ const kt = e("file-down", [
844
851
  * This source code is licensed under the ISC license.
845
852
  * See the LICENSE file in the root directory of this source tree.
846
853
  */
847
- const ut = e("files", [
854
+ const mt = e("files", [
848
855
  ["path", { d: "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8", key: "14sh0y" }],
849
856
  [
850
857
  "path",
@@ -861,7 +868,7 @@ const ut = e("files", [
861
868
  * This source code is licensed under the ISC license.
862
869
  * See the LICENSE file in the root directory of this source tree.
863
870
  */
864
- const mt = e("film", [
871
+ const vt = e("film", [
865
872
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
866
873
  ["path", { d: "M7 3v18", key: "bbkbws" }],
867
874
  ["path", { d: "M3 7.5h4", key: "zfgn84" }],
@@ -877,7 +884,7 @@ const mt = e("film", [
877
884
  * This source code is licensed under the ISC license.
878
885
  * See the LICENSE file in the root directory of this source tree.
879
886
  */
880
- const vt = e("folder-plus", [
887
+ const wt = e("folder-plus", [
881
888
  ["path", { d: "M12 10v6", key: "1bos4e" }],
882
889
  ["path", { d: "M9 13h6", key: "1uhe8q" }],
883
890
  [
@@ -894,7 +901,7 @@ const vt = e("folder-plus", [
894
901
  * This source code is licensed under the ISC license.
895
902
  * See the LICENSE file in the root directory of this source tree.
896
903
  */
897
- const wt = e("folder-root", [
904
+ const gt = e("folder-root", [
898
905
  [
899
906
  "path",
900
907
  {
@@ -911,7 +918,7 @@ const wt = e("folder-root", [
911
918
  * This source code is licensed under the ISC license.
912
919
  * See the LICENSE file in the root directory of this source tree.
913
920
  */
914
- const gt = e("folder-sync", [
921
+ const ft = e("folder-sync", [
915
922
  [
916
923
  "path",
917
924
  {
@@ -930,7 +937,7 @@ const gt = e("folder-sync", [
930
937
  * This source code is licensed under the ISC license.
931
938
  * See the LICENSE file in the root directory of this source tree.
932
939
  */
933
- const ft = e("funnel", [
940
+ const Mt = e("funnel", [
934
941
  [
935
942
  "path",
936
943
  {
@@ -945,7 +952,7 @@ const ft = e("funnel", [
945
952
  * This source code is licensed under the ISC license.
946
953
  * See the LICENSE file in the root directory of this source tree.
947
954
  */
948
- const Mt = e("gallery-vertical-end", [
955
+ const xt = e("gallery-vertical-end", [
949
956
  ["path", { d: "M7 2h10", key: "nczekb" }],
950
957
  ["path", { d: "M5 6h14", key: "u2x4p" }],
951
958
  ["rect", { width: "18", height: "12", x: "3", y: "10", rx: "2", key: "l0tzu3" }]
@@ -956,7 +963,7 @@ const Mt = e("gallery-vertical-end", [
956
963
  * This source code is licensed under the ISC license.
957
964
  * See the LICENSE file in the root directory of this source tree.
958
965
  */
959
- const xt = e("gauge", [
966
+ const bt = e("gauge", [
960
967
  ["path", { d: "m12 14 4-4", key: "9kzdfg" }],
961
968
  ["path", { d: "M3.34 19a10 10 0 1 1 17.32 0", key: "19p75a" }]
962
969
  ]);
@@ -966,7 +973,7 @@ const xt = e("gauge", [
966
973
  * This source code is licensed under the ISC license.
967
974
  * See the LICENSE file in the root directory of this source tree.
968
975
  */
969
- const bt = e("git-branch", [
976
+ const zt = e("git-branch", [
970
977
  ["path", { d: "M15 6a9 9 0 0 0-9 9V3", key: "1cii5b" }],
971
978
  ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
972
979
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }]
@@ -977,7 +984,7 @@ const bt = e("git-branch", [
977
984
  * This source code is licensed under the ISC license.
978
985
  * See the LICENSE file in the root directory of this source tree.
979
986
  */
980
- const zt = e("git-merge", [
987
+ const _t = e("git-merge", [
981
988
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
982
989
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
983
990
  ["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
@@ -988,7 +995,7 @@ const zt = e("git-merge", [
988
995
  * This source code is licensed under the ISC license.
989
996
  * See the LICENSE file in the root directory of this source tree.
990
997
  */
991
- const _t = e("hard-drive-download", [
998
+ const Ht = e("hard-drive-download", [
992
999
  ["path", { d: "M12 2v8", key: "1q4o3n" }],
993
1000
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
994
1001
  ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
@@ -1001,7 +1008,7 @@ const _t = e("hard-drive-download", [
1001
1008
  * This source code is licensed under the ISC license.
1002
1009
  * See the LICENSE file in the root directory of this source tree.
1003
1010
  */
1004
- const Ht = e("hard-drive-upload", [
1011
+ const Vt = e("hard-drive-upload", [
1005
1012
  ["path", { d: "m16 6-4-4-4 4", key: "13yo43" }],
1006
1013
  ["path", { d: "M12 2v8", key: "1q4o3n" }],
1007
1014
  ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
@@ -1014,7 +1021,7 @@ const Ht = e("hard-drive-upload", [
1014
1021
  * This source code is licensed under the ISC license.
1015
1022
  * See the LICENSE file in the root directory of this source tree.
1016
1023
  */
1017
- const Vt = e("history", [
1024
+ const At = e("history", [
1018
1025
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
1019
1026
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
1020
1027
  ["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
@@ -1025,7 +1032,7 @@ const Vt = e("history", [
1025
1032
  * This source code is licensed under the ISC license.
1026
1033
  * See the LICENSE file in the root directory of this source tree.
1027
1034
  */
1028
- const At = e("image-up", [
1035
+ const Ct = e("image-up", [
1029
1036
  [
1030
1037
  "path",
1031
1038
  {
@@ -1043,7 +1050,7 @@ const At = e("image-up", [
1043
1050
  * This source code is licensed under the ISC license.
1044
1051
  * See the LICENSE file in the root directory of this source tree.
1045
1052
  */
1046
- const Ct = e("image-plus", [
1053
+ const qt = e("image-plus", [
1047
1054
  ["path", { d: "M16 5h6", key: "1vod17" }],
1048
1055
  ["path", { d: "M19 2v6", key: "4bpg5p" }],
1049
1056
  ["path", { d: "M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5", key: "1ue2ih" }],
@@ -1056,7 +1063,7 @@ const Ct = e("image-plus", [
1056
1063
  * This source code is licensed under the ISC license.
1057
1064
  * See the LICENSE file in the root directory of this source tree.
1058
1065
  */
1059
- const qt = e("image", [
1066
+ const $t = e("image", [
1060
1067
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
1061
1068
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
1062
1069
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
@@ -1067,7 +1074,7 @@ const qt = e("image", [
1067
1074
  * This source code is licensed under the ISC license.
1068
1075
  * See the LICENSE file in the root directory of this source tree.
1069
1076
  */
1070
- const $t = e("images", [
1077
+ const Lt = e("images", [
1071
1078
  ["path", { d: "m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16", key: "9kzy35" }],
1072
1079
  ["path", { d: "M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2", key: "1t0f0t" }],
1073
1080
  ["circle", { cx: "13", cy: "7", r: "1", fill: "currentColor", key: "1obus6" }],
@@ -1079,7 +1086,7 @@ const $t = e("images", [
1079
1086
  * This source code is licensed under the ISC license.
1080
1087
  * See the LICENSE file in the root directory of this source tree.
1081
1088
  */
1082
- const Lt = e("layers", [
1089
+ const Pt = e("layers", [
1083
1090
  [
1084
1091
  "path",
1085
1092
  {
@@ -1108,7 +1115,7 @@ const Lt = e("layers", [
1108
1115
  * This source code is licensed under the ISC license.
1109
1116
  * See the LICENSE file in the root directory of this source tree.
1110
1117
  */
1111
- const Pt = e("list-checks", [
1118
+ const It = e("list-checks", [
1112
1119
  ["path", { d: "M13 5h8", key: "a7qcls" }],
1113
1120
  ["path", { d: "M13 12h8", key: "h98zly" }],
1114
1121
  ["path", { d: "M13 19h8", key: "c3s6r1" }],
@@ -1121,7 +1128,7 @@ const Pt = e("list-checks", [
1121
1128
  * This source code is licensed under the ISC license.
1122
1129
  * See the LICENSE file in the root directory of this source tree.
1123
1130
  */
1124
- const It = e("loader-circle", [
1131
+ const Tt = e("loader-circle", [
1125
1132
  ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
1126
1133
  ]);
1127
1134
  /**
@@ -1130,7 +1137,7 @@ const It = e("loader-circle", [
1130
1137
  * This source code is licensed under the ISC license.
1131
1138
  * See the LICENSE file in the root directory of this source tree.
1132
1139
  */
1133
- const Tt = e("mail", [
1140
+ const jt = e("mail", [
1134
1141
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
1135
1142
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
1136
1143
  ]);
@@ -1140,7 +1147,7 @@ const Tt = e("mail", [
1140
1147
  * This source code is licensed under the ISC license.
1141
1148
  * See the LICENSE file in the root directory of this source tree.
1142
1149
  */
1143
- const jt = e("moon", [
1150
+ const St = e("moon", [
1144
1151
  [
1145
1152
  "path",
1146
1153
  {
@@ -1165,7 +1172,7 @@ const Bt = e("move-right", [
1165
1172
  * This source code is licensed under the ISC license.
1166
1173
  * See the LICENSE file in the root directory of this source tree.
1167
1174
  */
1168
- const St = e("octagon-x", [
1175
+ const Nt = e("octagon-x", [
1169
1176
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
1170
1177
  [
1171
1178
  "path",
@@ -1182,7 +1189,7 @@ const St = e("octagon-x", [
1182
1189
  * This source code is licensed under the ISC license.
1183
1190
  * See the LICENSE file in the root directory of this source tree.
1184
1191
  */
1185
- const Nt = e("package-minus", [
1192
+ const Ft = e("package-minus", [
1186
1193
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
1187
1194
  ["path", { d: "M16 17h6", key: "1ook5g" }],
1188
1195
  [
@@ -1201,7 +1208,7 @@ const Nt = e("package-minus", [
1201
1208
  * This source code is licensed under the ISC license.
1202
1209
  * See the LICENSE file in the root directory of this source tree.
1203
1210
  */
1204
- const Ft = e("package-open", [
1211
+ const Dt = e("package-open", [
1205
1212
  ["path", { d: "M12 22v-9", key: "x3hkom" }],
1206
1213
  [
1207
1214
  "path",
@@ -1231,7 +1238,7 @@ const Ft = e("package-open", [
1231
1238
  * This source code is licensed under the ISC license.
1232
1239
  * See the LICENSE file in the root directory of this source tree.
1233
1240
  */
1234
- const Dt = e("package-plus", [
1241
+ const Ot = e("package-plus", [
1235
1242
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
1236
1243
  ["path", { d: "M16 17h6", key: "1ook5g" }],
1237
1244
  ["path", { d: "M19 14v6", key: "1ckrd5" }],
@@ -1251,7 +1258,7 @@ const Dt = e("package-plus", [
1251
1258
  * This source code is licensed under the ISC license.
1252
1259
  * See the LICENSE file in the root directory of this source tree.
1253
1260
  */
1254
- const Ot = e("play", [
1261
+ const Et = e("play", [
1255
1262
  [
1256
1263
  "path",
1257
1264
  {
@@ -1266,7 +1273,7 @@ const Ot = e("play", [
1266
1273
  * This source code is licensed under the ISC license.
1267
1274
  * See the LICENSE file in the root directory of this source tree.
1268
1275
  */
1269
- const Et = e("radar", [
1276
+ const Zt = e("radar", [
1270
1277
  ["path", { d: "M19.07 4.93A10 10 0 0 0 6.99 3.34", key: "z3du51" }],
1271
1278
  ["path", { d: "M4 6h.01", key: "oypzma" }],
1272
1279
  ["path", { d: "M2.29 9.62A10 10 0 1 0 21.31 8.35", key: "qzzz0" }],
@@ -1282,7 +1289,7 @@ const Et = e("radar", [
1282
1289
  * This source code is licensed under the ISC license.
1283
1290
  * See the LICENSE file in the root directory of this source tree.
1284
1291
  */
1285
- const Zt = e("route", [
1292
+ const Rt = e("route", [
1286
1293
  ["circle", { cx: "6", cy: "19", r: "3", key: "1kj8tv" }],
1287
1294
  ["path", { d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15", key: "1d8sl" }],
1288
1295
  ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }]
@@ -1293,7 +1300,7 @@ const Zt = e("route", [
1293
1300
  * This source code is licensed under the ISC license.
1294
1301
  * See the LICENSE file in the root directory of this source tree.
1295
1302
  */
1296
- const Rt = e("ruler", [
1303
+ const Xt = e("ruler", [
1297
1304
  [
1298
1305
  "path",
1299
1306
  {
@@ -1312,7 +1319,7 @@ const Rt = e("ruler", [
1312
1319
  * This source code is licensed under the ISC license.
1313
1320
  * See the LICENSE file in the root directory of this source tree.
1314
1321
  */
1315
- const Xt = e("scale", [
1322
+ const Ut = e("scale", [
1316
1323
  ["path", { d: "M12 3v18", key: "108xh3" }],
1317
1324
  ["path", { d: "m19 8 3 8a5 5 0 0 1-6 0zV7", key: "zcdpyk" }],
1318
1325
  ["path", { d: "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1", key: "1yorad" }],
@@ -1325,7 +1332,7 @@ const Xt = e("scale", [
1325
1332
  * This source code is licensed under the ISC license.
1326
1333
  * See the LICENSE file in the root directory of this source tree.
1327
1334
  */
1328
- const Ut = e("scan-eye", [
1335
+ const Gt = e("scan-eye", [
1329
1336
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1330
1337
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1331
1338
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1345,7 +1352,7 @@ const Ut = e("scan-eye", [
1345
1352
  * This source code is licensed under the ISC license.
1346
1353
  * See the LICENSE file in the root directory of this source tree.
1347
1354
  */
1348
- const Gt = e("scan-search", [
1355
+ const Yt = e("scan-search", [
1349
1356
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1350
1357
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1351
1358
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1359,7 +1366,7 @@ const Gt = e("scan-search", [
1359
1366
  * This source code is licensed under the ISC license.
1360
1367
  * See the LICENSE file in the root directory of this source tree.
1361
1368
  */
1362
- const Yt = e("scan-text", [
1369
+ const Wt = e("scan-text", [
1363
1370
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1364
1371
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1365
1372
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1374,7 +1381,7 @@ const Yt = e("scan-text", [
1374
1381
  * This source code is licensed under the ISC license.
1375
1382
  * See the LICENSE file in the root directory of this source tree.
1376
1383
  */
1377
- const Wt = e("scissors", [
1384
+ const Jt = e("scissors", [
1378
1385
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
1379
1386
  ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
1380
1387
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
@@ -1387,7 +1394,7 @@ const Wt = e("scissors", [
1387
1394
  * This source code is licensed under the ISC license.
1388
1395
  * See the LICENSE file in the root directory of this source tree.
1389
1396
  */
1390
- const Jt = e("search", [
1397
+ const Kt = e("search", [
1391
1398
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1392
1399
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1393
1400
  ]);
@@ -1397,7 +1404,7 @@ const Jt = e("search", [
1397
1404
  * This source code is licensed under the ISC license.
1398
1405
  * See the LICENSE file in the root directory of this source tree.
1399
1406
  */
1400
- const Kt = e("settings", [
1407
+ const Qt = e("settings", [
1401
1408
  [
1402
1409
  "path",
1403
1410
  {
@@ -1413,7 +1420,7 @@ const Kt = e("settings", [
1413
1420
  * This source code is licensed under the ISC license.
1414
1421
  * See the LICENSE file in the root directory of this source tree.
1415
1422
  */
1416
- const Qt = e("shield-check", [
1423
+ const ea = e("shield-check", [
1417
1424
  [
1418
1425
  "path",
1419
1426
  {
@@ -1429,7 +1436,7 @@ const Qt = e("shield-check", [
1429
1436
  * This source code is licensed under the ISC license.
1430
1437
  * See the LICENSE file in the root directory of this source tree.
1431
1438
  */
1432
- const e1 = e("shuffle", [
1439
+ const ta = e("shuffle", [
1433
1440
  ["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }],
1434
1441
  ["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }],
1435
1442
  ["path", { d: "M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22", key: "1ailkh" }],
@@ -1442,7 +1449,7 @@ const e1 = e("shuffle", [
1442
1449
  * This source code is licensed under the ISC license.
1443
1450
  * See the LICENSE file in the root directory of this source tree.
1444
1451
  */
1445
- const t1 = e("sparkles", [
1452
+ const aa = e("sparkles", [
1446
1453
  [
1447
1454
  "path",
1448
1455
  {
@@ -1460,7 +1467,7 @@ const t1 = e("sparkles", [
1460
1467
  * This source code is licensed under the ISC license.
1461
1468
  * See the LICENSE file in the root directory of this source tree.
1462
1469
  */
1463
- const a1 = e("split", [
1470
+ const oa = e("split", [
1464
1471
  ["path", { d: "M16 3h5v5", key: "1806ms" }],
1465
1472
  ["path", { d: "M8 3H3v5", key: "15dfkv" }],
1466
1473
  ["path", { d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3", key: "1qrqzj" }],
@@ -1472,7 +1479,7 @@ const a1 = e("split", [
1472
1479
  * This source code is licensed under the ISC license.
1473
1480
  * See the LICENSE file in the root directory of this source tree.
1474
1481
  */
1475
- const o1 = e("tag", [
1482
+ const na = e("tag", [
1476
1483
  [
1477
1484
  "path",
1478
1485
  {
@@ -1488,7 +1495,7 @@ const o1 = e("tag", [
1488
1495
  * This source code is licensed under the ISC license.
1489
1496
  * See the LICENSE file in the root directory of this source tree.
1490
1497
  */
1491
- const n1 = e("tags", [
1498
+ const ia = e("tags", [
1492
1499
  [
1493
1500
  "path",
1494
1501
  {
@@ -1508,7 +1515,7 @@ const n1 = e("tags", [
1508
1515
  * This source code is licensed under the ISC license.
1509
1516
  * See the LICENSE file in the root directory of this source tree.
1510
1517
  */
1511
- const i1 = e("terminal", [
1518
+ const sa = e("terminal", [
1512
1519
  ["path", { d: "M12 19h8", key: "baeox8" }],
1513
1520
  ["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
1514
1521
  ]);
@@ -1518,7 +1525,7 @@ const i1 = e("terminal", [
1518
1525
  * This source code is licensed under the ISC license.
1519
1526
  * See the LICENSE file in the root directory of this source tree.
1520
1527
  */
1521
- const c1 = e("text-cursor-input", [
1528
+ const ca = e("text-cursor-input", [
1522
1529
  ["path", { d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6", key: "1528k5" }],
1523
1530
  ["path", { d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7", key: "13ksps" }],
1524
1531
  ["path", { d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1", key: "1n9rhb" }],
@@ -1531,7 +1538,7 @@ const c1 = e("text-cursor-input", [
1531
1538
  * This source code is licensed under the ISC license.
1532
1539
  * See the LICENSE file in the root directory of this source tree.
1533
1540
  */
1534
- const s1 = e("trash-2", [
1541
+ const da = e("trash-2", [
1535
1542
  ["path", { d: "M10 11v6", key: "nco0om" }],
1536
1543
  ["path", { d: "M14 11v6", key: "outv1u" }],
1537
1544
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
@@ -1544,7 +1551,7 @@ const s1 = e("trash-2", [
1544
1551
  * This source code is licensed under the ISC license.
1545
1552
  * See the LICENSE file in the root directory of this source tree.
1546
1553
  */
1547
- const d1 = e("triangle-alert", [
1554
+ const la = e("triangle-alert", [
1548
1555
  [
1549
1556
  "path",
1550
1557
  {
@@ -1561,7 +1568,7 @@ const d1 = e("triangle-alert", [
1561
1568
  * This source code is licensed under the ISC license.
1562
1569
  * See the LICENSE file in the root directory of this source tree.
1563
1570
  */
1564
- const l1 = e("trophy", [
1571
+ const ra = e("trophy", [
1565
1572
  ["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978", key: "1n3hpd" }],
1566
1573
  ["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978", key: "rfe1zi" }],
1567
1574
  ["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18", key: "7xy6bh" }],
@@ -1575,7 +1582,7 @@ const l1 = e("trophy", [
1575
1582
  * This source code is licensed under the ISC license.
1576
1583
  * See the LICENSE file in the root directory of this source tree.
1577
1584
  */
1578
- const r1 = e("video", [
1585
+ const ha = e("video", [
1579
1586
  [
1580
1587
  "path",
1581
1588
  {
@@ -1591,7 +1598,7 @@ const r1 = e("video", [
1591
1598
  * This source code is licensed under the ISC license.
1592
1599
  * See the LICENSE file in the root directory of this source tree.
1593
1600
  */
1594
- const h1 = e("wand-sparkles", [
1601
+ const ya = e("wand-sparkles", [
1595
1602
  [
1596
1603
  "path",
1597
1604
  {
@@ -1613,7 +1620,7 @@ const h1 = e("wand-sparkles", [
1613
1620
  * This source code is licensed under the ISC license.
1614
1621
  * See the LICENSE file in the root directory of this source tree.
1615
1622
  */
1616
- const y1 = e("webhook", [
1623
+ const pa = e("webhook", [
1617
1624
  [
1618
1625
  "path",
1619
1626
  {
@@ -1623,7 +1630,7 @@ const y1 = e("webhook", [
1623
1630
  ],
1624
1631
  ["path", { d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06", key: "1go1hn" }],
1625
1632
  ["path", { d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8", key: "qlwsc0" }]
1626
- ]), p1 = [
1633
+ ]), ka = [
1627
1634
  "archive",
1628
1635
  "archive-restore",
1629
1636
  "arrow-down-to-line",
@@ -1697,191 +1704,191 @@ const y1 = e("webhook", [
1697
1704
  "video",
1698
1705
  "wand-sparkles",
1699
1706
  "webhook"
1700
- ], q1 = Object.freeze(p1), k1 = Object.freeze({
1701
- archive: Ye,
1702
- "archive-restore": Ge,
1703
- "arrow-down-to-line": We,
1704
- "badge-check": Je,
1705
- bot: Ke,
1706
- box: Qe,
1707
- brain: tt,
1708
- "brain-circuit": et,
1709
- "chart-column": at,
1710
- "clipboard-check": ot,
1711
- "clock-3": nt,
1712
- "cloud-download": it,
1707
+ ], $a = Object.freeze(ka), ua = Object.freeze({
1708
+ archive: We,
1709
+ "archive-restore": Ye,
1710
+ "arrow-down-to-line": Je,
1711
+ "badge-check": Ke,
1712
+ bot: Qe,
1713
+ box: et,
1714
+ brain: at,
1715
+ "brain-circuit": tt,
1716
+ "chart-column": ot,
1717
+ "clipboard-check": nt,
1718
+ "clock-3": it,
1719
+ "cloud-download": st,
1713
1720
  combine: ct,
1714
- copy: st,
1715
- cpu: dt,
1716
- crop: lt,
1717
- crosshair: rt,
1718
- database: ht,
1719
- download: yt,
1720
- eye: pt,
1721
- "file-down": kt,
1722
- files: ut,
1723
- film: mt,
1724
- "folder-plus": vt,
1725
- "folder-root": wt,
1726
- "folder-sync": gt,
1727
- funnel: ft,
1728
- "gallery-vertical-end": Mt,
1729
- gauge: xt,
1730
- "git-branch": bt,
1731
- "git-merge": zt,
1732
- "hard-drive-download": _t,
1733
- "hard-drive-upload": Ht,
1734
- history: Vt,
1735
- image: qt,
1736
- "image-plus": Ct,
1737
- "image-up": At,
1738
- images: $t,
1739
- layers: Lt,
1740
- "list-checks": Pt,
1741
- "loader-circle": It,
1742
- mail: Tt,
1743
- moon: jt,
1721
+ copy: dt,
1722
+ cpu: lt,
1723
+ crop: rt,
1724
+ crosshair: ht,
1725
+ database: yt,
1726
+ download: pt,
1727
+ eye: kt,
1728
+ "file-down": ut,
1729
+ files: mt,
1730
+ film: vt,
1731
+ "folder-plus": wt,
1732
+ "folder-root": gt,
1733
+ "folder-sync": ft,
1734
+ funnel: Mt,
1735
+ "gallery-vertical-end": xt,
1736
+ gauge: bt,
1737
+ "git-branch": zt,
1738
+ "git-merge": _t,
1739
+ "hard-drive-download": Ht,
1740
+ "hard-drive-upload": Vt,
1741
+ history: At,
1742
+ image: $t,
1743
+ "image-plus": qt,
1744
+ "image-up": Ct,
1745
+ images: Lt,
1746
+ layers: Pt,
1747
+ "list-checks": It,
1748
+ "loader-circle": Tt,
1749
+ mail: jt,
1750
+ moon: St,
1744
1751
  "move-right": Bt,
1745
- "octagon-x": St,
1746
- "package-minus": Nt,
1747
- "package-open": Ft,
1748
- "package-plus": Dt,
1749
- play: Ot,
1750
- radar: Et,
1751
- route: Zt,
1752
- ruler: Rt,
1753
- scale: Xt,
1754
- "scan-eye": Ut,
1755
- "scan-search": Gt,
1756
- "scan-text": Yt,
1757
- scissors: Wt,
1758
- search: Jt,
1759
- settings: Kt,
1760
- "shield-check": Qt,
1761
- shuffle: e1,
1762
- sparkles: t1,
1763
- split: a1,
1764
- tag: o1,
1765
- tags: n1,
1766
- terminal: i1,
1767
- "text-cursor-input": c1,
1768
- "trash-2": s1,
1769
- "triangle-alert": d1,
1770
- trophy: l1,
1771
- video: r1,
1772
- "wand-sparkles": h1,
1773
- webhook: y1
1774
- }), u1 = { class: "ob-flow-preview" }, m1 = ["viewBox"], v1 = ["d"], w1 = ["x", "y"], g1 = ["x", "y"], f1 = ["href", "x", "y"], M1 = ["x", "y"], x1 = ["x", "y"], N = 260, F = 100, D = 140, b1 = 140, R = 48, O = 26, $1 = /* @__PURE__ */ E({
1752
+ "octagon-x": Nt,
1753
+ "package-minus": Ft,
1754
+ "package-open": Dt,
1755
+ "package-plus": Ot,
1756
+ play: Et,
1757
+ radar: Zt,
1758
+ route: Rt,
1759
+ ruler: Xt,
1760
+ scale: Ut,
1761
+ "scan-eye": Gt,
1762
+ "scan-search": Yt,
1763
+ "scan-text": Wt,
1764
+ scissors: Jt,
1765
+ search: Kt,
1766
+ settings: Qt,
1767
+ "shield-check": ea,
1768
+ shuffle: ta,
1769
+ sparkles: aa,
1770
+ split: oa,
1771
+ tag: na,
1772
+ tags: ia,
1773
+ terminal: sa,
1774
+ "text-cursor-input": ca,
1775
+ "trash-2": da,
1776
+ "triangle-alert": la,
1777
+ trophy: ra,
1778
+ video: ha,
1779
+ "wand-sparkles": ya,
1780
+ webhook: pa
1781
+ }), ma = { class: "ob-flow-preview" }, va = ["viewBox"], wa = ["d"], ga = ["x", "y"], fa = ["x", "y"], Ma = ["href", "x", "y"], xa = ["x", "y"], ba = ["x", "y"], N = 260, F = 100, D = 140, za = 140, R = 48, O = 26, La = /* @__PURE__ */ E({
1775
1782
  __name: "FlowPreview",
1776
1783
  props: {
1777
1784
  preview: {},
1778
- icons: { default: () => k1 },
1785
+ icons: { default: () => ua },
1779
1786
  iconUrl: { type: Function, default: void 0 }
1780
1787
  },
1781
1788
  setup(t) {
1782
- const i = t, u = q(() => {
1783
- var a, c;
1784
- const p = ((a = i.preview) == null ? void 0 : a.n) ?? [], M = new Map(p.map((m) => [m.id, { x: m.x, y: m.y }]));
1785
- for (let m = 0; m < p.length; m += 1)
1786
- for (const H of ((c = i.preview) == null ? void 0 : c.e) ?? []) {
1787
- const $ = M.get(H.s), L = M.get(H.t);
1788
- $ && L && Math.abs($.x - L.x) < b1 && (L.x = $.x);
1789
+ const n = t, v = C(() => {
1790
+ var o, c;
1791
+ const k = ((o = n.preview) == null ? void 0 : o.n) ?? [], b = new Map(k.map((w) => [w.id, { x: w.x, y: w.y }]));
1792
+ for (let w = 0; w < k.length; w += 1)
1793
+ for (const _ of ((c = n.preview) == null ? void 0 : c.e) ?? []) {
1794
+ const $ = b.get(_.s), L = b.get(_.t);
1795
+ $ && L && Math.abs($.x - L.x) < za && (L.x = $.x);
1789
1796
  }
1790
- return p.map((m) => ({
1791
- ...m,
1792
- ...M.get(m.id) ?? { x: m.x, y: m.y }
1797
+ return k.map((w) => ({
1798
+ ...w,
1799
+ ...b.get(w.id) ?? { x: w.x, y: w.y }
1793
1800
  }));
1794
- }), f = q(() => {
1795
- const p = u.value;
1796
- if (p.length === 0) return "0 0 1 1";
1797
- let M = 1 / 0, a = 1 / 0, c = -1 / 0, m = -1 / 0;
1798
- for (const H of p)
1799
- M = Math.min(M, H.x), a = Math.min(a, H.y), c = Math.max(c, H.x + N), m = Math.max(m, H.y + F);
1800
- return `${M - D} ${a - D} ${c - M + D * 2} ${m - a + D * 2}`;
1801
- }), d = q(
1802
- () => new Map(u.value.map((p) => [p.id, p]))
1801
+ }), x = C(() => {
1802
+ const k = v.value;
1803
+ if (k.length === 0) return "0 0 1 1";
1804
+ let b = 1 / 0, o = 1 / 0, c = -1 / 0, w = -1 / 0;
1805
+ for (const _ of k)
1806
+ b = Math.min(b, _.x), o = Math.min(o, _.y), c = Math.max(c, _.x + N), w = Math.max(w, _.y + F);
1807
+ return `${b - D} ${o - D} ${c - b + D * 2} ${w - o + D * 2}`;
1808
+ }), r = C(
1809
+ () => new Map(v.value.map((k) => [k.id, k]))
1803
1810
  );
1804
- function l(p, M) {
1805
- const a = d.value.get(p), c = d.value.get(M);
1806
- if (!a || !c) return "";
1807
- const m = a.x + N / 2, H = a.y + F / 2, $ = c.x + N / 2, L = c.y + F / 2;
1808
- return `M ${m} ${H} L ${$} ${L}`;
1811
+ function y(k, b) {
1812
+ const o = r.value.get(k), c = r.value.get(b);
1813
+ if (!o || !c) return "";
1814
+ const w = o.x + N / 2, _ = o.y + F / 2, $ = c.x + N / 2, L = c.y + F / 2;
1815
+ return `M ${w} ${_} L ${$} ${L}`;
1809
1816
  }
1810
- return (p, M) => (n(), s("div", u1, [
1811
- t.preview && t.preview.n.length > 0 ? (n(), s("svg", {
1817
+ return (k, b) => (i(), l("div", ma, [
1818
+ t.preview && t.preview.n.length > 0 ? (i(), l("svg", {
1812
1819
  key: 0,
1813
1820
  class: "ob-flow-preview__svg",
1814
- viewBox: f.value,
1821
+ viewBox: x.value,
1815
1822
  preserveAspectRatio: "xMidYMid meet"
1816
1823
  }, [
1817
- (n(!0), s(C, null, B(t.preview.e, (a, c) => (n(), s("path", {
1824
+ (i(!0), l(q, null, S(t.preview.e, (o, c) => (i(), l("path", {
1818
1825
  key: c,
1819
- d: l(a.s, a.t),
1826
+ d: y(o.s, o.t),
1820
1827
  class: "ob-flow-preview__edge",
1821
1828
  "vector-effect": "non-scaling-stroke"
1822
- }, null, 8, v1))), 128)),
1823
- (n(!0), s(C, null, B(u.value, (a) => (n(), s("rect", {
1824
- key: a.id,
1825
- x: a.x,
1826
- y: a.y,
1829
+ }, null, 8, wa))), 128)),
1830
+ (i(!0), l(q, null, S(v.value, (o) => (i(), l("rect", {
1831
+ key: o.id,
1832
+ x: o.x,
1833
+ y: o.y,
1827
1834
  width: N,
1828
1835
  height: F,
1829
1836
  rx: "16",
1830
1837
  class: "ob-flow-preview__node",
1831
1838
  "vector-effect": "non-scaling-stroke"
1832
- }, null, 8, w1))), 128)),
1833
- (n(!0), s(C, null, B(u.value, (a) => (n(), s(C, {
1834
- key: `content-${a.id}`
1839
+ }, null, 8, ga))), 128)),
1840
+ (i(!0), l(q, null, S(v.value, (o) => (i(), l(q, {
1841
+ key: `content-${o.id}`
1835
1842
  }, [
1836
- k("rect", {
1837
- x: a.x + 18,
1838
- y: a.y + 18,
1843
+ m("rect", {
1844
+ x: o.x + 18,
1845
+ y: o.y + 18,
1839
1846
  width: "64",
1840
1847
  height: "64",
1841
1848
  rx: "16",
1842
1849
  class: "ob-flow-preview__icon-background",
1843
- style: S(a.c ? { fill: a.c } : void 0)
1844
- }, null, 12, g1),
1845
- a.i && t.icons[a.i] ? (n(), A(re(t.icons[a.i]), {
1850
+ style: B(o.c ? { fill: o.c } : void 0)
1851
+ }, null, 12, fa),
1852
+ o.i && t.icons[o.i] ? (i(), A(he(t.icons[o.i]), {
1846
1853
  key: 0,
1847
- x: a.x + O,
1848
- y: a.y + O,
1854
+ x: o.x + O,
1855
+ y: o.y + O,
1849
1856
  size: R,
1850
1857
  color: "white",
1851
1858
  "stroke-width": 2.5,
1852
1859
  "aria-hidden": "true"
1853
- }, null, 8, ["x", "y"])) : a.i && t.iconUrl ? (n(), s("image", {
1860
+ }, null, 8, ["x", "y"])) : o.i && t.iconUrl ? (i(), l("image", {
1854
1861
  key: 1,
1855
- href: t.iconUrl(a.i),
1856
- x: a.x + O,
1857
- y: a.y + O,
1862
+ href: t.iconUrl(o.i),
1863
+ x: o.x + O,
1864
+ y: o.y + O,
1858
1865
  width: R,
1859
1866
  height: R
1860
- }, null, 8, f1)) : (n(), s("text", {
1867
+ }, null, 8, Ma)) : (i(), l("text", {
1861
1868
  key: 2,
1862
- x: a.x + 50,
1863
- y: a.y + 68,
1869
+ x: o.x + 50,
1870
+ y: o.y + 68,
1864
1871
  fill: "white",
1865
1872
  "font-size": "42",
1866
1873
  "font-family": "sans-serif",
1867
1874
  "text-anchor": "middle"
1868
- }, " * ", 8, M1)),
1869
- k("rect", {
1870
- x: a.x + 100,
1871
- y: a.y + 45,
1875
+ }, " * ", 8, xa)),
1876
+ m("rect", {
1877
+ x: o.x + 100,
1878
+ y: o.y + 45,
1872
1879
  width: "128",
1873
1880
  height: "10",
1874
1881
  rx: "5",
1875
1882
  class: "ob-flow-preview__line"
1876
- }, null, 8, x1)
1883
+ }, null, 8, ba)
1877
1884
  ], 64))), 128))
1878
- ], 8, m1)) : x("", !0)
1885
+ ], 8, va)) : z("", !0)
1879
1886
  ]));
1880
1887
  }
1881
1888
  });
1882
1889
  export {
1883
- $1 as FlowPreview,
1884
- C1 as FlowViewer,
1885
- q1 as nodePreviewIconNames,
1886
- k1 as nodePreviewIcons
1890
+ La as FlowPreview,
1891
+ qa as FlowViewer,
1892
+ $a as nodePreviewIconNames,
1893
+ ua as nodePreviewIcons
1887
1894
  };