@oomol-lab/open-flow 0.1.0-beta.28 → 0.1.0-beta.29

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 (33) hide show
  1. package/dist/browser/{createResourceDialog-C2ZLGPla.js → createResourceDialog-C_8I3Fua.js} +1 -1
  2. package/dist/browser/dist-CoszrK7m.js +4 -0
  3. package/dist/browser/{switch-DuB8aovT.js → editorComponent-Dq4IKp5R.js} +1222 -608
  4. package/dist/browser/flow-authoring-node.d.ts +3 -0
  5. package/dist/browser/flow-authoring.js +1388 -1555
  6. package/dist/browser/flow-change.d.ts +12 -7
  7. package/dist/browser/flow-change.js +966 -1105
  8. package/dist/browser/{flowChanges-Z49mslMz.js → flowChanges-BBtkyUGd.js} +1974 -1839
  9. package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
  10. package/dist/browser/{flowWorkspace-DCaVDqtY.js → flowWorkspace-DNmBb3ZW.js} +52795 -52886
  11. package/dist/browser/{inputValues-CLnpqFAf.js → inputValues-BbSVOWQP.js} +2 -2
  12. package/dist/browser/{markdownContent-Bon8uhjM.js → markdownContent-D2oHGWc6.js} +1 -1
  13. package/dist/browser/ui.css +1 -1
  14. package/dist/browser/value-DPg_9yXB.js +93 -0
  15. package/dist/browser/workbench.css +1 -1
  16. package/dist/browser/workbench.js +508 -507
  17. package/dist/browser/{workbenchSelect-DX9IFmX-.js → workbenchSelect-CQOvpteT.js} +1057 -1223
  18. package/dist/common/authoringExamples.d.ts +3 -2
  19. package/dist/common/control-api-conformance.js +1359 -1484
  20. package/dist/common/control-api.d.ts +5 -1
  21. package/dist/common/control-api.js +942 -1077
  22. package/dist/common/control-requests.js +751 -834
  23. package/dist/common/flow-encoding.js +1502 -1637
  24. package/dist/common/flow-graph.d.ts +18 -2
  25. package/dist/common/flow-semantics.js +1982 -2116
  26. package/dist/common/mcp.js +908 -1016
  27. package/dist/common/provider-triggers.js +2048 -2183
  28. package/dist/common/run-events.js +1 -0
  29. package/dist/common/scheduler.d.ts +2 -2
  30. package/dist/common/scheduler.js +1282 -1477
  31. package/package.json +1 -1
  32. package/dist/browser/dist-B_T-OpQp.js +0 -4
  33. package/dist/browser/languages-C0zQ4GSo.js +0 -42
@@ -1,19 +1,19 @@
1
1
  import { a as e, i as t, l as n } from "./dist-Dz6Nglsd.js";
2
2
  import { a as r, i, r as a, t as o } from "./main-BDnNHhkU.js";
3
3
  import { Bn as s, Hn as c, kt as l, t as u } from "./lite-BuKZ8joP.js";
4
- import { i as d, n as f, o as p, r as m, t as h } from "./switch-DuB8aovT.js";
5
- import { A as g, At as _, C as v, Ct as y, D as b, Dt as x, E as S, Et as C, F as w, Ft as ee, G as T, H as E, I as D, J as O, K as k, L as te, N as A, Nt as ne, O as j, Ot as re, P as M, R as N, S as ie, St as ae, Tt as oe, U as P, Ut as F, V as se, W as ce, _ as le, _n as ue, _t as de, a as fe, an as pe, at as me, b as he, bn as ge, bt as I, c as _e, ct as ve, d as ye, dn as be, dt as xe, et as Se, f as Ce, fn as L, g as we, gn as Te, gt as Ee, h as De, hn as R, ht as Oe, in as ke, j as Ae, jt as je, kt as Me, l as Ne, lt as z, m as Pe, mn as Fe, nt as B, o as Ie, p as Le, pn as Re, q as ze, r as V, rt as Be, s as Ve, t as He, u as Ue, un as H, ut as We, v as Ge, vn as U, vt as Ke, w as qe, wt as W, x as Je, xt as Ye, y as Xe, yn as G, yt as Ze, z as Qe } from "./flowChanges-Z49mslMz.js";
6
- import { C as $e, V as et, _ as tt, a as nt, c as rt, d as it, f as at, g as ot, h as st, i as ct, l as lt, m as ut, n as K, o as dt, r as ft, s as pt, t as mt, v as ht, w as gt } from "./workbenchSelect-DX9IFmX-.js";
7
- import { i as _t, n as vt, r as yt, t as bt } from "./languages-C0zQ4GSo.js";
8
- import { o as q } from "./dist-B_T-OpQp.js";
9
- import { Fragment as xt, jsx as J, jsxs as Y } from "react/jsx-runtime";
10
- import { Suspense as St, lazy as Ct, useEffect as X, useRef as wt, useState as Z } from "react";
11
- import * as Tt from "effect/Cause";
12
- import * as Q from "effect/Effect";
13
- import * as Et from "effect/Exit";
14
- import * as Dt from "effect/Fiber";
4
+ import { _ as d, f, h as p, m, p as h } from "./editorComponent-Dq4IKp5R.js";
5
+ import { A as g, At as _, C as v, Ct as y, D as b, Dt as x, E as S, Et as C, F as w, G as T, H as E, I as ee, It as D, J as O, K as te, L as k, Mt as ne, N as A, O as re, Ot as ie, P as j, Pt as ae, R as M, S as oe, St as se, Tt as N, U as P, V as ce, W as le, Wt as ue, _ as de, _n as fe, _t as pe, a as me, an as he, b as ge, bn as F, bt as _e, c as ve, d as ye, dn as I, dt as be, et as xe, f as Se, fn as Ce, ft as we, g as Te, gn as L, gt as Ee, h as De, hn as Oe, it as ke, j as Ae, jt as je, kt as Me, l as Ne, lt as Pe, m as Fe, mn as Ie, o as Le, on as Re, ot as ze, p as Be, pn as R, q as Ve, r as z, rt as B, s as He, t as Ue, u as We, ut as V, v as Ge, vn as Ke, vt as qe, w as Je, wt as Ye, x as Xe, xn as Ze, xt as H, y as Qe, yn as U, yt as $e, z as et } from "./flowChanges-BBtkyUGd.js";
6
+ import { C as tt, V as nt, _ as rt, a as it, c as at, d as ot, f as st, g as ct, h as lt, i as ut, l as dt, m as ft, n as W, o as pt, r as mt, s as ht, t as gt, v as _t, w as vt } from "./workbenchSelect-CQOvpteT.js";
7
+ import { c as yt, l as bt, s as xt, u as St } from "./value-DPg_9yXB.js";
8
+ import { a as G } from "./dist-CoszrK7m.js";
9
+ import { Fragment as Ct, jsx as K, jsxs as q } from "react/jsx-runtime";
10
+ import { Suspense as wt, lazy as Tt, useEffect as J, useRef as Et, useState as Y } from "react";
11
+ import * as Dt from "effect/Cause";
12
+ import * as X from "effect/Effect";
13
+ import * as Ot from "effect/Exit";
14
+ import * as kt from "effect/Fiber";
15
15
  //#region src/workbench/browser/runtime/navigation.ts
16
- var Ot = class {
16
+ var At = class {
17
17
  #e;
18
18
  #t;
19
19
  #n;
@@ -72,7 +72,7 @@ var Ot = class {
72
72
  this.#s = !0, await this.#n.selectFlow(void 0), e == this.#i && (this.#u("design", !1), this.#s = !1);
73
73
  }
74
74
  async apply(e) {
75
- if (kt(e, this.#t)) return;
75
+ if (jt(e, this.#t)) return;
76
76
  this.#t = e;
77
77
  let t = ++this.#i;
78
78
  this.#s = !0;
@@ -88,59 +88,59 @@ var Ot = class {
88
88
  flowId: n,
89
89
  view: n == null ? "design" : e
90
90
  };
91
- kt(r, this.#t) || (this.#t = r, this.#e(r, { replace: t })), this.#r.set(r.view);
91
+ jt(r, this.#t) || (this.#t = r, this.#e(r, { replace: t })), this.#r.set(r.view);
92
92
  }
93
93
  };
94
- function kt(e, t) {
94
+ function jt(e, t) {
95
95
  return e.flowId == t.flowId && e.view == t.view;
96
96
  }
97
97
  //#endregion
98
98
  //#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
99
- var At = Ct(() => import("./createResourceDialog-C2ZLGPla.js")), jt = _t.map((e) => ({
100
- label: yt[e],
99
+ var Mt = Tt(() => import("./createResourceDialog-C_8I3Fua.js")), Nt = St.map((e) => ({
100
+ label: bt[e],
101
101
  value: e
102
102
  }));
103
- function Mt({ language: e, onLanguageChange: t }) {
104
- let n = i(), [r, a] = Z(null);
105
- return t == null ? null : /* @__PURE__ */ Y("div", {
103
+ function Pt({ language: e, onLanguageChange: t }) {
104
+ let n = i(), [r, a] = Y(null);
105
+ return t == null ? null : /* @__PURE__ */ q("div", {
106
106
  className: "resource-language",
107
107
  ref: a,
108
- children: [/* @__PURE__ */ J("span", {
108
+ children: [/* @__PURE__ */ K("span", {
109
109
  className: "sr-only",
110
110
  children: n("language.label")
111
- }), /* @__PURE__ */ J(mt, {
111
+ }), /* @__PURE__ */ K(gt, {
112
112
  ariaLabel: n("language.label"),
113
113
  onValueChange: (e) => t(e),
114
- options: jt,
114
+ options: Nt,
115
115
  portalRoot: r,
116
116
  value: e
117
117
  })]
118
118
  });
119
119
  }
120
- function Nt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: c }) {
121
- let [u, d] = Z(null), f = wt(null), p = wt(null), m = wt(null), g = a(), _ = i(), [v, b] = Z("idle"), [x, S] = Z(n.name), [C, w] = Z(), T = n.live != null && n.live.revisionId != n.draftRevisionId;
122
- async function E(e) {
123
- w(e == "publish" ? "publish" : "enabled");
120
+ function Ft({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: c }) {
121
+ let [u, d] = Y(null), p = Et(null), m = Et(null), h = Et(null), g = a(), _ = i(), [v, y] = Y("idle"), [b, x] = Y(n.name), [S, C] = Y(), w = n.live != null && n.live.revisionId != n.draftRevisionId;
122
+ async function T(e) {
123
+ C(e == "publish" ? "publish" : "enabled");
124
124
  try {
125
125
  e == "publish" ? await c.workspace.publishFlow(n) : await c.workspace.setFlowEnabled(n, e);
126
126
  } finally {
127
- w(void 0);
127
+ C(void 0);
128
128
  }
129
129
  }
130
- let D = gt(x);
131
- async function O(e) {
130
+ let E = vt(b);
131
+ async function ee(e) {
132
132
  e.preventDefault();
133
- let t = x.trim();
134
- gt(t) == null && await c.workspace.renameFlow(n.flowId, t) && b("idle");
133
+ let t = b.trim();
134
+ vt(t) == null && await c.workspace.renameFlow(n.flowId, t) && y("idle");
135
135
  }
136
- async function k() {
137
- await c.workspace.deleteFlow(n.flowId) && b("idle");
136
+ async function O() {
137
+ await c.workspace.deleteFlow(n.flowId) && y("idle");
138
138
  }
139
- return /* @__PURE__ */ Y("div", {
139
+ return /* @__PURE__ */ q("div", {
140
140
  className: "resource-item-row",
141
141
  ref: d,
142
142
  children: [
143
- /* @__PURE__ */ Y(s, {
143
+ /* @__PURE__ */ q(s, {
144
144
  "aria-disabled": n.status == "retiring",
145
145
  className: "resource-list-row flow-columns",
146
146
  nativeButton: !1,
@@ -149,142 +149,142 @@ function Nt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: c }) {
149
149
  e.preventDefault();
150
150
  return;
151
151
  }
152
- y(e, () => o(n));
152
+ Ye(e, () => o(n));
153
153
  },
154
- render: /* @__PURE__ */ J("a", { href: n.status == "retiring" ? void 0 : r }),
154
+ render: /* @__PURE__ */ K("a", { href: n.status == "retiring" ? void 0 : r }),
155
155
  tabIndex: n.status == "retiring" ? -1 : void 0,
156
156
  variant: "ghost",
157
157
  children: [
158
- /* @__PURE__ */ Y("span", {
158
+ /* @__PURE__ */ q("span", {
159
159
  className: "resource-primary-cell",
160
- children: [/* @__PURE__ */ J("span", {
160
+ children: [/* @__PURE__ */ K("span", {
161
161
  className: "resource-icon",
162
- children: /* @__PURE__ */ J(K, { name: "flow" })
163
- }), /* @__PURE__ */ Y("span", { children: [/* @__PURE__ */ Y("span", {
162
+ children: /* @__PURE__ */ K(W, { name: "flow" })
163
+ }), /* @__PURE__ */ q("span", { children: [/* @__PURE__ */ q("span", {
164
164
  className: "flex min-w-0 items-center gap-2",
165
- children: [/* @__PURE__ */ J("strong", {
165
+ children: [/* @__PURE__ */ K("strong", {
166
166
  className: "min-w-0 truncate",
167
167
  children: n.name
168
- }), e != null && /* @__PURE__ */ J(ke, {
168
+ }), e != null && /* @__PURE__ */ K(he, {
169
169
  className: "min-w-0 shrink",
170
170
  title: e,
171
171
  variant: "secondary",
172
- children: /* @__PURE__ */ J("span", {
172
+ children: /* @__PURE__ */ K("span", {
173
173
  className: "truncate",
174
174
  children: e
175
175
  })
176
176
  })]
177
- }), /* @__PURE__ */ J("code", {
177
+ }), /* @__PURE__ */ K("code", {
178
178
  translate: "no",
179
179
  children: n.flowId
180
180
  })] })]
181
181
  }),
182
- /* @__PURE__ */ J("time", {
182
+ /* @__PURE__ */ K("time", {
183
183
  dateTime: n.updatedAt,
184
184
  children: new Date(n.updatedAt).toLocaleString(g)
185
185
  }),
186
- /* @__PURE__ */ J("span", {
186
+ /* @__PURE__ */ K("span", {
187
187
  className: "resource-status",
188
- children: _(n.status == "retiring" ? "resource.retiring" : n.live == null ? "resource.notPublished" : T ? "resource.unpublishedChanges" : "resource.isPublished")
188
+ children: _(n.status == "retiring" ? "resource.retiring" : n.live == null ? "resource.notPublished" : w ? "resource.unpublishedChanges" : "resource.isPublished")
189
189
  })
190
190
  ]
191
191
  }),
192
- /* @__PURE__ */ Y("div", {
192
+ /* @__PURE__ */ q("div", {
193
193
  className: "resource-live-controls",
194
- "aria-busy": C != null,
195
- children: [n.live == null ? /* @__PURE__ */ J("span", {
194
+ "aria-busy": S != null,
195
+ children: [n.live == null ? /* @__PURE__ */ K("span", {
196
196
  className: "resource-status",
197
197
  title: _("resource.publishFirst"),
198
198
  children: "—"
199
- }) : /* @__PURE__ */ Y(et, {
199
+ }) : /* @__PURE__ */ q(nt, {
200
200
  className: "resource-enable",
201
201
  title: _("resource.enabledHint"),
202
- children: [/* @__PURE__ */ J(h, {
202
+ children: [/* @__PURE__ */ K(f, {
203
203
  "aria-label": _("resource.enableFlow", { name: n.name }),
204
204
  checked: n.live?.enabled ?? !1,
205
- disabled: n.status != "active" || n.live == null || t != null || C != null,
206
- onCheckedChange: (e) => void E(e),
205
+ disabled: n.status != "active" || n.live == null || t != null || S != null,
206
+ onCheckedChange: (e) => void T(e),
207
207
  size: "sm"
208
- }), /* @__PURE__ */ J("span", { children: _(n.live?.enabled ? "resource.enabled" : "resource.disabled") })]
209
- }), /* @__PURE__ */ J(s, {
210
- disabled: n.status != "active" || t != null || C != null || n.live != null && !T,
211
- onClick: () => void E("publish"),
208
+ }), /* @__PURE__ */ K("span", { children: _(n.live?.enabled ? "resource.enabled" : "resource.disabled") })]
209
+ }), /* @__PURE__ */ K(s, {
210
+ disabled: n.status != "active" || t != null || S != null || n.live != null && !w,
211
+ onClick: () => void T("publish"),
212
212
  size: "sm",
213
213
  variant: "outline",
214
- children: _(C == "publish" ? "workspace.publishing" : n.live == null ? "resource.publish" : "resource.publishUpdate")
214
+ children: _(S == "publish" ? "workspace.publishing" : n.live == null ? "resource.publish" : "resource.publishUpdate")
215
215
  })]
216
216
  }),
217
- n.status == "active" && /* @__PURE__ */ Y(je, { children: [/* @__PURE__ */ J(F, {
217
+ n.status == "active" && /* @__PURE__ */ q(ne, { children: [/* @__PURE__ */ K(ue, {
218
218
  "aria-label": _("sidebar.flowActions", { name: n.name }),
219
- disabled: t != null || C != null,
220
- render: /* @__PURE__ */ J(s, {
219
+ disabled: t != null || S != null,
220
+ render: /* @__PURE__ */ K(s, {
221
221
  className: "resource-row-more",
222
- ref: f,
222
+ ref: p,
223
223
  size: "icon-sm",
224
224
  variant: "ghost",
225
- children: /* @__PURE__ */ J(K, { name: "more" })
225
+ children: /* @__PURE__ */ K(W, { name: "more" })
226
226
  })
227
- }), /* @__PURE__ */ Y(ne, {
227
+ }), /* @__PURE__ */ q(ae, {
228
228
  align: "end",
229
229
  className: "min-w-36",
230
230
  container: u,
231
231
  finalFocus: v == "idle",
232
- children: [/* @__PURE__ */ J(ee, {
232
+ children: [/* @__PURE__ */ K(D, {
233
233
  onClick: () => {
234
- S(n.name), b("rename");
234
+ x(n.name), y("rename");
235
235
  },
236
236
  children: _("common.rename")
237
- }), /* @__PURE__ */ J(ee, {
238
- onClick: () => b("delete"),
237
+ }), /* @__PURE__ */ K(D, {
238
+ onClick: () => y("delete"),
239
239
  variant: "destructive",
240
240
  children: _("common.delete")
241
241
  })]
242
242
  })] }),
243
- /* @__PURE__ */ J(ft, {
243
+ /* @__PURE__ */ K(mt, {
244
244
  open: v == "rename",
245
245
  onOpenChange: (e) => {
246
- e || b("idle");
246
+ e || y("idle");
247
247
  },
248
- children: /* @__PURE__ */ J(nt, {
248
+ children: /* @__PURE__ */ K(it, {
249
249
  container: u,
250
- initialFocus: p,
251
- finalFocus: f,
250
+ initialFocus: m,
251
+ finalFocus: p,
252
252
  closeLabel: _("common.cancel"),
253
- children: /* @__PURE__ */ Y("form", {
253
+ children: /* @__PURE__ */ q("form", {
254
254
  className: "flex flex-col gap-4",
255
- onSubmit: (e) => void O(e),
255
+ onSubmit: (e) => void ee(e),
256
256
  children: [
257
- /* @__PURE__ */ J(rt, { children: /* @__PURE__ */ J(lt, { children: _("sidebar.renameFlow", { name: n.name }) }) }),
258
- /* @__PURE__ */ Y(at, {
259
- "data-invalid": x.length > 0 && D != null,
257
+ /* @__PURE__ */ K(at, { children: /* @__PURE__ */ K(dt, { children: _("sidebar.renameFlow", { name: n.name }) }) }),
258
+ /* @__PURE__ */ q(st, {
259
+ "data-invalid": b.length > 0 && E != null,
260
260
  children: [
261
- /* @__PURE__ */ J(ot, {
261
+ /* @__PURE__ */ K(ct, {
262
262
  htmlFor: `rename-flow-${n.flowId}`,
263
263
  children: _("resource.flowName")
264
264
  }),
265
- /* @__PURE__ */ J(l, {
265
+ /* @__PURE__ */ K(l, {
266
266
  autoComplete: "off",
267
- "aria-invalid": x.length > 0 && D != null,
268
- "aria-describedby": x.length > 0 && D != null ? `rename-error-${n.flowId}` : void 0,
267
+ "aria-invalid": b.length > 0 && E != null,
268
+ "aria-describedby": b.length > 0 && E != null ? `rename-error-${n.flowId}` : void 0,
269
269
  id: `rename-flow-${n.flowId}`,
270
270
  name: "flow-name",
271
- onChange: (e) => S(e.target.value),
272
- ref: p,
271
+ onChange: (e) => x(e.target.value),
272
+ ref: m,
273
273
  required: !0,
274
- value: x
274
+ value: b
275
275
  }),
276
- x.length > 0 && D != null && /* @__PURE__ */ J(ut, {
276
+ b.length > 0 && E != null && /* @__PURE__ */ K(ft, {
277
277
  id: `rename-error-${n.flowId}`,
278
- children: _(`resource.nameIssue.${D}`, { max: 80 })
278
+ children: _(`resource.nameIssue.${E}`, { max: 80 })
279
279
  })
280
280
  ]
281
281
  }),
282
- /* @__PURE__ */ Y(pt, { children: [/* @__PURE__ */ J(ct, {
283
- render: /* @__PURE__ */ J(s, { variant: "outline" }),
282
+ /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K(ut, {
283
+ render: /* @__PURE__ */ K(s, { variant: "outline" }),
284
284
  type: "button",
285
285
  children: _("common.cancel")
286
- }), /* @__PURE__ */ J(s, {
287
- disabled: t != null || D != null,
286
+ }), /* @__PURE__ */ K(s, {
287
+ disabled: t != null || E != null,
288
288
  type: "submit",
289
289
  children: _("common.save")
290
290
  })] })
@@ -292,25 +292,25 @@ function Nt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: c }) {
292
292
  })
293
293
  })
294
294
  }),
295
- /* @__PURE__ */ J(ft, {
295
+ /* @__PURE__ */ K(mt, {
296
296
  open: v == "delete",
297
297
  onOpenChange: (e) => {
298
- e || b("idle");
298
+ e || y("idle");
299
299
  },
300
- children: /* @__PURE__ */ Y(nt, {
300
+ children: /* @__PURE__ */ q(it, {
301
301
  container: u,
302
- initialFocus: m,
303
- finalFocus: f,
302
+ initialFocus: h,
303
+ finalFocus: p,
304
304
  showCloseButton: !1,
305
- children: [/* @__PURE__ */ Y(rt, { children: [/* @__PURE__ */ J(lt, { children: _("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ J(dt, { children: _("resource.deleteDescription") })] }), /* @__PURE__ */ Y(pt, { children: [/* @__PURE__ */ J(ct, {
306
- render: /* @__PURE__ */ J(s, {
307
- ref: m,
305
+ children: [/* @__PURE__ */ q(at, { children: [/* @__PURE__ */ K(dt, { children: _("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ K(pt, { children: _("resource.deleteDescription") })] }), /* @__PURE__ */ q(ht, { children: [/* @__PURE__ */ K(ut, {
306
+ render: /* @__PURE__ */ K(s, {
307
+ ref: h,
308
308
  variant: "outline"
309
309
  }),
310
310
  children: _("common.cancel")
311
- }), /* @__PURE__ */ J(s, {
311
+ }), /* @__PURE__ */ K(s, {
312
312
  disabled: t != null,
313
- onClick: () => void k(),
313
+ onClick: () => void O(),
314
314
  variant: "destructive",
315
315
  children: _(t == "flow" ? "common.deleting" : "common.delete")
316
316
  })] })]
@@ -319,94 +319,94 @@ function Nt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: c }) {
319
319
  ]
320
320
  });
321
321
  }
322
- function Pt() {
323
- return /* @__PURE__ */ Y("div", {
322
+ function It() {
323
+ return /* @__PURE__ */ q("div", {
324
324
  "aria-hidden": "true",
325
325
  className: "resource-list-row resource-skeleton-row flow-columns",
326
326
  children: [
327
- /* @__PURE__ */ Y("span", {
327
+ /* @__PURE__ */ q("span", {
328
328
  className: "resource-primary-cell",
329
- children: [/* @__PURE__ */ J(W, { className: "size-8 shrink-0" }), /* @__PURE__ */ Y("span", {
329
+ children: [/* @__PURE__ */ K(N, { className: "size-8 shrink-0" }), /* @__PURE__ */ q("span", {
330
330
  className: "resource-skeleton-copy",
331
- children: [/* @__PURE__ */ J(W, { className: "h-3.5 w-36" }), /* @__PURE__ */ J(W, { className: "h-2.5 w-48 max-w-full" })]
331
+ children: [/* @__PURE__ */ K(N, { className: "h-3.5 w-36" }), /* @__PURE__ */ K(N, { className: "h-2.5 w-48 max-w-full" })]
332
332
  })]
333
333
  }),
334
- /* @__PURE__ */ J(W, { className: "h-3 w-28" }),
335
- /* @__PURE__ */ J(W, { className: "h-3 w-16" })
334
+ /* @__PURE__ */ K(N, { className: "h-3 w-28" }),
335
+ /* @__PURE__ */ K(N, { className: "h-3 w-16" })
336
336
  ]
337
337
  });
338
338
  }
339
- function Ft({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: a, hrefForFlow: o, hostAction: l, hostTitle: u, language: p, onCreateFlow: h, onHostAction: g, onLanguageChange: v, onSelectFlow: y, store: b }) {
340
- let S = i(), w = r(b.workspace.$.busy), ee = r(b.workspace.$.flowLoadFailed), T = r(b.workspace.$.flowLoadMoreFailed), E = r(b.workspace.$.flowLoading), D = r(b.workspace.$.flowLoadingMore), O = r(b.workspace.$.flowNextCursor), k = r(b.workspace.$.flowRefreshing), te = r(b.workspace.$.flows), A = r(b.workspace.$.flowTotal), [ne, j] = Z(!1), [M, N] = Z(""), [ie, P] = Z(""), F = M.trim().toLocaleLowerCase(), se = te.filter((e) => e.name.toLocaleLowerCase().includes(F));
339
+ function Lt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: a, hrefForFlow: o, hostAction: l, hostTitle: u, language: d, onCreateFlow: f, onHostAction: g, onLanguageChange: v, onSelectFlow: b, store: S }) {
340
+ let w = i(), T = r(S.workspace.$.busy), E = r(S.workspace.$.flowLoadFailed), ee = r(S.workspace.$.flowLoadMoreFailed), D = r(S.workspace.$.flowLoading), O = r(S.workspace.$.flowLoadingMore), te = r(S.workspace.$.flowNextCursor), k = r(S.workspace.$.flowRefreshing), ne = r(S.workspace.$.flows), A = r(S.workspace.$.flowTotal), [re, j] = Y(!1), [ae, M] = Y(""), [oe, se] = Y(""), N = ae.trim().toLocaleLowerCase(), P = ne.filter((e) => e.name.toLocaleLowerCase().includes(N));
341
341
  async function ce(e) {
342
342
  e.preventDefault();
343
- let t = ie.trim();
344
- gt(t) != null || !await h(t) || (j(!1), P(""));
343
+ let t = oe.trim();
344
+ vt(t) != null || !await f(t) || (j(!1), se(""));
345
345
  }
346
- return /* @__PURE__ */ J("main", {
346
+ return /* @__PURE__ */ K("main", {
347
347
  className: "resource-browser",
348
- children: /* @__PURE__ */ Y("div", {
348
+ children: /* @__PURE__ */ q("div", {
349
349
  className: c("resource-page", e != "default" && "resource-page-full"),
350
350
  children: [
351
- /* @__PURE__ */ J("h1", {
351
+ /* @__PURE__ */ K("h1", {
352
352
  className: "sr-only",
353
- children: S("resource.flows")
353
+ children: w("resource.flows")
354
354
  }),
355
- /* @__PURE__ */ Y("section", {
355
+ /* @__PURE__ */ q("section", {
356
356
  "aria-labelledby": "flow-list-title",
357
357
  className: "resource-list-section",
358
358
  children: [
359
- /* @__PURE__ */ Y("div", {
359
+ /* @__PURE__ */ q("div", {
360
360
  className: "resource-list-title",
361
- children: [/* @__PURE__ */ Y("div", {
361
+ children: [/* @__PURE__ */ q("div", {
362
362
  className: "resource-list-heading",
363
- children: [/* @__PURE__ */ J("h2", {
363
+ children: [/* @__PURE__ */ K("h2", {
364
364
  id: "flow-list-title",
365
- children: S("resource.allFlows")
366
- }), !E && /* @__PURE__ */ J("span", { children: S("resource.flowCount", { count: A ?? te.length }) })]
367
- }), /* @__PURE__ */ Y("div", {
365
+ children: w("resource.allFlows")
366
+ }), !D && /* @__PURE__ */ K("span", { children: w("resource.flowCount", { count: A ?? ne.length }) })]
367
+ }), /* @__PURE__ */ q("div", {
368
368
  className: "resource-list-actions",
369
369
  children: [
370
- /* @__PURE__ */ J(Mt, {
371
- language: p,
370
+ /* @__PURE__ */ K(Pt, {
371
+ language: d,
372
372
  onLanguageChange: v
373
373
  }),
374
- /* @__PURE__ */ Y(f, {
374
+ /* @__PURE__ */ q(h, {
375
375
  className: "w-full sm:w-56",
376
- children: [/* @__PURE__ */ J(m, { children: /* @__PURE__ */ J(K, {
376
+ children: [/* @__PURE__ */ K(m, { children: /* @__PURE__ */ K(W, {
377
377
  name: "search",
378
378
  size: 17
379
- }) }), /* @__PURE__ */ J(d, {
379
+ }) }), /* @__PURE__ */ K(p, {
380
380
  autoComplete: "off",
381
- "aria-label": S("resource.searchFlows"),
381
+ "aria-label": w("resource.searchFlows"),
382
382
  name: "flow-search",
383
- onChange: (e) => N(e.target.value),
384
- placeholder: S("resource.searchFlows"),
385
- value: M
383
+ onChange: (e) => M(e.target.value),
384
+ placeholder: w("resource.searchFlows"),
385
+ value: ae
386
386
  })]
387
387
  }),
388
- /* @__PURE__ */ J(s, {
389
- "aria-label": S("common.refresh"),
390
- disabled: E || k || w != null,
391
- onClick: () => void b.workspace.reloadFlows(),
388
+ /* @__PURE__ */ K(s, {
389
+ "aria-label": w("common.refresh"),
390
+ disabled: D || k || T != null,
391
+ onClick: () => void S.workspace.reloadFlows(),
392
392
  size: "icon",
393
- title: S("common.refresh"),
393
+ title: w("common.refresh"),
394
394
  variant: "outline",
395
- children: /* @__PURE__ */ J(K, {
395
+ children: /* @__PURE__ */ K(W, {
396
396
  className: k ? "animate-spin" : void 0,
397
397
  name: "refresh"
398
398
  })
399
399
  }),
400
- /* @__PURE__ */ Y(s, {
400
+ /* @__PURE__ */ q(s, {
401
401
  className: "resource-page-primary-action",
402
- disabled: w != null,
402
+ disabled: T != null,
403
403
  onClick: () => j(!0),
404
- children: [/* @__PURE__ */ J(K, {
404
+ children: [/* @__PURE__ */ K(W, {
405
405
  "data-icon": "inline-start",
406
406
  name: "plus"
407
- }), S("resource.newFlow")]
407
+ }), w("resource.newFlow")]
408
408
  }),
409
- l != null && u != null && g != null && /* @__PURE__ */ J(ae, {
409
+ l != null && u != null && g != null && /* @__PURE__ */ K(y, {
410
410
  action: l,
411
411
  onAction: g,
412
412
  title: u
@@ -414,90 +414,90 @@ function Ft({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
414
414
  ]
415
415
  })]
416
416
  }),
417
- /* @__PURE__ */ Y("div", {
417
+ /* @__PURE__ */ q("div", {
418
418
  "aria-hidden": "true",
419
419
  className: "resource-list-columns flow-columns",
420
420
  children: [
421
- /* @__PURE__ */ J("span", { children: S("resource.name") }),
422
- /* @__PURE__ */ J("span", { children: S("resource.updated") }),
423
- /* @__PURE__ */ J("span", { children: S("resource.publication") }),
424
- /* @__PURE__ */ J("span", { children: S("resource.enabledColumn") })
421
+ /* @__PURE__ */ K("span", { children: w("resource.name") }),
422
+ /* @__PURE__ */ K("span", { children: w("resource.updated") }),
423
+ /* @__PURE__ */ K("span", { children: w("resource.publication") }),
424
+ /* @__PURE__ */ K("span", { children: w("resource.enabledColumn") })
425
425
  ]
426
426
  }),
427
- /* @__PURE__ */ J("div", {
427
+ /* @__PURE__ */ K("div", {
428
428
  className: "resource-list",
429
- children: E ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ J(Pt, {}, t)) : ee ? /* @__PURE__ */ Y(oe, {
429
+ children: D ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ K(It, {}, t)) : E ? /* @__PURE__ */ q(C, {
430
430
  className: "min-h-64",
431
431
  role: "alert",
432
- children: [/* @__PURE__ */ Y(re, { children: [
433
- /* @__PURE__ */ J(Me, {
432
+ children: [/* @__PURE__ */ q(Me, { children: [
433
+ /* @__PURE__ */ K(_, {
434
434
  variant: "icon",
435
- children: /* @__PURE__ */ J(K, {
435
+ children: /* @__PURE__ */ K(W, {
436
436
  name: "alert",
437
437
  size: 20
438
438
  })
439
439
  }),
440
- /* @__PURE__ */ J(_, { children: S("resource.flowsLoadFailed") }),
441
- /* @__PURE__ */ J(x, { children: S("resource.flowsLoadFailedDescription") })
442
- ] }), /* @__PURE__ */ J(C, { children: /* @__PURE__ */ J(s, {
443
- onClick: () => void b.retryFlows(),
440
+ /* @__PURE__ */ K(je, { children: w("resource.flowsLoadFailed") }),
441
+ /* @__PURE__ */ K(ie, { children: w("resource.flowsLoadFailedDescription") })
442
+ ] }), /* @__PURE__ */ K(x, { children: /* @__PURE__ */ K(s, {
443
+ onClick: () => void S.retryFlows(),
444
444
  variant: "outline",
445
- children: S("empty.retry")
445
+ children: w("empty.retry")
446
446
  }) })]
447
- }) : se.length == 0 ? /* @__PURE__ */ Y(oe, {
447
+ }) : P.length == 0 ? /* @__PURE__ */ q(C, {
448
448
  className: "min-h-64",
449
- children: [/* @__PURE__ */ Y(re, { children: [
450
- /* @__PURE__ */ J(Me, {
449
+ children: [/* @__PURE__ */ q(Me, { children: [
450
+ /* @__PURE__ */ K(_, {
451
451
  variant: "icon",
452
- children: /* @__PURE__ */ J(K, {
452
+ children: /* @__PURE__ */ K(W, {
453
453
  name: "flow",
454
454
  size: 20
455
455
  })
456
456
  }),
457
- /* @__PURE__ */ J(_, { children: S(F.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
458
- /* @__PURE__ */ J(x, { children: S(F.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
459
- ] }), F.length == 0 && /* @__PURE__ */ J(C, { children: /* @__PURE__ */ Y(s, {
457
+ /* @__PURE__ */ K(je, { children: w(N.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
458
+ /* @__PURE__ */ K(ie, { children: w(N.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
459
+ ] }), N.length == 0 && /* @__PURE__ */ K(x, { children: /* @__PURE__ */ q(s, {
460
460
  onClick: () => j(!0),
461
461
  variant: "outline",
462
- children: [/* @__PURE__ */ J(K, {
462
+ children: [/* @__PURE__ */ K(W, {
463
463
  "data-icon": "inline-start",
464
464
  name: "plus"
465
- }), S("resource.newFlow")]
465
+ }), w("resource.newFlow")]
466
466
  }) })]
467
- }) : se.map((e) => /* @__PURE__ */ J(Nt, {
467
+ }) : P.map((e) => /* @__PURE__ */ K(Ft, {
468
468
  badge: a?.[e.flowId],
469
- busy: w,
469
+ busy: T,
470
470
  flow: e,
471
471
  href: o(e),
472
- onSelect: y,
473
- store: b
472
+ onSelect: b,
473
+ store: S
474
474
  }, e.flowId))
475
475
  }),
476
- O != null && /* @__PURE__ */ J("div", {
476
+ te != null && /* @__PURE__ */ K("div", {
477
477
  className: "resource-list-footer",
478
- children: /* @__PURE__ */ J(s, {
479
- disabled: D || k,
480
- onClick: () => void b.workspace.loadMoreFlows(),
478
+ children: /* @__PURE__ */ K(s, {
479
+ disabled: O || k,
480
+ onClick: () => void S.workspace.loadMoreFlows(),
481
481
  variant: "outline",
482
- children: S(D ? "resource.loadingMore" : T ? "resource.retryLoadMore" : "resource.loadMore")
482
+ children: w(O ? "resource.loadingMore" : ee ? "resource.retryLoadMore" : "resource.loadMore")
483
483
  })
484
484
  })
485
485
  ]
486
486
  }),
487
- ne && /* @__PURE__ */ J(St, {
487
+ re && /* @__PURE__ */ K(wt, {
488
488
  fallback: null,
489
- children: /* @__PURE__ */ J(At, {
489
+ children: /* @__PURE__ */ K(Mt, {
490
490
  disabled: t,
491
491
  field: n,
492
492
  id: "flow-name",
493
- issue: gt(ie),
494
- label: S("resource.flowName"),
495
- name: ie,
496
- onNameChange: P,
493
+ issue: vt(oe),
494
+ label: w("resource.flowName"),
495
+ name: oe,
496
+ onNameChange: se,
497
497
  onOpenChange: j,
498
498
  onSubmit: (e) => void ce(e),
499
- pending: w == "flow",
500
- title: S("resource.newFlow")
499
+ pending: T == "flow",
500
+ title: w("resource.newFlow")
501
501
  })
502
502
  })
503
503
  ]
@@ -506,28 +506,28 @@ function Ft({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
506
506
  }
507
507
  //#endregion
508
508
  //#region ../../node_modules/.bun/dequal@2.0.3/node_modules/dequal/dist/index.mjs
509
- var It = Object.prototype.hasOwnProperty;
510
- function Lt(e, t, n) {
511
- for (n of e.keys()) if ($(n, t)) return n;
509
+ var Rt = Object.prototype.hasOwnProperty;
510
+ function zt(e, t, n) {
511
+ for (n of e.keys()) if (Z(n, t)) return n;
512
512
  }
513
- function $(e, t) {
513
+ function Z(e, t) {
514
514
  var n, r, i;
515
515
  if (e === t) return !0;
516
516
  if (e && t && (n = e.constructor) === t.constructor) {
517
517
  if (n === Date) return e.getTime() === t.getTime();
518
518
  if (n === RegExp) return e.toString() === t.toString();
519
519
  if (n === Array) {
520
- if ((r = e.length) === t.length) for (; r-- && $(e[r], t[r]););
520
+ if ((r = e.length) === t.length) for (; r-- && Z(e[r], t[r]););
521
521
  return r === -1;
522
522
  }
523
523
  if (n === Set) {
524
524
  if (e.size !== t.size) return !1;
525
- for (r of e) if (i = r, i && typeof i == "object" && (i = Lt(t, i), !i) || !t.has(i)) return !1;
525
+ for (r of e) if (i = r, i && typeof i == "object" && (i = zt(t, i), !i) || !t.has(i)) return !1;
526
526
  return !0;
527
527
  }
528
528
  if (n === Map) {
529
529
  if (e.size !== t.size) return !1;
530
- for (r of e) if (i = r[0], i && typeof i == "object" && (i = Lt(t, i), !i) || !$(r[1], t.get(i))) return !1;
530
+ for (r of e) if (i = r[0], i && typeof i == "object" && (i = zt(t, i), !i) || !Z(r[1], t.get(i))) return !1;
531
531
  return !0;
532
532
  }
533
533
  if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
@@ -540,7 +540,7 @@ function $(e, t) {
540
540
  return r === -1;
541
541
  }
542
542
  if (!n || typeof e == "object") {
543
- for (n in r = 0, e) if (It.call(e, n) && ++r && !It.call(t, n) || !(n in t) || !$(e[n], t[n])) return !1;
543
+ for (n in r = 0, e) if (Rt.call(e, n) && ++r && !Rt.call(t, n) || !(n in t) || !Z(e[n], t[n])) return !1;
544
544
  return Object.keys(t).length === r;
545
545
  }
546
546
  }
@@ -548,7 +548,7 @@ function $(e, t) {
548
548
  }
549
549
  //#endregion
550
550
  //#region ../../node_modules/.bun/nanoid@6.0.1/node_modules/nanoid/index.browser.js
551
- var Rt = (e) => crypto.getRandomValues(new Uint8Array(e)), zt = (e, t, n) => {
551
+ var Bt = (e) => crypto.getRandomValues(new Uint8Array(e)), Vt = (e, t, n) => {
552
552
  let r = 256 - 256 % e.length;
553
553
  if (r === 256) {
554
554
  let r = e.length - 1;
@@ -570,29 +570,29 @@ var Rt = (e) => crypto.getRandomValues(new Uint8Array(e)), zt = (e, t, n) => {
570
570
  for (; s--;) if (t[s] < r && (o += e[t[s] % e.length], o.length >= a)) return o;
571
571
  }
572
572
  };
573
- }, Bt = (e, t = 21) => zt(e, t | 0, Rt);
573
+ }, Ht = (e, t = 21) => Vt(e, t | 0, Bt);
574
574
  //#endregion
575
575
  //#region src/flow/common/edgeChanges.ts
576
- function Vt(e, t, n) {
577
- return Ut(e, t)?.edges.some((e) => u(e, n)) ? [] : [{
576
+ function Ut(e, t, n) {
577
+ return Gt(e, t)?.edges.some((e) => u(e, n)) ? [] : [{
578
578
  edge: n,
579
579
  kind: "graph.edge.connect",
580
580
  target: t
581
581
  }];
582
582
  }
583
- function Ht(e, t, n) {
584
- return Ut(e, t)?.edges.some((e) => u(e, n)) ? [{
583
+ function Wt(e, t, n) {
584
+ return Gt(e, t)?.edges.some((e) => u(e, n)) ? [{
585
585
  edge: n,
586
586
  kind: "graph.edge.disconnect",
587
587
  target: t
588
588
  }] : [];
589
589
  }
590
- function Ut(e, t) {
590
+ function Gt(e, t) {
591
591
  return t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph;
592
592
  }
593
593
  //#endregion
594
594
  //#region src/flow/common/moduleChanges.ts
595
- async function Wt(e) {
595
+ async function Kt(e) {
596
596
  try {
597
597
  let { parse: t } = await import("./lib-C5Ipyfps.js").then((e) => e.t), n = t(e, {
598
598
  errorRecovery: !0,
@@ -608,7 +608,7 @@ async function Wt(e) {
608
608
  return [];
609
609
  }
610
610
  }
611
- function Gt(e, t, n, r, i) {
611
+ function qt(e, t, n, r, i) {
612
612
  return [{
613
613
  beforeImports: n,
614
614
  beforeSource: t,
@@ -618,7 +618,7 @@ function Gt(e, t, n, r, i) {
618
618
  source: r
619
619
  }];
620
620
  }
621
- var Kt = Bt("23456789abcdefghjkmnpqrstuvwxyz", 10), qt = {
621
+ var Jt = Ht("23456789abcdefghjkmnpqrstuvwxyz", 10), Yt = {
622
622
  activities: [],
623
623
  activitiesLoadFailed: !1,
624
624
  activitiesLoading: !1,
@@ -633,25 +633,25 @@ var Kt = Bt("23456789abcdefghjkmnpqrstuvwxyz", 10), qt = {
633
633
  publications: [],
634
634
  publishing: !1,
635
635
  refreshing: !1
636
- }, Jt = 20, Yt = 50, Xt = 750;
637
- function Zt(e, t) {
636
+ }, Xt = 20, Zt = 50, Qt = 750;
637
+ function Q(e, t) {
638
638
  return e?.flowId == t.flowId;
639
639
  }
640
- var Qt = class {
640
+ var $t = class {
641
641
  #e;
642
642
  #t;
643
643
  #n;
644
- #r = new z();
645
- #i = new z();
644
+ #r = new V();
645
+ #i = new V();
646
646
  #a;
647
- #o = new z();
648
- #s = new z();
647
+ #o = new V();
648
+ #s = new V();
649
649
  #c;
650
- #l = n(qt);
650
+ #l = n(Yt);
651
651
  #u;
652
652
  #d;
653
653
  #f;
654
- constructor(t, n, r, i, a = L, o = p()) {
654
+ constructor(t, n, r, i, a = R, o = d()) {
655
655
  this.#e = t, this.#t = a, this.#n = o, this.#a = i, this.#c = r, this.#u = n, this.$ = {
656
656
  activities: e(this.#l, (e) => e.activities),
657
657
  activitiesLoadFailed: e(this.#l, (e) => e.activitiesLoadFailed),
@@ -685,17 +685,17 @@ var Qt = class {
685
685
  this.#l.dispose();
686
686
  }
687
687
  reset() {
688
- this.#r.invalidate(), this.#i.invalidate(), this.#y(), this.#o.invalidate(), this.#s.invalidate(), this.#f = void 0, this.#l.set(qt);
688
+ this.#r.invalidate(), this.#i.invalidate(), this.#y(), this.#o.invalidate(), this.#s.invalidate(), this.#f = void 0, this.#l.set(Yt);
689
689
  }
690
690
  async load(e) {
691
- let t = { flowId: e }, n = this.#l.value, r = n.loaded && Zt(n.target, t), i = this.#r.begin();
692
- Zt(n.target, t) || (this.#i.invalidate(), this.#y(), this.#f = void 0), r ? this.#S({
691
+ let t = { flowId: e }, n = this.#l.value, r = n.loaded && Q(n.target, t), i = this.#r.begin();
692
+ Q(n.target, t) || (this.#i.invalidate(), this.#y(), this.#f = void 0), r ? this.#S({
693
693
  loadFailed: !1,
694
694
  loadingMore: !1,
695
695
  loadMoreFailed: !1,
696
696
  refreshing: !0
697
697
  }) : this.#l.set({
698
- ...qt,
698
+ ...Yt,
699
699
  loading: !0,
700
700
  target: t
701
701
  });
@@ -725,7 +725,7 @@ var Qt = class {
725
725
  loadFailed: !r,
726
726
  loading: !1,
727
727
  refreshing: !1
728
- }), this.#c(H(e, this.#n.t));
728
+ }), this.#c(I(e, this.#n.t));
729
729
  }
730
730
  }
731
731
  async loadMore() {
@@ -739,7 +739,7 @@ var Qt = class {
739
739
  try {
740
740
  let e = await this.#e.listPublications(n.flowId, {
741
741
  cursor: t,
742
- limit: Yt
742
+ limit: Zt
743
743
  });
744
744
  if (!r()) return;
745
745
  let i = new Set(this.#l.value.publications.map((e) => e.publicationId));
@@ -754,7 +754,7 @@ var Qt = class {
754
754
  this.#S({
755
755
  loadMoreFailed: !0,
756
756
  loadingMore: !1
757
- }), this.#c(H(e, this.#n.t));
757
+ }), this.#c(I(e, this.#n.t));
758
758
  }
759
759
  }
760
760
  async publish() {
@@ -781,7 +781,7 @@ var Qt = class {
781
781
  publishing: e.status == "pending"
782
782
  }), await this.#_(r, e, s, t.name)) : !1;
783
783
  } catch (e) {
784
- return s() ? (e instanceof G && e.code == "live.conflict" && await this.#m(r), this.#c(H(e, this.#n.t)), !1) : !1;
784
+ return s() ? (e instanceof F && e.code == "live.conflict" && await this.#m(r), this.#c(I(e, this.#n.t)), !1) : !1;
785
785
  } finally {
786
786
  s() && this.#S({ publishing: !1 });
787
787
  }
@@ -807,7 +807,7 @@ var Qt = class {
807
807
  message: this.#n.t("notice.rolledBack", { revision: e.revisionId })
808
808
  }), !0);
809
809
  } catch (e) {
810
- return s() ? (e instanceof G && e.code == "live.conflict" && await this.#m(r), this.#c(H(e, this.#n.t)), !1) : !1;
810
+ return s() ? (e instanceof F && e.code == "live.conflict" && await this.#m(r), this.#c(I(e, this.#n.t)), !1) : !1;
811
811
  } finally {
812
812
  s() && this.#S({ rollingBackPublicationId: void 0 });
813
813
  }
@@ -842,13 +842,13 @@ var Qt = class {
842
842
  testingTriggerId: void 0,
843
843
  testResult: void 0
844
844
  });
845
- let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: Jt })]);
845
+ let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: Xt })]);
846
846
  if (n()) {
847
847
  if (r.status == "rejected") {
848
848
  this.#S({
849
849
  activitiesLoading: !1,
850
850
  detailLoading: !1
851
- }), this.#c(H(r.reason, this.#n.t));
851
+ }), this.#c(I(r.reason, this.#n.t));
852
852
  return;
853
853
  }
854
854
  this.#S({
@@ -862,7 +862,7 @@ var Qt = class {
862
862
  }) : (this.#S({
863
863
  activitiesLoadFailed: !0,
864
864
  activitiesLoading: !1
865
- }), this.#c(H(i.reason, this.#n.t)));
865
+ }), this.#c(I(i.reason, this.#n.t)));
866
866
  }
867
867
  }
868
868
  async loadMoreTriggerActivities() {
@@ -876,7 +876,7 @@ var Qt = class {
876
876
  try {
877
877
  let e = await this.#e.listFlowTriggerActivities(r.flowId, n, {
878
878
  cursor: t,
879
- limit: Jt
879
+ limit: Xt
880
880
  });
881
881
  if (!i() || this.#l.value.selectedTriggerId != n) return;
882
882
  let a = new Set(this.#l.value.activities.map((e) => e.activityId));
@@ -891,7 +891,7 @@ var Qt = class {
891
891
  this.#S({
892
892
  activitiesLoadFailed: !0,
893
893
  activitiesLoadingMore: !1
894
- }), this.#c(H(e, this.#n.t));
894
+ }), this.#c(I(e, this.#n.t));
895
895
  }
896
896
  }
897
897
  async testTrigger() {
@@ -906,7 +906,7 @@ var Qt = class {
906
906
  let e = await this.#e.testFlowPollTrigger(n.flowId, t);
907
907
  return !i() || this.#l.value.selectedTriggerId != t ? !1 : (this.#S({ testResult: e }), !0);
908
908
  } catch (e) {
909
- return i() && this.#l.value.selectedTriggerId == t && this.#c(H(e, this.#n.t)), !1;
909
+ return i() && this.#l.value.selectedTriggerId == t && this.#c(I(e, this.#n.t)), !1;
910
910
  } finally {
911
911
  i() && this.#l.value.selectedTriggerId == t && this.#S({ testingTriggerId: void 0 });
912
912
  }
@@ -925,16 +925,16 @@ var Qt = class {
925
925
  message: this.#n.t(e.operatorState == "active" ? "notice.triggerPaused" : "notice.triggerResumed")
926
926
  }), !0) : !1;
927
927
  } catch (e) {
928
- return n() && this.#c(H(e, this.#n.t)), !1;
928
+ return n() && this.#c(I(e, this.#n.t)), !1;
929
929
  } finally {
930
930
  n() && this.#S({ changingTriggerId: void 0 });
931
931
  }
932
932
  }
933
933
  async #p(e, t) {
934
934
  let n = this.#r.begin(), [r, i, a] = await this.#h(e, t).catch((t) => {
935
- throw n() && Zt(this.#l.value.target, e) && this.#S({ refreshing: !1 }), t;
935
+ throw n() && Q(this.#l.value.target, e) && this.#S({ refreshing: !1 }), t;
936
936
  });
937
- t?.throwIfAborted(), n() && this.#u.updateLive(r), n() && Zt(this.#l.value.target, e) && this.#S({
937
+ t?.throwIfAborted(), n() && this.#u.updateLive(r), n() && Q(this.#l.value.target, e) && this.#S({
938
938
  bindings: a,
939
939
  live: r,
940
940
  loaded: !0,
@@ -958,7 +958,7 @@ var Qt = class {
958
958
  this.#e.getLive(e.flowId, t),
959
959
  this.#e.listPublications(e.flowId, {
960
960
  includeTotal: !0,
961
- limit: Yt
961
+ limit: Zt
962
962
  }, t),
963
963
  this.#e.listFlowTriggerBindings(e.flowId, t)
964
964
  ]);
@@ -968,7 +968,7 @@ var Qt = class {
968
968
  if (t != null && t != "") try {
969
969
  return await this.#e.getPublishOperation(e.flowId, t);
970
970
  } catch (t) {
971
- if (t instanceof G && t.code == "publication.operation-not-found") {
971
+ if (t instanceof F && t.code == "publication.operation-not-found") {
972
972
  this.#a.setItem(this.#b(e.flowId), "");
973
973
  return;
974
974
  }
@@ -977,7 +977,7 @@ var Qt = class {
977
977
  }
978
978
  async #_(e, t, n, r) {
979
979
  this.#y();
980
- let i = Q.runFork(Q.gen({ self: this }, function* () {
980
+ let i = X.runFork(X.gen({ self: this }, function* () {
981
981
  let i = yield* this.#v(e, t, n);
982
982
  if (i == null || !n()) return !1;
983
983
  if (this.#f = void 0, this.#x(e, {
@@ -987,11 +987,11 @@ var Qt = class {
987
987
  kind: "error",
988
988
  message: i.issue.message
989
989
  }), !1;
990
- let a = yield* Q.tryPromise({
990
+ let a = yield* X.tryPromise({
991
991
  try: (t) => this.#p(e, t),
992
992
  catch: (e) => e
993
- }).pipe(Q.match({
994
- onFailure: (e) => (n() && this.#c(H(e, this.#n.t)), !1),
993
+ }).pipe(X.match({
994
+ onFailure: (e) => (n() && this.#c(I(e, this.#n.t)), !1),
995
995
  onSuccess: () => !0
996
996
  }));
997
997
  return n() ? (a && this.#c({
@@ -1000,34 +1000,34 @@ var Qt = class {
1000
1000
  }), !0) : !1;
1001
1001
  }));
1002
1002
  this.#d = i;
1003
- let a = await Q.runPromiseExit(Dt.join(i));
1004
- if (Et.isSuccess(a)) return a.value;
1005
- if (Tt.hasInterruptsOnly(a.cause)) return !1;
1006
- throw Tt.squash(a.cause);
1003
+ let a = await X.runPromiseExit(kt.join(i));
1004
+ if (Ot.isSuccess(a)) return a.value;
1005
+ if (Dt.hasInterruptsOnly(a.cause)) return !1;
1006
+ throw Dt.squash(a.cause);
1007
1007
  }
1008
1008
  #v(e, t, n) {
1009
- return Q.gen({ self: this }, function* () {
1009
+ return X.gen({ self: this }, function* () {
1010
1010
  let r = t;
1011
1011
  for (; r.status == "pending";) {
1012
- if (yield* Q.sleep(Xt), !n()) return;
1013
- let t = yield* Q.tryPromise({
1012
+ if (yield* X.sleep(Qt), !n()) return;
1013
+ let t = yield* X.tryPromise({
1014
1014
  try: (t) => this.#e.getPublishOperation(e.flowId, r.operationId, t),
1015
1015
  catch: (e) => e
1016
- }).pipe(Q.match({
1016
+ }).pipe(X.match({
1017
1017
  onFailure: (e) => ({ error: e }),
1018
1018
  onSuccess: (e) => ({ value: e })
1019
1019
  }));
1020
1020
  if (!n()) return;
1021
1021
  if ("error" in t) {
1022
1022
  let n = t.error;
1023
- if (n instanceof G && n.code == "publication.operation-not-found") {
1023
+ if (n instanceof F && n.code == "publication.operation-not-found") {
1024
1024
  this.#a.setItem(this.#b(e.flowId), ""), this.#x(e, {
1025
1025
  operation: void 0,
1026
1026
  publishing: !1
1027
- }), this.#c(H(n, this.#n.t));
1027
+ }), this.#c(I(n, this.#n.t));
1028
1028
  return;
1029
1029
  }
1030
- this.#c(H(n, this.#n.t));
1030
+ this.#c(I(n, this.#n.t));
1031
1031
  continue;
1032
1032
  }
1033
1033
  r = t.value, this.#x(e, { operation: r });
@@ -1042,8 +1042,8 @@ var Qt = class {
1042
1042
  return `publish-operation:${e}`;
1043
1043
  }
1044
1044
  #x(e, t) {
1045
- Zt(this.#l.value.target, e) ? this.#S(t) : this.#l.set({
1046
- ...qt,
1045
+ Q(this.#l.value.target, e) ? this.#S(t) : this.#l.set({
1046
+ ...Yt,
1047
1047
  ...t,
1048
1048
  target: e
1049
1049
  });
@@ -1054,20 +1054,21 @@ var Qt = class {
1054
1054
  ...e
1055
1055
  });
1056
1056
  }
1057
- }, $t = { starting: !1 };
1058
- function en(e) {
1057
+ }, en = { starting: !1 };
1058
+ function tn(e) {
1059
1059
  switch (e.kind) {
1060
1060
  case "condition": return { [e.node.input.handle]: e.node.input };
1061
- case "subflow": return $e(e.definition?.inputs ?? []);
1062
- case "task": return $e(e.definition?.inputs ?? []);
1061
+ case "subflow": return tt(e.definition?.inputs ?? []);
1062
+ case "task": return tt(e.definition?.inputs ?? []);
1063
1063
  case "value": return {};
1064
+ case "approval":
1064
1065
  case "wait": return { [e.node.input.handle]: e.node.input };
1065
1066
  }
1066
1067
  }
1067
- function tn(e) {
1068
+ function nn(e) {
1068
1069
  return e.node.name == null ? e.kind == "task" || e.kind == "subflow" ? e.definition?.name ?? e.id : e.id : e.node.name;
1069
1070
  }
1070
- function nn(e, t) {
1071
+ function rn(e, t) {
1071
1072
  let n = B(e), r = n.graph({ kind: "flow" });
1072
1073
  if (r == null) return [];
1073
1074
  let i = /* @__PURE__ */ new Set([t]), a = [t];
@@ -1078,11 +1079,11 @@ function nn(e, t) {
1078
1079
  return Object.entries(r.nodes).filter(([e]) => i.has(e)).toSorted(([e], [t]) => e.localeCompare(t)).flatMap(([e, t]) => {
1079
1080
  let r = n.resolveNode(e, t);
1080
1081
  if (r.kind == "trigger") return r.trigger.kind == "manual" || r.trigger.kind == "cron" ? [] : [{
1081
- definitions: me(r.trigger),
1082
+ definitions: ze(r.trigger),
1082
1083
  nodeId: e,
1083
1084
  title: r.trigger.name
1084
1085
  }];
1085
- let i = Object.entries(en(r)).filter(([e, t]) => r.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
1086
+ let i = Object.entries(tn(r)).filter(([e, t]) => r.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
1086
1087
  handle: e,
1087
1088
  jsonSchema: t.jsonSchema,
1088
1089
  nullable: t.nullable
@@ -1090,19 +1091,19 @@ function nn(e, t) {
1090
1091
  return i.length == 0 ? [] : [{
1091
1092
  definitions: i,
1092
1093
  nodeId: e,
1093
- title: tn(r)
1094
+ title: nn(r)
1094
1095
  }];
1095
1096
  });
1096
1097
  }
1097
- function rn(e) {
1098
+ function an(e) {
1098
1099
  return JSON.stringify(e.map((e) => [e.nodeId, e.definitions.map((e) => [
1099
1100
  e.handle,
1100
1101
  e.jsonSchema,
1101
1102
  e.nullable
1102
1103
  ])]));
1103
1104
  }
1104
- async function an(e, t, n) {
1105
- let { FlowRunInputEditorStore: r } = await import("./flowRunInputEditorStore-BBqQIOCR.js").then((e) => e.n);
1105
+ async function on(e, t, n) {
1106
+ let { FlowRunInputEditorStore: r } = await import("./flowRunInputEditorStore-CTORQcA2.js").then((e) => e.n);
1106
1107
  return e.map((e) => {
1107
1108
  let i = new r(e.definitions, t);
1108
1109
  return n?.[e.nodeId] != null && i.replaceValues(n[e.nodeId]), {
@@ -1112,31 +1113,31 @@ async function an(e, t, n) {
1112
1113
  };
1113
1114
  });
1114
1115
  }
1115
- function on(e) {
1116
+ function sn(e) {
1116
1117
  return Object.fromEntries(e.map((e) => [e.nodeId, e.editor.values()]));
1117
1118
  }
1118
- function sn(e, t) {
1119
+ function cn(e, t) {
1119
1120
  return B(e).graph({ kind: "flow" })?.nodes[t]?.kind === "cron" ? { scheduledAt: (/* @__PURE__ */ new Date()).toISOString() } : {};
1120
1121
  }
1121
- function cn(e, t, n) {
1122
+ function ln(e, t, n) {
1122
1123
  return {
1123
1124
  inputs: Object.fromEntries(e.filter((e) => e.nodeId != t).map((e) => [e.nodeId, e.editor.values()])),
1124
- outputs: e.find((e) => e.nodeId == t)?.editor.values() ?? sn(n, t)
1125
+ outputs: e.find((e) => e.nodeId == t)?.editor.values() ?? cn(n, t)
1125
1126
  };
1126
1127
  }
1127
- var ln = class {
1128
+ var un = class {
1128
1129
  #e;
1129
1130
  #t;
1130
1131
  #n;
1131
1132
  #r;
1132
- #i = new z();
1133
- #a = new z();
1133
+ #i = new V();
1134
+ #a = new V();
1134
1135
  #o;
1135
1136
  #s = /* @__PURE__ */ new Map();
1136
1137
  #c;
1137
- #l = n($t);
1138
+ #l = n(en);
1138
1139
  #u;
1139
- constructor(t, n, r, i, a = p(), o = L) {
1140
+ constructor(t, n, r, i, a = d(), o = R) {
1140
1141
  this.#e = i, this.#t = t, this.#o = n, this.#c = r, this.#r = a, this.#n = o, this.$ = {
1141
1142
  inputRequest: e(this.#l, (e) => e.inputRequest),
1142
1143
  starting: e(this.#l, (e) => e.starting),
@@ -1151,14 +1152,14 @@ var ln = class {
1151
1152
  reset() {
1152
1153
  this.#i.invalidate(), this.#a.invalidate(), this.#u = void 0;
1153
1154
  let e = this.#l.value.inputRequest;
1154
- this.#h(e), this.#l.set($t), this.#p(e);
1155
+ this.#h(e), this.#l.set(en), this.#p(e);
1155
1156
  }
1156
1157
  async requestDraft(e, t, n) {
1157
1158
  let r = this.#a.begin();
1158
1159
  try {
1159
1160
  return await this.#d("draft", e, t, t.revisionId, r, void 0, n);
1160
1161
  } catch (e) {
1161
- return r() && this.#c(H(e, this.#r.t)), "unavailable";
1162
+ return r() && this.#c(I(e, this.#r.t)), "unavailable";
1162
1163
  } finally {
1163
1164
  r() && this.#g({ starting: !1 });
1164
1165
  }
@@ -1168,16 +1169,16 @@ var ln = class {
1168
1169
  try {
1169
1170
  return await this.#d("draft", e, t, t.revisionId, r, void 0, n, !0);
1170
1171
  } catch (e) {
1171
- return r() && this.#c(H(e, this.#r.t)), "unavailable";
1172
+ return r() && this.#c(I(e, this.#r.t)), "unavailable";
1172
1173
  } finally {
1173
1174
  r() && this.#g({ starting: !1 });
1174
1175
  }
1175
1176
  }
1176
1177
  inputStatus(e, t, n) {
1177
- let r = nn(t, n);
1178
+ let r = rn(t, n);
1178
1179
  if (r.length == 0) return "none";
1179
1180
  let i = this.#s.get(this.#m(e, n));
1180
- return i?.valid == 1 && i.signature == rn(r) ? "ready" : "missing";
1181
+ return i?.valid == 1 && i.signature == an(r) ? "ready" : "missing";
1181
1182
  }
1182
1183
  async requestLive(e) {
1183
1184
  let t = this.#a.begin();
@@ -1188,7 +1189,7 @@ var ln = class {
1188
1189
  let r = await this.#t.getRevision(e.flowId, n.revisionId);
1189
1190
  return t() ? await this.#d("live", e, r, n.revisionId, t, n.publicationId) : "unavailable";
1190
1191
  } catch (e) {
1191
- return t() && this.#c(H(e, this.#r.t)), "unavailable";
1192
+ return t() && this.#c(I(e, this.#r.t)), "unavailable";
1192
1193
  } finally {
1193
1194
  t() && this.#g({ starting: !1 });
1194
1195
  }
@@ -1205,7 +1206,7 @@ var ln = class {
1205
1206
  attempted: !0
1206
1207
  } }), !1;
1207
1208
  this.#h(e);
1208
- let { inputs: t, outputs: n } = cn(e.groups, e.triggerId, e.revision), r = await this.#f(e.source, e.flow, e.revisionId, {
1209
+ let { inputs: t, outputs: n } = ln(e.groups, e.triggerId, e.revision), r = await this.#f(e.source, e.flow, e.revisionId, {
1209
1210
  nodeId: e.triggerId,
1210
1211
  outputs: n
1211
1212
  }, t, e.publicationId);
@@ -1217,7 +1218,7 @@ var ln = class {
1217
1218
  let r = this.#a.begin();
1218
1219
  this.#h(n), this.#g({ starting: !0 });
1219
1220
  try {
1220
- let i = nn(n.revision, e), a = this.#s.get(this.#m(n.flow.flowId, e)), o = await an(i, this.#r.lang$, a?.values);
1221
+ let i = rn(n.revision, e), a = this.#s.get(this.#m(n.flow.flowId, e)), o = await on(i, this.#r.lang$, a?.values);
1221
1222
  if (!r() || this.#l.value.inputRequest !== n) {
1222
1223
  for (let e of o) e.editor.dispose();
1223
1224
  return;
@@ -1231,7 +1232,7 @@ var ln = class {
1231
1232
  valid: s
1232
1233
  } }), this.#p(n);
1233
1234
  } catch (e) {
1234
- r() && this.#c(H(e, this.#r.t));
1235
+ r() && this.#c(I(e, this.#r.t));
1235
1236
  } finally {
1236
1237
  r() && this.#g({ starting: !1 });
1237
1238
  }
@@ -1256,17 +1257,17 @@ var ln = class {
1256
1257
  kind: "error",
1257
1258
  message: this.#r.t("runInput.selectTrigger")
1258
1259
  }), "unavailable";
1259
- let p = f == null ? [] : nn(r, f.nodeId), m = rn(p), h = f == null ? void 0 : this.#s.get(this.#m(n.flowId, f.nodeId)), g = f == null ? [] : await an(p, this.#r.lang$, h?.values);
1260
+ let p = f == null ? [] : rn(r, f.nodeId), m = an(p), h = f == null ? void 0 : this.#s.get(this.#m(n.flowId, f.nodeId)), g = f == null ? [] : await on(p, this.#r.lang$, h?.values);
1260
1261
  if (!a()) {
1261
1262
  for (let e of g) e.editor.dispose();
1262
1263
  return "unavailable";
1263
1264
  }
1264
1265
  if (!c && f != null && g.length == 0) return await this.#f(e, n, i, {
1265
1266
  nodeId: f.nodeId,
1266
- outputs: sn(r, f.nodeId)
1267
+ outputs: cn(r, f.nodeId)
1267
1268
  }, {}, o) ? "started" : "unavailable";
1268
1269
  if (!c && f != null && h?.valid == 1 && h.signature == m && g.every((e) => e.editor.valid$.value)) {
1269
- let t = cn(g, f.nodeId, r);
1270
+ let t = ln(g, f.nodeId, r);
1270
1271
  for (let e of g) e.editor.dispose();
1271
1272
  return await this.#f(e, n, i, {
1272
1273
  nodeId: f.nodeId,
@@ -1328,7 +1329,7 @@ var ln = class {
1328
1329
  });
1329
1330
  return !o() || !s() ? !1 : (this.#u = void 0, this.#o.follow(d, s));
1330
1331
  } catch (e) {
1331
- return o() && s() && this.#c(H(e, this.#r.t)), !1;
1332
+ return o() && s() && this.#c(I(e, this.#r.t)), !1;
1332
1333
  } finally {
1333
1334
  o() && this.#g({
1334
1335
  starting: !1,
@@ -1347,9 +1348,9 @@ var ln = class {
1347
1348
  }
1348
1349
  #h(e) {
1349
1350
  e?.triggerId != null && e.groups.length != 0 && this.#s.set(this.#m(e.flow.flowId, e.triggerId), {
1350
- signature: rn(nn(e.revision, e.triggerId)),
1351
+ signature: an(rn(e.revision, e.triggerId)),
1351
1352
  valid: e.valid.value,
1352
- values: on(e.groups)
1353
+ values: sn(e.groups)
1353
1354
  });
1354
1355
  }
1355
1356
  #g(e) {
@@ -1361,86 +1362,86 @@ var ln = class {
1361
1362
  };
1362
1363
  //#endregion
1363
1364
  //#region src/connector/common/actionSchema.ts
1364
- function un(e, t) {
1365
- let n = dn(e);
1365
+ function dn(e, t) {
1366
+ let n = fn(e);
1366
1367
  return {
1367
1368
  inputs: n,
1368
1369
  initialInputs: n.flatMap((e) => e.value === void 0 ? [] : [{
1369
1370
  handle: e.handle,
1370
1371
  value: e.value
1371
1372
  }]),
1372
- outputs: fn(t)
1373
+ outputs: pn(t)
1373
1374
  };
1374
1375
  }
1375
- function dn(e) {
1376
- let t = q(e);
1376
+ function fn(e) {
1377
+ let t = G(e);
1377
1378
  if (t == null || t.type != "object" && t.properties == null) throw Error("Connector action inputSchema must be an object schema.");
1378
- let n = q(t.properties);
1379
+ let n = G(t.properties);
1379
1380
  if (n == null) return [];
1380
- let r = gn(t.required);
1381
+ let r = _n(t.required);
1381
1382
  return Object.entries(n).map(([e, n]) => {
1382
- let i = !r.has(e) || _n(n, t);
1383
+ let i = !r.has(e) || $(n, t);
1383
1384
  return {
1384
- description: mn(t, n),
1385
+ description: hn(t, n),
1385
1386
  handle: e,
1386
- json_schema: pn(t, n),
1387
+ json_schema: mn(t, n),
1387
1388
  nullable: i,
1388
- value: hn(t, n, i)
1389
+ value: gn(t, n, i)
1389
1390
  };
1390
1391
  });
1391
1392
  }
1392
- function fn(e) {
1393
- let t = q(e), n = q(t?.properties);
1393
+ function pn(e) {
1394
+ let t = G(e), n = G(t?.properties);
1394
1395
  if (t != null && (t.type == "object" || n != null)) {
1395
1396
  if (n == null) return [];
1396
- let e = gn(t.required);
1397
+ let e = _n(t.required);
1397
1398
  return Object.entries(n).map(([n, r]) => ({
1398
- description: mn(t, r),
1399
+ description: hn(t, r),
1399
1400
  handle: n,
1400
- json_schema: pn(t, r),
1401
- nullable: !e.has(n) || _n(r, t)
1401
+ json_schema: mn(t, r),
1402
+ nullable: !e.has(n) || $(r, t)
1402
1403
  }));
1403
1404
  }
1404
1405
  return [{
1405
- description: mn(t, e),
1406
+ description: hn(t, e),
1406
1407
  handle: "output",
1407
1408
  json_schema: e,
1408
- nullable: _n(e)
1409
+ nullable: $(e)
1409
1410
  }];
1410
1411
  }
1411
- function pn(e, t) {
1412
- let n = q(t);
1412
+ function mn(e, t) {
1413
+ let n = G(t);
1413
1414
  if (n == null) return t;
1414
1415
  let r = Object.assign({}, n);
1415
1416
  return r.$defs == null && e.$defs != null && (r.$defs = e.$defs), r.definitions == null && e.definitions != null && (r.definitions = e.definitions), r;
1416
1417
  }
1417
- function mn(e, t) {
1418
+ function hn(e, t) {
1418
1419
  for (let n of vn(e, t)) if (typeof n.description == "string") return n.description;
1419
1420
  }
1420
- function hn(e, t, n) {
1421
+ function gn(e, t, n) {
1421
1422
  for (let n of vn(e, t)) if (Object.hasOwn(n, "default")) return n.default;
1422
1423
  return n ? null : void 0;
1423
1424
  }
1424
- function gn(e) {
1425
+ function _n(e) {
1425
1426
  return Array.isArray(e) ? new Set(e.filter((e) => typeof e == "string")) : /* @__PURE__ */ new Set();
1426
1427
  }
1427
- function _n(e, t = e, n = /* @__PURE__ */ new Set()) {
1428
- let r = q(e);
1428
+ function $(e, t = e, n = /* @__PURE__ */ new Set()) {
1429
+ let r = G(e);
1429
1430
  if (r == null) return !1;
1430
1431
  if (Object.hasOwn(r, "type")) return r.type == "null" || Array.isArray(r.type) && r.type.includes("null");
1431
1432
  if (Object.hasOwn(r, "enum")) return Array.isArray(r.enum) && r.enum.includes(null);
1432
- for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(r, e)) return Array.isArray(r[e]) && r[e].some((e) => _n(e, t, n));
1433
+ for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(r, e)) return Array.isArray(r[e]) && r[e].some((e) => $(e, t, n));
1433
1434
  let i = typeof r.$ref == "string" ? r.$ref : void 0;
1434
1435
  if (i == null || n.has(i)) return !1;
1435
1436
  let a = yn(t, i);
1436
1437
  if (a === void 0) return !1;
1437
1438
  let o = new Set(n);
1438
- return o.add(i), _n(a, t, o);
1439
+ return o.add(i), $(a, t, o);
1439
1440
  }
1440
1441
  function vn(e, t) {
1441
1442
  let n = [], r = /* @__PURE__ */ new Set(), i = t;
1442
1443
  for (;;) {
1443
- let t = q(i);
1444
+ let t = G(i);
1444
1445
  if (t == null) return n;
1445
1446
  n.push(t);
1446
1447
  let a = typeof t.$ref == "string" ? t.$ref : void 0;
@@ -1455,7 +1456,7 @@ function yn(e, t) {
1455
1456
  if (!t.startsWith("#/")) return;
1456
1457
  let n = e;
1457
1458
  for (let e of t.slice(2).split("/")) {
1458
- let t = q(n), r = e.replaceAll("~1", "/").replaceAll("~0", "~");
1459
+ let t = G(n), r = e.replaceAll("~1", "/").replaceAll("~0", "~");
1459
1460
  if (t == null || !Object.hasOwn(t, r)) return;
1460
1461
  n = t[r];
1461
1462
  }
@@ -1464,14 +1465,14 @@ function yn(e, t) {
1464
1465
  //#endregion
1465
1466
  //#region src/workbench/browser/runtime/stores/proxyCatalog.ts
1466
1467
  function bn(e, t) {
1467
- let n = ue(e);
1468
- if (n.success === !1) throw new G(502, typeof n.errorCode == "string" ? n.errorCode : "connector.unavailable", typeof n.message == "string" ? n.message : "Connector request failed.");
1469
- if (n.success !== !0 || !Array.isArray(n.data)) return R();
1470
- for (let e of n.data) t(ue(e));
1468
+ let n = Ke(e);
1469
+ if (n.success === !1) throw new F(502, typeof n.errorCode == "string" ? n.errorCode : "connector.unavailable", typeof n.message == "string" ? n.message : "Connector request failed.");
1470
+ if (n.success !== !0 || !Array.isArray(n.data)) return L();
1471
+ for (let e of n.data) t(Ke(e));
1471
1472
  return n;
1472
1473
  }
1473
1474
  function xn(e) {
1474
- return !Array.isArray(e.authTypes) || e.authTypes.some((e) => typeof e != "string") ? R() : {
1475
+ return !Array.isArray(e.authTypes) || e.authTypes.some((e) => typeof e != "string") ? L() : {
1475
1476
  serviceId: U(e.service),
1476
1477
  serviceName: U(e.displayName),
1477
1478
  noSetup: e.authTypes.length == 1 && e.authTypes[0] == "no_auth",
@@ -1485,7 +1486,7 @@ function Sn(e) {
1485
1486
  "disconnected",
1486
1487
  "error",
1487
1488
  "reauth_required"
1488
- ].includes(e.status) ? R() : {
1489
+ ].includes(e.status) ? L() : {
1489
1490
  connectionId: U(e.id),
1490
1491
  serviceId: U(e.service),
1491
1492
  displayName: U(e.displayName),
@@ -1496,21 +1497,21 @@ function Sn(e) {
1496
1497
  };
1497
1498
  }
1498
1499
  function Cn(e) {
1499
- if (U(e.id), U(e.service), U(e.name), typeof e.description != "string") return R();
1500
- un(e.inputSchema, e.outputSchema);
1500
+ if (U(e.id), U(e.service), U(e.name), typeof e.description != "string") return L();
1501
+ dn(e.inputSchema, e.outputSchema);
1501
1502
  }
1502
1503
  function wn(e) {
1503
1504
  return {
1504
1505
  nullable: e.nullable,
1505
- jsonSchema: Te(e.json_schema),
1506
+ jsonSchema: fe(e.json_schema),
1506
1507
  ...e.description == null ? {} : { description: e.description },
1507
- ...e.value === void 0 ? {} : { value: Te(e.value) }
1508
+ ...e.value === void 0 ? {} : { value: fe(e.value) }
1508
1509
  };
1509
1510
  }
1510
1511
  function Tn(e, t) {
1511
1512
  let n = t.data.find((t) => t.service == e.service);
1512
- if (n == null) return R();
1513
- let r = xn(n), i = un(e.inputSchema, e.outputSchema);
1513
+ if (n == null) return L();
1514
+ let r = xn(n), i = dn(e.inputSchema, e.outputSchema);
1514
1515
  return {
1515
1516
  serviceId: r.serviceId,
1516
1517
  serviceName: r.serviceName,
@@ -1521,8 +1522,8 @@ function Tn(e, t) {
1521
1522
  name: U(e.name),
1522
1523
  description: e.description,
1523
1524
  authenticated: !n.authTypes.includes("no_auth"),
1524
- inputSchema: Te(e.inputSchema),
1525
- outputSchema: Te(e.outputSchema),
1525
+ inputSchema: fe(e.inputSchema),
1526
+ outputSchema: fe(e.outputSchema),
1526
1527
  inputs: Object.fromEntries(i.inputs.map((e) => [e.handle, wn(e)])),
1527
1528
  outputs: Object.fromEntries(i.outputs.map((e) => [e.handle, wn(e)]))
1528
1529
  };
@@ -1530,8 +1531,8 @@ function Tn(e, t) {
1530
1531
  //#endregion
1531
1532
  //#region src/workbench/browser/runtime/stores/catalogStores.ts
1532
1533
  function En(e) {
1533
- let t = ue(e);
1534
- return t.version != 1 || !Array.isArray(t.actions) ? R() : t.actions.map(Re);
1534
+ let t = Ke(e);
1535
+ return t.version != 1 || !Array.isArray(t.actions) ? L() : t.actions.map(Ie);
1535
1536
  }
1536
1537
  var Dn = (...e) => JSON.stringify(e), On = class {
1537
1538
  constructor(e, t, n) {
@@ -1545,7 +1546,7 @@ var Dn = (...e) => JSON.stringify(e), On = class {
1545
1546
  }), a = `/v1/connector/proxy/${this.kind}${i.size ? `?${i}` : ""}`, o = this.entries.get(a);
1546
1547
  if (o == null) {
1547
1548
  let e = (e) => bn(e, this.kind == "providers" ? xn : this.kind == "apps" ? Sn : (e) => {
1548
- if (Cn(e), e.service != n) return R();
1549
+ if (Cn(e), e.service != n) return L();
1549
1550
  });
1550
1551
  o = new Ae((t, n) => this.client.readProxyCatalog({
1551
1552
  path: a,
@@ -1776,7 +1777,7 @@ function zn(e, t) {
1776
1777
  function Bn(e, t, n) {
1777
1778
  if (e == null) return [];
1778
1779
  let r = [];
1779
- for (let i of [...Be(e.revision.content).tasks].toSorted()) {
1780
+ for (let i of [...ke(e.revision.content).tasks].toSorted()) {
1780
1781
  let a = e.task(i);
1781
1782
  if (a?.executor.kind != "connector") continue;
1782
1783
  let o = t[a.executor.action];
@@ -1811,10 +1812,10 @@ var Vn = class {
1811
1812
  #m;
1812
1813
  #h;
1813
1814
  #g;
1814
- constructor(r, i, a, o, s = p(), c = i.catalogs) {
1815
- this.data = c, this.#i = /* @__PURE__ */ new Set(), this.#a = new z(), this.#o = new z(), this.#d = n(Pn), this.#f = n([]), this.#p = n([]), this.#g = !1, this.loadConnections = async (e) => {
1815
+ constructor(r, i, a, o, s = d(), c = i.catalogs) {
1816
+ this.data = c, this.#i = /* @__PURE__ */ new Set(), this.#a = new V(), this.#o = new V(), this.#d = n(Pn), this.#f = n([]), this.#p = n([]), this.#g = !1, this.loadConnections = async (e) => {
1816
1817
  let t = this.#m.$.flowId.value;
1817
- this.#g || t == null || await M(this.data.connections.get(void 0, t), e);
1818
+ this.#g || t == null || await j(this.data.connections.get(void 0, t), e);
1818
1819
  }, this.browseAddNodeOptions = (e) => {
1819
1820
  let t = this.data.providers.get(this.#m.$.flowId.value, this.#n);
1820
1821
  return g(e, (e) => {
@@ -1867,7 +1868,7 @@ var Vn = class {
1867
1868
  let t = e(i.$.flowId);
1868
1869
  return Object.fromEntries(e(this.#p).flatMap((n) => {
1869
1870
  let r = e(A(this.data.connections.get(n, t)));
1870
- return r == null ? [] : [[n, N(r)]];
1871
+ return r == null ? [] : [[n, M(r)]];
1871
1872
  }));
1872
1873
  });
1873
1874
  this.#l = t((e) => {
@@ -1876,11 +1877,11 @@ var Vn = class {
1876
1877
  let r = e(l)[t.actionId], a = r == null ? void 0 : e(u)[r.serviceId], o = e(this.data.actions.detail(t.actionId, e(i.$.flowId), this.#n)).error, s = r == null ? void 0 : e(this.data.connections.get(r.serviceId, e(i.$.flowId))).error, c = t.connectionId == null ? void 0 : a?.byId.get(t.connectionId);
1877
1878
  return {
1878
1879
  action: r,
1879
- actionError: o == null ? void 0 : H(o, this.#t.t).message,
1880
+ actionError: o == null ? void 0 : I(o, this.#t.t).message,
1880
1881
  activeConnections: a?.active,
1881
1882
  authorizationPending: r != null && n.authorizationServiceId == r.serviceId,
1882
1883
  connection: c,
1883
- connectionError: s == null ? void 0 : H(s, this.#t.t).message
1884
+ connectionError: s == null ? void 0 : I(s, this.#t.t).message
1884
1885
  };
1885
1886
  }), this.$ = {
1886
1887
  connections: t((e) => {
@@ -1929,13 +1930,13 @@ var Vn = class {
1929
1930
  connectionLoading: void 0
1930
1931
  });
1931
1932
  try {
1932
- let a = await M(i);
1933
+ let a = await j(i);
1933
1934
  if (!this.#S(t, n)) return;
1934
1935
  this.#b(this.#f, [a.actionId]), a.authenticated && await this.#_(n, r, a.serviceId, e, t);
1935
1936
  } catch (e) {
1936
1937
  this.#S(t, n) && this.#x({ actionError: {
1937
1938
  actionId: r.actionId,
1938
- message: H(e, this.#t.t).message
1939
+ message: I(e, this.#t.t).message
1939
1940
  } });
1940
1941
  } finally {
1941
1942
  this.#S(t, n) && this.#d.value.actionLoading == r.actionId && this.#x({ actionLoading: void 0 });
@@ -1943,11 +1944,11 @@ var Vn = class {
1943
1944
  }
1944
1945
  async loadCodeConnections(e, t) {
1945
1946
  let n = this.#m.$.flowId.value;
1946
- n == null || this.#g || (await M(this.data.connections.get(e, n), t), !(t.aborted || this.#g || n != this.#m.$.flowId.value) && this.#b(this.#p, [e]));
1947
+ n == null || this.#g || (await j(this.data.connections.get(e, n), t), !(t.aborted || this.#g || n != this.#m.$.flowId.value) && this.#b(this.#p, [e]));
1947
1948
  }
1948
1949
  async loadCodeAction(e, t) {
1949
1950
  let n = this.#n, r = this.#m.$.flowId.value;
1950
- r == null || this.#g || (await M(this.data.actions.detail(e, r, n), t), !(t.aborted || this.#g || n != this.#n || r != this.#m.$.flowId.value) && this.#b(this.#f, [e]));
1951
+ r == null || this.#g || (await j(this.data.actions.detail(e, r, n), t), !(t.aborted || this.#g || n != this.#n || r != this.#m.$.flowId.value) && this.#b(this.#f, [e]));
1951
1952
  }
1952
1953
  async connect(e) {
1953
1954
  if (this.#g) return;
@@ -1968,7 +1969,7 @@ var Vn = class {
1968
1969
  serviceId: e
1969
1970
  }, this.#x({ authorizationServiceId: e });
1970
1971
  } catch (e) {
1971
- this.#g || this.#u(H(e, this.#t.t));
1972
+ this.#g || this.#u(I(e, this.#t.t));
1972
1973
  }
1973
1974
  }
1974
1975
  async setConnection(e, t) {
@@ -1994,16 +1995,16 @@ var Vn = class {
1994
1995
  let i;
1995
1996
  try {
1996
1997
  let r = this.data.connections.get(t, e, n);
1997
- await Promise.resolve(), i = await M(r, void 0, n);
1998
+ await Promise.resolve(), i = await j(r, void 0, n);
1998
1999
  } catch (n) {
1999
2000
  this.#S(r, e) && this.#x({ connectionError: {
2000
- message: H(n, this.#t.t).message,
2001
+ message: I(n, this.#t.t).message,
2001
2002
  serviceId: t
2002
2003
  } });
2003
2004
  return;
2004
2005
  }
2005
2006
  if (!this.#S(r, e)) return;
2006
- let a = N(i);
2007
+ let a = M(i);
2007
2008
  return this.#b(this.#p, [t]), a;
2008
2009
  }
2009
2010
  async #y(e, t, n) {
@@ -2031,7 +2032,7 @@ var Vn = class {
2031
2032
  if (r.length > 0) {
2032
2033
  for (let e of r) this.#i.add(e);
2033
2034
  try {
2034
- let n = await Promise.all(r.map((e) => M(this.data.actions.detail(e, t, this.#n))));
2035
+ let n = await Promise.all(r.map((e) => j(this.data.actions.detail(e, t, this.#n))));
2035
2036
  if (!this.#S(e, t)) return;
2036
2037
  this.#b(this.#f, n.map((e) => e.actionId));
2037
2038
  } catch {
@@ -2042,7 +2043,7 @@ var Vn = class {
2042
2043
  }
2043
2044
  if (!this.#S(e, t)) return;
2044
2045
  let i = /* @__PURE__ */ new Set();
2045
- for (let e of Be(n.revision.content).tasks) {
2046
+ for (let e of ke(n.revision.content).tasks) {
2046
2047
  let t = n.task(e);
2047
2048
  if (t?.executor.kind != "connector") continue;
2048
2049
  let r = this.$.actions.value[t.executor.action];
@@ -2072,7 +2073,7 @@ var Un = class {
2072
2073
  let t = this.#t.get(e);
2073
2074
  if (t == null) {
2074
2075
  let n = (t) => {
2075
- let n = Fe(t);
2076
+ let n = Oe(t);
2076
2077
  if (n.locale != e) throw Error("Unexpected Trigger catalog language.");
2077
2078
  return n;
2078
2079
  }, r = this.host.triggerCatalogCache;
@@ -2143,18 +2144,18 @@ var Jn = class {
2143
2144
  #s;
2144
2145
  #c;
2145
2146
  #l;
2146
- constructor(r, i, a, o, s = p()) {
2147
- this.#r = new z(), this.#i = /* @__PURE__ */ new Set(), this.#s = n(Wn), this.#l = !1, this.browseAddNodeOptions = (e) => this.#u("", e), this.provideAddNodeOptions = (e, t) => this.#u(e, t), this.catalog = new Un(r, vt([s.lang]), o), this.#e = r, this.#t = o, this.#n = s, this.#o = a, this.#c = i, this.#a = t((e) => {
2147
+ constructor(r, i, a, o, s = d()) {
2148
+ this.#r = new V(), this.#i = /* @__PURE__ */ new Set(), this.#s = n(Wn), this.#l = !1, this.browseAddNodeOptions = (e) => this.#u("", e), this.provideAddNodeOptions = (e, t) => this.#u(e, t), this.catalog = new Un(r, yt([s.lang]), o), this.#e = r, this.#t = o, this.#n = s, this.#o = a, this.#c = i, this.#a = t((e) => {
2148
2149
  let t = e(i.$.selection), n = Kn(t, i), r = e(this.#s);
2149
2150
  if (t?.kind != "trigger") return { authorizationPending: !1 };
2150
2151
  let a = t.trigger;
2151
2152
  if (a.kind != "poll" && a.kind != "integration") return { authorizationPending: !1 };
2152
- let o = n == null ? void 0 : e(i.catalogs.connections.get(n.provider, e(i.$.flowId))).data, s = o == null ? void 0 : N(o), c = n == null ? void 0 : e(i.catalogs.connections.get(n.provider, e(i.$.flowId))).error;
2153
+ let o = n == null ? void 0 : e(i.catalogs.connections.get(n.provider, e(i.$.flowId))).data, s = o == null ? void 0 : M(o), c = n == null ? void 0 : e(i.catalogs.connections.get(n.provider, e(i.$.flowId))).error;
2153
2154
  return {
2154
2155
  activeConnections: s?.active,
2155
2156
  authorizationPending: r.authorizationProvider == n?.provider,
2156
2157
  connection: n?.connectionId == null ? void 0 : s?.byId.get(n.connectionId),
2157
- connectionError: c == null ? void 0 : H(c, this.#n.t).message,
2158
+ connectionError: c == null ? void 0 : I(c, this.#n.t).message,
2158
2159
  definition: a.definition
2159
2160
  };
2160
2161
  }), this.$ = {
@@ -2208,11 +2209,11 @@ var Jn = class {
2208
2209
  });
2209
2210
  try {
2210
2211
  let i = this.#c.catalogs.connections.get(r.provider, n, e || this.#i.has(r.provider));
2211
- if (await Promise.resolve(), await M(i, void 0, e || this.#i.has(r.provider)), !this.#f(t, n)) return;
2212
+ if (await Promise.resolve(), await j(i, void 0, e || this.#i.has(r.provider)), !this.#f(t, n)) return;
2212
2213
  this.#i.delete(r.provider);
2213
2214
  } catch (e) {
2214
2215
  this.#f(t, n) && this.#d({ connectionError: {
2215
- message: H(e, this.#n.t).message,
2216
+ message: I(e, this.#n.t).message,
2216
2217
  provider: r.provider
2217
2218
  } });
2218
2219
  } finally {
@@ -2231,7 +2232,7 @@ var Jn = class {
2231
2232
  }
2232
2233
  !this.#l && t == this.#c.$.flowId.value && this.#d({ authorizationProvider: e });
2233
2234
  } catch (e) {
2234
- this.#l || this.#o(H(e, this.#n.t));
2235
+ this.#l || this.#o(I(e, this.#n.t));
2235
2236
  }
2236
2237
  }
2237
2238
  async setConnection(e, t) {
@@ -2257,7 +2258,7 @@ var Jn = class {
2257
2258
  function Yn(e, t) {
2258
2259
  let n = e, r = [];
2259
2260
  for (let e of t) {
2260
- let t = ht(n, [e]), i = [];
2261
+ let t = _t(n, [e]), i = [];
2261
2262
  switch (e.kind) {
2262
2263
  case "graph.node.create":
2263
2264
  i.push({
@@ -2427,7 +2428,7 @@ function Yn(e, t) {
2427
2428
  value: e.before
2428
2429
  });
2429
2430
  break;
2430
- case "graph.node.wait.set":
2431
+ case "graph.node.resolution.set":
2431
2432
  i.push({
2432
2433
  ...e,
2433
2434
  before: e.value,
@@ -2589,15 +2590,15 @@ var Qn = class {
2589
2590
  this.#a = e;
2590
2591
  let t = e, n = [];
2591
2592
  for (let e of this.#o) try {
2592
- t = V(t, e.changes), n.push(e);
2593
+ t = z(t, e.changes), n.push(e);
2593
2594
  } catch (t) {
2594
- if (!(t instanceof tt)) throw t;
2595
+ if (!(t instanceof rt)) throw t;
2595
2596
  e.active = !1;
2596
2597
  }
2597
2598
  return this.#o = n, t;
2598
2599
  }
2599
2600
  project(e) {
2600
- return this.#o.reduce((e, t) => V(e, t.changes), e);
2601
+ return this.#o.reduce((e, t) => z(e, t.changes), e);
2601
2602
  }
2602
2603
  async settled() {
2603
2604
  await this.#s;
@@ -2617,7 +2618,7 @@ var Qn = class {
2617
2618
  let o = {
2618
2619
  ...e,
2619
2620
  active: !0,
2620
- changeId: L(),
2621
+ changeId: R(),
2621
2622
  changes: n,
2622
2623
  started: !1
2623
2624
  };
@@ -2642,21 +2643,21 @@ var Qn = class {
2642
2643
  let r = this.#l(e, n, t);
2643
2644
  return this.#o.length == 0 && this.#t.check(), r;
2644
2645
  } catch (n) {
2645
- if (n instanceof G && n.code == "flow.revision-conflict") {
2646
+ if (n instanceof F && n.code == "flow.revision-conflict") {
2646
2647
  if (!t && await this.#t.recover(e)) {
2647
- t = !0, e.changeId = L();
2648
+ t = !0, e.changeId = R();
2648
2649
  continue;
2649
2650
  }
2650
2651
  t && await this.#t.recover(e), this.#u(e);
2651
2652
  } else {
2652
- if (!(n instanceof G) && !t) {
2653
+ if (!(n instanceof F) && !t) {
2653
2654
  let n = this.#a?.revisionId;
2654
2655
  if (await this.#t.recover(e)) {
2655
- t = !0, e.active && this.#a?.revisionId != n && (e.changeId = L());
2656
+ t = !0, e.active && this.#a?.revisionId != n && (e.changeId = R());
2656
2657
  continue;
2657
2658
  }
2658
2659
  }
2659
- this.#u(e), this.#t.current(e) && this.#r(H(n, this.#n.t));
2660
+ this.#u(e), this.#t.current(e) && this.#r(I(n, this.#n.t));
2660
2661
  }
2661
2662
  return;
2662
2663
  }
@@ -2665,7 +2666,7 @@ var Qn = class {
2665
2666
  #l(e, t, n) {
2666
2667
  let r = {
2667
2668
  ...n.revision,
2668
- content: V(t, e.changes).content
2669
+ content: z(t, e.changes).content
2669
2670
  };
2670
2671
  return this.#o = this.#o.filter((t) => t !== e), this.#a = r, this.#t.apply(this.project(r)), this.#t.headChanged(e.flowId, r.revisionId), r;
2671
2672
  }
@@ -2683,7 +2684,7 @@ var Qn = class {
2683
2684
  }, tr = class {
2684
2685
  #e;
2685
2686
  #t;
2686
- #n = new z();
2687
+ #n = new V();
2687
2688
  #r;
2688
2689
  #i = n(er);
2689
2690
  #a = new AbortController();
@@ -2749,7 +2750,7 @@ var Qn = class {
2749
2750
  failed: !t,
2750
2751
  loading: !1,
2751
2752
  refreshing: !1
2752
- }), this.#r(H(n, this.#t.t));
2753
+ }), this.#r(I(n, this.#t.t));
2753
2754
  }
2754
2755
  }
2755
2756
  async loadMore() {
@@ -2777,7 +2778,7 @@ var Qn = class {
2777
2778
  this.#c({
2778
2779
  loadingMore: !1,
2779
2780
  loadMoreFailed: !0
2780
- }), this.#r(H(e, this.#t.t));
2781
+ }), this.#r(I(e, this.#t.t));
2781
2782
  }
2782
2783
  }
2783
2784
  async setEnabled(e, t) {
@@ -2787,7 +2788,7 @@ var Qn = class {
2787
2788
  let n = await this.#e.setFlowEnabled(e.flowId, e.live.publicationId, t);
2788
2789
  this.#s || this.include(n);
2789
2790
  } catch (e) {
2790
- this.#s || (this.#r(H(e, this.#t.t)), await this.reload());
2791
+ this.#s || (this.#r(I(e, this.#t.t)), await this.reload());
2791
2792
  } finally {
2792
2793
  this.#o.delete(e.flowId);
2793
2794
  }
@@ -2799,9 +2800,9 @@ var Qn = class {
2799
2800
  try {
2800
2801
  let t = await this.#e.publishFlow(e.flowId, e.draftRevisionId, e.live?.publicationId ?? null);
2801
2802
  if (this.#s) return;
2802
- let n = await Q.runPromise(Q.gen({ self: this }, function* () {
2803
+ let n = await X.runPromise(X.gen({ self: this }, function* () {
2803
2804
  let n = t;
2804
- for (; n.status == "pending";) yield* Q.sleep(1e3), n = yield* Q.tryPromise((t) => this.#e.getPublishOperation(e.flowId, n.operationId, t));
2805
+ for (; n.status == "pending";) yield* X.sleep(1e3), n = yield* X.tryPromise((t) => this.#e.getPublishOperation(e.flowId, n.operationId, t));
2805
2806
  return n;
2806
2807
  }), { signal: this.#a.signal });
2807
2808
  if (this.#s) return;
@@ -2813,7 +2814,7 @@ var Qn = class {
2813
2814
  message: this.#t.t("notice.published", { name: e.name })
2814
2815
  }), this.include(await this.#e.getFlow(e.flowId));
2815
2816
  } catch (e) {
2816
- this.#s || this.#r(H(e, this.#t.t));
2817
+ this.#s || this.#r(I(e, this.#t.t));
2817
2818
  } finally {
2818
2819
  this.#o.delete(e.flowId);
2819
2820
  }
@@ -2903,7 +2904,7 @@ var Qn = class {
2903
2904
  this.#c(a, r), o = !0;
2904
2905
  } catch (r) {
2905
2906
  if (this.#o || !n()) return;
2906
- if (r instanceof G && r.code == "flow.presentation-conflict") try {
2907
+ if (r instanceof F && r.code == "flow.presentation-conflict") try {
2907
2908
  let t = await this.#e.getPresentation(e);
2908
2909
  if (this.#o || !n()) return;
2909
2910
  this.#c(a, t), this.#n({
@@ -2911,9 +2912,9 @@ var Qn = class {
2911
2912
  message: this.#t.t("notice.layoutConflict")
2912
2913
  });
2913
2914
  } catch (e) {
2914
- !this.#o && n() && this.#c(a, t), !this.#o && n() && this.#n(H(e, this.#t.t));
2915
+ !this.#o && n() && this.#c(a, t), !this.#o && n() && this.#n(I(e, this.#t.t));
2915
2916
  }
2916
- else this.#c(a, t), this.#n(H(r, this.#t.t));
2917
+ else this.#c(a, t), this.#n(I(r, this.#t.t));
2917
2918
  }
2918
2919
  }), await this.#i, o;
2919
2920
  }
@@ -2971,12 +2972,12 @@ var sr = class {
2971
2972
  this.$ = {
2972
2973
  addNodeOptions: t((e) => {
2973
2974
  let { revision: t, target: r } = e(this.#e);
2974
- return qe(t?.revision, r, e(n.t$));
2975
+ return Je(t?.revision, r, e(n.t$));
2975
2976
  }),
2976
2977
  busy: i,
2977
2978
  checkLoading: a,
2978
2979
  diagnosticFocus: o,
2979
- diagnosticItems: e(this.#t, (e) => xe(e.draft == null ? void 0 : B(e.draft), e.target, e.diagnostics)),
2980
+ diagnosticItems: e(this.#t, (e) => we(e.draft == null ? void 0 : B(e.draft), e.target, e.diagnostics)),
2980
2981
  diagnostics: s,
2981
2982
  draft: c,
2982
2983
  flow: t((e) => {
@@ -2992,7 +2993,7 @@ var sr = class {
2992
2993
  flowRefreshing: r.$.refreshing,
2993
2994
  flowTotal: r.$.total,
2994
2995
  flows: r.$.flows,
2995
- inspectorDiagnostics: e(this.#t, (e) => We(e.draft == null ? void 0 : B(e.draft), e.target, e.diagnostics, x.value)),
2996
+ inspectorDiagnostics: e(this.#t, (e) => be(e.draft == null ? void 0 : B(e.draft), e.target, e.diagnostics, x.value)),
2996
2997
  live: p,
2997
2998
  moduleEditor: l,
2998
2999
  nodeFocus: u,
@@ -3058,8 +3059,8 @@ var ur = class {
3058
3059
  #S;
3059
3060
  #C;
3060
3061
  #w;
3061
- constructor(e, t, n = Kt, r = p(), i = () => {}, a = new Nn(e), o = () => {}) {
3062
- this.catalogs = a, this.flowCreated = o, this.#n = new z(), this.#u = /* @__PURE__ */ new Map(), this.#d = new Xn(), this.history$ = this.#d.state$, this.#h = 0, this.#g = 0, this.#_ = !1, this.#v = !1, this.#y = !1, this.#b = !1, this.#x = 0, this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new tr(e, t, r), this.#l = new sr(r, this.#o), this.#t = new Qn(e, t, r, {
3062
+ constructor(e, t, n = Jt, r = d(), i = () => {}, a = new Nn(e), o = () => {}) {
3063
+ this.catalogs = a, this.flowCreated = o, this.#n = new V(), this.#u = /* @__PURE__ */ new Map(), this.#d = new Xn(), this.history$ = this.#d.state$, this.#h = 0, this.#g = 0, this.#_ = !1, this.#v = !1, this.#y = !1, this.#b = !1, this.#x = 0, this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new tr(e, t, r), this.#l = new sr(r, this.#o), this.#t = new Qn(e, t, r, {
3063
3064
  apply: (e) => this.#j(e, "local"),
3064
3065
  beforeChange: (e) => {
3065
3066
  e && this.#W({ busy: "designer" });
@@ -3139,12 +3140,12 @@ var ur = class {
3139
3140
  } catch (e) {
3140
3141
  if (!t()) return !1;
3141
3142
  this.#w?.(), this.#w = void 0;
3142
- let n = e instanceof G && e.code == ge.flowUpgradeRequired ? "upgrade" : e instanceof G && e.code == ge.flowRepairRequired ? "repair" : "failed";
3143
+ let n = e instanceof F && e.code == Ze.flowUpgradeRequired ? "upgrade" : e instanceof F && e.code == Ze.flowRepairRequired ? "repair" : "failed";
3143
3144
  return this.#W({
3144
3145
  workspaceLoadFailed: !0,
3145
3146
  workspaceLoadProblem: {
3146
3147
  kind: n,
3147
- ...n == "failed" ? { message: H(e, this.#r.t).message } : {}
3148
+ ...n == "failed" ? { message: I(e, this.#r.t).message } : {}
3148
3149
  },
3149
3150
  workspaceLoading: !1
3150
3151
  }), !1;
@@ -3166,14 +3167,14 @@ var ur = class {
3166
3167
  await this.#e.repairDraft(e, n.expectedRevisionId, n.changeId), this.#S = void 0, await this.selectFlow(e);
3167
3168
  } catch (t) {
3168
3169
  if (this.#v) return;
3169
- if (t instanceof G && t.code == ge.flowRevisionConflict) {
3170
+ if (t instanceof F && t.code == Ze.flowRevisionConflict) {
3170
3171
  this.#S = void 0, await this.selectFlow(e);
3171
3172
  return;
3172
3173
  }
3173
3174
  this.#W({
3174
3175
  workspaceLoadProblem: {
3175
3176
  kind: this.#l.value.workspaceLoadProblem?.kind == "upgrade" ? "upgrade" : "repair",
3176
- message: H(t, this.#r.t).message
3177
+ message: I(t, this.#r.t).message
3177
3178
  },
3178
3179
  workspaceRepairing: !1
3179
3180
  });
@@ -3205,7 +3206,7 @@ var ur = class {
3205
3206
  let n = await this.#e.getFlow(await t(e));
3206
3207
  return this.#o.insert(n), n;
3207
3208
  } catch (e) {
3208
- this.#v || this.#c(H(e, this.#r.t));
3209
+ this.#v || this.#c(I(e, this.#r.t));
3209
3210
  } finally {
3210
3211
  this.#W({ busy: void 0 });
3211
3212
  }
@@ -3222,7 +3223,7 @@ var ur = class {
3222
3223
  message: this.#r.t("notice.flowDeleteAccepted", { name: t.name })
3223
3224
  }), !0);
3224
3225
  } catch (e) {
3225
- return this.#v || this.#c(H(e, this.#r.t)), !1;
3226
+ return this.#v || this.#c(I(e, this.#r.t)), !1;
3226
3227
  } finally {
3227
3228
  this.#W({ busy: void 0 });
3228
3229
  }
@@ -3231,7 +3232,7 @@ var ur = class {
3231
3232
  if (!await this.saveModuleEditor() || this.#l.value.draft == null) return !1;
3232
3233
  let t = this.#i();
3233
3234
  this.#W({ busy: "resource" });
3234
- let n = await this.#k(Ie(t, e), !1);
3235
+ let n = await this.#k(Le(t, e), !1);
3235
3236
  return this.#W({ busy: void 0 }), n != null && (this.selectTarget({
3236
3237
  id: t,
3237
3238
  kind: "subflow"
@@ -3249,7 +3250,7 @@ var ur = class {
3249
3250
  try {
3250
3251
  i = await this.#e.renameFlow(e, r), i != null && this.#o.include(i);
3251
3252
  } catch (e) {
3252
- this.#v || this.#c(H(e, this.#r.t));
3253
+ this.#v || this.#c(I(e, this.#r.t));
3253
3254
  }
3254
3255
  return this.#W({ busy: void 0 }), i != null && (this.#c({
3255
3256
  kind: "success",
@@ -3266,24 +3267,24 @@ var ur = class {
3266
3267
  if (s == null) return;
3267
3268
  if (s.kind == "provider-trigger" && s.connectionId == null && s.definition.key != "feishu_app_bot.on_event") {
3268
3269
  try {
3269
- let e = await M(this.catalogs.connections.get(s.definition.provider, r.flowId));
3270
+ let e = await j(this.catalogs.connections.get(s.definition.provider, r.flowId));
3270
3271
  s = {
3271
3272
  ...s,
3272
- connectionId: N(e).preferred?.connectionId
3273
+ connectionId: M(e).preferred?.connectionId
3273
3274
  };
3274
3275
  } catch (e) {
3275
- !this.#v && this.#l.value.draft == r && this.#c(H(e, this.#r.t));
3276
+ !this.#v && this.#l.value.draft == r && this.#c(I(e, this.#r.t));
3276
3277
  }
3277
3278
  if (this.#v || this.#l.value.draft != r || this.#l.value.target != i) return;
3278
3279
  }
3279
- let c = n?.(a), l = He(o, i, a, s, this.#i);
3280
+ let c = n?.(a), l = Ue(o, i, a, s, this.#i);
3280
3281
  if (l == null) return;
3281
- let u = c == null ? l : [...l, ...Vt(V(r, l).content, i, {
3282
+ let u = c == null ? l : [...l, ...Ut(z(r, l).content, i, {
3282
3283
  source: c.source,
3283
3284
  target: c.target,
3284
3285
  ...c.sourceHandle.startsWith("$branch:") ? { sourceHandle: c.sourceHandle.slice(8) } : {}
3285
3286
  })];
3286
- if (await this.#P("add", 1, u, (e) => k(e, i, { [a]: t }), [a]) && !this.#v) return this.#W({ nodeFocus: {
3287
+ if (await this.#P("add", 1, u, (e) => te(e, i, { [a]: t }), [a]) && !this.#v) return this.#W({ nodeFocus: {
3287
3288
  nodeId: a,
3288
3289
  requestId: ++this.#x
3289
3290
  } }), a;
@@ -3291,7 +3292,7 @@ var ur = class {
3291
3292
  async connect(e) {
3292
3293
  let t = this.$.revision.value, n = this.#l.value.target;
3293
3294
  if (t == null || n == null) return;
3294
- let r = Vt(t.revision.content, n, {
3295
+ let r = Ut(t.revision.content, n, {
3295
3296
  source: e.source,
3296
3297
  target: e.target,
3297
3298
  ...e.sourceHandle.startsWith("$branch:") ? { sourceHandle: e.sourceHandle.slice(8) } : {}
@@ -3301,7 +3302,7 @@ var ur = class {
3301
3302
  async disconnect(e) {
3302
3303
  let t = this.$.revision.value, n = this.#l.value.target;
3303
3304
  if (t == null || n == null) return;
3304
- let r = Ht(t.revision.content, n, {
3305
+ let r = Wt(t.revision.content, n, {
3305
3306
  source: e.source,
3306
3307
  target: e.target,
3307
3308
  ...e.sourceHandle.startsWith("$branch:") ? { sourceHandle: e.sourceHandle.slice(8) } : {}
@@ -3312,9 +3313,9 @@ var ur = class {
3312
3313
  if (!await this.saveModuleEditor()) return;
3313
3314
  let e = this.$.revision.value, t = this.#l.value.target;
3314
3315
  if (e == null || t == null || this.#l.value.selectedNodeIds.length == 0) return;
3315
- let n = [...this.#l.value.selectedNodeIds], r = te(this.#l.value.presentation?.value ?? {}, t), i = new Set(this.#l.value.selectedNodeIds.filter((e) => r.has(e))), a = Ve(e, t, this.#l.value.selectedNodeIds);
3316
+ let n = [...this.#l.value.selectedNodeIds], r = k(this.#l.value.presentation?.value ?? {}, t), i = new Set(this.#l.value.selectedNodeIds.filter((e) => r.has(e))), a = He(e, t, this.#l.value.selectedNodeIds);
3316
3317
  await this.#P("delete", this.#l.value.selectedNodeIds.length, a, (e) => {
3317
- let r = i.size == 0 ? e : se(e, t, i);
3318
+ let r = i.size == 0 ? e : ce(e, t, i);
3318
3319
  for (let e of n) r = T(r, t, e, !1);
3319
3320
  return r;
3320
3321
  }, []);
@@ -3331,14 +3332,14 @@ var ur = class {
3331
3332
  sourceId: e.id,
3332
3333
  title: e.title
3333
3334
  }] : []),
3334
- nodes: fe(e, t, this.#l.value.selectedNodeIds)
3335
+ nodes: me(e, t, this.#l.value.selectedNodeIds)
3335
3336
  };
3336
3337
  }
3337
3338
  async pasteNodes(e, t = cr) {
3338
3339
  if (!await this.saveModuleEditor()) return;
3339
3340
  let n = this.$.revision.value, r = this.#l.value.target;
3340
3341
  if (n == null || r == null || this.#m == null) return;
3341
- let i = new Set(this.#m.hiddenNodeIds), a = _e(n, r, this.#m.nodes, this.#i), o = this.#m.comments.map((e) => ({
3342
+ let i = new Set(this.#m.hiddenNodeIds), a = ve(n, r, this.#m.nodes, this.#i), o = this.#m.comments.map((e) => ({
3342
3343
  ...e,
3343
3344
  nodeId: this.#i()
3344
3345
  }));
@@ -3356,7 +3357,7 @@ var ur = class {
3356
3357
  }];
3357
3358
  }));
3358
3359
  await this.#P("paste", c.size, a.changes, (e) => {
3359
- let n = k(e, r, f);
3360
+ let n = te(e, r, f);
3360
3361
  for (let [e, t] of a.sourceIds.entries()) i.has(t) && (n = T(n, r, a.nodeIds[e], !0));
3361
3362
  for (let e of o) i.has(e.sourceId) && (n = T(n, r, e.nodeId, !0)), n = P(n, r, e.nodeId, {
3362
3363
  content: e.content,
@@ -3381,19 +3382,19 @@ var ur = class {
3381
3382
  async saveNodeDescription(e, t) {
3382
3383
  let n = this.$.revision.value, r = this.#l.value.target;
3383
3384
  if (n == null || r == null) return !1;
3384
- let i = Ce(n, r, e, t);
3385
+ let i = Se(n, r, e, t);
3385
3386
  return i != null && await this.#O(i) != null;
3386
3387
  }
3387
3388
  async saveNodeIcon(e, t) {
3388
3389
  let n = this.$.revision.value, r = this.#l.value.target;
3389
3390
  if (n == null || r == null) return !1;
3390
- let i = Le(n, r, e, t);
3391
+ let i = Be(n, r, e, t);
3391
3392
  return i != null && await this.#O(i) != null;
3392
3393
  }
3393
3394
  async saveNodeTitle(e, t) {
3394
3395
  let n = this.$.revision.value, r = this.#l.value.target;
3395
3396
  if (n == null || r == null) return !1;
3396
- let i = Pe(n, r, e, t);
3397
+ let i = Fe(n, r, e, t);
3397
3398
  return i != null && await this.#O(i) != null;
3398
3399
  }
3399
3400
  async setInputValue(e, t, n) {
@@ -3404,7 +3405,7 @@ var ur = class {
3404
3405
  }
3405
3406
  async setInputSource(e, t, n) {
3406
3407
  let r = this.$.revision.value, i = this.#l.value.target;
3407
- return r == null || i == null ? !1 : await this.#O(Ke(r.revision.content, i, e, t, [{
3408
+ return r == null || i == null ? !1 : await this.#O($e(r.revision.content, i, e, t, [{
3408
3409
  kind: "node",
3409
3410
  ...n
3410
3411
  }])) != null;
@@ -3412,7 +3413,7 @@ var ur = class {
3412
3413
  async setInputVariable(e, t, n) {
3413
3414
  let r = this.$.revision.value, i = this.#l.value.target;
3414
3415
  if (r == null || i == null) return !1;
3415
- let a = n == null ? Ne(r, i, e, t, void 0) : Ue(r, i, e, t, n, this.#i());
3416
+ let a = n == null ? Ne(r, i, e, t, void 0) : We(r, i, e, t, n, this.#i());
3416
3417
  return a != null && await this.#O(a) != null;
3417
3418
  }
3418
3419
  async saveCondition(e, t) {
@@ -3424,13 +3425,13 @@ var ur = class {
3424
3425
  async saveValue(e, t) {
3425
3426
  let n = this.$.revision.value, r = this.#l.value.target;
3426
3427
  if (n == null || r == null) return !1;
3427
- let i = he(n, r, e, t);
3428
+ let i = Xe(n, r, e, t);
3428
3429
  return i != null && await this.#O(i) != null;
3429
3430
  }
3430
- async saveWait(e, t) {
3431
+ async saveResolution(e, t) {
3431
3432
  let n = this.$.revision.value, r = this.#l.value.target;
3432
3433
  if (n == null || r?.kind != "flow") return !1;
3433
- let i = Je(n, r, e, t);
3434
+ let i = Te(n, r, e, t);
3434
3435
  return i != null && await this.#O(i) != null;
3435
3436
  }
3436
3437
  async saveNodeContentHidden(e, t) {
@@ -3449,31 +3450,31 @@ var ur = class {
3449
3450
  async saveTaskSettings(e, t) {
3450
3451
  let n = this.$.revision.value, r = this.#l.value.target;
3451
3452
  if (n == null || r == null) return !1;
3452
- let i = le(n, r, e, t);
3453
+ let i = Ge(n, r, e, t);
3453
3454
  return i != null && await this.#O(i) != null;
3454
3455
  }
3455
3456
  async saveCodeActions(e, t) {
3456
3457
  let n = this.$.revision.value, r = this.#l.value.target;
3457
3458
  if (n == null || r == null) return !1;
3458
- let i = Ee(n.revision.content, r, e, t);
3459
+ let i = pe(n.revision.content, r, e, t);
3459
3460
  return i == null || await this.#O(i) != null;
3460
3461
  }
3461
3462
  async saveTaskPorts(e, t) {
3462
3463
  let n = this.$.revision.value, r = this.#l.value.target;
3463
3464
  if (n == null || r == null) return !1;
3464
- let i = Xe(n, r, e, t);
3465
+ let i = ge(n, r, e, t);
3465
3466
  return i != null && await this.#O(i) != null;
3466
3467
  }
3467
3468
  async saveTaskAdditionalInputs(e, t) {
3468
3469
  let n = this.$.revision.value, r = this.#l.value.target;
3469
3470
  if (n == null || r == null) return !1;
3470
- let i = Ge(n, r, e, t);
3471
+ let i = Qe(n, r, e, t);
3471
3472
  return i != null && await this.#O(i) != null;
3472
3473
  }
3473
3474
  async setConnectorConnection(e, t) {
3474
3475
  let n = this.$.revision.value;
3475
3476
  if (n == null) return !1;
3476
- let r = de(n.revision.content, e, t);
3477
+ let r = qe(n.revision.content, e, t);
3477
3478
  return r != null && await this.#O(r) != null;
3478
3479
  }
3479
3480
  get eventSourceClient() {
@@ -3489,15 +3490,15 @@ var ur = class {
3489
3490
  if (n == null || r?.kind != "flow") return !1;
3490
3491
  let i = n.graph(r)?.nodes[e];
3491
3492
  if (i?.kind != "integration" || i.definition.key != "feishu_app_bot.on_event" || t.provider != i.definition.provider) return !1;
3492
- let a = Ze(n.revision.content, r, e, t.connectionId);
3493
+ let a = _e(n.revision.content, r, e, t.connectionId);
3493
3494
  if (a == null) return !1;
3494
3495
  let o = i.config.sourceId != t.sourceId;
3495
3496
  return await this.#O([
3496
3497
  ...a,
3497
- ...I(n.revision.content, r, e, "sourceId", t.sourceId) ?? [],
3498
- ...o ? I(n.revision.content, r, e, "eventTypes", []) ?? [] : [],
3499
- ...o ? I(n.revision.content, r, e, "resource", void 0) ?? [] : [],
3500
- ...o ? I(n.revision.content, r, e, "chatIds", void 0) ?? [] : []
3498
+ ...H(n.revision.content, r, e, "sourceId", t.sourceId) ?? [],
3499
+ ...o ? H(n.revision.content, r, e, "eventTypes", []) ?? [] : [],
3500
+ ...o ? H(n.revision.content, r, e, "resource", void 0) ?? [] : [],
3501
+ ...o ? H(n.revision.content, r, e, "chatIds", void 0) ?? [] : []
3501
3502
  ]) != null;
3502
3503
  }
3503
3504
  async loadTriggerConfigOptions(e, t, n) {
@@ -3508,39 +3509,39 @@ var ur = class {
3508
3509
  async saveTriggerConfig(e, t, n) {
3509
3510
  let r = this.$.revision.value, i = this.#l.value.target;
3510
3511
  if (r == null || i?.kind != "flow") return !1;
3511
- let a = I(r.revision.content, i, e, t, n);
3512
+ let a = H(r.revision.content, i, e, t, n);
3512
3513
  if (a == null) return !1;
3513
3514
  let o = r.graph(i)?.nodes[e];
3514
3515
  if (a.length > 0 && o?.kind == "integration" && o.definition.key == "feishu_app_bot.on_event" && t == "eventTypes") {
3515
3516
  let t = Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
3516
- b(t) || (a = [...a, ...I(r.revision.content, i, e, "chatIds", void 0) ?? []]), ve(o.config.resource) && o.config.resource.kind != S(t) && (a = [...a, ...I(r.revision.content, i, e, "resource", void 0) ?? []]);
3517
+ b(t) || (a = [...a, ...H(r.revision.content, i, e, "chatIds", void 0) ?? []]), Pe(o.config.resource) && o.config.resource.kind != S(t) && (a = [...a, ...H(r.revision.content, i, e, "resource", void 0) ?? []]);
3517
3518
  }
3518
- return a.length > 0 && o?.kind == "poll" && o.definition.key == "linear.on_issue_changed" && t == "teamId" ? await this.#O([...a, ...I(r.revision.content, i, e, "stateIds", void 0) ?? []]) != null : await this.#O(a) != null;
3519
+ return a.length > 0 && o?.kind == "poll" && o.definition.key == "linear.on_issue_changed" && t == "teamId" ? await this.#O([...a, ...H(r.revision.content, i, e, "stateIds", void 0) ?? []]) != null : await this.#O(a) != null;
3519
3520
  }
3520
3521
  async saveTriggerSchedule(e, t) {
3521
3522
  let n = this.$.revision.value, r = this.#l.value.target;
3522
3523
  if (n == null || r?.kind != "flow") return !1;
3523
- let i = Ye(n.revision.content, r, e, t);
3524
+ let i = se(n.revision.content, r, e, t);
3524
3525
  return i != null && await this.#O(i) != null;
3525
3526
  }
3526
3527
  async saveWebhook(e, t) {
3527
3528
  let n = this.$.revision.value, r = this.#l.value.target;
3528
3529
  if (n == null || r?.kind != "flow") return !1;
3529
- let i = ie(n, r, e, t);
3530
+ let i = oe(n, r, e, t);
3530
3531
  return i != null && await this.#O(i) != null;
3531
3532
  }
3532
3533
  async setTriggerConnection(e, t) {
3533
3534
  let n = this.$.revision.value, r = this.#l.value.target;
3534
3535
  if (n == null || r?.kind != "flow") return !1;
3535
- let i = Ze(n.revision.content, r, e, t);
3536
+ let i = _e(n.revision.content, r, e, t);
3536
3537
  if (i == null) return !1;
3537
3538
  let a = n.graph(r)?.nodes[e];
3538
- return i.length > 0 && a?.kind == "poll" && a.definition.key == "linear.on_issue_changed" ? await this.#O([...i, ...["teamId", "stateIds"].flatMap((t) => I(n.revision.content, r, e, t, void 0) ?? [])]) != null : await this.#O(i) != null;
3539
+ return i.length > 0 && a?.kind == "poll" && a.definition.key == "linear.on_issue_changed" ? await this.#O([...i, ...["teamId", "stateIds"].flatMap((t) => H(n.revision.content, r, e, t, void 0) ?? [])]) != null : await this.#O(i) != null;
3539
3540
  }
3540
3541
  async saveSubflowSettings(e, t) {
3541
3542
  let n = this.$.revision.value;
3542
3543
  if (n == null) return !1;
3543
- let r = we(n, e, t);
3544
+ let r = de(n, e, t);
3544
3545
  return r != null && await this.#O(r) != null;
3545
3546
  }
3546
3547
  updateModuleSource(e) {
@@ -3601,11 +3602,11 @@ var ur = class {
3601
3602
  phase: "saving"
3602
3603
  }, this.#U();
3603
3604
  try {
3604
- let t = await Wt(i);
3605
+ let t = await Kt(i);
3605
3606
  if (this.#v || !e()) return !1;
3606
3607
  let a = this.#l.value.draft?.content.modules[n];
3607
3608
  if (a == null || a.source != r.base.source || JSON.stringify(a.imports) != JSON.stringify(r.base.imports)) throw Error(this.#r.t("notice.moduleUpdated"));
3608
- let o = i == a.source && JSON.stringify(t) == JSON.stringify(a.imports) ? this.#l.value.draft : await this.#k(Gt(n, r.base.source, r.base.imports, i, t), !1);
3609
+ let o = i == a.source && JSON.stringify(t) == JSON.stringify(a.imports) ? this.#l.value.draft : await this.#k(qt(n, r.base.source, r.base.imports, i, t), !1);
3609
3610
  if (this.#v || !e()) return !1;
3610
3611
  let s = this.#u.get(n);
3611
3612
  if (s == null) continue;
@@ -3629,7 +3630,7 @@ var ur = class {
3629
3630
  r != null && (r.editor = {
3630
3631
  ...r.editor,
3631
3632
  phase: "failed"
3632
- }), this.#c(H(t, this.#r.t));
3633
+ }), this.#c(I(t, this.#r.t));
3633
3634
  }
3634
3635
  this.#U();
3635
3636
  }
@@ -3637,11 +3638,11 @@ var ur = class {
3637
3638
  }
3638
3639
  async moveNodes(e) {
3639
3640
  let t = this.#l.value.target;
3640
- t != null && await this.#P("move", Object.keys(e).length, [], (n) => k(n, t, e));
3641
+ t != null && await this.#P("move", Object.keys(e).length, [], (n) => te(n, t, e));
3641
3642
  }
3642
3643
  async moveViewport(e) {
3643
3644
  let t = this.#l.value.target;
3644
- t != null && await this.#M((n) => ce(n, t, e), !0);
3645
+ t != null && await this.#M((n) => le(n, t, e), !0);
3645
3646
  }
3646
3647
  async check() {
3647
3648
  await this.#I();
@@ -3654,7 +3655,7 @@ var ur = class {
3654
3655
  }
3655
3656
  locateNode(e, { preserveSelection: t = !1 } = {}) {
3656
3657
  let n = this.$.revision.value, r = this.#l.value.target;
3657
- return n == null || r == null || n.node(r, e) == null && !te(this.#l.value.presentation?.value ?? {}, r).has(e) || !t && !this.selectNodes([e]) ? !1 : (this.#W({ nodeFocus: {
3658
+ return n == null || r == null || n.node(r, e) == null && !k(this.#l.value.presentation?.value ?? {}, r).has(e) || !t && !this.selectNodes([e]) ? !1 : (this.#W({ nodeFocus: {
3658
3659
  nodeId: e,
3659
3660
  requestId: ++this.#x
3660
3661
  } }), !0);
@@ -3685,7 +3686,7 @@ var ur = class {
3685
3686
  if (this.#v || (this.#d.applying || this.#d.failed) && !n) return;
3686
3687
  let r = this.#l.value.flowId, i = this.#l.value.draft;
3687
3688
  if (r == null || i == null) return;
3688
- if (e.length == 0 || u(V(i, e).content, i.content)) return i;
3689
+ if (e.length == 0 || u(z(i, e).content, i.content)) return i;
3689
3690
  let a = !n && this.#d.clear(), o = this.#n.capture();
3690
3691
  this.#d.pending++, this.#d.publish();
3691
3692
  try {
@@ -3707,7 +3708,7 @@ var ur = class {
3707
3708
  for (let t = 0; t < 2 && e(); t += 1) {
3708
3709
  let t = this.#l.value.draft;
3709
3710
  if (t == null) return;
3710
- let n = Oe(t.content);
3711
+ let n = Ee(t.content);
3711
3712
  if (n.length == 0) {
3712
3713
  this.#I();
3713
3714
  return;
@@ -3754,8 +3755,8 @@ var ur = class {
3754
3755
  if (this.#v || this.#d.applying || this.#d.failed) return !1;
3755
3756
  let { draft: a, target: o, presentation: s, selectedNodeIds: c } = this.#l.value;
3756
3757
  if (a == null || o == null || s == null) return !1;
3757
- let l = r?.(s.value) ?? s.value, d = D(s.value, l, o);
3758
- if (u(V(a, n).content, a.content) && d.nodeIds.length == 0) return !0;
3758
+ let l = r?.(s.value) ?? s.value, d = ee(s.value, l, o);
3759
+ if (u(z(a, n).content, a.content) && d.nodeIds.length == 0) return !0;
3759
3760
  let f = this.#d.generation, p = Yn(a.content, n);
3760
3761
  this.#d.pending++;
3761
3762
  let m = this.#d.record({
@@ -3777,7 +3778,7 @@ var ur = class {
3777
3778
  let [o, s] = await Promise.all([e, t]);
3778
3779
  return o != null && s && (!m || f == this.#d.generation);
3779
3780
  } catch (e) {
3780
- return this.#c(H(e, this.#r.t)), this.retryHistorySync(), !1;
3781
+ return this.#c(I(e, this.#r.t)), this.retryHistorySync(), !1;
3781
3782
  } finally {
3782
3783
  this.#d.pending--, this.#v || this.#d.publish();
3783
3784
  }
@@ -3799,7 +3800,7 @@ var ur = class {
3799
3800
  let [t, i] = await Promise.all([this.#k(e ? n.forward : n.inverse, !0, !0), this.#M((t) => E(t, n.target, n.presentation, e), !0)]);
3800
3801
  t != null && i && r == this.#d.generation && (this.selectNodes(e ? n.afterSelection : n.beforeSelection), this.#d.complete(e));
3801
3802
  } catch (e) {
3802
- this.#c(H(e, this.#r.t)), this.retryHistorySync();
3803
+ this.#c(I(e, this.#r.t)), this.retryHistorySync();
3803
3804
  } finally {
3804
3805
  this.#d.applying = !1, this.#v || this.#d.publish();
3805
3806
  }
@@ -3856,7 +3857,7 @@ var ur = class {
3856
3857
  });
3857
3858
  }
3858
3859
  } catch (n) {
3859
- !this.#v && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#c(H(n, this.#r.t));
3860
+ !this.#v && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#c(I(n, this.#r.t));
3860
3861
  } finally {
3861
3862
  !this.#v && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#W({ checkLoading: !1 });
3862
3863
  }
@@ -3897,12 +3898,12 @@ var ur = class {
3897
3898
  message: this.#r.t(o ? "notice.moduleUpdated" : "notice.draftUpdated")
3898
3899
  }), this.#I(), !0;
3899
3900
  } catch (n) {
3900
- return t && this.#V(e) && this.#c(H(n, this.#r.t)), !1;
3901
+ return t && this.#V(e) && this.#c(I(n, this.#r.t)), !1;
3901
3902
  }
3902
3903
  }
3903
3904
  #z() {
3904
3905
  let e = this.#l.value;
3905
- return Qe(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
3906
+ return et(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
3906
3907
  }
3907
3908
  #B(e) {
3908
3909
  let t = B(e), n = lr(t, this.#l.value.target);
@@ -3966,16 +3967,16 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
3966
3967
  #l;
3967
3968
  #u;
3968
3969
  #d;
3969
- constructor(r, i, a = L, o = p(), s = mr, c = !0) {
3970
- this.#t = new z(), this.#r = n(), this.#a = n([]), this.#o = n(!1), this.#s = n(!1), this.#c = !0, this.#u = !1, this.#d = !1, this.retryCatalog = () => {
3970
+ constructor(r, i, a = R, o = d(), s = mr, c = !0) {
3971
+ this.#t = new V(), this.#r = n(), this.#a = n([]), this.#o = n(!1), this.#s = n(!1), this.#c = !0, this.#u = !1, this.#d = !1, this.retryCatalog = () => {
3971
3972
  this.connectors.retryCatalog(), this.triggers.catalog.retry();
3972
- }, this.provideAddNodeOptions = (e, t, n = t) => j(t, [this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t, n)]), this.browseAddNodeOptions = (e) => j(e, [this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)]), this.provideAddNodeOptionChoices = (e, t) => this.connectors.provideAddNodeOptionChoices(e, t), this.preferences = i, this.#e = r, this.results = r, this.#n = o, this.#i = c;
3973
+ }, this.provideAddNodeOptions = (e, t, n = t) => re(t, [this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t, n)]), this.browseAddNodeOptions = (e) => re(e, [this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)]), this.provideAddNodeOptionChoices = (e, t) => this.connectors.provideAddNodeOptionChoices(e, t), this.preferences = i, this.#e = r, this.results = r, this.#n = o, this.#i = c;
3973
3974
  let l = (e) => {
3974
3975
  this.#u || this.#r.set(e);
3975
3976
  };
3976
- this.runs = new Se(r, l, o), this.workspace = new ur(r, l, Kt, o, (e) => {
3977
+ this.runs = new xe(r, l, o), this.workspace = new ur(r, l, Jt, o, (e) => {
3977
3978
  e.kind == "run.created" ? this.#p(r, e) : this.runs.changed(e.runId);
3978
- }, new Nn(r, s.connectorCache), (e) => void this.#f(e)), this.connectors = new Vn(r, this.workspace, l, s, o), this.triggers = new Jn(r, this.workspace, l, s, o), this.publications = new Qt(r, this.workspace, l, i, a, o), this.runRequests = new ln(r, this.runs, l, async (e) => {
3979
+ }, new Nn(r, s.connectorCache), (e) => void this.#f(e)), this.connectors = new Vn(r, this.workspace, l, s, o), this.triggers = new Jn(r, this.workspace, l, s, o), this.publications = new $t(r, this.workspace, l, i, a, o), this.runRequests = new un(r, this.runs, l, async (e) => {
3979
3980
  if (!(e != this.workspace.$.flowId.value || !await this.workspace.saveModuleEditor() || this.#u || e != this.workspace.$.flowId.value)) return this.workspace.$.draft.value?.revisionId;
3980
3981
  }, o, a);
3981
3982
  let u = t((e) => {
@@ -3987,24 +3988,24 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
3987
3988
  diagnostics: [...t.diagnostics, ...n],
3988
3989
  valid: !1
3989
3990
  };
3990
- }), d = /* @__PURE__ */ new Map(), f, m = t((e) => {
3991
+ }), f = /* @__PURE__ */ new Map(), p, m = t((e) => {
3991
3992
  let t = e(this.workspace.$.draft);
3992
- f != t?.flowId && (d.clear(), f = t?.flowId);
3993
- let n = e(this.workspace.$.target), r = e(this.workspace.$.presentation)?.value, i = e(u)?.diagnostics ?? e(this.connectors.$.diagnostics), a = t == null ? void 0 : e(A(this.workspace.catalogs.providers.get(t.flowId, o.lang))), s = Object.fromEntries((a ?? []).map((e) => [e.serviceId, e])), c = e(this.connectors.$.actions), l = e(this.connectors.$.catalogs), p = e(o.t$), m = e(this.runs.$.run), h = e(this.runs.$.events), g = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, _ = [
3993
+ p != t?.flowId && (f.clear(), p = t?.flowId);
3994
+ let n = e(this.workspace.$.target), r = e(this.workspace.$.presentation)?.value, i = e(u)?.diagnostics ?? e(this.connectors.$.diagnostics), a = t == null ? void 0 : e(A(this.workspace.catalogs.providers.get(t.flowId, o.lang))), s = Object.fromEntries((a ?? []).map((e) => [e.serviceId, e])), c = e(this.connectors.$.actions), l = e(this.connectors.$.catalogs), d = e(o.t$), m = e(this.runs.$.run), h = e(this.runs.$.events), g = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, _ = [
3994
3995
  ...fr(t, n),
3995
- r == null || n == null ? void 0 : ze(r, n),
3996
+ r == null || n == null ? void 0 : Ve(r, n),
3996
3997
  i,
3997
3998
  c,
3998
3999
  a,
3999
4000
  l,
4000
- p,
4001
+ d,
4001
4002
  m,
4002
4003
  h,
4003
4004
  ...m == null ? [] : [t?.revisionId]
4004
- ], v = d.get(g);
4005
+ ], v = f.get(g);
4005
4006
  if (v != null && v.inputs.length == _.length && v.inputs.every((e, t) => e === _[t])) return v.graph;
4006
- let y = Qe(t, n, r, i, c, l, p, m, h, s);
4007
- return d.set(g, {
4007
+ let y = et(t, n, r, i, c, l, d, m, h, s);
4008
+ return f.set(g, {
4008
4009
  graph: y,
4009
4010
  inputs: _
4010
4011
  }), y;
@@ -4019,11 +4020,11 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
4019
4020
  if (e(this.publications.$.rollingBackPublicationId) != null) return "rollback";
4020
4021
  if (e(this.publications.$.changingTriggerId) != null) return "trigger";
4021
4022
  }),
4022
- diagnosticItems: t((e) => xe(e(this.workspace.$.revision), e(this.workspace.$.target), e(u))),
4023
+ diagnosticItems: t((e) => we(e(this.workspace.$.revision), e(this.workspace.$.target), e(u))),
4023
4024
  diagnostics: u,
4024
4025
  designer: m,
4025
4026
  designerNodeById: h,
4026
- sourceNodeIcons: e(m, (e) => Object.fromEntries(e.nodes.flatMap((e) => "icon" in e ? [[e.id, e.icon]] : [])), { equal: $ }),
4027
+ sourceNodeIcons: e(m, (e) => Object.fromEntries(e.nodes.flatMap((e) => "icon" in e ? [[e.id, e.icon]] : [])), { equal: Z }),
4027
4028
  notice: this.#r,
4028
4029
  runEventNodes: t((e) => pr(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(h))),
4029
4030
  selectedDesignerNode: t((e) => {
@@ -4061,7 +4062,7 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
4061
4062
  if (this.#u) return;
4062
4063
  this.#a.set(e.map((e) => e.name)), this.#o.set(!0);
4063
4064
  } catch (e) {
4064
- this.#c = !0, this.#u || this.#r.set(H(e, this.#n.t));
4065
+ this.#c = !0, this.#u || this.#r.set(I(e, this.#n.t));
4065
4066
  } finally {
4066
4067
  this.#l = void 0, this.#u || this.#s.set(!1);
4067
4068
  }
@@ -4115,7 +4116,7 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
4115
4116
  let r = await this.workspace.addNode(e, t, n);
4116
4117
  return r != null && e.kind == "connector" && this.connectors.refresh(), r != null && e.kind == "trigger" && this.triggers.refresh(), r;
4117
4118
  } catch (e) {
4118
- this.#u || this.#r.set(H(e, this.#n.t));
4119
+ this.#u || this.#r.set(I(e, this.#n.t));
4119
4120
  return;
4120
4121
  }
4121
4122
  }
@@ -4150,13 +4151,13 @@ var mr = { openExternalPage: async () => !1 }, hr = class {
4150
4151
  return;
4151
4152
  }
4152
4153
  }
4153
- }, gr = Ct(() => import("./flowWorkspace-DCaVDqtY.js").then((e) => e.t));
4154
+ }, gr = Tt(() => import("./flowWorkspace-DNmBb3ZW.js").then((e) => e.t));
4154
4155
  function _r({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: c, tokenLabel: u }) {
4155
- let d = c != null && u != null && i != null, f = c ?? "", p = /* @__PURE__ */ Y(xt, { children: [
4156
- /* @__PURE__ */ J("div", {
4156
+ let d = c != null && u != null && i != null, f = c ?? "", p = /* @__PURE__ */ q(Ct, { children: [
4157
+ /* @__PURE__ */ K("div", {
4157
4158
  "aria-hidden": "true",
4158
4159
  className: "flex size-10 items-center justify-center rounded-lg bg-muted text-muted-foreground",
4159
- children: /* @__PURE__ */ Y("svg", {
4160
+ children: /* @__PURE__ */ q("svg", {
4160
4161
  className: "size-5",
4161
4162
  fill: "none",
4162
4163
  stroke: "currentColor",
@@ -4164,40 +4165,40 @@ function _r({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
4164
4165
  strokeLinejoin: "round",
4165
4166
  strokeWidth: "1.8",
4166
4167
  viewBox: "0 0 24 24",
4167
- children: [/* @__PURE__ */ J("rect", {
4168
+ children: [/* @__PURE__ */ K("rect", {
4168
4169
  height: "9",
4169
4170
  rx: "2",
4170
4171
  width: "14",
4171
4172
  x: "5",
4172
4173
  y: "11"
4173
- }), /* @__PURE__ */ J("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })]
4174
+ }), /* @__PURE__ */ K("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })]
4174
4175
  })
4175
4176
  }),
4176
- /* @__PURE__ */ Y("header", {
4177
+ /* @__PURE__ */ q("header", {
4177
4178
  className: "flex flex-col gap-2",
4178
- children: [/* @__PURE__ */ J("h1", {
4179
+ children: [/* @__PURE__ */ K("h1", {
4179
4180
  className: "text-xl font-semibold tracking-tight text-balance",
4180
4181
  children: o
4181
- }), /* @__PURE__ */ J("p", {
4182
+ }), /* @__PURE__ */ K("p", {
4182
4183
  className: "text-sm/relaxed text-muted-foreground text-pretty",
4183
4184
  children: t
4184
4185
  })]
4185
4186
  }),
4186
- d && /* @__PURE__ */ J(st, { children: /* @__PURE__ */ Y(at, {
4187
+ d && /* @__PURE__ */ K(lt, { children: /* @__PURE__ */ q(st, {
4187
4188
  "data-invalid": n != null,
4188
4189
  children: [
4189
- /* @__PURE__ */ J(ot, {
4190
+ /* @__PURE__ */ K(ct, {
4190
4191
  htmlFor: "session-token",
4191
4192
  children: u
4192
4193
  }),
4193
- /* @__PURE__ */ J(l, {
4194
+ /* @__PURE__ */ K(l, {
4194
4195
  autoComplete: "username",
4195
4196
  name: "username",
4196
4197
  type: "hidden",
4197
4198
  value: "open-flow",
4198
4199
  readOnly: !0
4199
4200
  }),
4200
- /* @__PURE__ */ J(l, {
4201
+ /* @__PURE__ */ K(l, {
4201
4202
  autoComplete: "current-password",
4202
4203
  "aria-invalid": n != null,
4203
4204
  autoFocus: !0,
@@ -4209,29 +4210,29 @@ function _r({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
4209
4210
  type: "password",
4210
4211
  value: f
4211
4212
  }),
4212
- n != null && /* @__PURE__ */ J(ut, { children: n })
4213
+ n != null && /* @__PURE__ */ K(ft, { children: n })
4213
4214
  ]
4214
4215
  }) }),
4215
- e != null && r != null && /* @__PURE__ */ Y(s, {
4216
+ e != null && r != null && /* @__PURE__ */ q(s, {
4216
4217
  disabled: a || d && f.length == 0,
4217
4218
  size: "lg",
4218
4219
  type: "submit",
4219
- children: [a && /* @__PURE__ */ J(it, {
4220
+ children: [a && /* @__PURE__ */ K(ot, {
4220
4221
  "aria-label": e,
4221
4222
  "data-icon": "inline-start"
4222
4223
  }), e]
4223
4224
  }),
4224
- a && e == null && /* @__PURE__ */ J(it, { "aria-label": t })
4225
+ a && e == null && /* @__PURE__ */ K(ot, { "aria-label": t })
4225
4226
  ] }), m = "m-auto flex w-full max-w-[420px] flex-col gap-5 rounded-xl bg-card p-6 shadow-lg shadow-black/10";
4226
- return /* @__PURE__ */ J("main", {
4227
+ return /* @__PURE__ */ K("main", {
4227
4228
  className: "open-flow-workbench",
4228
- children: /* @__PURE__ */ J("div", {
4229
+ children: /* @__PURE__ */ K("div", {
4229
4230
  className: "grid h-full overflow-auto bg-muted/20 p-4",
4230
- children: r == null ? /* @__PURE__ */ J("section", {
4231
+ children: r == null ? /* @__PURE__ */ K("section", {
4231
4232
  "aria-busy": a,
4232
4233
  className: m,
4233
4234
  children: p
4234
- }) : /* @__PURE__ */ J("form", {
4235
+ }) : /* @__PURE__ */ K("form", {
4235
4236
  "aria-busy": a,
4236
4237
  className: m,
4237
4238
  onSubmit: r,
@@ -4241,14 +4242,14 @@ function _r({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
4241
4242
  });
4242
4243
  }
4243
4244
  function vr({ host: e, store: t }) {
4244
- let [n] = Z(() => e.notify.bind(e)), i = r(t.$.notice);
4245
- return X(() => n(i), [n, i]), X(() => () => n(void 0), [n]), null;
4245
+ let [n] = Y(() => e.notify.bind(e)), i = r(t.$.notice);
4246
+ return J(() => n(i), [n, i]), J(() => () => n(void 0), [n]), null;
4246
4247
  }
4247
4248
  function yr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: i, flowBadges: a, hrefFor: o, hostAction: s, hostTitle: c, language: l, navigation: u, onConfigureConnector: d, onHostAction: f, onLanguageChange: p, store: m, theme: h }) {
4248
4249
  let g = r(m.workspace.$.flowId);
4249
- return /* @__PURE__ */ J("div", {
4250
+ return /* @__PURE__ */ K("div", {
4250
4251
  className: "app-shell",
4251
- children: g == null ? /* @__PURE__ */ J(Ft, {
4252
+ children: g == null ? /* @__PURE__ */ K(Lt, {
4252
4253
  catalogWidth: e,
4253
4254
  createFlowDisabled: n,
4254
4255
  createFlowField: i,
@@ -4265,12 +4266,12 @@ function yr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
4265
4266
  onLanguageChange: p,
4266
4267
  onSelectFlow: (e) => void u.selectFlow(e),
4267
4268
  store: m
4268
- }) : /* @__PURE__ */ J(St, {
4269
- fallback: /* @__PURE__ */ J("main", {
4269
+ }) : /* @__PURE__ */ K(wt, {
4270
+ fallback: /* @__PURE__ */ K("main", {
4270
4271
  "aria-busy": "true",
4271
4272
  className: "workspace"
4272
4273
  }),
4273
- children: /* @__PURE__ */ J(gr, {
4274
+ children: /* @__PURE__ */ K(gr, {
4274
4275
  hostAction: s,
4275
4276
  hostTitle: c,
4276
4277
  hrefFor: o,
@@ -4283,18 +4284,18 @@ function yr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
4283
4284
  })
4284
4285
  });
4285
4286
  }
4286
- function br({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, host: a, hostAction: s, hostTitle: c, hrefFor: l, language: u, location: d, onConfigureConnector: f, onHostAction: m, onLanguageChange: h, onNavigate: g, preferences: _, theme: v, variables: y = !0 }) {
4287
- let b = wt(g);
4287
+ function br({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, host: a, hostAction: s, hostTitle: c, hrefFor: l, language: u, location: f, onConfigureConnector: p, onHostAction: m, onLanguageChange: h, onNavigate: g, preferences: _, theme: v, variables: y = !0 }) {
4288
+ let b = Et(g);
4288
4289
  b.current = g;
4289
- let [{ i18n: x, navigation: S, store: C }] = Z(() => {
4290
- let e = p(u), t = new hr(new be((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), _, L, e, a, y);
4290
+ let [{ i18n: x, navigation: S, store: C }] = Y(() => {
4291
+ let e = d(u), t = new hr(new Ce((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), _, R, e, a, y);
4291
4292
  return {
4292
4293
  i18n: e,
4293
- navigation: new Ot(t, d, (e, t) => b.current(e, t)),
4294
+ navigation: new At(t, f, (e, t) => b.current(e, t)),
4294
4295
  store: t
4295
4296
  };
4296
4297
  });
4297
- return X(() => {
4298
+ return J(() => {
4298
4299
  S.start();
4299
4300
  let e = () => {
4300
4301
  C.connectors.refreshAfterAuthorization(), C.triggers.refreshAfterAuthorization(), C.invalidateVariableNames();
@@ -4306,21 +4307,21 @@ function br({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
4306
4307
  x,
4307
4308
  S,
4308
4309
  C
4309
- ]), X(() => void S.apply(d), [d, S]), X(() => {
4310
+ ]), J(() => void S.apply(f), [f, S]), J(() => {
4310
4311
  C.triggers.catalog.setLanguage(u), C.connectors.setLanguage(u), x.lang != u && x.switchLang(u);
4311
4312
  }, [
4312
4313
  x,
4313
4314
  u,
4314
4315
  C
4315
- ]), /* @__PURE__ */ J(o, {
4316
+ ]), /* @__PURE__ */ K(o, {
4316
4317
  i18n: x,
4317
- children: /* @__PURE__ */ Y("div", {
4318
+ children: /* @__PURE__ */ q("div", {
4318
4319
  className: "open-flow-theme open-flow-workbench",
4319
4320
  "data-theme": v,
4320
- children: [/* @__PURE__ */ J(vr, {
4321
+ children: [/* @__PURE__ */ K(vr, {
4321
4322
  host: a,
4322
4323
  store: C
4323
- }), /* @__PURE__ */ J(yr, {
4324
+ }), /* @__PURE__ */ K(yr, {
4324
4325
  catalogWidth: e,
4325
4326
  createFlow: t,
4326
4327
  createFlowDisabled: n,
@@ -4331,7 +4332,7 @@ function br({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
4331
4332
  hrefFor: l,
4332
4333
  language: u,
4333
4334
  navigation: S,
4334
- onConfigureConnector: f,
4335
+ onConfigureConnector: p,
4335
4336
  onHostAction: m,
4336
4337
  onLanguageChange: h,
4337
4338
  store: C,
@@ -4341,7 +4342,7 @@ function br({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
4341
4342
  });
4342
4343
  }
4343
4344
  function xr({ sessionKey: e, ...t }) {
4344
- return /* @__PURE__ */ J(br, { ...t }, e);
4345
+ return /* @__PURE__ */ K(br, { ...t }, e);
4345
4346
  }
4346
4347
  //#endregion
4347
- export { pe as EventSourcesPage, _r as OpenFlowSessionGate, xr as OpenFlowWorkbench, bt as isWorkbenchLanguage, vt as resolveWorkbenchLanguage, yt as workbenchLanguageNames, _t as workbenchLanguages };
4348
+ export { Re as EventSourcesPage, _r as OpenFlowSessionGate, xr as OpenFlowWorkbench, xt as isWorkbenchLanguage, yt as resolveWorkbenchLanguage, bt as workbenchLanguageNames, St as workbenchLanguages };